What are the differences? What are the advantages of using one over the other for an Angular project?
Nightwatch.js vs Protractor
js, Nightwatch. js is an open-source automated testing framework that aims at providing complete E2E (end to end) solutions to automate testing with Selenium Javascript for web-based applications, browser applications, and websites. Nightwatch.
Cypress by default allows only CSS selectors and also using a third party package able to use Xpath as well. Protractor have the in-built libraries to use almost all the selectors and also have the extra type useful to automate Angular Applications.
Nightwatch vs Protractor vs Mocha : The Preferred Testing Framework. Amidst many commercial and open-source tools, Selenium is the most widely used open-source tool for automating testing suite for web applications across a range of platforms and browsers.
Nightwatch. js is an open-source automated testing framework that is powered by Node. js and provides complete E2E (end to end) solutions to automation testing with Selenium Javascript be it for web apps, browser apps, and websites.
There are a few more differences that weren't laid out in the top answer.
The big one for me is, as of now, protractor doesn't support phantomJS (http://www.protractortest.org/#/browser-setup#setting-up-phantomjs). I planned on integrating automation in to the CI system, but with protractor I would have to set up a windows VM to run the tests.
Other benefits of nightwatch:
/reports
directory.Protractor pros:
EDIT: Since the time I wrote this comment and present day our team has happily switched over to using cypress.io. If you are deciding test frameworks I highly recommend checking it out: https://www.cypress.io/
If you are working on an AngularJS project, the choice is simple - Protractor
:
by.model
, by.repeater
etc)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