Skip to main content
added 50 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

Please use the following line of code in line 12 of your test class it will result the query results for the for loop in your batch class.

listTask.add(new Task(WhoId=testLead.id,Subject='Call '+i,Type='Unreach Call',Status='Completed'));

listTask.add(new Task(WhoId=testLead.id,Subject='Call '+i,
                                        Type='Unreach Call',Status='Completed')); 

The issue is the mismatch of value in type Unreach Call

Please use the following line of code in line 12 of your test class it will result the query results for the for loop in your batch class.

listTask.add(new Task(WhoId=testLead.id,Subject='Call '+i,Type='Unreach Call',Status='Completed'));

The issue is the mismatch of value in type Unreach Call

Please use the following line of code in line 12 of your test class it will result the query results for the for loop in your batch class.

listTask.add(new Task(WhoId=testLead.id,Subject='Call '+i,
                                        Type='Unreach Call',Status='Completed')); 

The issue is the mismatch of value in type Unreach Call

Source Link

Please use the following line of code in line 12 of your test class it will result the query results for the for loop in your batch class.

listTask.add(new Task(WhoId=testLead.id,Subject='Call '+i,Type='Unreach Call',Status='Completed'));

The issue is the mismatch of value in type Unreach Call