You can create new custom in Qualitia from the Develop section.
...
Multiexcerpt include macro | ||||
---|---|---|---|---|
|
...
- Log on to Qualitia Automation Studio.
- In the Develop section, click Custom Actions.
- Click the or Create Custom Action button.
A Custom Actions screen appears. - Select Base Class and Custom Object Class.
You can create Custom Object Class on-the-fly clicking the edit () button.
The Custom Object Class file name including its file path should not exceed 256 characters when you are using Git/Bitbucket as a source control system for maintaining project artifacts.
Qualitia class is automatically provided on selection of custom object class. - Enter Action Name, Description and Function Name for the action to be created.
- In the Properties section, click Add.
A new line will be added in the grid. - Add Parameter Name, Description, ArgDataType for the parameter, and select whether this parameter is mandatory.
- To save the action, click Save.
- To save the action and launch the code template in Eclipse IDE, click Save and Launch Eclipse.
- Close the Welcome on the IDE window to see your auto-generated custom action code template.
- Import the pre-created Custom Action Java project workspace into Eclipse workspace.
This is a one-time activity for a project.- To import the pre-created workspace, right-click Package Explorer, and select Import from the context-menu.
- On the Import window, under the General section, select Existing Projects into Workspace and then click Next.
- In the Select root directory section, click the Browse button, select <PROJECTNAME>_QASJavaproject and click Finish.
You will find this directory under Qualitia project path.
- In Eclipse IDE, from the Window menu, select Preferences.
- Select General > Workspace > Select Refresh using native hooks or polling.
- Click Apply and Close.
- Ensure you do not change the method signature and provide only the method body. Changing the signature in code may break your action in Qualitia.
Note: If you map with a wrong Qualitia Project, the following error message is displayed. - In the editor, add the custom action code in the provided template for your custom action.
- Add all the dependent jar files required for your custom actions in the lib folder under <PROJECTNAME>_QASJavaproject (under Qualitia project path).
- Build the project and close the Eclipse IDE.
To work this custom action code in the Qualitia automation test cases, you must build the project successfully.
You can now use this newly created custom action while developing task and test cases in Qualitia.
Info |
---|
Once you have closed the Eclipse IDE, Qualitia automatically commits the code to the version control system (if configured) and makes the code available to other Qualitia project members. |
...