Assertions

Hard Assertion

assertFalse

assertTrue

assertEquals(actual,”expected”)

 

Soft Assertion

SoftAssert s = new SoftAssert();

s.assertTrue(condition, message);

s.assertAll(); - holds all failure asserts from above statement and prints at the end of test execution – so as to avoid script execution termination

Comments

Popular posts from this blog

QA's approach 2 Java - Collections Framework & Generics Introduction

QA Insights - Test management using Microsoft Test Manager [Novice to Advanced]

QA's approach 2 Java - File Creation with Date and Time