Previous Topic: Import a Selenium Builder JSON into CA Application TestNext Topic: LISA Virtual Service Environment Steps


Export a Test Case with Selenium Test Steps to a JSON Script

You can export a test case with Selenium steps to a JSON script that can be stored on the file system.

Before you export a Selenium test case, you must install the DevTest plugin in the Firefox Selenium Builder plugins directory.

After you export a test case, you can use Selenium Builder to rerecord web applications. You can then reimport the newly generated JSON from Selenium Builder to DevTest Workstation and merge the changes into an existing test case.

Load exported JSON scripts into Selenium Builder using the Open a script exported by CA Application Test menu item. This menu item is only available after you install the DevTest plugin.

After you load the JSON script into Selenium Builder, you can make updates using regular Selenium Builder functionalities, such as:

To install the DevTest plugin:

  1. Copy the entire lisa directory, and its contents, from [LISA_HOME]\addons\sebuilder-plugin on the DevTest Workstation to the [Firefox profile]\SeBuilder\plugins directory. To find your Firefox profile:
    1. For Firefox 3.6 and later, from Firefox, select Help, Troubleshooting information.
    2. Under Application Basics:
      • On Windows and Linux, depending on the Firefox version, click Show Folder (Windows), Open Directory (Linux), or Open Containing Folder.
      • On OS x, click Show in Finder.

      Note: The Firefox menu bar contains the File, Edit, View, History, Bookmarks, Tools, and Help menu items. On Windows, the menu bar may be hidden. To show a hidden menu bar temporarily, click the Alt key.

  2. Copy the lisa directory to the SeBuilder/plugins directory.

To export a Selenium test case:

  1. Open an existing test case.
  2. Perform one of the following actions:

    The Selenium Integration page opens.

  3. Click the Export tab.
  4. Click Browse next to the Output JSON Script field and browse to the location of the JSON test script you want to export, or enter a path and file name.
  5. Click Save.