Document toolboxDocument toolbox

Creating New Custom Action

You can create new custom in Qualitia from the Develop section. 

Before you start creating custom action:

Ensure you meet following prerequisites before you start creating custom actions in Qualitia.

Creating New Custom Actions

If you have existing set of custom actions which you are using while developing test cases and tasks, you must import them in Qualitia.

For more information on importing existing custom action code in Qualitia, click here.

After you import the existing set of custom actions in Qualitia you can start creating new actions.

For newly created projects, you can start creating custom actions right-away. 

To create new custom action in Qualitia:

  1. Log on to Qualitia Automation Studio.
  2. In the Develop section, click Custom Actions.
  3. Click the   or Create Custom Action button.
    A Custom Actions screen appears.
  4. Select Base Class and Custom Object Class.
    (info) You can create Custom Object Class on-the-fly clicking the edit () button.
    (warning) 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.
  5. Enter Action Name, Description and Function Name for the action to be created.
  6. In the Properties section, click Add.
    A new line will be added in the grid.
  7. Add Parameter Name, Description, ArgDataType for the parameter, and select whether this parameter is mandatory.
    1. To save the action, click Save.
    2. To save the action and launch the code template in Eclipse IDE, click Save and Launch Eclipse.
  8. Close the Welcome on the IDE window to see your auto-generated custom action code template.
  9. Import the pre-created Custom Action Java project workspace into Eclipse workspace.
    (info) This is a one-time activity for a project.
    1. To import the pre-created workspace, right-click Package Explorer, and select Import from the context-menu.
    2. On the Import window, under the General section, select Existing Projects into Workspace and then click Next.
    3. 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.



  10. In Eclipse IDE, from the Window menu, select Preferences.
  11. Select General > Workspace > Select Refresh using native hooks or polling.
  12. Click Apply and Close.
  13. 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.
  14. In the editor, add the custom action code in the provided template for your custom action.
  15. Add all the dependent jar files required for your custom actions in the lib folder under <PROJECTNAME>_QASJavaproject (under Qualitia project path).
  16. 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.

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.

Not finding what you need?