SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Sep 2001
    Location
    Mo
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Script on different monitor and diffrenet resolution Resolution

    Hi,
    I am automizing highly complex engineering application.I have to work with lot of coordinate specific actions.
    My script works perfectly OK on my system.But When I tried the same script on diffrenet machine and diffrenet motinter size and resolution it doesn't select the object at coordinates on the script but clicks at diffrenet place.Please suggest how can I solve this problem.

    ------------------
    yes
    yes

  2. #2
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Script on different monitor and diffrenet resolution Resolution

    One approach is to have your script automatically setup the enviroment that it is running under. That is, have it setup the screen resolution and anything else, if those do not meet the spec needed for the testcase.

    ------------------
    David Genrich
    david@e2Open.com
    david_kim@usa.net

  3. #3
    Senior Member
    Join Date
    Dec 1999
    Location
    Sarasota FL USA
    Posts
    109
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Script on different monitor and diffrenet resolution Resolution

    When clicking on cords, make sure that you use the object cords and not screen cords. Second, check to see how many colors are set on each system. I have had more problems with the number of colors being differne then the actual resolution. The other thing to try is to get the resolution of the test system, and calculate the cords to be clicked.

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

  4. #4
    Junior Member
    Join Date
    Sep 2001
    Location
    Mo
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Script on different monitor and diffrenet resolution Resolution

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by tlvranas:
    When clicking on cords, make sure that you use the object cords and not screen cords. Second, check to see how many colors are set on each system. I have had more problems with the number of colors being differne then the actual resolution. The other thing to try is to get the resolution of the test system, and calculate the cords to be clicked.

    <HR></BLOCKQUOTE>

    Thanks Buddy... Iwould apprititae if you can explain me in more details like..what function to be used etc...

    ------------------
    yes
    yes

  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Script on different monitor and diffrenet resolution Resolution

    tlvranas is exactly correct. Get the coordinates of the object by using the RECT method. Once you know the rectangle coordinates you can use those to click on coordinates relative to the x/y of that specific object rather than relative to the screen. If you have this in place, screen resolution does not matter.

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

  6. #6
    Senior Member
    Join Date
    Jul 2000
    Location
    Walsall, West Midlands, United Kingdom
    Posts
    259
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Script on different monitor and diffrenet resolution Resolution

    ...what if SilkTest can't see the objects within the window, but only the main window itself?

    You rely on co-ords (relative to the window) to click on objects which can't be identified. This is the case with our VisFoxPro app.



    [This message has been edited by Beeblemaster (edited 10-23-2001).]

 

 

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:33 AM.

Copyright BetaSoft Inc.