Runner
This configuration property allows configuring the way your tests will be executed.
Name | Type | Description | Default Value | availability |
---|---|---|---|---|
adapters | object[] | Used adapters. | [{name: 'playwright',options: {clients: ['chrome'] }}] | |
backoff | object | Object to define a backoff value used to determine the wait time between successive retries | ||
clientPerFeature | boolean | If true, a same feature will be run with one web browser client at a time. | true | |
disablePageCaching | boolean | If true, the page caching will be disabled. | false | adapter dependent |
downloads | {path:string} | Path location of downloaded artifacts. | false | |
failure | object | Object defining Test Maker behaviour in case of an error. | ||
headless | boolean | If true, the web browser client window in which your test is executed will not be visible. | false | |
isAppbusyEvaluator | function | A function that can define the readiness state of an application. | ||
keepClientOpen | boolean | If true, the web browser client shall remain opened after the test execution. | false | |
livemode | boolean | If true, after running a test once, the test execution will be launched again, whenever changes are saved in a test feature file involved in the previous test execution. | false | |
nodeVersion | string | Specify the node version that the test must be run with. | "" | |
parallel | object | Object defining the options of a test running several threads in parallel. | ||
process | object | Object defining process level options. | ||
proxy | object | Define the proxy options for your test. | ||
startPage | string | Define the web page by which your test will begin with. | "" | |
throttling | object | Object to define a delay between methods to slow down the test process. | ||
timeout | object | Define the timeout of the different Test Maker actions. |
Adapters
Test Maker provides unique multiple Adapters feature. This means that the platform can use multiple Technologies to run tests using the same API. This makes Test Maker a Future Proof platform.
An Adapter is a Framework or Technology that acts as mediator between the code and the Client.
By Default Test Maker ships with Playwright. Playwright is a great Framework that offers many features and comparability with many Browsers.
Basic Usage
Example 1
import { adapters } from "test-maker";
const testMakerLocalConfig: Configuration = {
runner: {
adapters:[
adapters.playwright,
]
},
};
export default testMakerLocalConfig;
Example 2
import { PlaywrightAdapterOptions } from "test-maker";
const testMakerLocalConfig: Configuration = {
runner: {
adapters: [
{
name: `playwright`,
options: <PlaywrightAdapterOptions>{
default: true,
files: [
"./src/specs/tests/**/*-spec.ts",
],
clients: [
'chrome',
{
name: `safari`,
options: {
features: [`Safari client`],
files: [`./src/specs/browser-tests/*-spec.ts`]
}
}
]
}
}]
}
};
export default testMakerLocalConfig;