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 information and match against front-end display on Salesforce screens. Same set of commands work 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 |
Important: Concatenate the security token with the password. Format (Password+Security Token)
Refer to the article to get the Security token: Get Salesforce Security token
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 recently executed Salesforce query or search. Identify the query with its reference name. 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 result 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.