Forums - C# Corner

Forum guidelines
Aman Singh

Aman Singh

  • 0
  • 1.8k
  • 2.7k

Difference between assert and verify commands?

Apr 4 2018 6:14 AM

Assert: Assert command checks whether the given condition is true or false. Let’s say we assert whether the given element is present on the web page or not. If the condition is true then the program control will execute the next test step but if the condition is false, the execution would stop and no further test would be executed.

Verify: Verify command also checks whether the given condition is true or false. Irrespective of the condition being true or false, the program execution doesn’t halt i.e. any failure during verification would not stop the execution and all the test steps would be executed.


Answers (1)