browserstack

Browserstack reports successful even when test fails in Nightwatchjs

自闭症网瘾萝莉.ら 提交于 2019-12-01 18:16:17
I just started using nightwatch with browserstack and I'm noticing that when we get a failed test, nightwatch registers the failure, but browserstack does not. sample test I am using . Also I am using free trial version of BrowserStack. My question is: Are there any ideas how to tell browserstack when a test run failed ? From BrowserStack doc : REST API It is possible to mark tests as either a pass or a fail, using the following snippet: var request = require("request"); request({ uri: "https://user:key@www.browserstack.com/automate/sessions/<session-id>.json", method: "PUT", form: { "status":

Protractor moves on to next test without waiting

风流意气都作罢 提交于 2019-12-01 12:23:51
I'm using protractor and when I run my tests on browserstack I receive the following error StaleElementReferenceError: stale element reference: element is not attached to the page document or depending on what I do in the beforeAll Error: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator By.cssSelector ... Here is the code snippet causing the error: describe('...', () => { it('...', () => { expect(element.all(by.css(...)).count()).toBe(9); expect(element.all(by.css('.items').get(0).isDisplayed()).toBeTruthy(); }); } describe('', () => {

Running Protractor tests on Browserstack Automate

百般思念 提交于 2019-11-27 18:49:34
I'm developing an AngularJS app and want to do end-2-end testing with Protractor. I would like to benefit from the suite of test browsers available at Browserstack and run the tests on Browserstack Automate instead of a local Selenium server. How do I set up a system to run these tests? Protractor from version 3.0.0 onwards has added inbuilt support for BrowserStack. You simply need to add the following two parameters in your conf.js to launch the test on BrowserStack: browserstackUser: '<username>' browserstackKey: '<automate-key>' Your username and automate key can be found here , after you

Running Protractor tests on Browserstack Automate

折月煮酒 提交于 2019-11-26 19:37:26
问题 I'm developing an AngularJS app and want to do end-2-end testing with Protractor. I would like to benefit from the suite of test browsers available at Browserstack and run the tests on Browserstack Automate instead of a local Selenium server. How do I set up a system to run these tests? 回答1: Protractor from version 3.0.0 onwards has added inbuilt support for BrowserStack. You simply need to add the following two parameters in your conf.js to launch the test on BrowserStack: browserstackUser: