-
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, 11 months ago by Shubham.
Log In to reply.
Popular Salesforce Blogs
Debugging in Salesforce | All You Need to Know
Debugging is a key part of software development, including Salesforce development. Debugging in Salesforce is the process of identifying and fixing errors or problems in…
Ultimate Guide: How to Import Your Salesforce Metadata into AbstraLinx
In the dynamic landscape of data management, the need for efficient and user-friendly tools has never been more critical. This article unveils AbstraLinx, a specialized…
Salesforce Data Cleansing Best Practices That you Should Consider Implementing Now
Salesforce is a powerful tool that can help your business grow, but it can only reach its full potential when it’s populated with good quality…
Popular Salesforce Videos
Automated Lead Conversion: Triggering Success When a Lead is Born!
Benefits of Trigger-Based Conversion Instantaneous Response to New Leads Improved Lead Nurturing and Engagement Streamlined Sales Process for Maximum Efficiency Data-Driven Insights for Continuous Improvement…
Skill Based Routing with Apex/Flows in Salesforce
This video is the sequel to the omnichannel Salesforce tutorial (LINK) In this video, we will cover: 1. What is Skill-based routing 2. Why is…
Salesforce Spring ‘21 Release Notes Highlights & Summer ‘21 Preparation
Spring ‘21 Release Notes Highlights & Summer ‘21 Preparation In this session we discussed 00:00 Bella Vista, Western Sydney Developer Group Overview 03:30 Andrew Whitten…
Popular Salesforce Infographics
How Building Apps on Salesforce Has Tremendous ROI
The pressure that businesses today are under to reduce costs, improve agility, and deliver better results is no joke. Couple that with rapidly evolving technology…
Top 5 Affordable Salesforce Integration Apps for SMBs
Salesforce is a CRM platform that allows small businesses to manage all of their sales, marketing and customer service communications in one place. Launched back…
Why Salesforce End-user Training Matters for Smooth Implementation
This infographic 'Why Salesforce end-user training matters for smooth implementation' appeared first on Cynoteck. The progress of any CRM implementation depends on its general adoption…