nightwatch.js - How to use retryAssertionTimeout in nightwatchjs -
in nightwatch api reference (http://nightwatchjs.org/api#assertions) show can use retry assertions, not how define it. path global variables set in nightwatch.json:
"globals_path" : "data/ftm_data.js",
in ftm_data.js defined:
retryassertiontimeout = 2000 module.exports = { url:'https://10.99.8.81', userstocreate:[ {.....
and on. doesn't work.
can me?
thank you!
the
retryassertiontimeout = 2000
should in
module.exports = {
module.exports = { retryassertiontimeout: 2000, url:'https://10.99.8.81', userstocreate:[ {..... };
additionaly, can configure in nightwatch.json. (further reading http://nightwatchjs.org/guide#test-settings there. "globals" in test settings place should then, per environment)
if defined in nightwatch.json win!
also careful: if use retryassertiontimeout globally, define in assertion, win.
Comments
Post a Comment