SPONSORS:






User Tag List

Results 1 to 5 of 5

Thread: Drawn objects

  1. #1
    asp
    asp is offline
    Junior Member
    Join Date
    Apr 2001
    Location
    Boston,ma
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Drawn objects

    The application that I am testing enables the user to draw objects on a flowsheet, and to connect these objects (similar to AutoCad). However when I try and automate this procedure I have to rely on co-ordinates as Silktest does not recognise my drawn objects. Using co-ordinates is undesirable as it does not always work, for example on another pc where there might be any number of differences (e.g size of main window, resolution etc).

    Has anyone got any ideas or ever come across a way to solve this problem. I have spoken to many people and as yet had no success apart from relying on co-ordinates.

    Thanks

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Location
    Laurel, Maryland, USA
    Posts
    204
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Drawn objects

    I don't know of any way to do this without coordinates, but there are ways to work with the coordinates to make things work better.

    I had a similar problem that I solved by creating a record for all of my objects. When I create an object on the screen, I store the map coordinates in the record. When I need to connect the objects, I do so based on the objects coordinates as stored in the record.

    You may be able to base the placement of your objects on the window size, and this may minimize some of the problems with window size and resolution. You would do this by getting the window size first, then determining the coordinates base on a percentage of the window size. For example, if your window is 200 x 200, you may place your first object at ({.75 * xSize}, {.50 * ySize}). This gives you (150, 100) for your coordinates - (.75 * 200) = 150, (.50 * 200) = 100.

    Hope this helps,

    Atlee

    ------------------
    Atlee

  3. #3
    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: Drawn objects

    asp,

    I have similar issues where I am forced to rely on coordinates to determine success or failure of my tests. In these cases, it invariablty involves some defined window or panel within a window. The thing I do to ensure reliability is to do a RECT on that pane and then work my coordinates out of the upper left corner relative to the pane. The idea is that this should eliminate any problems with window/panel resizing, or screen resolution.

    When we are dealing with coordinates, you know nothing is perfect, but testers in our position have to come up with the best solutions we can.

  4. #4
    Guest

    Re: Drawn objects

    Perhaps I'm missing the point here, but what IS the point of automating the interactions with a drawing program if there is no corresponding validation of those actions? IMHO, merely "going through the motions" without validating that something was properly drawn on screen, or that some other measurable state change occurred, serves little value unless you are measuring something else (memory leaks, stress, etc.).

    ------------------
    Tony Mrozinski
    Sr. Software Test Automation Engineer
    Home Networking Operations
    Intel Corporation

  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: Drawn objects

    Hey Tony...

    I'm not sure what asp's app looks like, but for me, I have Java Panels where certain activity within that panel affects other areas of the application that are visible to Silk, and by my manipulating objects in those panels, I can force certain conditions that I need to test.

    My suspicion is that in asp's "autocad-like" application, the test involves things other than what is actually drawn.

    I could be totally off-base however... ;-)

 

 

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 06:01 AM.

Copyright BetaSoft Inc.