Is it possible to find the variable that QTP uses for the Results Summary (Passed/Failed/Warning)so that I can place it into an email?
I have the code to send the email, I was hoping to send the result also.
Thx for the help ;-)
You can do one thing that once the QTP finishes the execution you can save the result as PDF and attach it with your mail.
Test Automation Engineer
Suarabh, can you please post the code as to how?
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
I have tried this:
Set oUtlookApp = CreateObject("Outlook.Application")
Set nAmeSpace = oUtlookApp.GetNamespace("MAPI")
Set newMail = oUtlookApp.CreateItem(0)
'Returns O:\QTP Tests\NightlyRegressionTesting\Tests\Image Access - Check Fax Status by ENV\Res##
strAttachment = strAttachment & "\Report\Results.xml"
'Returns O:\QTP Tests\NightlyRegressionTesting\Tests\Image Access - Check Fax Status by ENV\Res##\Report\Results.xml
' these two FAIL
'The next passes but no attachment is added to the email.
The If is True, buit no attachment gets add here too.
If strAttachment <> "" Then
Any thoughts? How does your code add the attachment?