I want to take a screenshot of my SUT at certain points in a test and e-mail that screenshot.
I’ve set a variable to the pathname/filename I want for the captured image:
put “…/…/CaptureResult.tiff” into myCapture
The screen capture takes place and the .TIFF file is created in the right place.
My SMTP line looks like this:
sendmail(smtp_host:“mail.xxx.net”, smtp_type:“Login”, smtp_user:"firstname.lastname@example.org", smtp_password:“xxx”, to:"email@example.com", from:"firstname.lastname@example.org",subject:“Screen Capture From An Eggplant Test”, attachment:myCapture)
The following error appears in the Eggplant log:
2009-09-29 14:30:50.746 -0600 sendmail-Warning Unable to open file: /CaptureResult.tiff 34 on_captureresult CaptureResult.script
Any ideas from the crowd?