adspace
How can you mark a test case as failed by using soft assertion?
Answer Posted / Anisha
To mark a test case as failed using Soft Assertion, you need to call the 'assert' function with a condition that is expected to be false. If the condition is true, it will not throw an exception, but the test result will indicate that the assertion has been violated.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers