SK
'moon:options': {
enableVNC: true,
enableVideo: false,
name: global.specs,
},
Size: a a a
SK
'moon:options': {
enableVNC: true,
enableVideo: false,
name: global.specs,
},
OK
'moon:options': {
enableVNC: true,
enableVideo: false,
name: global.specs,
},
SK
OK
/**
* Gets executed just before initializing the webdriver session and test framework. It allows you
* to manipulate configurations depending on the capability or spec.
* @param {Object} config wdio configuration object
* @param {Array.<Object>} capabilities list of capabilities details
* @param {Array.<String>} specs List of spec file paths that are to be run
*/
beforeSession: function (config, capabilities, specs) {
},
OK
beforeSession: function (config, capabilities, specs) {
},
SK
SK
E
const testData: { condition: number; goToPage: object }[] = [В тесте я в цикле перебираю этот массив, но вызвать этот ключ вот так
{
condition: 1,
goToPage: async () => await Navigation.goToMainPage()
} ]
await Promise.all(data.goToPage);}
AP
S
const testData: { condition: number; goToPage: object }[] = [В тесте я в цикле перебираю этот массив, но вызвать этот ключ вот так
{
condition: 1,
goToPage: async () => await Navigation.goToMainPage()
} ]
await Promise.all(data.goToPage);}
await Promise.all(testData.map(data => data.goToPage()))
S
for
не нуженAP
beforeSession: function (config, capabilities, specs) {вот так работает
capabilities['selenoid:options'].name = specs[0].split('/').pop();
},
SK
E
await Promise.all(testData.map(data => data.goToPage()))
S
OK
for
не нуженS
E
OK
SG