@isTest private class BathUpdateSobjectTest { static testMethod void testMethod1() { Contact contact = new Contact(); contact.LastName = 'lastName'; insert contact; Id execBTId1 = Database.executeBatch(new BathUpdateSobject('Contact'), 100); // Id execBTId2 = Database.executeBatch(new BathUpdateSobject('Contact','LastName = \'lastName\''), 100); // BathUpdateSobject b = new BathUpdateSobject(); // b.test(); // String executeTime = '0 5 10 * * ?'; // UpDateSobjectSchedule updateschedule = new UpDateSobjectSchedule(); // System.schedule('batch bathupdate',executeTime,updateschedule); // BathUpdateSobject bathupdate = new BathUpdateSobject('Contact'); // bathupdate.execute(BatchableContext BC, List scope) } }