Reputation: 11
I have config and specs files at shared folder of remote server. I run tests from local machine via console:
C:\Users\User>protractor \remoteServer\AutoSPA\config\protractor.conf.js With jasmine framework all works good, but if I set framework: 'jasmine2' in protractor.conf.js tests don`t run:
Starting selenium standalone server... [launcher] Running 1 instances of WebDriver Selenium standalone server started at http://10.17.175.168:50910/wd/hub Started
No specs found Finished in 0.001 seconds Uncaught exception: Error while waiting for Protractor to sync with the page: "angular could not be found on the window" [launcher] Process exited with error code 1
EXAMPLE: conf.js:
exports.config = {
specs: ['./test.js'],
capabilities : {'browserName' : 'chrome'},
framework: 'jasmine2',
jasmineNodeOpts: {showColors: true}
};
test.js in the same folder:
describe("test", function(){
it("navigate", function(){
browser.get("https://angularjs.org/")
})
});
if it's local folder it works correctly, but if it's remote folder it doesn't find spec test.js.
Upvotes: 1
Views: 1440
Reputation: 11
I investigated and debug a little bit more and found out that Jasmine 1.3 used FS and Path for specs search, but Jasmine 2 used GLOB. Glob doesn't work with remote paths.
Upvotes: 0