In order to create the custom actions for Selenium Webdriver, you need to create the action in Java and then map this action into Qualitia Automation Studio. You can use any IDE tool like Eclipse. The following are some rules that should be considered when creating custom actions: - The parameter data types supported by Qualitia are String and Array. If an array parameter is used in Qualitia for the custom action, then custom action parameter should be of the type Object in Custom Action function. The parameter can then be type-casted into the data type which is required in the action.
For example, the object parameter can be type-casted into the array list. - All custom actions must return following integer values only.
- If action gets passed, return value should be 0.
- If action gets failed, return value should be 1.
- If action has defect, return value should be 2.
- Based on the standard Java coding rules, actions should not be created in the default package. For better maintenance, it is recommended to
|