You need to sign in to do that
Don't have an account?
msreekm
System.Exception: Testing already started
test.startTest();
insert leads;test.stopTest();
lead2.Phone = '510-366-1003';
lead3.Phone = '510-366-1004';test.startTest(); --> Error here
update leads;test.stopTest();
I get the above error- Testing already started!@
JimRae
According to the documentation, you can only do one starttest per testmethod. If you really wanted to break up your insert and update test, you would need to create 2 different test methods.