Menu

#52 TestCaseGenerator accepts negative input parameters

open
nobody
None
5
2010-03-25
2010-03-25
jlocke
No

The TestCaseGenerator will accept a properties file with a length or max-number parameter less than 1. When using a length of 0 or less, the program will accept the value and assume a length of 1. When using a max-number of 0 or less, the program generates no test cases. This behavior should be documented or corrected.

Expected behavior:

The program should throw an error when a user tries to generate 0 or less test cases, or use a length of 0 or less.

Actual behavior:

The program accepts values of 0 or less for length or max-number, and assumes minimum values

Platforms:

This bug is reproducible on Linux and Windows

Steps to reproduce:

* Build the TestCaseGenerator tool
* Modify the properties file to use a length or max-number of -1
* Run the TestCaseGenerator with a valid EFG

Note that the program executes and terminates normally when it should report an error. This bug was identified while testing edge cases of variables in the properties file.

Discovered & reported by the TestCaseGenerator team (7 members)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB