Cross-Platform Testing with TestDriver
Discover how TestDriver enables seamless cross-platform testing across Windows, Linux, and Mac operating systems.
TestDriver provides robust cross-platform support, enabling you to run tests seamlessly on Windows, Linux, and Mac operating systems. This flexibility ensures that your applications are tested in environments that match your users’ setups.
Specifying the operating system
When using the TestDriver GitHub Action, you can specify the target operating system by setting the os
field. Supported values are:
windows
linux
mac
Example:
Using the prerun
Field
The prerun
field allows you to execute a shell script before running your tests. This is particularly useful for:
-
Downloading and Installing Applications
Example: Downloading and installing a custom app or dependency. -
Installing Chrome Extensions
Example: Adding a browser extension required for testing. -
Launching a Browser
Example: Starting a browser with specific arguments or configurations.
Example prerun
Script
Write once, run anywhere
TestDriver uses selectorless testing, meaning tests are written in a generic format that works across all platforms. The AI dynamically adapts to the environment, ensuring that the same test can run on Windows, Linux, and Mac without modification.
Benefits of selectorless testing
- Reduced Maintenance: No need to update selectors when UI changes.
- Cross-Platform Compatibility: Tests aren’t tied to platform-specific configurations.
- Ease of Use: Write high-level, natural language prompts, and let TestDriver handle the rest.
Example test
This test will work on any supported operating system without modification.