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
Yeliz Taşkıran 9Yeliz Taşkıran 9 

Only top-level class methods can be declared static helpp?

'Only top-level class methods can be declared static'i am  getting a error.
Balayesu ChilakalapudiBalayesu Chilakalapudi
Your code must be inside a method.
Try like this
 
@isTest
public class BIInformation{
       public static testMethod void updateTest(){
         Account a=new Account();
         a.name='acct
         Test.startTest();
               insert a;
               Account c=new Account();
               c.Name='Test Account';
               c.type='customer';
               Account d=new Account();
               d.Name='Test Account2';
               d.type='customer';
          Test.stopTest();
               insert c;
               insert d;    
             BIInformation bi=new BIInformation();
​             bi.execute(null);      
       }
}

Let us know if it helps.