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
> protractor-demo@0.0.1 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.
I'm using the following configuration
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...