Posts

Showing posts from August, 2021

Rerun failed test cases using testng

Annotations of testng

Image
Prioritising in testng Grouping in testng @BeforeTest -- executes the method once for all classes @BeforeClass-- executes the method once per class before test method @BeforeMethod-- executes the method inside a class everytime before every test method

assertions in testing soft and hard assertions

Image
https://www.softwaretestingmaterial.com/soft-assert/ One of the advantage of using testing is to make use of it for assertions.  AssertTrue and AssertEquals are commonly used methods. Soft Assertion will not stop execution but hard Assertion does. How to use them is mentioned below.