+ Start a Discussion
karthikeya 2karthikeya 2 

code coverage for 3 lines

Hi to write the test code coverage for the folowing lines.

PageReference pageRef = new PageReference('/apex/Form_Thankyou?taskid='+taskid);
return pageRef;

Thanks in advance.
Abhishek BansalAbhishek Bansal

Hi Karthik,

These lines must be written in a method so in order to cover these lines you have to call the method from your test class in which these lines are written and they will automatically be covered.

Please let me know if you need more help or information on this.

Abhishek Bansal