Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run the tests on browserstack #25

Open
webmutation opened this issue Sep 23, 2016 · 0 comments
Open

Not able to run the tests on browserstack #25

webmutation opened this issue Sep 23, 2016 · 0 comments

Comments

@webmutation
Copy link

webmutation commented Sep 23, 2016

I'm using the following configuration

exports.config = {
  'specs': [ 'spec.js' ],
  'seleniumAddress': 'http://hub-cloud.browserstack.com/wd/hub',

  'capabilities': {
    'browserstack.user': 'xxxxxxx',
    'browserstack.key': 'xxxxxxxx',
    'build': 'protractor-browserstack',
    'name': 'single_test',
    'browserName': 'chrome',
    'resolution': '1024x768',
    'browserstack.debug': 'true'
  }
};

its working for another project but when I try to run in the protractor-demo i get the following errors, not sure if there is something wrong with my setup...

> C:\DEV\Angular2UnitTestsProjects\protractor-demo>npm test

> [email protected] test C:\DEV\Angular2UnitTestsProjects\protractor-demo
> protractor test/conf.js

[17:41:56] I/hosted - Using the selenium server at http://hub-cloud.browserstack.com/wd/hub
[17:41:56] I/launcher - Running 1 instances of WebDriver
Started
FFF

Failures:
1) slow calculator should add numbers
  Message:
    Failed: Angular could not be found on the page http://localhost:3456/ : retries looking for angular exceeded
  Stack:
    Error: Angular could not be found on the page http://localhost:3456/ : retries looking for angular exceeded
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\browser.js:504:23
        at ManagedPromise.invokeCallback_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2775:27
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (node.js:369:9)
    From: Task: Run beforeEach in control flow
        at Object.<anonymous> (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:79:14)
    From asynchronous test:
    Error
        at Suite.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:2:3)
        at Object.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:1:1)
        at Module._compile (module.js:409:26)
        at Object.Module._extensions..js (module.js:416:10)
        at Module.load (module.js:343:32)
        at Function.Module._load (module.js:300:12)
  Message:
    Failed: Error while waiting for Protractor to sync with the page: "window.angular is undefined.  This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping.
 See http://git.io/v4gXM for details"
  Stack:
    Error: Error while waiting for Protractor to sync with the page: "window.angular is undefined.  This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping.
See http://git.io/v4gXM for details"
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\browser.js:270:23
        at ManagedPromise.invokeCallback_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2775:27
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (node.js:369:9)Error
        at ElementArrayFinder.applyAction_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\element.js:396:27)
        at ElementArrayFinder._this.(anonymous function) [as sendKeys] (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\element.js:99:30)
        at ElementFinder.(anonymous function) [as sendKeys] (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\element.js:730:22)
        at Object.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:7:32)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:94:23
        at new ManagedPromise (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1082:7)
        at controlFlowExecute (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:80:18)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2820:25
    From: Task: Run it("should add numbers") in control flow
        at Object.<anonymous> (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:79:14)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:103:16
        at ManagedPromise.invokeCallback_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
    From asynchronous test:
    Error
        at Suite.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:6:3)
        at Object.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:1:1)
        at Module._compile (module.js:409:26)
        at Object.Module._extensions..js (module.js:416:10)
        at Module.load (module.js:343:32)
        at Function.Module._load (module.js:300:12)

2) slow calculator memory should start out with an empty memory
  Message:
    Failed: Angular could not be found on the page http://localhost:3456/ : retries looking for angular exceeded
  Stack:
    Error: Angular could not be found on the page http://localhost:3456/ : retries looking for angular exceeded
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\browser.js:504:23
        at ManagedPromise.invokeCallback_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2775:27
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (node.js:369:9)
    From: Task: Run beforeEach in control flow
        at Object.<anonymous> (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:79:14)
    From asynchronous test:
    Error
        at Suite.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:2:3)
        at Object.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:1:1)
        at Module._compile (module.js:409:26)
        at Object.Module._extensions..js (module.js:416:10)
        at Module.load (module.js:343:32)
        at Function.Module._load (module.js:300:12)
  Message:
    Failed: Error while waiting for Protractor to sync with the page: "window.angular is undefined.  This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping.
 See http://git.io/v4gXM for details"
  Stack:
    Error: Error while waiting for Protractor to sync with the page: "window.angular is undefined.  This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping.
See http://git.io/v4gXM for details"
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\browser.js:270:23
        at ManagedPromise.invokeCallback_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2775:27
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (node.js:369:9)
    From: Task: Run it("should start out with an empty memory") in control flow
        at Object.<anonymous> (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:79:14)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:16:5
        at ManagedPromise.invokeCallback_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2775:27
    From asynchronous test:
    Error
        at Suite.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:24:5)
        at Suite.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:16:3)
        at Object.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:1:1)

3) slow calculator memory should fill the memory with past results
  Message:
    Failed: Angular could not be found on the page http://localhost:3456/ : retries looking for angular exceeded
  Stack:
    Error: Angular could not be found on the page http://localhost:3456/ : retries looking for angular exceeded
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\browser.js:504:23
        at ManagedPromise.invokeCallback_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2775:27
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (node.js:369:9)
    From: Task: Run beforeEach in control flow
        at Object.<anonymous> (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:79:14)
    From asynchronous test:
    Error
        at Suite.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:2:3)
        at Object.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:1:1)
        at Module._compile (module.js:409:26)
        at Object.Module._extensions..js (module.js:416:10)
        at Module.load (module.js:343:32)
        at Function.Module._load (module.js:300:12)
  Message:
    Failed: Error while waiting for Protractor to sync with the page: "window.angular is undefined.  This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping.
 See http://git.io/v4gXM for details"
  Stack:
    Error: Error while waiting for Protractor to sync with the page: "window.angular is undefined.  This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping.
See http://git.io/v4gXM for details"
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\browser.js:270:23
        at ManagedPromise.invokeCallback_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2775:27
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (node.js:369:9)Error
        at ElementArrayFinder.applyAction_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\element.js:396:27)
        at ElementArrayFinder._this.(anonymous function) [as sendKeys] (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\element.js:99:30)
        at ElementFinder.(anonymous function) [as sendKeys] (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\built\element.js:730:22)
        at Object.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:32:13)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:94:23
        at new ManagedPromise (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1082:7)
        at controlFlowExecute (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:80:18)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2820:25
    From: Task: Run it("should fill the memory with past results") in control flow
        at Object.<anonymous> (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:79:14)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:16:5
        at ManagedPromise.invokeCallback_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
        at TaskQueue.execute_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
        at TaskQueue.executeNext_ (C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
        at C:\Users\duartda\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2775:27
    From asynchronous test:
    Error
        at Suite.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:31:5)
        at Suite.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:16:3)
        at Object.<anonymous> (C:\DEV\Angular2UnitTestsProjects\protractor-demo\test\spec.js:1:1)

3 specs, 3 failures
Finished in 35.494 seconds
[17:42:40] I/launcher - 0 instance(s) of WebDriver still running
[17:42:40] I/launcher - chrome #01 failed 3 test(s)
[17:42:40] I/launcher - overall: 3 failed spec(s)
[17:42:40] E/launcher - Process exited with error code 1
npm ERR! Test failed.  See above for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant