ACCELQ supports test logic development to query the backend Salesforce data using SOQL (Salesforce Object Query Language) and SOSL (Salesforce Object Search Language) interface provided by Salesforce. You can either query for data or verify the information and match it against the front-end display on Salesforce screens. The same set of commands works both for SOQL and SOSL, intended for querying Salesforce objects and searching Salesforce objects respectively.
Establishing Connection
Define Salesforce Query connection (SOQL/SOSL)
Instance URL |
Salesforce instance URL |
About specifying Password:
Concatenate the security token with the password.
Format (Password+Security Token)
Refer to the article to get the Security token: Get Salesforce Security token
Note about finding Instance URL:
The instance URL your Salesforce Organization uses is indicated in the URL of your browser's address bar for the Developer Console Window.
For Example https://accelq.salesforce.com/_ui/common/apex/debug/ApexCSIPage
The hostname is your Salesforce Instance URL. In this example, 'accelq.salesforce.com'.
You can open the Developer Console by :
In Salesforce Classic: After login, Your user name dropdown > Developer Console
In Lightning Experience: After login, Gear icon > Developer Console
Running Queries
Execute Salesforce query
Query |
Salesforce Query (SOSL/SOQL) to execute in the format supported by Salesforce |
Retrieve Field value from Query/Search results
Get Field Value from Salesforce Query Result
Retrieves value for a field from the results of the recently executed Salesforce query or search. Identify the query with its reference name. The row number and column number used in field specification start with 1.
Query ref name |
reference name of the query from which results are retrieved |
Verify Field value from Query Execution results
Verify Field Value from Salesforce Query Result
Verifies the value in the result of Salesforce query or search, against an expected value. Note that the Salesforce query should have already been executed with the given query reference name.
Query ref name |
reference name of the query from which results are retrieved |
Log Query Result
Log Salesforce Query Result
Prints given Salesforce query results to the test report.
Query reference name
|
query reference name from which results must be retrieved
|
Comments
0 comments
Please sign in to leave a comment.