Home

Search

Guestbook

Contact Us

Log in

Join Us

Testers Community

Link to Us

Advertise with Us

 

 

FREE 2 week trial

 

See Also

Best Practices for Software Projects - Risk Management. More...

Beyond Broken Links.
More...

Minimizing Software Defects via Inspections. More...

Testing GUI. More...

Test Methods. More...

Test Reviews. More...

Weekly Status Report
Sample.
More...

Stocking and Managing a Test Lab. More...

Key QA Documents. More...

Improving the Quality process by doing the
Metrics Calculation

Download

Documentation Tips.
More...

 
 

More Resources

Some templates that
you will find useful
during the development
of your software product.

More...

When is a test plan
to complicated

by Charles Shelby. More...

Test Development
Life Cycle.
More...

Test Plan Outline.
More...

The test specification should
explain "how" to implement
the test cases described in the test plan.
More...

 
 

To compete in today's market, you need Access to your Information Quickly and without hassle.
We can make this possible.

FREE 2 week trial

 
 

Have Something to Share

software testing tip, interesting bug, or had an interview lately?
Send us an Email.

 
 

Promote Your Products or Services

Interested in promoting your products on SQAtester.com?
We think our Storefront Program is the best way to help companies promote their products and services.
More...


Promote Your Products or Services!

 
 

Proxy Sniffer - Web Load Test & Web Page Analysis Tool

Don't waste your
time by programming load test scripts!
More...

 
 

Learn more material at a Fraction of Price!

Get the training that will help you face the challenges and meet the demands of today's competitive market place.
Programs Offered: Oracle DBA, Cisco Networking, Software Testing & Programming. More...

 
 

WAPT

WAPT is a load and stress testing tool for web sites and intranet applications with web interface. Accurate load simulation, run-time test data generation, recording and playback of secure HTTPS requests, clear graphs and reports, and More...

 
 

You are here: Home > Methodology and Techniques > Top 10 Negative Test Cases

Negative test cases are designed to test the software in ways it was not intended to be used, and should be a part of your testing effort. Below are the top 10 negative test cases you should consider when designing your test effort.
Top 10 Negative Test Cases ______________________________
1. Embedded Single Quote - Most SQL based database systems have issues when users store information that contain a single quote (e.g. John's car). For each screen that accepts alphanumeric data entry, try entering text that contains one or more single quotes.

2. Required Data Entry - Your functional specification should clearly indicate fields that require data entry on screens. Test each field on the screen that has been indicated as being required to ensure it forces you to enter data in the field.

3. Field Type Test - Your functional specification should clearly indicate fields that require specific data entry requirements (date fields, numeric fields, phone numbers, zip codes, etc). Test each field on the screen that has been indicated as having special types to ensure it forces you to enter data in the correct format based on the field type (numeric fields should not allow alphabetic or special characters, date fields should require a valid date, etc)

4. Field Size Test - Your functional specification should clearly indicate the number of characters you can enter into a field (for example, the first name must be 50 or less characters). Write test cases to ensure that you can only enter the specified number of characters. Preventing the user from entering more characters than is allowed is more elegant than giving an error message after they have already entered too many characters.

5. Numeric Bounds Test - For numeric fields, it is important to test for lower and upper bounds. For example, if you are calculating interest charged to an account, you would never have a negative interest amount applied to an account that earns interest, therefore, you should try testing it with a negative number. Likewise, if your functional specification requires that a field be in a specific range (e.g. from 10 to 50), you should try entering 9 or 51, it should fail with a graceful message.

6. Numeric Limits Test - Most database systems and programming languages allow numeric items to be identified as integers or long integers. Normally, an integer has a range of -32,767 to 32,767 and long integers can range from -2,147,483,648 to 2,147,483,647. For numeric data entry that do not have specified bounds limits, work with these limits to ensure that it does not get an numeric overflow error.

7. Date Bounds Test - For date fields, it is important to test for lower and upper bounds. For example, if you are checking a birth date field, it is probably a good bet that the person's birth date is no older than 150 years ago. Likewise, their birth date should not be a date in the future.

8. Date Validity - For date fields, it is important to ensure that invalid dates are not allowed (04/31/2007 is an invalid date). Your test cases should also check for leap years (every 4th and 400th year is a leap year).

9. Web Session Testing - Many web applications rely on the browser session to keep track of the person logged in, settings for the application, etc. Most screens in a web application are not designed to be launched without first logging in. Create test cases to launch web pages within the application without first logging in. The web application should ensure it has a valid logged in session before rendering pages within the application.

10. Performance Changes - As you release new versions of your product, you should have a set of performance tests that you run that identify the speed of your screens (screens that list information, screens that add/update/delete data, etc). Your test suite should include test cases that compare the prior release performance statistics to the current release. This can aid in identifying potential performance problems that will be manifested with code changes to the current release.

A solid tool for this is Software Planner. More...

Implementing measurements can improve your software quality and prepare your team for delivering on-time and on-budget. Below are some helpful templates to aid you in developing software solutions on-time and on-budget:

Release Package.
More...

Test Cases Sample.
More...

Test Matrices Sample. More...

Test Plan Sample. More...

Test Case Design. More...

Weekly Status Report Sample. More...

Stocking and Managing a Test Lab. More...

Key QA Documents. More...
Share your thoughts on Best Practices for Software Projects - Estimating in SQAtester Group.

E-mail to a Friend.
 

Top

Using Online Tools

The project software life cycle can be greatly improved by managing all phases of the software life cycle online. A web-based tool can sometimes be easiest to use, as it requires no client configuration. There are many solutions to choose from, consider Defect Tracker or Software Planner, depending on your needs. What ever tool you select should have the ability to collect metrics (like number of defects over time, etc.) without much extra effort on your part. Both of the products mentioned have this capability. More...

The tool you select should also allow you to create your own custom lists of information. This is especially important as to allow you to create your own screens to track measurements for each area of the system you wish to track measurements for.
Defect Tracker and Software Planner both have a List Manager feature that allows you to create custom screens to track anything you like. You can use that to track your measurements. More...

Try Software Planner FREE for 2 weeks.

 

Top

Books to Read ________________________________________
 
 

Quality Web Systems
This book provides a framework for ensuring that key Web system success criteria are addressed during the development of a Web system. Detailed technical guidance is provided for all criteria, along with testing strategies that allow for verification of a quality implementation.
More...
 

 
 

Automated Software Testing
Written for those with some background in software engineering, Automated Software Testing: Introduction, Management, and Performance delivers a rigorous guide to the state of the art in managing automated testing in a text that will benefit anyone who tests software for a living.
More...
 

More... books on Software Testing.
 

Top

Categories ________________________________
Bugs and Fixes   Software Life Cycle  
Bugs Life   SQA Career  
Bug Tracking   Testers Area  
Companies and Products   Tester toTester  
Documentation and Strategy   Testing Center  
Methodology and Techniques   Testing Newsletter  
More Resources   Testing Tips  
Publication and News   Tools and Automation  
QATeam   Tutorials and Training  
Community ________________________________
Join Now Free   Message Forum  
Share Your Experience   Professional Profiles  
Specials __________________________________
Millions of titles discounted up to 40-90% off. Great low prices on your favorite books. More...   Find all of your favorite software.
More...
 

 

  Whether you are at the office, home, or your client's site, your information should be available at your fingertips. We can make this possible. More...  

 

© Copyright since 2000 by SQAtester.com. All Rights Reserved. For information on SQAtester.com, visit About Us