Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VueJS automation - Test Cafe vs. Nightwatch - Pros/Cons [closed]

I am looking at creating automation test cases for a VueJS application that will be supported across several different desktop browsers and mobile (iOS and Android) browsers. I have came across several options including Protractor, Test Cafe, Nightwatch, and Cypress. Cypress is only supported with Chrome browsers so I won't be able to use that, and Protractor seems more geared towards testing of Angular applications. So I am looking for feedback from people who have used Test Cafe or Nightwatch.

Questions:

  1. Which of the 2 tools do you find better and why?
  2. What are the pros/cons of one vs. the other? (Selenium Based vs. Not doesn't matter to me)
  3. Does either support mobile browser testing?
  4. Did anyone have any issues with either that stopped you from using it and going with another approach?
like image 210
reutsey Avatar asked Mar 07 '18 21:03

reutsey


3 Answers

I have not used test cafe till now but I have used Nightwatch. It's really a nice framework developed in nodeJS.

Pros:

  1. List item
  2. Built-in test runner- Built-in command line test runner which can run the tests in parallel.
  3. Parallel cross-browser testing- Same test we can run in multiple browsers at the same time
  4. Much better api then selenium webdriver
  5. Inbuilt assertion library
  6. Inbuilt screenshots
  7. Return object- Every method that you call will return an object. We can have a chain of command like open.click.sendkeys.wait.click.select.end
  8. Syntax- looks the easiest and the most readable
  9. It has a very good inbuilt debugging mechanism.
  10. It is extendable- You can write your own custom commands and add custom assertions 10.Grouping tests- You can group test. eg Smoke test, login test etc
  11. It is also supported across several different desktop browsers and mobile browsers (iOS and Android)

Cons: less support

like image 144
Ashutosh Jaiswal Avatar answered Nov 17 '22 13:11

Ashutosh Jaiswal


I had experiance with nightwatch js . Its very easy to implement.Its suport all languages like react js, angular js or any scripting language. Only the neagtive side is less support. Another better option is webdriver.io (not selenium webdriver)

like image 1
PSN Avatar answered Nov 17 '22 15:11

PSN


Nightwatch is based on selenium. Test Cafe has his own mechanism and have some advantages, like mobile testing and auto waiting mechanism and simpler setup.

like image 1
Phoenix Avatar answered Nov 17 '22 13:11

Phoenix