Page 1 of 1

Does eValid have any assert commands build in

PostPosted: Wed Sep 26, 2018 2:14 pm
by BForrest
Afternoon.

Can you explain why eValid doesn't have an "assert" command?

Thanks

Re: Does eValid have any assert commands build in

PostPosted: Thu Sep 27, 2018 11:12 am
by eValid
BForrest wrote:Afternoon.

Can you explain why eValid doesn't have an "assert" command?

Thanks


Great question BForrest.

Actually, eValid has a LOT of kinds of "assert" -- which we call validations!

Because eValid is intended to be a regression test tool the working assumption is that tests will 99% of the time PASS.

So, this working assumption translates into a system in which, so long as everything checks out, you don't need to do anything but continue the test.

When a test does fail, eValid throws a flag for an Alarm, an Error, a Timeout, or a Warning.

The flags are processed by the most-recently executed commands that specify what to do in case these are invoked:

OnAlarmScript
OnErrorScript
OnTimeout
OnWarning

These four have the GoScript, Email, or SendFile options.

So, you can set eValid up so that when an Error (a FAIL) happens you send an email to someone (management?) about the Error.

See the online documentation in the section of Flag Processing Commands for complete details.


-- eValid Support