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
    Sep 2004
    Location
    pune,India
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Ideal Test Script

    Hi all,

    I am new to Rational Robot.I wanted to know if the Ideal Test Script in robot should have co-ordinates or it should not have ?
    if i have a generic object click ...and i have recorded it using record GUI ...it gives co-ordinates.is that bad coding ??
    awaiting replies
    Xenios

  2. #2
    Member
    Join Date
    Apr 2004
    Location
    San Jose
    Posts
    85
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ideal Test Script

    It is my opinion Xenios that most automation should avoid anything having to do with coordinates as much as possible. Sometimes there is no way around it but often there is. Be creative.
    Thanks,
    ~Charles

  3. #3
    Senior Member
    Join Date
    Mar 2003
    Location
    Austin, TX, USA
    Posts
    1,489
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ideal Test Script

    one creative idea instead of using coodinates would be to use variables defined in a separate .sbh file.

    fileIcon = "130,40"
    saveIcon = "200,20"

    the getfield command will allow you to use those above variables to click on the object. If done in this manner, using coordinates is ok, because you have one central location to change the coordinates instead of having to re-record your entire script.

  4. #4
    Member
    Join Date
    Apr 2004
    Location
    San Jose
    Posts
    85
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ideal Test Script

    Hey that is pretty creative. Never thought of trying to pass in a variable. I assume you have to use a concationation operator to get this to work.

    Window Click, "Caption=MyWindow",Cords=""&fileIcon)
    Thanks,
    ~Charles

  5. #5
    Junior Member
    Join Date
    Sep 2004
    Location
    pune,India
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ideal Test Script

    Thanks a lot u guys !!
    i will certainly do tht !

 

 

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.34%
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 12:11 AM.

Copyright BetaSoft Inc.