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
msreekmmsreekm 

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!@

Message Edited by msreekm on 10-25-2009 05:36 PM
JimRaeJimRae
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.