-
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 6 years, 2 months ago by
Shubham.
-
This discussion was modified 6 years, 2 months ago by
Log In to reply.
Popular Salesforce Blogs
How Integrated CRM Payment Solution can Help Nonprofits | Salesforce Solutions
If your fundraising team is spending hours monthly to manually import and export data from the increasing payment providers, then they are definitely doing it…
Salesforce Winter ’19 Release — Key Points
Three times per year, Salesforce release a new version of their products with a range of new features. These versions are named to reflect the…
Popular Salesforce Videos
Live Demo of Salesforce Industries
Watch the live demo to have a better understanding of Vlocity i.e Salesforce Industries. Let's have a glance at this extract from our latest webinar!…
Salesforce Consulting - WHAT YOU NEED TO KNOW
If you're already working as a Salesforce Professional or you're interested in where your Salesforce Career will take you this is for you. This explains…
Build a Discount Approval Process | Step by Step Guide | Trailhead Project
Building a robust discount approval process is the first step in getting a grip of price discounts that are eating into profit. In this video…
Popular Salesforce Infographics
Infographic: State of Service 2019
Did you know that 64% of people think that customer experience is more important than price in their choice of brand? The new trends in customer service…
How to Create Campaign in Salesforce for Sales Departments: 5 Best Practices
Salesforce Sales Cloud is a powerful platform with several facilities for maintaining and improving the sales function. One of the dominant features offered by Salesforce…
Salesforce and QuickBooks Integration With Fexle Services
How To Leverage Quickbooks and Salesforce Integration for Businesses? The pairing of the two most powerful platforms – Salesforce and Quickbooks – always garner the…