What is the preferred way to load the following test data into - ProProfs Discuss
Cancel
TopicsDown
Products Down
Follow Us:
FacebookTwitter
Advertisement

What is the preferred way to load the following test data into Salesforce?

What is the preferred way to load the following test data into Salesforce?

Change Image    Delete



A developer needs to ensure there is sufficient test coverage for an Apex method that interacts with Accounts. The developer needs to create test data.

A. By using Static Resources
B. By using HttpCalloutMocks
C. By using WebServiceTests
D. By using Documents

This question is part of Platform Dev 1
Asked by Msladysyrenne, Last updated: Sep 26, 2020

+ Answer
Request
Question menu
Vote up Vote down

3 Answers

S. Barnes

S. Barnes

Driving down to Knowledge town

S. Barnes
S. Barnes, Chauffeur, Graduate, Seattle

Answered May 17, 2019

The correct answer to this question is A, By using Static Resources. This technique would be used in the cloud-based software Salesforce. Static Resources allow content to be uploaded. This content can then be used as a point of reference on the Visualforce page.

The content can be anything such as style sheets, archives, and images. There are many advantages to using a static resource over uploading a document. For one, the files can be packaged together as a collection. This collection can then be uploaded as a hierarchy. Another advantage is the static resource can be referenced by name in page markup.

upvote downvote
Reply 

Larry Thornton

Larry Thornton

Curious about the World

Larry Thornton
Larry Thornton, Student, MBA, Los Angles

Answered Apr 10, 2019

There are many circumstances where you could need to implement a connection from Salesforce to a third party API using Apex. Apex has an interface called HttpCalloutMocks for standard callout tests. You need first to create a visual force page and some Apex code to execute the HTTP Callout to a weather service’s API and then display the results.

An Apex Callout empowers you to integrate your Apex within external service my making a call to external web service or sending HTTP from Apex code and then getting the response. Apex delivers integration with web services that utilize SOAP and WSDL or HTTP services. (restful services)

upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Oct 25, 2016

By using Static Resources

####
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.