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.
ddescribe()
or aniit()
in your tests? Jasmine 2 usesfdescribe()
andfit()
when you only want to run those suites/tests. It will not recognize ddescribe as a suite. – Andres Dbrowser. ignoreSynchronization=true
before starting execution if its a non-angular page. Thanks – Girish Sortur