...
- The parameter data types supported by Qualitia are String and Array. If an array parameter is used in Qualitia for the custom action, then the 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. it is recommended to create a new package and develop actions there for easy handling.
- It is recommended to put a prefix in when defining a name for new custom actions for easy identification.
- No two custom actions can have the same function name in the same class. Function overloading is not allowed. Duplicate function names in different classes are allowed (not recommended).
- No two custom actions can be in the same package hierarchy. Such instances may occur when multiple custom actions with the same name are created in different Java projects using same package hierarchy.
- Any new custom object created in Qualitia cannot be imported. You must create the object manually and map it to the relevant custom class in Qualitia.
- Once the action is mapped into Qualitia and used in a test case, do not change the existing signature or other details of the actions or the classes created. The functionality of the action can be modified. Do not delete the custom actions or custom classes that are used in test cases.
- If the custom action belongs to any object type (such as WebEdit, WebElement, and so forth), ensure you add the objectInfo parameter while developing the code of an action.
- Any new custom object created in Qualitia cannot be imported. You must create the object manually and map it to the relevant custom class in Qualitia.
Objects should be added under appropriate Qualitia classes while mapping custom actions into Qualitia Automation Studio.
Expand title View Image