Menu

An alternative way of testing is to perform batch testing. In batch testing, a data file is created once and contains both the sample input value(s) and the expected output value(s). This data file is…

Question

Answered step-by-step

An alternative way of testing is to perform batch testing. In batch…

An alternative way of testing is to perform batch testing. In batch testing, a data file is created once and contains both the sample input value(s) and the expected output value(s). This data file is read one test case at a time by the driver program, which then sends the input values to the untested method and then compares the output of the method to the expected output for you. The driver program keeps reading values, performing tests until the end of the data file is reached. Then it prints out statistics indicating the number (and percentage) of test cases that passed successfully. Along the way, if any of the test cases failed, then the driver program would output the input values, the actual output and the expected output, along with a short message indicating that a problem has occurred with this test case. (Note: Failed test cases indicate there might be errors/bugs in the method under scrutiny or in the test plan itself.) 

OR

Leave a Reply

Your email address will not be published. Required fields are marked *