The advantage of using this Custom Action is that users can reduce the time taken in creating objects for SalesForce Lightning.
Pre-Requisites
Install Java Eclipse.
Define the Eclipse Path in Qualitia Configuration Settings.
Map Actions in Qualitia using Eclipse
To map actions in Qualitia using Eclipse
Select the project in which you want to map the action.
Go to Develop> Custom Actions.
Click Add to add a new Custom Action.
Select Base Class as WebGeneral.
Edit the Custom Object Class by entering the values in Custom Object Class and Qualitia Class as SFDC_Standard_Function.
Enter the value in Action Name, Description and Function Name as label_Based_standard_input_operation.
Add the following three parameters:
LabelName along with ArgDataType as String and select the Mandatory checkbox.
LabelValue along with ArgDataType as String and select the Mandatory checkbox.
TypeOfOpeartion along with ArgDataType as String and select the Mandatory checkbox.
Click Save & Launch Eclipse to save these values and launch the Eclipse.
After the Eclipse launches, click Import Projects. The Import dialog box opens.
Under General folder, select Existing Projects into Workspace, and then click Next.
Select QAS Workspace from your Project Path, and then click Finish.
Eclipse creates a class as SFDC_Standard_Function.
Copy your Java code and paste to that class. Action file will be provided through an email.
Create a class as WaitMethod in Eclipse, and paste your WaitMethod Java code.
Save and close Eclipse.
Go to Develop>Test Case, open a new test case.
Verify under Action drop-down whether it is displaying label_Based_standard_input_operation.
In case of any errors, please contact support@qualitiasoft.com.
About label_Based_standard_input_operation Action
This action identifies the UI objects based on their label names. As long as the object is present on the screen and displayed, it will be identified irrespective of the DOM structure.
The action handles the following six different types of objects:
Textbox
TextArea
Dropdown
Lookup
Radio Button
Checkbox
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
LabelName | Enter the label name for the object. | Yes | String |
LabelValue | Enter the appropriate value as an input value for the object. | Yes | String |
TypeOfOperation | Enter the type of operation from one of the following:
| Yes | String |
The action can be used to cover the following scenarios:
Filling the Data
You can enter the values in an object. If there are multiple values to add in an object, such as multi-select values in a drop-down list, then separate values by @@ .
You have to specify as FillData in Parameter 3.
Example:
Parameter 1 (LabelName) | Parameter 2 (LabelValue) | Parameter 3 (TypeOfOperation) |
---|---|---|
Opportunity Name | Oppo1 | FillData |
Stage | ClosedWon@@New | FillData |
Verifying the Object Size
You can verify the size of the object by specifying the length. For example, whether the maximum the size of the text box is up to 20 characters.
You have to specify the object length as Text^20, in which Text denotes it as text box, and length as 20.
Also, specify as SizeValidations in Parameter 3.
Example:
Parameter 1 (LabelName) | Parameter 2 (LabelValue) | Parameter 3 (TypeOfOperation) |
---|---|---|
Opportunity Name | Text^20 | SizeValidations |
Verifying Mandatory Error Message
You can verify when a mandatory object is not selected or entered a value in it, then whether an appropriate error message is displayed.
You have to specify in the error message in Parameter 2 and MandatoryValidations in Parameter 3.
Example:
Parameter 1 (LabelName) | Parameter 2 (LabelValue) | Parameter 3 (TypeOfOperation) |
---|---|---|
Opportunity Name | Opportunity Name is mandatory | MandatoryValidations |
Verifying the Object Value
You can verify whether the object value entered or selected is displayed or verify a default value.
You have to specify in Parameter 3 as DetailsVerification.
Example:
Parameter 1 (LabelName) | Parameter 2 (LabelValue) | Parameter 3(TypeOfOperation) |
---|---|---|
Opportunity Name | Oppo1 | DetailsVerification |
Verifying the Object Disability
You can verify whether an object is disabled or not. You have to specify as $disabled$ in Parameter 2 and MandatoryValidations in Parameter 3.
Example:
Parameter 1 (LabelName) | Parameter 2 (LabelValue) | Parameter 3 (TypeOfOperation) |
---|---|---|
Opportunity Name | $disabled$ | MandatoryValidations |
Storing the Object Value
You can store an object value displayed in run-time or store a default value.
You have to specify as Keytostore in Parameter 2 and $storeText$ in Parameter 3.
Example:
Parameter 1 (LabelName) | Parameter 2 (LabelValue) | Parameter 3(TypeOfOperation) |
---|---|---|
Opportunity Name | Keytostore | $storeText$ |
0 Comments