Configure an environment and run an automated test
Automated tests run against a saved environment: a named set of credentials with a starting URL that tells Glasslake's AI agents where to point the browser. Create the environment once, and then start a run from a completed process.
▶ Video space reservedConfigure an environment and run an automated test
Before you begin
- The project has the Unit testing page turned on and at least one completed process recording.
- You have the starting URL and test credentials of the test system, for example an SAP S/4HANA Cloud sandbox.
warning
Use dedicated test credentials only, never a personal or production login. Glasslake encrypts the password and never shows it again.
Create an environment
- In the project sidebar, under TESTING, select Unit testing.
- In the page header, select Credentials. The Manage environments dialog lists the saved environments.
- Select Add environment.
- In the New environment form, enter a Name, the Starting URL, and the Username and Password the agent signs in with.
- Optional: use Additional login fields for extra login inputs, such as an SAP client, and VPN / proxy for an optional network tunnel.
- Select Create.
The environment appears in the list, where you can also make it the default. The default environment is preselected for new runs.
Run an automated test
- Go to the project's processes, and open a process with the status Complete.
- In the header, select Execute. The New test page opens in Process recording mode, with the process preselected and its steps previewed.
- Optional: in Name (optional), name the run.
- In Configuration, in Environment, select the saved environment.
- Optional: turn on Allow agent to retry to launch a second attempt with the failure context if the agent fails.
- Select Start execution.
Result
The run appears on the Test executions tab and changes to running while the agent works through the steps. Open it to follow the progress step by step.
Best practices
- Point environments at test systems only.
- Set the most-used environment as the default.
- Keep Allow agent to retry on for unreliable test systems.