3

I've some protractor tests (against angularApp) that I would like to run. To do that, i've created an user interface that prompts an user for the script file. Then I need, somehow, make protractor start and run the test.

What are my options to achieve this ?

noneJavaScript
  • 835
  • 3
  • 21
  • 41
  • Hi @user3550498 , How were you able to achieve this I am looking for similar functionality . your help would be appreciated . – Hmahwish Jul 06 '15 at 13:01

1 Answers1

3

You can pass the file to your backend (and save it), which then executes the test as you normally would protractor conf.js.

If you don't have a backend that can run protractor via node, then you need to fork your own copy of Protractor, strip out any node APIs, and do something similar to what https://github.com/angular/protractor/blob/master/lib/runnerCli.js is doing, but it will be messy.

hankduan
  • 5,994
  • 1
  • 29
  • 43