Manojrsr
8 years agoContributor
Checkpoint Property
In my Test scenario, I have Checkpoint to verify user has logged into system with correct username. but in Test log, for the passed Checkpoint also, General Checkpoint Event is called. I have cal...
- 8 years ago
Yes, That is expected only.
aqObject.CheckProperty writes Log.Checkpoit when an property check passed and it writes in Log.Error when an property check fails.
Hence, Whenever you call the Log.Checkpoint(), Corresponding event handler will get called
If you don't that to be called twice then you can modify your function like below,
if(aqString.Compare(Aliases.browser.pageWelcomeToReferralvalet5.formAspnetform.textnodeLblprovidername.contentText, "SKS",true) == 0) { CapturePictures(); } else { Log.Checkpoint("Not Valid User"); }