Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Adding custom steps to scenario tests

Updated on April 8, 2022

Provide users with an error-free experience by ensuring that scenario tests recognize all elements of your application's interface. With comprehensive scenario tests, you enhance the quality of the application that you deliver.

If tests do not identify controls that are not out-of-the-box, you can add a custom step to the scenario to include the missing elements in the tests.
  1. In Dev Studio, create a scenario test.

    For more information, see Creating scenario tests.

  2. Add custom steps to the scenario:
    1. In the Test steps section on the right, next to a selected step, click MoreAdd custom step.
    2. In the Custom Step Modal dialog box, provide details of the custom step.
      For example: In the Xpath of UI element field, provide the Xpath of the element to make it recognizable by the test.

      For more information about Xpath, visit the W3schools webpage.

    3. Click Submit.
  3. In the Test case pane, click Stop and save test case.
  4. On the New test case form, provide details of the test, and then click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us