How can you mark a test case as failed by using soft assertion?



How can you mark a test case as failed by using soft assertion?..

Answer / 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

More Selenium Interview Questions

What is the difference between getwindowhandles() and getwindowhandle()?

1 Answers  


What are the annotations used in testng?

1 Answers  


What are the features of selenium ide ?

1 Answers  


What is parameterization in testng?

1 Answers  


How to scroll web page down or up using selenium webdriver?

1 Answers  


How do you attach File on a page?

1 Answers   HCL,


How will you handle working with multiple windows in selenium?

1 Answers  


What are junit annotations?

1 Answers  


Mention why to choose python over java in selenium?

1 Answers  


Can you run the tests registered with Selenium IDE in other browsers?

1 Answers  


Hi can anyone suggest me what type of non technical questions asked in interview for experienced people, I am trying to get job with fake experience can anyone help me please

1 Answers  


What are the challenges in handling ajax call in selenium webdriver?

1 Answers  


Categories