Export Web Tests
Introduction
You have the option to export your Web Tests in different formats.
1. Executable file
This format allows you to execute the exported test on your own computer, without having to install anything.
The only prerequisite is to have the corresponding webdriver
in the same directory as the exported test.
Generating the executable file can take up to 60 seconds.
Steps
- Export the test.
- Place it in same directory with the corresponding
webdriver
. - Open the executable.
- The test will open the browser and execute the steps.
- A new directory is generated which contains the logs and the screenshots.
Browser | WebDriver |
---|---|
Chrome | ChromeDriver |
Firefox | GeckoDriver |
Edge | Microsoft WebDriver |
Internet Explorer | InternetExplorerDriver |
Safari | SafariDriver |
Make sure that the downloaded webdriver matches your operating system and your browser version.
If you're using Safari, please follow the additional instructions from the SafariDriver page.
2. Python file
In order to execute the exported test on your own computer, you have to install Python 2.7 and a list of dependencies.
These dependencies can be installed by using pip
.
Operating system | Dependencies |
---|---|
Windows | requirements.txt |
macOS | requirements.txt |
Download the corresponding requirements.txt
file and run the following command:
pip install -r requirements.txt
You also need to have the corresponding webdriver
in the same directory as the exported test.
Steps
- Export the test.
- Place it in same directory with the corresponding
webdriver
. - Execute the Python file.
- The test will open the browser and execute the steps.
- A new directory is generated which contains the logs and the screenshots.
Browser | WebDriver |
---|---|
Chrome | ChromeDriver |
Firefox | GeckoDriver |
Edge | Microsoft WebDriver |
Internet Explorer | InternetExplorerDriver |
Safari | SafariDriver |
Make sure that the downloaded webdriver matches your operating system and your browser version.
If you're using Safari, please follow the additional instructions from the SafariDriver page.
3. JSON file
This option allows you to export your test as a JSON file which can be used to import it into other systems or to store it in a repository.
Tests exported in JSON format cannot be executed.