SPONSORS:






User Tag List

Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Aug 2002
    Location
    Durham, NC USA
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Checkbox.Uncheck () fails?

    I just installed 6.0 SP2, and called a function I wrote a long time ago. In this function Silk is supposed to Uncheck a box. This box is checked on entry.

    Each time I get to this line when the box is checked, I get the message (full results, in fact):
    [-] Testcase SwitchSummaryPacketsReceived - 1 error
    [ ] This testcase ran for 511.135000 seconds.
    [ ] *** Error: Control is not responding
    [ ] Occurred in Uncheck
    [ ] Called from ConfigVLAN at ixia.inc(2912)
    [ ] Called from SwitchSummaryPacketsReceived at statistics.t(151)


    I know the function worked at one time, although that could have been as long ago as 5.5 SP3.

    - The application is an interface to a vendor box we use, so the code for the application being manipulated is off limits.
    - Other checkboxes seem to work.
    - The box in question is focused, visible, and manipulable; I can pick up where Silk leaves off and uncheck the box myself, even during the application timeout time.
    - I've checked the box earlier in the testcase by calling the same function, but with different parameters. The line in question is actually executed in both cases, but it only croaks when the box is already checked.
    - Silk appears to try to execute the line for several seconds before bailing. Coincidentally, I had a 5-second timer running just between this and the last action for a run, and had the same problem. So I don't think it's a timing issue. (And since I can hit the button meantime and it works.)

    Any ideas? Thanks in advance!

    -TC
    --
    Tim Crone
    Broadcom

  2. #2
    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: Checkbox.Uncheck () fails?

    I find this VERY frustrating. I have a similar issue with a textfield that used to work.

    Can you tab to it and manipulate it with the space bar?

    SetFocus()? and then uncheck it?

    Uninstall????

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

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

    Re: Checkbox.Uncheck () fails?

    If the checkbox responds to Click() and IsChecked() returns the proper value, then insert your own version of the Uncheck() method within the declaration for this particular troublesome checkbox.

    Checkbox MyCheckbox
    {
    tag ...
    Uncheck()
    {
    If IsChecked()
    Click()
    }
    }

    In cases that aren't isolated to a single instance, you can easily replace to defective CheckBox class method with one of your own.

    winclass Checkbox : Checkbox
    {
    Uncheck()
    {
    If IsChecked()
    Click()
    }
    }


    I have implemented several of these kinds of constructs to circumvent problems in native Silk Java JFCTable code. To verify the usability of a new release or serv' pack I only have to comment out the replacement code block and run. If it (finally) works, I'm done. If it doesn't, I remove the comment and continue to use my functional variant.

    HTH

    John



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

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Checkbox.Uncheck () fails?

    Just because I'm curious, what if you use SetState (FALSE)?

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  5. #5
    Member
    Join Date
    May 2003
    Location
    CA
    Posts
    45
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Checkbox.Uncheck () fails?

    Hi,

    The exception says: '*** Error: Control is not responding'.

    It could be because after the box is checked, internally sequence of actions happens which may change the property of the GUI. This may require time delay.

    U can use the agent option OPT_VERIFY_RESPONDING with the value set as FALSE.

    Hope it helps!

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

  6. #6
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Checkbox.Uncheck () fails?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by tdcrone:
    I just installed 6.0 SP2, and called a function I wrote a long time ago. In this function Silk is supposed to Uncheck a box. This box is checked on entry.

    Each time I get to this line when the box is checked, I get the message (full results, in fact):
    [-] Testcase SwitchSummaryPacketsReceived - 1 error
    [ ] This testcase ran for 511.135000 seconds.
    [ ] *** Error: Control is not responding
    [ ] Occurred in Uncheck
    [ ] Called from ConfigVLAN at ixia.inc(2912)
    [ ] Called from SwitchSummaryPacketsReceived at statistics.t(151)


    I know the function worked at one time, although that could have been as long ago as 5.5 SP3.
    <HR></BLOCKQUOTE>
    Hi,
    It is a known issue... You can search this error in the SilkHelp file.
    Help Description:
    =================
    Problem

    You run a script and get the following error:

    Error: Control is not responding

    This is a catch-all error message. It usually occurs in a Select( ) statement when SilkTest is trying to select an item from a ListBox, TreeView, ListView, etc.

    The error can occur after the actual selection has occurred, or it can occur without the selection being completed. In general the error means that the object is not responding to the messages SilkTest is sending in the manner in which it expects.

    Solution

    Try these things to eliminate the error message:

    ∑ If the line of code is inside a Recording block, remove the Recording keyword.

    ∑ Set the following option just before the line causing the error:
    Agent.SetOption(OPT_VERIFY_RESPONDING, FALSE)

    ∑ If the selection is successful, but you still get the error, try using the Do Ö except feature

    ////////////
    Set the following option just before the line causing the error:
    Agent.SetOption(OPT_VERIFY_RESPONDING, FALSE)
    ////////////


    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  7. #7
    Member
    Join Date
    Aug 2002
    Location
    Durham, NC USA
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Checkbox.Uncheck () fails?

    The error message is incidental. As I say, I've tried extra time. It doesn't attempt to make it work, it doesn't set focus on the box, it just times out.

    I can't just disable the Verify, because it's important that the task is done. Since it never gets done, I can't move on.

    SetState () does not work, Dave. Good thought though.

    DJGray's suggestion does not work either (.SetFocus() first). I'm not going to try the uninstall suggestion for this one...

    I did as John suggested, and that worked like a charm. I guess the function just croaked for the interface to this particular app.

    Thanks for all the help!

    -TC
    --
    Tim Crone
    Broadcom

  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: Checkbox.Uncheck () fails?

    So, do I understand correctly that writing your own UnCheck() method works?

  9. #9
    Member
    Join Date
    Aug 2002
    Location
    Durham, NC USA
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Checkbox.Uncheck () fails?

    Yep, I just .IsChecked() and then .Click() and it works perfectly, instantly, and I didn't even have to offset the click location.

    Thanks for the suggestion!

    -TC
    --
    Tim Crone
    Broadcom

 

 

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

Copyright BetaSoft Inc.