SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2009
    Posts
    48
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Testcase always shows PASSED

    The test cases always show PASSED when they finish the whole test case script without any interruptions. So i need to click on it to check if the if/else i have put shows the failure. How do i make silk test to show FAIL.

    Thank You.

  2. #2
    Advanced Member KishoreApplabs's Avatar
    Join Date
    Oct 2006
    Posts
    965
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Testcase always shows PASSED


    Put break point and find out exact pass/fail situations

    Regards,
    Kishore

  3. #3
    Member
    Join Date
    Mar 2008
    Posts
    91
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Testcase always shows PASSED

    use the "raise [exception]" statement - it will put errors into the res file

  4. #4
    Member
    Join Date
    Nov 2007
    Posts
    53
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Testcase always shows PASSED

    You can logerror by using teh following:
    1. exceptlog()
    2. exceptdata()

    Rohit S

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Location
    Waltham, MA
    Posts
    107
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Testcase always shows PASSED

    You can also use LogError() and LogWarning() functions.

  6. #6
    Senior Member
    Join Date
    Jan 2005
    Location
    UK
    Posts
    334
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Testcase always shows PASSED

    You need to have "verification points" in your test case, and raise an exception if the condition does not meet expected result. Such as:

    <font class="small">Code:</font><hr /><pre>[-] testcase TestIT()
    [ ] integer x = 1
    [ ] integer y = 0
    [-] do
    [-] if (x != y)
    [ ] raise -1, "Number do not match."
    [-] except
    [ ] ExceptLog()</pre><hr />

    Testcase TestIT() failed due to x not being equal to y.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 8.82%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 06:13 AM.

Copyright BetaSoft Inc.