Skip to content

Instantly share code, notes, and snippets.

@anandbagmar
Last active August 1, 2018 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anandbagmar/9d5878d3edbb08ca35b9e9b166442d65 to your computer and use it in GitHub Desktop.
Save anandbagmar/9d5878d3edbb08ca35b9e9b166442d65 to your computer and use it in GitHub Desktop.
Soft Assertion usage example
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