Custom Actions

BQ allows its users to create their own action keywords as per your requirement. The action keywords created by the user are known as custom actions.

Step by step guide to create a custom action :

  1. Navigate to Custom Actions by clicking on Design > Custom Actions.

  2. Click on Add Action button.
    Design / Custom Actions form will be displayed.

  3. Enter the meta data for :

    1. Action Name : Name of the custom action to be created

    2. Language Name : Select JavaScript / Groovy from dropdown list

    3. Keyword Type : Select from the dropdown list

    4. Type : Select UI / API from the dropdown list

    5. Description : Enter the custom action description

    6. Expected : Enter the custom action’s expected result

  4. Select the checkbox(s) for Optional / Mandatory for that param.

  5. Enter the parameter name for the custom action under Parameter column.

  6. Click on Save.

  7. Click on Source Tab.

  8. Write the code for the desired custom action under the try-catch block

  9. Click on Save.


    How to handle element inside frame?

    How to find element using various identifier


 

Once you create and save the custom action, it's ready to be used in the test case.

Â