Can Anyone plz tell me about Assert Type in ATF with example ?Plz Explain me

Sakthi4
Tera Contributor

Can Anyone plz tell me about Assert Type in ATF with example ?Plz Explain me

1 REPLY 1

SatheeshKumar
Kilo Sage

Assert Type  defines how submitting a form affects the result of test (passes or fails)

  • 1.Test passes only if form is submitted
  • 2.Test passes only if form submission is canceled
  • 3.Test passes in both cases

 

if you choosed option 1 in your test step, then during execution test will pass only if your form is submitted without any errors it will fail in all other conditions

 

if you choosed option 2 in your test step then, during execution test will pass only if your form submission is cancelled

 

if you choosed option 3 in your test step then, during execution test will pass for both for failed form submission / succesful form submission.

 

assert type informs test runner  - the condition in which test should pass or faill

-satheesh