I want to run e2e test case from the UI.
Use case: i will build one testing page on our dev stack, where anyone can run the protractor test case by click on "run" button.
We have created a shell script (run.sh) where we have mentioned to run webdriver-manager start and protractor conf.js, so i guess we just need to run shell script from the UI.
When do I use which? Karma is a great tool for unit testing, and Protractor is intended for end to end or integration testing. This means that small tests for the logic of your individual controllers, directives, and services should be run using Karma.
As mentioned here, you can create a PHP webpage and use shell_exec()
to trigger your shell scripts.
Another alternative: my team runs protractor tests via a Hubot integration in Slack.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With