Skip to main content
Version: 7.5.5

Extra

This configuration property allows for adding extra info that we want to be available for us globally. This info can be anything: string, object, function, etc...

Basic usage

For example, you can specify part of an url or the environment you want to test against and use as a variable.

Inside configuration file :

 extra:{
env:`dev`,
url : `htts://www.myDomain.com/`
}

Inside spec file :

 Given(`my step`, async (I,runInfo) => {
await I.goto(`runInfo?.configuration.extra.url`);
})