Last active
August 1, 2018 01:59
-
-
Save anandbagmar/9d5878d3edbb08ca35b9e9b166442d65 to your computer and use it in GitHub Desktop.
Soft Assertion usage example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.testng.asserts.SoftAssert; | |
public class MyTest { | |
private SoftAssert soft; | |
public void sampleMethod() { | |
soft = BaseTest.getSoftAssert(); | |
soft.assertTrue(false, "This is a Soft Assertion usage example"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment