Quality Testing

Quality is delighting customers

What is the difference between an assert and a verify with Selenium commands?

Hi,

 

What is the difference between an assert and a verify with Selenium commands?

 

-Madhuri

Views: 617

Reply to This

Replies to This Discussion

Hi Madhuri

When an "assert" fails, the test will be aborted. Where if a "verify"
fails, the test will continue executing and logging the failure.

 

Hope that helps

 

Joseph

assertions are used when u really want to check some things and make sure that it works. If assertions fail ur test will fail with assertions Failure exception and your test case execution will stop  . Verify will not cause ur test case to stop but u will have failure in the logs.

 

Thanks,

Sriharsha

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service