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 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.
Adding label_Based_standard_input_operation Action as a Test Case Step
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 DOM structure.
The following are the types of objects handled:
Textbox
TextArea
Dropdown
Lookup
Radio Button
Checkbox
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
LabelName | Enter the label name of the object. | Yes | String |
LabelValue | Enter the appropriate value to specify in the object. | Yes | String |
TypeOfOperation | Enter the type of operation. | Yes | String |
You can cover the following scenarios using this action:
Filling the Data
Verifying the Object Size
Verifying the Mandatory Error Message
Verifying the Object Value
Verifying the Object Disability
Storing the Object Value
Filling the Data
This is used to 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 need to specify as FillData in Parameter 3.
Example:
Parameter 1 (LabelName) | Parameter 2 (LabelValue) | Parameter 3 (TypeOfOpeartion) |
---|---|---|
Opportunity Name | Oppo1 | FillData |
Stage | ClosedWon@@New | FillData |
Verifying the Object Size
This is used to 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 (TypeOfOpeartion) |
---|---|---|
Opportunity Name | Text^20 | SizeValidations |
Verifying Mandatory Error Message
This is used to verify when a mandatory object is not selected or entered a value, then whether an appropriate error message is displayed.
You need to specify in the error message in Parameter 2 and MandatoryValidations in Parameter 3.
Example:
Parameter 1 (LabelName) | Parameter 2 (LabelValue) | Parameter 3 (TypeOfOpeartion) |
---|---|---|
Opportunity Name | Opportunity Name is mandatory | MandatoryValidations |
Verifying the Object Value
This is used to verify whether the object value entered or selected is displayed or verify a default value.
You need to specify in Parameter 3 as DetailsVerification.
Example:
Parameter 1 (LabelName) | Parameter 2 (LabelValue) | Parameter 3(TypeOfOpeartion) |
---|---|---|
Opportunity Name | Oppo1 | DetailsVerification |
Verifying the Object Disability
This is used to verify whether an object is disabled or not. You need to specify as $disabled$ in Parameter 2 and MandatoryValidations in Parameter 3.
Example:
Parameter 1 (LabelName) | Parameter 2 (LabelValue) | Parameter 3 (TypeOfOpeartion) |
---|---|---|
Opportunity Name | $disabled$ | MandatoryValidations |
Storing the Object Value
This is used to verify 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(TypeOfOpeartion) |
---|---|---|
Opportunity Name | Keytostore | $storeText$ |
Add Comment