Quality Engineering

Increase Test Efficiency with DataProviders in TestNG

How can we do Data-driven testing in Selenium? One way is to use Parameters. As we know, we can run our tests with input(Parameter) to verify whether it is valid or invalid. For this, we can use Parameters in TestNG. But what if we want to run the same test for multiple inputs and check […]

Akansha Singh
Akansha Singh
Read

Java/JVMTechnology

Working with TestNG Annotations (Part1)

TestNG is a Java Framework to set up the execution flow of the code and for reporting purpose.  Annotations used in TestNG: Annotation Description @BeforeSuite BeforeSuite annotation method runs only once before all tests from the suite. @AfterSuite AfterSuite annotation method runs only once after all tests from the suite. @BeforeClass BeforeClass Method runs only […]

Automation TestingTechnology

How to Add Screenshots to TestNG Report?

Taking screenshots during testing is often considered a good practice. Adding a screenshot to the test reports provides complete clarity and visibility of the application such as if the application is working smoothly or something in the application needs to be fixed. It also makes the report meaningful and presentable. While carrying out manual testing one […]

Ubaid Ahmed
Ubaid Ahmed
Read

Automation TestingTechnologyTesting

Soft Assertions in Selenium using TestNG

Assertions are used to perform various kinds of validations in the tests and help us to decide whether the test has passed or failed. There are two types of assertions in Selenium that we can place in our test scripts using TestNG: Hard Assertions Soft Assertions Hard Assertions: As the name suggests, these assertions put […]