TestBench Extension for Visual Studio CodeThe TestBench Extension enables seamless synchronization between TestBench and Robot Framework files in VS Code. Manage projects, synchronize keywords, generate test suites, execute tests, and import results—all from your IDE. Key Features
Requirements
Required ExtensionsThe following extensions are automatically installed as dependencies when you install the TestBench extension:
Quick StartLogin to TestBench
Link a TestBench Project to the Workspace/Folder Opened in VS CodeA workspace or folder in VS Code must always be linked to a specific Test Object Version in TestBench. Only after creating such a link you will be able to use all features of the extension, including the synchronization of Robot Framework keywords. To link a TestBench Project to the currently opened workspace/folder, simply right-click on the desired Test Object Version in the Projects view and select "Set as Active TOV".
Create a Robot Framework Resource File from a TestBench SubdivisionFor a TestBench Subdivision to be visible in the TestBench extension, the Subdivision name must end with the suffix
To create a Robot Framework resource file from a TestBench Subdivision, simply hover over the corresponding Subdivision in the
Synchronize Robot Framework Keywords with TestBenchTo synchronize Robot Framework keywords between VS Code and TestBench, open the Robot Framework resource file that contains the keywords you want to synchronize. You will see CodeLens actions above each keyword definition that allow you to either push the keyword to TestBench or pull the keyword from TestBench. A precondition for the synchronization is that the resource file contains information about which TestBench Subdivision, Project, and TOV it is linked to. When creating the resource file via the extension, this information is automatically added to the file. If not, you need to manually add the following information to the resource file:
An example of a Robot Framework resource file with the required TestBench metadata comments is shown below:
As shown in the example above, each keyword that is synchronized with TestBench must have a tag with the format With the required metadata in place, you can now use the CodeLens actions to push or pull keywords between VS Code and TestBench. You can also use the CodeLens at the top of the file to push or pull all keywords in the file at once.
If there is no uid tag in a keyword, the CodeLens action will allow you to create a new keyword in TestBench with the specified name and interface. Generate Robot Framework Tests from TestBench Test CasesAfter using the Robot Framework keywords within TestBench test cases to specify the test logic, you can generate Robot Framework test suites from the test cases defined in TestBench.
The generated Robot Framework test suites will be created in your workspace/folder and can then be executed or debugged. To generate Robot Framework tests, simply hover over the desired test case in the
Upload Execution Results Back to TestBenchAfter executing the generated Robot Framework test suites, you can import the execution results back to TestBench. To do so, simply hover over the desired test case in the
Certificate PathTo make the VS Code extension trust a custom or self-signed certificate from your TestBench server, you can set the Certificate Path in the extension settings. How to set it:
LicenseThis project is licensed under the Apache-2.0 License. See the LICENSE file for details. Contributing / FeedbackIf you encounter any issues or have suggestions for improvements, please open an issue on our GitHub repository. Please check out our contribution guidelines for details on how to report issues or suggest enhancements before submitting a pull request. |






