Viewing and modifying Selenium or Appium tests

You can view and modify Selenium or Appium tests that you have imported into the UI Test perspective.

About this task

You can view Selenium or Appium tests in the Logical and Resource Views in the Test Navigator. From any of these views, you can open the test in the Java editor and view and modify the script.
Note: If the Selenium or Appium test has a compilation error, the test does not show up in the External Tests folder of the Test Navigator view. You must fix the compilation error.

Procedure

  • In the Logical View of the Test Navigator, Selenium or Appium tests are listed in the External Tests folder under the project into which they were imported. Double-click the Selenium or Appium test under the External Tests folder to open it in the Java editor.
    In the Resource View, the tests under a project are displayed in the project folder. Double-click the Selenium or Appium test to open it in the Java editor. You can modify the script in the Java editor.
  • A Selenium or Appium test that is added to a compound test is displayed the Compound Test Contents panel in the Compound Test editor.
    • Click the Selenium or Appium test in the Compound Test Contents, to display its details in the Compound Test Element Details panel. The name of the test, test path, source type and execution mode are displayed.
    • Click the name of the test in the Compound Test Element Details panel to open the test script in the Java editor, in which you can modify the script.