You need to sign in to do that
Don't have an account?

Failure on a test class
Hello All,
We have a test class that is causing errors when I try to move items into production. I know what is causing the error (I am not a developer and we do not have one here) it is the last line that when the developer created the test case would have been null, but since then there was a change. I just need to comment out one line.
I know how to comment out the line, I just don't know how to get that test class back into prod, when I try the test runs and errors out so it is basically a catch22 here. Thanks in advance for any assistance.
We have a test class that is causing errors when I try to move items into production. I know what is causing the error (I am not a developer and we do not have one here) it is the last line that when the developer created the test case would have been null, but since then there was a change. I just need to comment out one line.
I know how to comment out the line, I just don't know how to get that test class back into prod, when I try the test runs and errors out so it is basically a catch22 here. Thanks in advance for any assistance.
Now create a outbound change set: Deploy --> Outbound change set
In the "Change Set Components" section click on the Add button
Select Apex class from the drop down and select the test class that you modified.
Once done click on upload button and select your production org.
After few minutes login to your Production org and search for Inbound change set.
Open the change set that you have pushed, and click on Deploy button.
Just try and let me know if you find any issues.
All Answers
Could you please post the complete error, so that i can help you out.
Regards,
Srinivas Gupta
Thank you
Error message when validated moving a change set into prod.
SelectEmailTemplate_TestmyUnitTestSystem.AssertException: Assertion Failed
Stack Trace: Class.SelectEmailTemplate_Test.myUnitTest: line 48, column 1
Now create a outbound change set: Deploy --> Outbound change set
In the "Change Set Components" section click on the Add button
Select Apex class from the drop down and select the test class that you modified.
Once done click on upload button and select your production org.
After few minutes login to your Production org and search for Inbound change set.
Open the change set that you have pushed, and click on Deploy button.
Just try and let me know if you find any issues.