protractor icon indicating copy to clipboard operation
protractor copied to clipboard

How to run cucumber test by the example https://github.com/angular/protractor/tree/master/spec/cucumber

Open emyphan opened this issue 12 years ago • 6 comments

Hi Julie, i'm new to protractor and cucumber. I've set up my new cucumber test like yours in : https://github.com/angular/protractor/tree/master/spec/cucumber

but i don't find any document for how to run the feature file (and then call the protractor test step). I know there is already adapter for cucumber in protractor runner. But how can i/ do i have to set up any thing more, so that cucumber knows about protractor? And how can i run cucumber tests?

thanks a lot in advance for a quick answer BR, Emy

emyphan avatar Mar 18 '14 23:03 emyphan

Could someone who uses cucumber answer this one?

juliemr avatar Mar 20 '14 00:03 juliemr

I can run now cucumber test using adapter in protractor 1.20. protractor path/to/cucumberConf.js

but now i have synchronization problem, my test script run too fast and browser plays afterwards that why the test failed. I tried setInterval(), setTimeOut() in steps but no success. How can i solve this issue? Maybe it's not only synchronization problem between cucumber, protractor?

emyphan avatar Mar 28 '14 06:03 emyphan

@emyphan please read about the control flow - this is how webdriverJS tests work.

juliemr avatar Mar 28 '14 15:03 juliemr

thanks a lot, it works now

emyphan avatar Apr 15 '14 14:04 emyphan

Hi Julie,

im also new in protractor i have a encountered a little problem on my SELECT function . Some of my scenarios are running very well but when it comes in the SELECT PRIORITY it get stock.. i don't know what is the problem on it..

I hope you can help me o this.

Best regards,,

KRB

krb15 avatar Oct 19 '14 05:10 krb15

Hey @emyphan can you please share what you have done? thanks!

bmsoko avatar Nov 03 '15 16:11 bmsoko