Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Testing JavaScript Applications: Effective automation

 
Ranch Hand
Posts: 169
Netbeans IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Which is better testing framework in terms of getting the quick results and what are main advantages of  having framework in terms supporting automation ?
 
Author
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Divya,

> Which is better testing framework in terms of getting the quick results and what are main advantages of  having framework in terms supporting automation?

It depends on what you want to test.

For UI E2E tests I recommend Cypress. It's the easiest one to get started with.

For other kinds of tests, I particularly like Jest, since it bundles assertions, a test runner, and tools for working with test doubles. Because Jest bundles these tools, you don't need to install and configure them yourself.

The main advantage of automating tests is described in detail in the book's first chapter, but to summarize, the more you execute them, the more time you will have saved yourself from going through functionality manually. Also, by automating them you can ensure that the test will perform the same exact steps every time, instead of relying on humans, which can often forget things or do them in different ways. I recommend you to read the book's first chapter for more details.

 
reply
    Bookmark Topic Watch Topic
  • New Topic