take a look at this simple protractor test in the file example.js
:
describe('this is my first test',function(){
var ptor;
it('step 1 ',function(){
ptor = protractor.getInstance();
ptor.get('#/');
},30000);
});
in order to run this test with protractor i have to create a configuration file (my_conf.js
) and add example.js
to the spec
. then from command line i'll invoke: protractor my_conf.js
.
instead, i would like to run the test like this:
node example.js
so my question is, what modules do i have to require in my example.js
test and how do i invoke describe
and it
functions? (you can ignore the protractor
instance that will undefined)
thanks