How to copy test scripts from one project to another?

In QMetry Automation Studio it is possible for users to move or copy their test scripts(.bdd files) across projects. However, to achieve successful copying of the test scripts they will also have to copy the locator files from the source project to the destination project. They can follow the steps provided to achieve hassle-free copying of the test scripts:

Copy the test script files within QAS internally:

  1. Copy the test scripts of your project.

     

  2. In the destination project Paste all the above files in the same location of your destination project, kindly note that the relative location of your test script files should be the same using the below steps:

    1. Go to QMetry > Open Project

    2. Select the project from the file explorer view.

    3. After your project has opened in the QAS window, paste the test script files copied in Step 1 in the destination project's test script file’s location.

Copy from the file explorer view:

  1. Right-click on the required test script file and select the ‘Reveal in File Explorer’ option.

  2. Copy the file from the file explorer location and paste it in the same location of your destination project as shown in the below screenshot, the path of the test script file should be the same in your destination project as your source project for e.g …/scenarios/web/.. in the screenshot.

     

Copying the locator files' content:

Since the test scripts(.bdd) files are being copied, users will also have to copy over the content of their source project locator files to the locator files of their destination project. The locator file’s content needs to be appended to the destination project’s locator files, follow the steps below:

  1. Identify the locators that you would need for your test scripts in your destination project.

  2. Copy the content of all such required locators.

     

  3. Paste the copied locator content in the destination project’s locator files. The locator files' content should be appended in the destination project’s locator files so that the existing configuration of the destination project is not changed.