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
CaptureScreen(Name: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:"xxxnt@xxx.net", smtp_password:“xxx”, to:"xxx@dtint.com", from:"xxx@xxxn.net",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?