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

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);
pageRef.setRedirect(true);
return pageRef;
Thanks in advance.
PageReference pageRef = new PageReference('/apex/Form_Thankyou?taskid='+taskid);
pageRef.setRedirect(true);
return pageRef;
Thanks in advance.
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.
Thanks,
Abhishek Bansal