Using Salesforce keywords - Opkey Classic

Salesforce keywords are commands used by Opkey to interact with various elements like buttons, input fields, and content verification on the Salesforce application.



Let's understand this with an example.


SF_AccountExists

This keyword checks whether a specified account record exists or not in the Salesforce Application based on the Data Input Arguments provided.


Add a new step in your test case by clicking the + icon at the top.  




Click the Three dots icon in the input data column of the step to open the input data window for the keyword. 


 

Input Arguments


Object Input

Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

 


Data Input Arguments

Required?

Description

Account Name

Yes

Provide the Account Name of the record whose Existence has to be verified.

Phone

Yes

Provide the Phone of the record whose Existence has to be verified.

BillingState/

Province

Yes

Provide the BillingState/Province of the record which has to be verified.

Identifier

Yes

Provide the column name by which the record can be verified.

Value

Yes

Provide the Value corresponding to the Identifier provided.



Note: You can provide maximum of 2 Identifiers and corresponding value. This Keyword is implemented both in Lightning and Classic mode.



Output

True

If the account Exists If the keyword passes successfully

False

If the keyword fails




Common Error conditions

Scenarios

Error Message

Debug Information

When Account Name Data Input arguments is blank.

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Argument(s) : (Account Name) is blank.

When the keyword is launched without using Open browser keyword.

Insufficient Privileges (-14100) 

DESCRIPTION:

The system does not have sufficient privileges to carry out a particular task. This mostly happens when the currently logged-in user at the execution site does not have permission to access a particular resource. The protected resource may be a network share, folder or a drive. User may contact the system administrator to sort out the issue.

Either Browser was never Opened  or all SalesForce instances were closed

 



Please go through the list of keywords by clicking here






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article