Page 2 of 2 FirstFirst 12
Results 21 to 26 of 26

Thread: Automate MS Outlook Operations using QTP?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jul 2009
    Answers
    5

    Re: Automate MS Outlook Operations using QTP?

    Deepa....thanks again...whatever you suggest we can go ahead but the real issue we face is how can we make QTP identify Outlook objects or how to work with the outlook object model to verfiy an email(sender,sub,body)....
    It would very helpful for me if you can provide me any sort of input for this.


  2. #2
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: Automate MS Outlook Operations using QTP?

    Hai arijit2111,

    Set OutlookApplication = CreateObject("Outlook.Application")
    Set Mail = OutlookApplication.CreateItem(0)
    Mail.To = "abc@test.com" 'Enter your mail id here
    Mail.Subject = "test"
    Mail.Body = "this is a test"
    Mail.display
    Set WshShell = CreateObject("WScript.Shell")
    WshShell.SendKeys("%s")
    Set Mail = Nothing

    In the above code you can view to whom you are sending the mail, subject and with this statement "Mail.display" the mail will be opened in the front end. Grab to, subject and body from the mail and store the values in variable.

    Open an excel sheet it should contain to, subject, body to verify to whom the mail will be sent. So you can compare excel sheet with the values you have already stored in a variable.

    Thanks
    Deepa


  3. #3
    Junior Member
    Join Date
    Jul 2009
    Answers
    1

    Re: Automate MS Outlook Operations using QTP?

    Hi,

    I have 1 req.. say a mail is send to my outlook from my application..
    i want to open that mail from my inbox and check its TO list, CC list, Body and Subject fields against a standard template..

    can u plss tell me how to do it ASAp.. its quite urgent


  4. #4
    Junior Member
    Join Date
    Jun 2007
    Answers
    1

    Re: Automate MS Outlook Operations using QTP?

    Hi,
    I need QTP script to edit the outlook contacts.


Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact