SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Junior Member
    Join Date
    Sep 2002
    Location
    Dublin, CA, U.S.A.
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    setActive() not working with ST 6.0.0.1

    After clicking a "Next" button on my web application, a new window shows up. Without SilkTest, the windows shows up in front, foreground. But with SilkTest running automation, the new windows fall to background. I tried to use SetActive() to place it to foreground so I could continue with other commands and scripts, but SetActive() is not working.

    I'm using ST 6.0.0.1[5]

    Anyone experience this? is it a bug or what? Thanks!
    bigtiger

  2. #2
    JCC
    JCC is offline
    Senior Member
    Join Date
    May 2002
    Location
    Copenhagen, Denmark
    Posts
    116
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: setActive() not working with ST 6.0.0.1

    I am using ST 6.0.0.1 build 5 and I have never had any problems with setActive (). Are you sure you are activating the right window? Is the window a custom window?

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

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

    Re: setActive() not working with ST 6.0.0.1

    Where a new window appears and "who's on top" is completely under the control of the developers. So you have found a bug in your application.

    Chances are quite good that a keyboard sequence can be used to generate the same effect manually. Find it, then report the error as a usability error.

    John


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

  4. #4
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: setActive() not working with ST 6.0.0.1

    try stepping through your script and see what silk does when it clicks next.

    ------------------
    Ryan McCullough
    Accelrys Inc.
    ryan@accelrys.com
    Ryan McCullough
    RightNow Tech. Inc.

  5. #5
    Junior Member
    Join Date
    Sep 2002
    Location
    Dublin, CA, U.S.A.
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: setActive() not working with ST 6.0.0.1

    As I mentioned: Without SilkTest, the windows shows up in front, foreground. But with SilkTest running automation, the new windows fall to background.

    That's why I need to use SetActive() and hope it'll place that to foreground, but not working.
    bigtiger

  6. #6
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: setActive() not working with ST 6.0.0.1

    can you paste your script here inside some [code ] [/code ] tags?

    ------------------
    Ryan McCullough
    Accelrys Inc.
    ryan@accelrys.com
    Ryan McCullough
    RightNow Tech. Inc.

  7. #7
    Senior Member
    Join Date
    Jul 2001
    Location
    Brookline,NH USA
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: setActive() not working with ST 6.0.0.1

    I've seen these type usability bugs before, and it is typically reproduced manually like this:

    - launch the app
    - do necessary steps to display the dialog in question
    - activate another application on the system, preferrably one that takes up the whole screen
    - minimize this 'other' application
    - the AUT should be displayed in the background at this point, with the dialog in the foreground
    - if it's not this way, then you have reproduced your bug manually (and can also likely report that the AUT appears to a user like it is not responding)

    ~ Fred

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

  8. #8
    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: setActive() not working with ST 6.0.0.1

    BigTiger,

    John's correct. Silk is doing something that you can very likely reproduce manually. Debug through it, stepping into each method call adn find the event that is causing this and write it up as a defect.

    Then pat yourself on the back for writing automation that is effective at uncovering a rather elusive bug!

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

  9. #9
    Junior Member
    Join Date
    Sep 2002
    Location
    Dublin, CA, U.S.A.
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: setActive() not working with ST 6.0.0.1

    Perhaps, I didn't point it out clearly.

    If I run my application standalone, and I click "Next" on Window A, Window B appears foreground successfully, that's what it supposed to be.

    But when I let SilkTest run the auto script and click "Next" on Window A, Window B falls into background, which stay behind Window A; I tried to do SetActive() Window B, but did not work.

    Hope it helps clear things up, and please share your experience on this. Thanks!
    bigtiger

  10. #10
    Senior Member
    Join Date
    Jan 2002
    Location
    UK
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: setActive() not working with ST 6.0.0.1

    Put it another way, are you saying that Window A always keeps the focus, that it takes it away from Window B immediately, or that they both become inactive?

    Is there nothing in the script that might be referencing Window A after Window B appears?

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

 

 
Page 1 of 2 12 LastLast

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 05:49 AM.

Copyright BetaSoft Inc.