You need to sign in to do that
Don't have an account?
Shannon Andreas 1
Commenting out a test class?
Hello all!
I am trying to deploy a change set to deactivate one of my triggers in production. When I try to validate or deploy, i get the following error:
System.QueryException: List has no rows for assignment to SObject
Stack Trace: Class.CreateContractWAttachmentTrgTest.attachmentTest: line 20, column 1
I read that I can comment out the test class, but I am having trouble with it because I have never done this. Can you tell me how I can do this easily? I tried using /* and */ at the beginning of the test class and the end, respectively. I am getting the following error when I try to save:
Error: Compile Error: unexpected token: '<EOF>' at line 30 column 0
Thanks!
Shannon
I am trying to deploy a change set to deactivate one of my triggers in production. When I try to validate or deploy, i get the following error:
System.QueryException: List has no rows for assignment to SObject
Stack Trace: Class.CreateContractWAttachmentTrgTest.attachmentTest: line 20, column 1
I read that I can comment out the test class, but I am having trouble with it because I have never done this. Can you tell me how I can do this easily? I tried using /* and */ at the beginning of the test class and the end, respectively. I am getting the following error when I try to save:
Error: Compile Error: unexpected token: '<EOF>' at line 30 column 0
Thanks!
Shannon
All Answers
I did as you said and it is throwing the same type of error. I commented out the section that was causing the error and redeployed. All is good now!!!
Thank you sooo much!
Shannon