If takes > 10 seconds = fail?

Is there any way in Eggplant to create a script that will fail if an image does NOT appear on the SUT within a certain amount of time:

If takes > 10 seconds = fail?

I am trying to create performance tests and need this.

Thank You,

Brad

If you want the script to fail but continue running, try:

if not imageFound(10, "imageName") then
logError "<imageName> not found on SUT within 10 seconds"
end if

If you want the script to fail and stop, try:

if not imageFound(10, "imageName") then
logError "<imageName> not found on SUT within 10 seconds. Script terminated."
exit all
end if

“Exit all” will kill all current script runs. Use “exit handler” if you just want to exit this portion of a modular script.

You may want to verify that the SUT connection is indeed “live” or refreshed before failing and/or terminating the test.