



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




































Test Plan and Cases Version 1.
Test Plan and Cases Version 1.
1.1 Purpose of the Test Plan ..........................................................................................................................
1.2 References ...............................................................................................................................................
1.3 Change Summary.....................................................................................................................................
2.1 Hardware preparation ..............................................................................................................................
2.2 Software preparation................................................................................................................................
2.3 Requirements Traceability.......................................................................................................................
2.4 Other pre-test preparations.......................................................................................................................
3.1 Test Identifier 1: Capability Requirement ...............................................................................................
3.1.1 Test Level ....................................................................................................................................
3.1.2 Test Class.....................................................................................................................................
3.1.3 Test Case......................................................................................................................................
3.1.3.1 Test Case 1...............................................................................................................................
3.1.3.2 Test Case 3...............................................................................................................................
3.1.3.3 Test case 4................................................................................................................................
3.1.3.4 Test Case 5...............................................................................................................................
Test Plan and Cases
Test Plan and Cases
Figure 1:
Test Plan and Cases
1. Introduction
1.1 Purpose of the Test Plan
1.2 References
Test Plan and Cases
2. Test Strategy and Preparation
2.1 Hardware preparation
2.2 Software preparation
2.3 Requirements Traceability
Test Plan and Cases
Requirement ID Test Identifier Requirement Specification
Verification Method
SSRD CR-1 Test Identifier 1 – Test Case 1
Statistics for user defined elements.
Testing
SSRD CR-2 Test Identifier 1 – Test Case 2
Give the output in a CSV format also.
Demonstration
SSRD CR-3 Test Identifier 1 – Test Case 3
Count the physical and logical source lines of code and total lines of code for XML, XSL, XML Schema.
Testing and CCD
SSRD CR-4 Test Identifier 1 – Test Case 4
Count of whole and embedded comments along with the blank lines
Testing and CCD
SSRD CR-5 Test Identifier 1 – Test Case 5
Counts the number of namespaces in the xml file.
Testing and CCD
SSRD CR-6 Test Identifier 1 – Test Case 6
Summarized code count results.
Testing and Inspection
SSRD CR-7 Test Identifier 1 – Test Case 7, Test and All Test Cases in Test Identifiers 2,3,
Exception Handling Testing and Inspection
SSRD CR-8 Test Identifier 1 – Test Case 8
Count of first level elements
Inspection
SSRD CR-9 Test Identifier 1 – Test Case 9
Count of the number of first level simple type elements and the first level complex type elements
Inspection
SSRD CR-10 Test Identifier 1 – Test Case 10
Count of the average and maximum number of levels for the first level complex type elements.
Testing and Inspection
SSRD LOS-1 Test Identifier 5 – Test Case 1
Accuracy measures how accurate or correct the results of the code counter are.
Demonstration
SSRD LOS-2 Test Identifier 5 – Test Case 2
Availability is a measure of how much time the system is available for use over a given period of time.
Demonstration
SSRD LOS-3 Test Identifier 5 – Test Case 3
Correctness measures that the code counter
Testing and Demonstration
Test Plan and Cases
3. Test Identification
3.1 Test Identifier 1: Capability Requirement
3.1.1 Test Level
3.1.2 Test Class
3.1.3 Test Case
3.1.3.1 Test Case 1
Table 1: Test Identifier 1 – Test Case 1 Statistics for user defined elements.
Test Case Number Test Identifier 1 – Test Case 1
Test Item Give the statistics for the user defined elements specified in the XML file. Test Priority Must have Pre-conditions Input has to be given to the XML code counter.
Post-conditions This information will be updated in the database and stored in it. Input Specification
Two files xml_list.dat and xml_lines_environment.dat are given as input. The file xml_list.dat contains the name of the files to be counted and the second file contains information about the various environment variables. Expected Output Specification
Statistics for user defined elements.
Pass/Fail Criteria If the statistics for user defined elements is present, it’s a passed else it’s a failed. Assumptions and Constraints
Xml_list.dat and xml_lines_environment.dat are provided
Dependencies None
Traceability SSRD 3.0 CR-
Test Plan and Cases
Table 2: Test Identifier 1 – Test Case 2: Give the output in a CSV format also.
Test Case Number Test Identifier 1 – Test Case 2 Give the output in a CSV format also. Test Item Must provide the output in CSV format in addition to the xml_outfile.dat. Test Priority Must have Pre-conditions Files containing source code written in XML.
Post-conditions The CSV file may be opened in excel or any other database.
Input Specification
An XML file.
Expected Output Specification
The output required from the code counter will be given in a text file and in CSV format.
Pass/Fail Criteria Passed if the CSV file may be opened successfully else it’s a failed. Assumptions and Constraints
A valid xml file as input
Dependencies None
Traceability SSRD 3.0 CR-
3.1.3.2 Test Case 3
Table 3: Test Identifier 1 – Test Case 3: Count Source Lines of Code
Test Case Number Test Identifier 1 – Test Case 3
Test Item Count the physical and logical source lines of code and total lines of code for XML, XSL, XML Schema. Test Priority Must have Pre-conditions An input source file containing XML code.
Post-conditions The statistics will be archived at the client side
Input Specification
A list of XML files whose SLOC is required is given through a file called xml_list.dat.
Expected Output Specification
Count of the Physical and logical Source Lines of Code are included in a file called xml_outfile.dat and a CSV format output. Pass/Fail Criteria Passed if physical, logical and total lines of codes is present else failed. Assumptions and None
Test Plan and Cases
Post-conditions The statistics will be archived at the client side
Input Specification
A list of XML files whose namespaces used are to be counted.
Expected Output Specification
Count of the number of namespaces used in the xml file is given in a file called xml_outfile.dat
Pass/Fail Criteria Passed if manual count equals what the program produced else failed. Assumptions and Constraints
An xml file with namespace used
Dependencies None
Traceability SSRD 3.0 CR-
3.1.3.5 Test Case 6
Table 6: Test Identifier 1 – Test Case 6: output file summary
Test Case Number Test Identifier 1 – Test Case 6
Test Item The output file must provide a summary of the Logical and physical SLOC, total and blank lines, whole and embedded comments and namespaces. Test Priority Must have Pre-conditions One or more files having source code in XML.
Post-conditions The statistics will be archived at the client side.
Input Specification
The file xml_list.dat is given as the input which specifies the name and path of the XML files whose count is required.
Expected Output Specification
Summarized results for the specified files in the output file xml_outfile.dat and an output in the CSV format.
Pass/Fail Criteria Passed if manual count equals what the program produced else failed. Assumptions and Constraints
Assume valid xml files
Dependencies None
Traceability SSRD 3.0 CR-
Test Plan and Cases
3.1.3.6 Test Case 7
Table 7: Test Identifier 1 – Test Case 7: Exception Handling
Test Case Number Test Identifier 1 – Test Case 7
Test Item Exception Handling. The counter must throw a suitable exception if an incorrect file name or non existing file name is specified. It should throw out suitable exception when file names with wrong extensions or file names whose extensions are not supported are supplied to the counter. It also checks if the XML file is well formed. Test Priority Must have Pre-conditions Incorrect file name or file path given by the user in the input.
Post-conditions Change should be made and it should be again input to the system. Input Specification
A file which does not exist is given as the input.
Expected Output Specification
Proper error message identifying the reason for the error.
Pass/Fail Criteria Passed if exception is caught else failed
Assumptions and Constraints
Assume incorrect file name
Dependencies None
Traceability SSRD 3.0 CR-
3.1.3.7 Test Case 8
Table 8: Test Identifier 1 – Test Case 8: Count first level elements
Test Case Number Test Identifier 1 – Test Case 8
Test Item The counter should give a count of the number of first level elements in the XML file given as input for the purpose of counting Test Priority Must have Pre-conditions The xml file should contain first level elements.
Post-conditions The statistics will be archived at the client side.
Input Specification
The file giving the name of the files whose count is to be calculated i.e.: xml_list.dat file and the file