Protractor tests with BrowserStack iOS emulators

夙愿已清 提交于 2019-12-11 06:18:48

问题


I've already spent much time for it, but still have no significant results. My protractor tests work fine with browserstack Firefox and Chrome. But with Safari browser they don't. Protractor tests are not executed synchronously in such case, and running tests with synchronization turned off completely messes up all tests too. Does anyone succeeded with running his protractor tests in Safari on browserStack????


回答1:


I am able to successfully run on browserStack using safari browser. This is my config and it all looks good.

   browserstackUser: '******',
    browserstackKey: '*******',
    capabilities: {
        'browserName': 'safari',
        'shardTestFiles': true,
        'maxInstances': 0
    },

Check below console log for browser - OS combination

Output on Console:

[23:40:16] I/browserstack - Using BrowserStack selenium server at http://hub.browserstack.com/wd/hub
[23:40:16] I/launcher - Running 1 instances of WebDriver
Started
.


1 spec, 0 failures
Finished in 13.321 seconds

[23:40:38] I/browserstack - {"automation_session":{"name":null,"duration":null,"os":"OS X","os_version":"Mountain Lion","browser_version":"6.2","browser":"safari","device":null,"status":"done","hashed_id":"554ff4b7f1e3be0207b40d3f4ec49d08c9090f03","reason":null,"build_name":"Untitled Build","project_name":"Untitled Project"}}
[23:40:38] I/browserstack - BrowserStack results available at https://www.browserstack.com/automate/builds/******/sessions/*******
[23:40:54] I/launcher - 0 instance(s) of WebDriver still running
[23:40:54] I/launcher - safari #01 passed
Closing report


来源:https://stackoverflow.com/questions/41722786/protractor-tests-with-browserstack-ios-emulators

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!