Forum Discussion

sriguda's avatar
sriguda
Frequent Contributor
9 years ago

How to email my test results when there is error in the log or when it fails in any of the steps.

I am trying to add a Run Code Snippet in my keyword test as below.

BuiltIn.SendMail("sguda@ahcs.com", "Test Complete", "Sri", "sguda@ahcs.com", "Prod Issue", "Please take a look","C:\Users\sguda\Desktop\TestComplete\ProductionScripts\ezVerify_Login_Verfication\Log\4_26_2016_4_13 PM_05_20\Description.tcLog")

 

It executes fine but I don't see receiving any email.

 

My whole purpose is to email log when there is an error or email from keyward test when any of the steps or check points fail.

 

How can I acheive this.

 

I am trying to send email manually from test run log, i don't get any prompt from outlook asking for whome to sent etc as it is mentioned in one of the suppot links.

 

I use Microsoft Outlook 2010.

 

Please suggest.

5 Replies

    • sriguda's avatar
      sriguda
      Frequent Contributor

      I executed the sample script given for outlook in that link . The script ran without any errors. but I didn't receive any email.

      • sriguda's avatar
        sriguda
        Frequent Contributor

        Actually it gave an error message, unable to initiate MS Outlook.