You need to sign in to do that
Don't have an account?
MDXHiker
Apex classes to Prod env
I have a few apex classes written in sandbox and now I need to promote them to Production.
How do I do this using the compileAndTest API call as hte help pages suggest ?
Thanks a lot for your help
How do I do this using the compileAndTest API call as hte help pages suggest ?
Thanks a lot for your help
Where is teh deploy button in Eclipse? I wrote these classes directly into the Sandbox env
Also it complains that 75% test coverage is needed
Thanks
Message Edited by MDXHiker on 07-23-2008 04:45 PM
If I include them in the src project how do I run these?
Thanks
there is good detail on testing and deploy in the online docs.
http://www.salesforce.com/us/developer/docs/apexcode/index.htm
The first is that the one of the method signatures is erroring on compile with method signature incorrect error.
Though this is working fine in Sandbox
The signature of the method implemented is create(String, String, Date, String, Decimal, String) but the IDe complains that there is no method like create(String, String,Date,ID, Decimal, String). The field changed is a custom object lookup field to Opportunity
Could you please let me know how to resolve this
Thanks
But now I create the custom object in Prod and created the classes and triggers in Eclipse Prod project. Here right in the IDE it tells me that code coverage is zero -whereas in Sandbox it ran successfully with coverage 80%. Why do I get different behaviors for these instances.
Any help would be great . Thanks
you must create in sandbox and run the deploy process to get the classes and triggers into prod.
I did create test classes in Sandbox Eclipse project and saved to the server ( not deploy). Then in Sandbox UI I ran the unit tests and that gave 80% coverage
However in Eclipse for the Sandbox I get zero code coverage. Why would this occur? Thanks
Message Edited by MDXHiker on 07-24-2008 10:07 AM
The trigger metadata was set to false by default. When I changed it to true, the code coverage now is 64%.
Which brings back to my other question posted - how do I write test cases for a trigger?