Can I access parameters in my protractor configuration file?

后端 未结 3 509
暖寄归人
暖寄归人 2020-12-17 08:29

I start my protractor tests by running the following:

protractor protractor.conf.js --params.baseUrl=http://www.google.com --suite all

I w

3条回答
  •  一个人的身影
    2020-12-17 09:05

    In case you need every single item in the entire configuration file, you can use browser.getProcessedConfig() to do this.

    onPrepare: () => {
        browser.getProcessedConfig().then(console.log); // even `params` is in here
    }
    

提交回复
热议问题