SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Guest

    Problems with the exists method?

    Background: Using SilkTest 5.5 to test a client application written in Java using Swing

    Objective: Trying to verify that a certain combo box exists/does not exist depending on the item selected from a previous combo box

    Problem: When I run the testcase, SilkTest returns an error because it thinks the combo box exists when in reality it does not. When I run this portion of the testcase manually, I get the correct results. In other words this isn't a bug in the application it is a problem with my SilkTest code.

    Code: [-] if (Data.sChoices=="Y")
    [ ] Verify (StaticAttributeModule.ChoicesComboBox.Exists (5), TRUE)
    [ ] Print (Data.sDatatype, Data.sChoices)
    [ ] // this is not running properly - returns true?
    [-] else
    [ ] Verify (StaticAttributeModule.ChoicesComboBox.Exists (5), FALSE)
    [ ] Print (Data.sDatatype, Data.sChoices)

    Error Message: [-] Testcase TriggerRadioButton_Verify - 1 error
    [ ] Enumerated 2
    [ ] Enumerated Y
    [ ] Integer 2
    [ ] *** Error: Verify value failed - got TRUE, expected FALSE
    [ ] Occurred in Verify
    [ ] Called from TriggerRadioButton_Verify at desktop 2_0.t(66)

    Can anyone help me?

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

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

    Re: Problems with the exists method?

    By "manually" do you mean you are running in debug mode? Successful debug runs are often evidence that a timing issue isn't being handled.

    In you example, this would be true if the ChoicesComboBox exists prior to a subsequent selection (after which it shouldn't exist).

    Try putting a temporary Sleep(1) just after the input is acccepted from the controlling ComboBox.


    John


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

 

 

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:43 PM.

Copyright BetaSoft Inc.