Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Editing automated tests

Editing automated tests

Edit existing automated tests.

Change automated test step

If necessary, edit a test step after you create it.

Before you begin

Role required: [atf_test_admin] or [atf_test_designer].

Procedure

  1. Navigate to Automated Test Framework > Tests.
  2. Click the row containing the test you want to edit.
  3. On the Test Steps related list, click the row containing the step you want to edit.
    The system displays the Set Field Values form.
  4. Edit the fields you want to change.
  5. Click Update.

Edit automated test step order

By default, steps execute in the order in which you created them. You can change this order by editing the Execution Order field.

Before you begin

Role required: [atf_test_admin] or [atf_test_designer].

About this task

By default, the system assigns the value 1 to Execution Order for the first step created for a test. When you add a step, the system assigns it the next-highest available integer value. In other words, if the highest Execution Order for any step in the test has the value 7, the system assigns 8 to the new step. By editing these values, you can change the order in which the test executes the steps.

Procedure

  1. Navigate to Automated Test Framework > Tests.
  2. Click the row containing the test you want to edit.
    The system displays the Test form.
  3. In the Test Steps related list, edit the values in the Execution order column to determine the new order for the steps.
  4. Click Update.

Copy automated test

Copy an existing test, which you can then re-name and modify.

Before you begin

Role required: [atf_test_admin] or [atf_test_designer].

Procedure

  1. Navigate to Automated Test Framework > Tests.
  2. Click the row containing the test you want to copy.
    The Test record form opens.
  3. Near the top-right of the Test record form, click Copy Test.
    An annotation displays confirming that the system has copied the test. After you dismiss this annotation, the system displays a new test record identical to the copied record, with the exception of the Name.
  4. In the Name field, enter the name you want to assign to this new test.
  5. Edit the test steps as desired and proceed as you would for any new test.
  6. When you are finished making changes, click Update.