Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test End Notification
#1
Hi
Is there a way to notify someone when the test is done. I used to have Winrunner generate an email. Is there an equivalent in QTP?
Reply
#2
We can send mails using QTP.
Reply
#3
See this thread for the code https://www.learnqtp.com/forums/Thread-E...-vb-script
Reply
#4
Hi,

The code for sending mail through qtp is in this function..is workign for me when i execution the function in QTP but when i open .vbs file it trhows syntax error..
Code:
Public Function SendMail(SendTo,SendCC,Subject,Body,Attachment) Dim olApp Dim olNs Dim olMail Set olApp = GetObject(, "Outlook.Application") On Error GoTo 0 Set olMail = olApp.CreateItem(olMailItem) With olMail .To = SendTo .CC = SendCC .Subject = Subject .Body = Body .Attachments.Add(Attachment) .Display .Send End With Set olMail = Nothing Set olApp = Nothing End Function
Reply
#5
Hi,
Is there a function in QTP that does this .. ? Any other suggestions welcome.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Send automatic email notification when test run started helmzshelmz 0 1,606 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  Expected End statement error Lavanya N 2 5,833 07-27-2015, 01:52 PM
Last Post: Lavanya N
  closing browser at end bistritapcv 3 7,081 04-12-2013, 07:21 AM
Last Post: basanth27
  How to end action on error adsherman 6 9,731 07-28-2012, 02:16 AM
Last Post: adsherman
  How to read an * at the end of a string sqadri 2 3,060 01-06-2012, 04:01 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)