SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Recognsing Object

    User Vinod Kumar A (vinod.kumar@genisys-group.com.nospam) posted:

    Hi All

    If any object is not recognised by WinRunner. What is the procedure to go
    about working further.

    1)Do we need to go for testing Manually.
    2)Can we still Automate? If so How do we go about Automating?

    Any answer on the above question would be a great help.

    Thanx in Advance
    vinod

    ************************************************** ********************
    This email and any files transmitted with it are confidential and
    intended solely for the use of the individual or entity to whom they
    are addressed. If you have received this email in error please notify
    the system manager.

    ************************************************** ********************



  2. #2
    Senior Member
    Join Date
    Mar 2002
    Location
    Irvine, CA 92606 USA
    Posts
    384
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Recognsing Object

    If (Not Web test) and (Not Java)!

    You can define a Virtual object.

    Or

    You can use analog mode to click the location the object should be. Make sure to check for proper action after clicking. If the action is correct you must have clicked the object. You can try win_get_text(). You can click on an object and Tab to the correct object, etc.

    Check on-line help.




    ------------------
    cranem451 - cranem@addendum.com

  3. #3
    Junior Member
    Join Date
    Feb 2003
    Location
    Houston, TX, USA
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Recognsing Object

    Just got back to the WinRunner arena after 2 years and ran into this same problem.

    You should visit Mercury Interactive website and look up problem ID #861.

    Hope this information is not too late.

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

  4. #4
    Junior Member
    Join Date
    Feb 2003
    Location
    Houston, TX, USA
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Recognsing Object

    Here is the text for problem ID #861

    Problem ID: 861

    --------------------------------------------------------------------------------
    Product:
    WinRunner Version N/A
    Add-in(s):
    Java


    Topics:
    Java Specific Questions or Problems
    Text Capture/Recognition Questions or Problems
    OS:
    Any Windows Platform


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

    Problem Description: The *_get_text functions do not work with Java applications

    Diagnosis: Java does not use system fonts.

    In order to achieve a consistent look and feel across different platforms, Java applets and applications do not use system fonts. As a result, WinRunner will not be able to get the text by selecting Create -> Get Text -> Object/Window or Create -> Get Text -> Area.

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

    Solution: Getting text from Java applications

    Use a property from the Java control
    Use the GUI Spy to determine if there is a property which contains the text you need, such as "value."

    1. Open the GUI Spy (Tools -> GUI Spy)
    2. Select the "All properties" tab.
    3. Search for a property which contains the text you want.
    4. Use an obj_get_info or a win_get_info function with that property.

    EXAMPLE:
    set_window("window");
    obj_get_info("edit field", "value", text);

    Copy to and read from the system clipboard
    If there is no property which contains the text you want, you can try using CTRL-C to copy the text to clipboard. You can then use the get_clipboard_text function from the CSO library to get the text from the clipboard and save it to a variable.

    1. Record highlighting and copying (using CTRL-C) the text in which you are interested.
    2. Use the get_clipboard_text function from the CSO library to get the text and save it to a variable.
    3. Use the variable as desired.

    For information on getting the CSO library, please refer to Problem ID 135 - How to get and install the CSO library.

    NOTE:
    The CSO Library 2 also contains functions to get text from the clipboard, get_clipbrd_text and get_clipbrd_text_ex. For information on getting the CSO Library 2, please refer to Problem ID 5419 - How to get and install the CSO Library 2.

    Use a Java method from the control to get the text
    Use the GUI Spy to determine if there is a method which will return the text you need, such as "getText." If you can find a method, then use java_activate_method to call the method.

    1. Open the GUI Spy (Tools -> GUI Spy)
    2. Select the "Java" tab.
    3. Spy on the Java control that contains the text.
    4. Search for a method which will return the text you want.
    5. Use a java_activate_method function with that method.

    For information on calling Java methods, please refer to Problem ID 8516 - Can Java methods be called from within a WinRunner script.



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

 

 

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 11.54%
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 02:17 AM.

Copyright BetaSoft Inc.