How to run protractor from webapp?

I have some proto-translator tests (against angularApp) that I would like to run. For this, I created a UI that asks the user for a script file. Then I need to, somehow, start the protractor and run the test.

What are my options for achieving this?

+3


source to share


1 answer


You can upload the file to your server (and save it), which then runs the test as usual protractor conf.js

.



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

+3


source







All Articles