You need to sign in to do that
Don't have an account?
satya G 4
How to test coverage for this code
i insert opportunity and related records between start and stop test:again i update the opp record eventhough the below code is not covered.
if (trigger.isUpdate)
{
System.debug('>>>>>>>>>>trigger.old[i].StageName>>>>>>>>>>>'+trigger.old[i].StageName);
if (trigger.old[i].StageName.equalsIgnoreCase('Awarded'))
alreadyInvited=true;
if (trigger.old[i].Organization_Update_Received__c==true)
alreadyFormReceived=true;
}
if (trigger.isUpdate)
{
System.debug('>>>>>>>>>>trigger.old[i].StageName>>>>>>>>>>>'+trigger.old[i].StageName);
if (trigger.old[i].StageName.equalsIgnoreCase('Awarded'))
alreadyInvited=true;
if (trigger.old[i].Organization_Update_Received__c==true)
alreadyFormReceived=true;
}
May be it is the cause of System.DMLException due to failure of insertion or updation of your records. Check once your Debug log.
Thanks,
Balayesu
Thanks for your reply.i currectly insert the record on opprt and update with above fields,i didnt not get the code coverage..