AndrewKeig / protractor-cucumber

protractor-cucumber
MIT License
73 stars 59 forks source link

How to define onPrepare in this template? #12

Open lenient opened 9 years ago

lenient commented 9 years ago

I want use the common login in my testing project, according to the reference https://github.com/angular/protractor/blob/master/spec/withLoginConf.js, it suggests using onPrepare to implement. Could you clarify where to define the onPrepare so that the statements defined inside it can be executed automatically?

Thanks in advance.