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...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

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 #495 of 628 |
RE: [model-based-testing] Negative testing with MBT?

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.

 

Then in the test action you simply check to see if the illegal condition was present or not present when Submit clicked.  If illegal then failed.

 

Good Luck!

 

Pete Lakey

 


From: model-based-testing@yahoogroups.com [mailto:model-based-testing@yahoogroups.com] On Behalf Of Ofer Rivlin
Sent: Friday, December 12, 2008 4: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



Fri Dec 12, 2008 5:54 pm

peterlakey1
Online Now Online Now
Send Email Send Email

Forward
Message #495 of 628 |
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