SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    May 2001
    Location
    Plainsboro, NJ, USA
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to invoke the MS Outlook during testing of application?

    Hi,
    In my application during running of the scripts an email notification is sent to a person as per the email address defined in the script. I defined my email address (MS Outlook) here.
    As soon as the email notification is received by the person he will login to the systme with user id and password sent along with email. The user id and password are generated randomly and uniquely by the system.

    Now the problem is how to invoke the MS Outlook express during the runtime to view the userid and password so that these are used to login to the system (my application).

    Is there a way where we can invoke the MS Outlook during runtime and return to the application under testing?

    Thanks in advance,

    Vinod Madhikar


    ------------------

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to invoke the MS Outlook during testing of application?

    To use Outlook I created a false window declaration that looks like this:

    [+] window MainWin OLOpen
    [ ] tag "#1"
    [ ] STRING sCmdLine = "D:\APPS\msoffice\office\Outlook.exe"
    [ ] STRING sDir = "D:\APPS\msoffice\office\"
    [ ]

    This window declaration allows me to invoke Outlook with the Start command. You must however use this window declaration within a do..except statement with an empty except.

    [-] do
    [ ] OLOpen.Start (OLOpen.sCmdLine, OLOpen.sDir)
    [-] except
    [ ]

    I then created a real window declaration (DialogBox) for Outlook and drive the actions I need to use with it. There are a lot of custom windows and you will have to class map quite a few objects to be able to use the window declaration.

    Hope this helps.

    Mike



    ------------------

  3. #3
    Senior Member
    Join Date
    Sep 1999
    Location
    San Jose,CA,USA
    Posts
    340
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to invoke the MS Outlook during testing of application?

    There is an alternative method. It is possible to interface to the imap or pop3 standard directly and read the info.

    I was able to do this in a moderatly easy fashion via python. I have heard you can do this via C++ (and I suspect via Java as well).

    You can interface to it via SYS_EXECUTE and either use clipboard or the ipc dll I wrote to pass the info back to Silk. While this may not interest you it is another way to crack this nut.



    ------------------
    "Smoke me a kipper, I'll be back for breakfast!"
    Sincerely
    Richard Weth
    Sr. QA Engineer
    mailto:rick_weth@yahoo.com
    Smoke me a kipper, I'll be back for breakfast!
    Sincerely
    Richard Weth
    Sr. QA Engineer

  4. #4
    Member
    Join Date
    Jun 2001
    Location
    Berkeley, CA, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to invoke the MS Outlook during testing of application?

    Outlook also has a series of command line options you can use to create messages.

    The one I have used most often is:

    Create an e-mail message /c ipm.note

    ------------------

  5. #5
    Moderator
    Join Date
    May 2001
    Location
    SanJose,CA,USA
    Posts
    363
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to invoke the MS Outlook during testing of application?

    Hello

    When i create a user in our company website, it sends mail to User email id. Assume Outlook. Then invoke the outlook check the message.

    [-] window MainWin Outlook
    [ ] tag "[DialogBox]#1"

    [ ] //The working directory of the application when it is invoked
    [ ] const sDir = sOutLookDir
    [ ] //The command line used to invoke the application
    [ ] const sCmdLine = sOutLookPath


    [+] Invoke ()
    [ ] Outlook.Start (sOutLookPath) //Start the MicroSoft Outlook Application
    [ ] SYS_Execute (sOutLookPath)


    [+] Close ()
    [ ]
    [ ] Outlook.SetActive ()
    [ ] Outlook.TypeKeys ("<Shift-End>")
    [+] if Outlook.MailWindow.InBoxTreeView.Exists ()
    [ ] Outlook.MailWindow.InBoxTreeView.TypeKeys ("<Up>")
    [ ] Outlook.MailWindow.InBoxTreeView.TypeKeys ("<Left>")
    [ ] sleep(3)
    [ ] Outlook.TypeKeys ("<Alt-F4>")
    [ ] Sleep(25)
    [ ]
    [+] if Outlook.PushButton("OK").exists () //Outlook Crash Error
    [ ] Outlook.PushButton("OK").Click ()
    [ ] Sleep(15)

  6. #6
    Senior Member
    Join Date
    Sep 1999
    Location
    San Jose,CA,USA
    Posts
    340
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to invoke the MS Outlook during testing of application?

    Here is another idea

    Instead of useing outlook which is not all that easy to interface to, you can use another application.

    It's actually preety easy to configure yahoo mail (or probably some web based email service) to your email imap or pop3 server.
    There is also Netscape Messanger that has a straightforward interface as well.

    Then it's a straight interface to the mail application. As opposed to creating the custom interfaces. (which DO by the way work but rarely scale well)

    ------------------
    "Smoke me a kipper, I'll be back for breakfast!"
    Sincerely
    Richard Weth
    Sr. QA Engineer
    mailto:rick_weth@yahoo.com
    Smoke me a kipper, I'll be back for breakfast!
    Sincerely
    Richard Weth
    Sr. QA Engineer

  7. #7
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to invoke the MS Outlook during testing of application?

    If you only want to send a notification, it is much easier to use the windows "Messenger Service". Whenever I run scripts in the lab, I set them up to send me a message when the script finishes or encounters a critical error.

    To try it, choose the Start menu "Run" and type "net send COMPUTERNAME message".



    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:20 PM.

Copyright BetaSoft Inc.