Logging errors

Hi All,

I would like to know whether there are error codes in Eggplant, say I am testing a web application and I get a “Page not found” error. Under such circumstances Eggplant will log the error as Image not found into the logfile. But I would like the Page Not Found error to be logged in the log file.(i.e I would like to log specific error messages when certain errors occur).

Thanks,

Mahesh

Mahesh,

You can log your own errors with the LogError command. Warnings can be logged with the LogWarning command. You can read more about these commands and other related commands in the ‘Eggplant Reference’ manual, page 150.

Hope that helps!