Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Protractor

I'm new to AngularJS. I'm trying to learn and do some end-to-end tests with Protractor. I've been going through the information provided here. I'm stuck when I get to the part that says "Run with protractor myConf.js".

Is protractor a command-line program? Or what? What I'm trying to identify is, under what environment do I need to run "protractor myConf.js" within. I do NOT want to install protractor globally. I would like to run the module in a local context. Is that an option?

Thank you,

like image 874
user2871401 Avatar asked Nov 18 '13 14:11

user2871401


1 Answers

You need to run it through node.

So from the base of your project;

node node_modules\protractor\bin\protractor test\myConf.js
like image 151
Brian F Avatar answered Nov 16 '22 00:11

Brian F