Press "Enter" to skip to content

Posts tagged as “Chai”

How to achieve greater code Readability & Reusability with Page Object Model?

Vladimir Simonovski

Having automated tests in a software project is essential to confirm the working functionality but also find bugs quickly. This happens early in the development lifecycle for example if a new feature is being developed, testers or developers can run their regression tests in order to find potential bugs or irregularities in that particular feature. Larger the number of automated tests covering all the possible causes, the smaller the chance of discovering bugs late in development which would be very…

Going In-Depth into what is Chai Assertion Library and why it’s so popular

Vladimir Simonovski

What is assertion? An assertion is a form of validation statement in the programming language which verifies if the given result or outcome is correct and valid. The purpose of using assertions in test automation is to identify if the given outcome of a particular scenario is equal to the actual outcome. In other words, checking the expected vs actual result for a test. If they are not the same then the test would fail with the failure message shown…