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
You can easily update the custom action metadata from Qualitia automation studio.
You cannot update custom action metadata except its Mandatory status of its parameters if it is added in a task or a test case.
To edit custom action metadata:
- From the Expand Menu, click Develop.
- Click the Custom Actions tab.
- In the left pane, click the desired custom action which you want to update.
Custom action details will appear in the right pane. - Click Edit.
- Update Action Name, Description, Function Name, and parameters details based on the requirements.
- 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.
- From the Expand Menu, click Develop.
- Click the Custom Actions tab.
- In the left pane, select the desired custom action which you want to update.
Custom action details will appear in the right pane. - Click View Code.
The code appears in the different section. - To update the code in the Eclipse IDE, click Edit Code.
The code template with an existing code opens in the Eclipse IDE. - Update the code based on the requirements.
- 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.