Test DesigningOpen Script in VS Code and Sync Changes to algoQA

Open Script in VS Code and Sync Changes to algoQA

Edit algoQA-generated scripts in VS Code, review supported local changes, and apply updates to scripts, repositories, actions, and utilities in algoQA.

Sync VS Code changes to algoQA

Open an algoQA-generated script in VS Code, edit supported files locally, and transfer your changes back to algoQA without changing the downloaded folder structure.

Before you begin:

  • Install Visual Studio Code.
  • Install the algoQA agent extension file, .vsix, built by algoQA.

Open and edit the script

Open the script in VS Code

In algoQA, open Test Scripts, click the three-dot menu beside the script, and click Open in VS Code for the script you want to edit.

Open in VS Code option for a test script
Open in VS Code option for a test script

On first use, follow the prompt to install VS Code and the algoQA agent extension. If the extension is already installed, continue opening the script in VS Code.

Prompt to install the algoQA agent extension
Prompt to install the algoQA agent extension

If you need to install the extension manually, open Extensions in VS Code, open the three-dot menu, select Install from VSIX, and choose the downloaded .vsix file.

VS Code Extensions menu with Install from VSIX option
VS Code Extensions menu with Install from VSIX option

After installing the extension, click Open Script in VS Code in the pop-up.

Open Script in VS Code confirmation pop-up
Open Script in VS Code confirmation pop-up

Wait for the script to download

Wait for the download to finish before editing the script. The downloaded folder structure remains unchanged.

Script download progress in VS Code
Script download progress in VS Code

Edit supported files

Edit one or more of the following files in VS Code:

  • The object repository
  • Custom actions
  • The customized script
  • New files

Compare and push local changes

Start synchronization

In VS Code, click Sync Script. If prompted to sign in, complete the sign-in before continuing.

Sync Script action in VS Code
Sync Script action in VS Code

The sync checks for local changes, fetches the latest remote version of the script, and compares the local and remote versions.

Comparison of local and remote script versions
Comparison of local and remote script versions

Review changed files

Click View File Differences to see the files that differ between your local copy and the remote script.

View File Differences screen
View File Differences screen
List of files with local and remote differences
List of files with local and remote differences

Select a file to compare its local and remote contents. Press Esc when you finish reviewing the file.

Side-by-side comparison of local and remote file contents
Side-by-side comparison of local and remote file contents

Push the local changes

Click Push Local to Web Editor to transfer the supported changes to algoQA.

Push Local to Web Editor action
Push Local to Web Editor action

The changes are stored in the script and configured internally. Apply the appropriate follow-up action for the type of change you pushed.

Apply object repository changes

If you pushed object repository changes, an update icon appears beside the object repository. Select the Update icon in algoQA.

Update icon beside the object repository
Update icon beside the object repository

Update the object repository

Select Update All.

Update All option for object repository changes
Update All option for object repository changes

Review the changes

Review the changes and compare the affected entries.

Apply the changes

If everything is correct, click Update to apply the changes.

Apply custom action changes

If you pushed custom action changes, an update icon appears beside the action list. Select the Update icon in algoQA.

Update icon beside the custom action list
Update icon beside the custom action list

Review the changes, then click Save Changes to apply them.

Review custom action changes and Save Changes option
Review custom action changes and Save Changes option

Apply Utilities changes

Review and apply Utilities changes

An update icon appears beside Utilities when VS Code changes are available. Select the update icon to open Review Changes, review the changes, and add the VS Code changes to Utilities. Then select Save Changes.

Review Changes dialog for Utilities updates
Review Changes dialog for Utilities updates

Apply customized script changes

If you pushed changes to a customized script, use the customized script comparison workflow.

Open the customized script comparison

An update icon appears beside Test Scripts, and an update option appears in Customize Script.

Update indicators for test scripts and customized scripts
Update indicators for test scripts and customized scripts

Open Customize Script and select Compare Customize Script with Global Script or VS Code Script.

Customize Script menu with comparison option
Customize Script menu with comparison option

Select the VS Code script

Choose the VS Code Script Generation file.

This opens Compare Script and lists the files modified in VS Code. You can also add new files.

Compare Script view with modified VS Code files
Compare Script view with modified VS Code files

Review and copy changes

Open the listed files to review their changes. To copy a change into the customized script, click the arrow next to the relevant line.

File comparison with arrows for copying changes
File comparison with arrows for copying changes

Save the customized script

Click Save Changes to apply the selected changes to the customized script.

The updated script appears in Test Scripts. The script is saved in its original location and marked as a favorite to preserve it when you generate more scripts.

Supported scope

This workflow maps only the following changes back to algoQA:

  • Object repository changes
  • Custom action changes
  • Customized script changes

API automation is not supported.

The workflow works across automation types when you download the script locally, open it in VS Code, and keep its folder structure unchanged.

Advantages

Use this feature to edit algoQA-generated scripts in the test scripting agent, sync the changes back to algoQA, review the changes, and execute the scripts.