email - Sending test result mail through jmeter -
i have incorporated simple http request sampler in test plan. and, viewing result through "view result tree" , writing same results file. want file send through mail sampler.
issue is, once execute test-case, sends mail first , append new test results file. so, in mail got previous run results instead of new one.
how can incorporate this?
i observe jmeter first sends email either blank or old run report when doing using smtp sampler. overvome it, tried:
- i created batch file call jmeter command line as:
call jmeter -n -t "script path" -l "jtl report path"
- i used utility called sendemail available in below location: http://caspian.dotconf.net/menu/software/sendemail/ as:
sendemail -f sender_email -t receiver_email -cc cc_email -s mail_server -u "subject" -m "email body" -a "path of jtl report attachment"
what doing executes jmeter script, generate report in path specified in first step , send email report using step 2.
it might help.
Comments
Post a Comment