UI Testing with Playwright using HyperExecute and SmartUI SDK
This documentation will guide you step-by-step to execute the SmartUI tests on the HyperExecute platform using Selenium
Prerequisites
To run the Tests on HyperExecute from your Local System, you are required:
- Your TestMu AI Username and Access key
- HyperExecute CLI in order to initiate a test execution Job .
- Setup the Environmental Variable
- HyperExecute YAML file which contains all the necessary instructions.
- Login to TestMu AI SmartUI with your credentials.
Step 1: Create a SmartUI Project
The first step is to create a project with the application in which we will combine all your builds run on the project. To create a SmartUI Project, follow these steps:
- Go to Projects page
- Click on the
new projectbutton - Select the platform as CLI or Web for executing your
SDKtests. - Add name of the project, approvers for the changes found, tags for any filter or easy navigation.
- Click on the Submit.
After creating the project, you will get your PROJECT_TOKEN. You need to keep this project token safe as it will be used in the further steps below.
Step 2: Setup Your Test Suite
You can use your own project to configure and test it. For demo purposes, we are using the sample repository.
Download or Clone the code sample for the Maestro framework from the TestMu AI GitHub repository to run the tests on the HyperExecute.
Configure Your Test Suite
In the playwrightCloud.js file, update the following capabilities
const capabilities = {
"LT:Options": {
build: "Playwright SmartUI Build", // Mention your desired build nameP
name: "Playwright SmartUI Test", // Provide the name of your test
},
};
Step 3: Setup the CLI in your Test Suite
After cloning / downloading the sample repo, you need to setup the CLI and the environment variables.
Download the HyperExecute CLI
The CLI is used for triggering the tests on HyperExecute. It is recommend to download the CLI binary on the host system and keep it in the root directory of the suite to perform the tests on HyperExecute.
You can download the CLI for your desired platform from the below mentioned links: