Document toolboxDocument toolbox

Modifying Custom Actions

Over the course of the project, you might want to update the custom action code to handle more scenarios with the same action. You can modify the custom action code in such cases.

Modify Custom Action Metadata

For custom actions that are added to a task or a test case, you can update only the Mandatory status of its parameters and no other metadata

To edit custom action metadata:

  1. From the Expand Menu, click Develop.
  2. Click the Custom Actions tab.
  3. In the left pane, click the desired custom action which you want to update.
    Custom action details will appear in the right pane.
  4. Click Edit.
  5. Update Action Name, Description, Function Name, and parameters details based on the requirements.
  6. Click Save and Launch Editor.

    For desktop project custom action developed in VB, you cannot add or remove parameters from the mapped function for an unused cutsom action from Qualitia client.  To work around this issue, launch the associated VBS file from Qualitia client, add or remove parameters for the mapped function, and remap the function to the custom action from Custom Action window.

Modify Custom Action Code

You can modify existing custom action code using the Eclipse IDE.

Ensure that your associated role is assigned with Custom Actions privileges.

While editing, it is strongly recommended to view and edit custom actions code from Qualitia Automation Studio only. In case you want to edit multiple custom actions, you must launch the code for each action differently from the automation studio. Modifying multiple actions in a single go may put you in conflicting situations which are difficult to handle.

  1. From the Expand Menu, click Develop.
  2. Click the Custom Actions tab.
  3. In the left pane, select the desired custom action which you want to update.
    Custom action details will appear in the right pane.
  4. Click View Code.
    The code appears in the different section.
  5. To update the code in the Eclipse IDE, click Edit Code.
    The code template with an existing code opens in the Eclipse IDE.
  6. Update the code based on the requirements.
  7. Build the project and close Eclipse IDE.

    Once you close the Eclipse IDE, Qualitia automatically commits the code to the version control system like Bitbucket or SVN (if configured) and makes the code available to other Qualitia project members.