SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    34
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ST 6.0 Verify() function does not work

    Hi All,

    I am having problem with getting the Verify() function to behave correctly in SilkTest 6.0.

    I called the Verify() function in a testcase like this:

    Verify (bActual, bExpected, sMsg)

    where bExpected and bActual and BOOLEAN types and sMsg is a string type.

    In the debugger, I certified that my 2 arguments, actual and expected are different but SilkTest does not log any errors in the result. In fact, the result does not show any errors no matter what I do with the Verify function.

    However, when I used Verify in main() like this:

    [-] main()
    [ ] Verify(TRUE, FALSE, "message")

    I received the correct message that says: "*** Error: Verify message failed - got TRUE, expected FALSE".

    I searched around the Help Topics and saw the following sample demonstrating 4Test Exception Handling:

    [-] testcase except1 (STRING sExpectedVal, STRING sActualVal)
    [-] do
    [ ] Verify (sExpectedVal, sActualVal)
    [ ] Print ("Verification succeeded")
    [-] except
    [ ] Print ("Verification failed")

    Does it mean we must put Verify() within the do-except statements? If so, doesn't that defeat the purpose of using Verify in the first place?

    Has anyone seen this behavior? Thanks for any hints.

    David


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

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

    Re: ST 6.0 Verify() function does not work

    Which build of Silk 6.0 are you running?

    I only see expected behavior with build 4 using various combinations of constants, variables, booleans and strings both in and out of testcases.

    One possible quick fix: delete the .TO file for the test (and its include .INO files) and try again.


    John


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

  3. #3
    Member
    Join Date
    Feb 2003
    Posts
    34
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ST 6.0 Verify() function does not work

    I am using SilkTest Release 6.0.1.0 [1163]. It's strange that when I used Verify() directly in main() it behaves as expected. When I used it within test cases it doesn't work.

    I've also tried to delete the .to, .t_ and the .ino files but that didn't help. Looks like I'll just use the do-except statement to catch exceptions for now.

    Thanks.

    David

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

    Re: ST 6.0 Verify() function does not work

    Sorry to throw the "It works on my machine" at you, but....
    I tried the following:
    And I got this for a result:
    Seems to be working properly here. Same version of SilkTest running on Win2K. When you upgraded did you uninstall the old version first?

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

  5. #5
    Member
    Join Date
    Apr 2001
    Location
    Montreal, CA
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ST 6.0 Verify() function does not work

    my mistake...please delete my reply..if possible

    [This message has been edited by aspmurali (edited 03-05-2003).]
    _ _ ___________ _ _
    Murali K Parepalli

  6. #6
    Junior Member
    Join Date
    Mar 2001
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ST 6.0 Verify() function does not work

    Could you post the code that is causing problems? There could be something code-specific that is causing this behavior.

    - Tom

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

 

 

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 08:58 PM.

Copyright BetaSoft Inc.