SoftAssert.fail(msg); | Selenium Forum
M
mallikarjun524 Posted on 22/08/2022

Cannot invoke "org.testng.asserts.SoftAssert.fail(String)" because "this.softAssert" is null
Result [TestResult name=testA status=FAILURE method=TestA.testA(java.lang.String, java.lang.String)[pri:0, instance:suitea.TestA@6db9f5a4] output={null}]
Result java.lang.NullPointerException: Cannot invoke "org.testng.asserts.SoftAssert.fail(String)" because "this.softAssert" is null

 

 

am not able tp rectify it.

how to rectify suggest me plz