-
what is the solution for this error(Method does not exist or incorrect signature: void StartTest() from the type test) in Salesforce?
i am experiencing this error (Method does not exist or incorrect signature: void StartTest() from the type test) in the asynchronous trail's future method unit..
here's my code
@isTest
public class AccountProcessorTest {
public static testmethod void AccountProcessorTest1(){
Account testaccount = new Account();
testaccount.name = 'Test Account';
insert testaccount;Contact testcontact = new Contact();
testcontact.FirstName = 'Chief';
testcontact.LastName = 'Hopper';
testcontact.AccountId = testaccount.Id;
insert testcontact;set<Id> AccId = new set<Id>();
AccId.add(testaccount.Id);Test.StartTest();
AccountProcessor.countContacts(AccId);
Test.StopTest();
Account ACC = [select Number_of_Contacts__c from Account where id = :testaccount.Id LIMIT 1];
System.assertEquals ( Integer.valueOf(ACC.Number_of_Contacts__c) ,1);
}}
Can anyone help me on how to tackle this error
- This discussion was modified 4 years, 10 months ago by Shubham.
Log In to reply.
Popular Salesforce Blogs
Develop Your Small Business Into A Large Enterprise With The Right Salesforce Customization
Do you realize that Salesforce discharges tri-yearly updates? Do you additionally realize that Salesforce can oblige a great many customizations directly from your email suite…
Learn Salesforce Einstein - Chapter 1 (Salesforce Einstein Introduction)
Salesforce Einstein Introduction The Einstein API allows you to go into the power of AI and train deep learning models to recognize and classify images…
Popular Salesforce Videos
The History of Salesforce
Well, it's about time to talk about the history of the company that became a $10 Billion Dollar Industry from an efficient CRM. Watch this…
Integrate Salesforce and Active Directory Step by Step
The prospect of implementing Single Sign-on in your Salesforce org can seem daunting if you are unfamiliar with the process. In this live step-by-step demo…
Introduction to Salesforce CPQ | EP1
Session 1: Introduction to Salesforce CPQ: The video provides an introduction to the general quoting challenge many Customers face, and how Salesforce CPQ with its…
Popular Salesforce Infographics
How Salesforce Einstein Can Improve Sales?
Customer Relationship Management has provided businesses with seamless means, marketing strategies and activities to help improve sales. The thing about traditional CRM is that it…
How to Increase Employee Productivity Without Increasing Stress?
Are you looking for ways to increase employee productivity? Want to do it without cracking the whip and making everyone unhappy? Salesforce share their productivity…
Top Benefits of Integrating Salesforce and NetSuite
Salesforce, on the one hand, is the world’s number cloud-based CRM. NetSuite, on the other hand, is one of the best ERP systems. And when…