Post by Admin on Nov 20, 2012 2:18:58 GMT -5
If a developer gave you a command line tool called sort.exe that sorts a text file of integers, list of the top 10-20 test cases you feel would most likely find a bug in the tool?
E.g:
Assumption: Sort.exe takes in a input file and writes into a output file. Syntax looks like “Sort.exe <InFile> <OutFile>”
(a) Test Sort.exe with a file that has 1 integer value
(b) Test Sort.exe with a file that has 10 integer values in ascending order
(c) Test Sort.exe with a file that has 20 integer values in descending order
(d) Test Sort.exe with a file that has 100 integer values in random order
(e) Test Sort.exe with a file that has repeated numbers like 123123123.
(f) Test Sort.exe with an empty file
(g) Test Sort.exe with a file that has some non-integer values and some integer values
(h) Test Sort.exe with a read-only InFile that has some random integers
(i) Test Sort.exe with a write-only InFile that has some random integers
(j) Test Sort.exe with a hidden InFile that has some random integers
(k) Test Sort.exe with a file that has very large set of random integers. While sort is performing its operation update the InFile from a different process.
(l) Test Sort.exe with a file that has very large set of random integers. While sort is performing its operation update the OutFile from a different process.
(m) Test Sort.exe with a file that has very large set of random integers that has atleast one occurrence of Int32.Max and Int32.Min.
(n) Test Sort.exe with a file that has very huge numbers that cannot fit in 32 bits
(o) Test Sort.exe with a huge input file with several integers which is located on other machine and look for the performance.
E.g:
Assumption: Sort.exe takes in a input file and writes into a output file. Syntax looks like “Sort.exe <InFile> <OutFile>”
(a) Test Sort.exe with a file that has 1 integer value
(b) Test Sort.exe with a file that has 10 integer values in ascending order
(c) Test Sort.exe with a file that has 20 integer values in descending order
(d) Test Sort.exe with a file that has 100 integer values in random order
(e) Test Sort.exe with a file that has repeated numbers like 123123123.
(f) Test Sort.exe with an empty file
(g) Test Sort.exe with a file that has some non-integer values and some integer values
(h) Test Sort.exe with a read-only InFile that has some random integers
(i) Test Sort.exe with a write-only InFile that has some random integers
(j) Test Sort.exe with a hidden InFile that has some random integers
(k) Test Sort.exe with a file that has very large set of random integers. While sort is performing its operation update the InFile from a different process.
(l) Test Sort.exe with a file that has very large set of random integers. While sort is performing its operation update the OutFile from a different process.
(m) Test Sort.exe with a file that has very large set of random integers that has atleast one occurrence of Int32.Max and Int32.Min.
(n) Test Sort.exe with a file that has very huge numbers that cannot fit in 32 bits
(o) Test Sort.exe with a huge input file with several integers which is located on other machine and look for the performance.