Forum Discussion

Sariali's avatar
Sariali
Contributor
14 years ago

Negative testing

Hello, it's me again...



in our test suite we have to turn off some tests, because the bugs are fixed yet.






However, it is desirable to keep all tests active, to ensure that all tests are performed, even if we know that the bugs are not removed.





If one of this negative-stated tests should fail, we would know that the bug was removed by one of our members and then we would reverse the state of the negative confirmation.





sincerly

Necip Sariali
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    Something's getting lost in translation here, that's for sure as your second quote doesn't necessarily equal what I had originally stated. :-)



    "The event fires only for the functions in this script." 



    This is not what I had said. :-)  Any script in the project that logs an error will fire the event.  However, when the event fires, the script that is linked to the event is the code that is executed.  So, your thesis is incorrect.  



    I would suggest you read http://smartbear.com/support/viewarticle/11118/ as this explains what events are, how TestComplete uses them, and what event handlers can do for you in your automation work.