I made a custom function in BasePage class for reportFailure() . i take screenShot inside the function and fail the test like test.log(Status.Fail, message) .
guide me where to use softAssert.assertall() .
Instructordemo Reply on 12/02/2019
You can use it at after test annotation.
Hi Ashish ,
i have a confusion , some time i need to immediately stop the execution and sometime i do not stop the execution . if i use softassert.assertall() at @AfterTest annotation i will stop the execution at end . pls suggest .
and what if iwe want to use the softassert in Pages Class .