SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    May 2003
    Location
    New York, USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Get dynamic data from Message Box.

    I am using an Java front end application. For eg. In an Banking application when ever an user creates a new bank account, a pop up window comes with the message:
    " Account Created : ACT85201456."
    Similary when the next user creates a account a new A/C number comes in the message box. I want to catch this dynamically changed A/C number from the message box using WinRunner 7.5. Can anybody suggest any solution.
    Thanks in advance.

  2. #2
    Junior Member
    Join Date
    Jul 2003
    Location
    Kolkata
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get dynamic data from Message Box.

    when u learn a particular messagebox into GUI map file u ill get one field with account number. so u modify that field with wildcard characters !.*.(static). instead of account number wildcard characters will come. and in u r script add these two line and replace WindowName is what window name u have in u r GUI map file.

    set_window(WindowName);
    static_get_text("!.*.(static)",sDialogText);

  3. #3
    Junior Member
    Join Date
    May 2003
    Location
    New York, USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get dynamic data from Message Box.

    The Account number field does not exist in the GUI, only a message box ( a small window) pops up which says :

    Window title is shown as Success
    The inside message is :"New account created : ACT070725682003.

    I want to capture this account number.

  4. #4
    Member
    Join Date
    Jul 2003
    Location
    Moscow, Russia
    Posts
    66
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get dynamic data from Message Box.

    Try using win_get_text function together with string parsing functions (substr(), match(), index() etc.). WR text capturing capability is one of its most powerful features, absent in most concurrent testing tools.
    Regards,
    Mike Davydov.

  5. #5
    Member
    Join Date
    May 2001
    Posts
    86
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get dynamic data from Message Box.

    when you learn a "message" box WR learns all elements inside the window, including the text. This is represented as "Text" in the editor,check to make sure your GUI map has "Text" (which in your case would be the account number)under the window description. You can probably use this..

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 08:06 PM.

Copyright BetaSoft Inc.