Search the web
Sign In
New User? Sign Up
model-based-testing · This mailing list is for software test professionals interested in the model-based testing approach.
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Negative testing with MBT?   Message List  
Reply | Forward Message #494 of 630 |
RE: [model-based-testing] Negative testing with MBT?

I model separate state transitions to error conditions/messages that should show up.

 

Sometimes I will model various data conditions as different states. Other times I will put guards (that check state variables) on transitions out of a state. As to picking additional states or guards, I use whatever appears to be easier to maintain in whatever tools I’m using.

 

So I might have two different transitions in my model for your submit button: one for when it should be enabled and one for when it should be disabled; both with the appropriate end states.

 

So my short answer is that I model negative testing just like happy path testing.  I model how I understand it should work, then run tests and refine my model and/or get code fixed.

 

Ben Simo

 


From: model-based-testing@yahoogroups.com [mailto:model-based-testing@yahoogroups.com] On Behalf Of Ofer Rivlin
Sent: Friday, December 12, 2008 3:19 AM
To: model-based-testing@yahoogroups.com
Subject: [model-based-testing] Negative testing with MBT?

 

Hi,

I would appreciate some help with how to go about negative testing
with MBT methodology?

For instance:
There is a text-box where a user enters some data and then clicks the
'submit' button. In the specs the submit button should be grayed-out
and not enabled until the entered data is correct. In the model this
is easy to do through the enabling condition (guard) for the 'submit'
action. But now all the generated test-cases don't try to click
'submit' when the data is wrong.

I would like to get such a generated test-case that tries to click
'submit' even if the entered data is wrong and that the test is marked
as failed if the IUT actually enables the 'submit' action.

I would appreciate a general MBT way which does not necessarily
related to a specific tool.

Thanks in advance for any help.

Ofer


The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer.  The McGraw-Hill Companies, Inc. reserves the right, subject to applicable local law, to monitor and review the content of any electronic message or information sent to or from McGraw-Hill employee e-mail addresses without informing the sender or recipient of the message.




Fri Dec 12, 2008 5:44 pm

joebensimo
Offline Offline
Send Email Send Email

Forward
Message #494 of 630 |
Expand Messages Author Sort by Date

Hi, I would appreciate some help with how to go about negative testing with MBT methodology? For instance: There is a text-box where a user enters some data...
Ofer Rivlin
orivlin
Offline Send Email
Dec 12, 2008
5:37 pm

I model separate state transitions to error conditions/messages that should show up. Sometimes I will model various data conditions as different states. Other...
Simo, Ben
joebensimo
Offline Send Email
Dec 12, 2008
8:01 pm

I think it would be simple enough just to make the Submit button enabled for a least one condition where it shouldn't be, that will allow the illegal stimulus....
Peter Lakey
peterlakey1
Online Now Send Email
Dec 12, 2008
8:01 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help