SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Dec 2002
    Location
    Sacramento, CA USA
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WIERD BEHAVIOUR WITH \"CLICK()\"

    I am testing application written in VB. When my script clicks Command Button on VB Form it frezees both application, and silktest.

    Another option of using click(1,1,1,true)generates an error. Application under test closes, and Silk generates an error (as it tries to continue with application, but application is not present).

    NOTE: I refered to following discussion: http://www.qaforums.com/Forum1/HTML/001922.html

    I tried the alternative that were sugested but it does not seem to be working. Thank you in advance for your help.

    Devang.

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

  2. #2
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WIERD BEHAVIOUR WITH \"CLICK()\"

    I've seen a similar problem to this in the past. Essentially SilkTest tried clicking on the button and then it waits for a reply notification that the click worked. If the object doesn't respond then SilkTest reports "control is not responding". In rare cases the application may not respond and SilkTest may get stuck waiting for the application to respond.

    This might work for you:
    Basically you use the MoveMouse to move the cursor to the PushButton. Then ask SilkTest to figure out where on the screen the mouse is pointing at. Then we tell SilkTest to ignore the fact that when we click on the desktop that your application's pushbutton is going to be in the way. Next we click on the desktop at the same location that the pushbutton is in. Windows interprets the click as going to the pushbutton because it is on top. Best idea is to use this code in a method for the button that is giving you the problem.

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WIERD BEHAVIOUR WITH \"CLICK()\"

    try to create a little vb test app which will send WM_CLICK to the button prior to clicking you will have to get a handle to the button then send a message using the handle and see what happens.

    Is clicking that button starts another executable? which creates its own UI?

    pushbutton.movemouse might also cause it to hang. in that case rget positions and do a desktop.move mouse. I know it has already gotten very ugly but that it how it is with record and play back tools.

    [This message has been edited by AUTOMATION_GURU (edited 12-16-2002).]

  4. #4
    Junior Member
    Join Date
    Dec 2002
    Location
    Sacramento, CA USA
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WIERD BEHAVIOUR WITH \"CLICK()\"

    I tried the following option:

    PushButton.MoveMouse ()
    POINT p = Cursor.GetPosition ()
    BOOLEAN bBefore = Agent.SetOption (OPT_VERIFY_EXPOSED, FALSE)
    Desktop.Click (1, p.x, p.y)
    Agent.SetOption (OPT_VERIFY_EXPOSED, bBefore)

    As soon as script executes Desktop.Click()
    it hangs. So any suggestion as to what else can I try.

    Can you (Automation_Guru) please explain the following (I am not strong on VB side, and I have started with silk)

    try to create a little vb test app which will send WM_CLICK to the button prior to clicking you will have to get a handle to the button then send a message using the handle and see what happens.
    Is clicking that button starts another executable? which creates its own UI?

    Thank you both for your help.

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

  5. #5
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WIERD BEHAVIOUR WITH \"CLICK()\"

    I don't believe that this one is limited to Visual Basic. I've run into test-run stopping hangs with Click() and Clipboard.GetText() commands doing looped SelectAll/Copy operations with DOS windows.


    John


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

  6. #6
    Junior Member
    Join Date
    Dec 2002
    Location
    Sacramento, CA USA
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WIERD BEHAVIOUR WITH \"CLICK()\"

    Guys,

    Let me give some more details. VB application that I am testing has 5 tabs. window pops up when I select particular value on first page.

    I tried invoking the pop-up (Using hot key) from middle of second page. To my surprise Click() command worked fine.

    My thought is that when the pop-up window was called from first page, and silk tried clicking the OK command button, application didn't know where to go??? But that's not the case when I test same scenario manually. I have found a way around. But I would definately like to know why it doesn't work from first page.

    Thanks,
    Devang.

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

 

 

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 12:26 AM.

Copyright BetaSoft Inc.