function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sudipta panja 15sudipta panja 15 

test class to compare value of second batch of records with first/previous batch of records.

Hi,

The execute method runs number of times as there are number of batches. 

Now if I have a batch to check duplicacy. And say I have 400 records to be processed.
I want my test class to run execute method twice to check if the second batch is introducing any duplicate record to match any already modified record in first batch. 
Is this possible in test class to run two batches of apex, Hope I could expain my question.