Docsity

Test Completion Criteria: Counting Code Lines, Namespaces, and XML File Format Check, Study Guides, Projects, Research of Software Engineering

Partial preview of the text

Download Test Completion Criteria: Counting Code Lines, Namespaces, and XML File Format Check and more Study Guides, Projects, Research Software Engineering in PDF only on Docsity!

Test Plan and Cases (TPC)

Open Source XML Parser based code count tool

Team Number 23

Ali Afzal Malik Project Manager and Configuration Manager

Harsh Nayak Tester and Web Master

Kunal Kulkarni System Architect and Tester

TPC_IOC1_S06b_T23_V1.4.doc Page i of 45 Version Date: 04/1/

Test Plan and Cases Version 1. Version no x.xx

Vannak Touch Lead Developer

Naman Modi Lead Tester

Matthew Benjamin IV & V

Leonard Cayetano IV & V

Elaine Huang IV & V and Quality Focal Point

TPC_IOC1_S06b_T23_V1.4.doc ii Version Date: 4/1/

Test Plan and Cases Version 1. Version no x.xx

Version History

Date Author Version Changes made Rationale 02/08/06 Vannak Touch 1.  Original draft  Initial draft 02/21/06 Vannak Touch 1.  Additional test cases  Changes made according to RLCA ARB 02/25/06 Vannak Touch 1.  Additional test completion criteria  Missing 02/25/06 Vannak Touch, Ali

 New Test Cases, Test Priority, Verification Matrix, Test Completion Criteria, Change Summary, and Glossary  After Performing Peer Review 04/1/06 Vannak Touch 1.  Revision of the following sections: 1.1, 2.1, 2.2, 2.3, 3.6, 4.1, and 4.  Changes made according to TA suggestions

TPC_IOC1_S06b_T23_V1.4.doc iv Version Date: 4/1/

Version no x.xx

Table of Contents

TEST PLAN AND CASES (TPC).......................................................................................I

VERSION HISTORY........................................................................................................IV

TABLE OF CONTENTS....................................................................................................V

TABLE OF TABLES........................................................................................................IX

  • Test Plan and Cases Version 1.
  • A.1. Introduction TABLE OF FIGURES.......................................................................................................XI
    • A.1.1 Purpose of the Test Plan
    • A.1.2 References
    • A.1.3 Change Summary
  • A.2. Test Strategy and Preparation
    • A.2.1 Hardware preparation
    • A.2.2 Software preparation
    • A.2.3 Requirements Traceability
    • A.2.4 Other pre-test preparations
  • A.3. Test Identification
    • A.3.1 Test Identifier 1: Capability Requirement
      • 3.1.1 Test Level............................................................................................................................................
      • 3.1.2 Test Class............................................................................................................................................
      • 3.1.3 Test Case.............................................................................................................................................
        • A.3.1.3.1 Test Case 1...............................................................................................................................
        • A.3.1.3.2 Test Case 3...............................................................................................................................
        • A.3.1.3.3 Test case 4................................................................................................................................
        • A.3.1.3.4 Test Case 5...............................................................................................................................
        • A.3.1.3.5 Test Case 6...............................................................................................................................
        • A.3.1.3.6 Test Case 7...............................................................................................................................
  • TPC_IOC1_S06b_T23_V1.4.doc v Version Date: 4/1/
  • Test Plan and Cases Version 1. - A.3.1.3.7 Test Case 8............................................................................................................................... Version no x.xx - A.3.1.3.8 Test Case 9............................................................................................................................... - A.3.1.3.9 Test Case 10.............................................................................................................................
    • A.3.2 Test Identifier 2: xml_list.dat
      • 3.2.1 Test Level............................................................................................................................................
      • 3.2.2 Test Class............................................................................................................................................
      • 3.2.3 Test Case.............................................................................................................................................
        • A.3.2.3.1 Test Case 1...............................................................................................................................
        • A.3.2.3.2 Test Case 2...............................................................................................................................
        • A.3.2.3.3 Test Case 3...............................................................................................................................
        • A.3.2.3.4 Test Case 4...............................................................................................................................
    • A.3.3 Test Identifier 3: line_environment.dat
      • 3.3.1 Test Level............................................................................................................................................
      • 3.3.2 Test Class............................................................................................................................................
      • 3.3.3 Test Case.............................................................................................................................................
        • A.3.3.3.1 Test Case 1...............................................................................................................................
        • A.3.3.3.2 Test Case 2...............................................................................................................................
        • A.3.3.3.3 Test Case 3...............................................................................................................................
    • A.3.4 Test Identifier 4: xml_outfile.dat
      • 3.4.1 Test Level............................................................................................................................................
      • 3.4.2 Test Class............................................................................................................................................
      • 3.4.3 Test Case.............................................................................................................................................
        • A.3.4.3.1 Test Case 1...............................................................................................................................
        • A.3.4.3.2 Test Case 2...............................................................................................................................
    • A.3.5 Test Identifier 5: Level of Service (L.O.S)
  • TPC_IOC1_S06b_T23_V1.4.doc vi Version Date: 4/1/
  • Test Plan and Cases Version 1. - 3.5.1 Test Level............................................................................................................................................ Version no x.xx - 3.5.2 Test Class............................................................................................................................................ - 3.5.3 Test Case............................................................................................................................................. - A.3.5.3.1 Test Case 1............................................................................................................................... - A.3.5.3.2 Test Case 2............................................................................................................................... - A.3.5.3.3 Test Case 3............................................................................................................................... - A.3.5.3.4 Test Case 4...............................................................................................................................
    • A.3.6 Agile Test-First
  • A.4. Resources
    • A.4.1 Responsibilities
    • A.4.2 Staffing and Training Needs
    • A.4.3 Other resource allocations
  • A.5. Test Completion Criteria
    • A.5.1 Test Identifier 1: capability requirements
      • 5.1.1 Test Completion Criteria for Test Case 1...........................................................................................
      • 5.1.2 Test Completion Criteria for Test Case 2...........................................................................................
      • 5.1.3 Test Completion Criteria for Test Case 3...........................................................................................
      • 5.1.4 Test Completion Criteria for Test case 4............................................................................................
      • 5.1.5 Test Completion Criteria for Test Case 5...........................................................................................
      • 5.1.6 Test Completion Criteria for Test Case 6...........................................................................................
      • 5.1.7 Test Completion Criteria for Test Case 7...........................................................................................
      • 5.1.8 Test Completion Criteria for Test Case 8...........................................................................................
      • 5.1.9 Test Completion Criteria for Test Case 9...........................................................................................
      • 5.1.10 Test Completion Criteria for Test Case 10.......................................................................................
    • A.5.2 Test Identifier 2: xml_list.dat
      • 5.2.1 Test Completion Criteria for Test Case 1...........................................................................................
      • 5.2.2 Test Completion Criteria for Test Case 2...........................................................................................
  • TPC_IOC1_S06b_T23_V1.4.doc vii Version Date: 4/1/
  • Test Plan and Cases Version 1. - 5.2.3 Test Completion Criteria for Test Case 3........................................................................................... Version no x.xx - 5.2.4 Test Completion Criteria for Case 4...................................................................................................
    • A.5.3 Test Identifier 3: line_environment.dat
      • 5.3.1 Test Completion Criteria for Test Case 1...........................................................................................
      • 5.3.2 Test Completion Criteria for Test Case 2...........................................................................................
      • 5.3.3 Test Completion Criteria for Test Case 3...........................................................................................
    • A.5.4 Test Identifier 4: xml_outfile.dat
      • 5.4.1 Test Completion Criteria for Test Case 1...........................................................................................
    • A.5.5 Test Identifier 5: Level of Service (L.O.S)
      • 5.5.1 Test Completion Criteria for Test Case 1...........................................................................................
      • 5.5.2 Test Completion Criteria for Test Case 2...........................................................................................
      • 5.5.3 Test Completion Criteria for Test Case 3...........................................................................................
        • A.5.5.3.1 Test Case 4...............................................................................................................................
  • A.6. Glossary
  • TPC_IOC1_S06b_T23_V1.4.doc viii Version Date: 4/1/
  • Table 1: Test Identifier 1 – Test Case 1 Statistics for user defined elements............................................................... Table of Tables
  • Table 2: Test Identifier 1 – Test Case 2: Give the output in a CSV format also..........................................................
  • Table 3: Test Identifier 1 – Test Case 3: Count Source Lines of Code........................................................................
  • Table 4: Test Identifier 1 – Test Case 4: Count Comments..........................................................................................
  • Table 5: Test Identifier 1 – Test Case 5: Count namespace..........................................................................................
  • Table 6: Test Identifier 1 – Test Case 6: output file summary......................................................................................
  • Table 7: Test Identifier 1 – Test Case 7: Exception Handling......................................................................................
  • Table 8: Test Identifier 1 – Test Case 8: Count first level elements.............................................................................
  • Table 9: Test Case Number Test Identifier 1 – Test Case 9: Count first level complex type elements.......................
  • Table 10: Test Identifier 1 – Test Case 10: Count average and max number of levels for 1st level complex type.....
  • Table 11: Test Identifier 2 – Test Case 1: xml_list.dat is empty..................................................................................
  • Table 12: Test Identifier 2 – Test Case 2: xml_list is a dat file....................................................................................
  • Table 13: Test Identifier 2 – Test Case 3: file listed in xml_list.dat.............................................................................
  • Table 14: Test Identifier 2 – Test Case 4: xml_list.dat exists.......................................................................................
  • Table 15: Test Identifier 3 – Test Case 1: check Intro..................................................................................................
  • Table 16: Test Identifier 3 – Test Case 2: check License.............................................................................................
  • Table 17: Test Identifier 3 – Test Case 3: check Details..............................................................................................
  • Table 18: Test Identifier 4 – Test Case 1: check individual sum..................................................................................
  • Table 19: Test Identifier 4 – Test Case 2: user-defined parameter in lines_environment.dat......................................
  • Table 20: Test Identifier 5 – Test Case 1: Accuracy.....................................................................................................
  • Table 21: Test Identifier 5 – Test Case 2: Availability.................................................................................................
  • Table 22: Test Identifier 5 – Test Case 3: Correctness.................................................................................................
  • Table 23: Test Identifier 5 – Test Case 4: Performance................................................................................................
  • TPC_IOC1_S06b_T23_V1.4.doc ix Version Date: 4/1/
  • Table 24: Stakeholder Responsibilities......................................................................................................................... Test Plan and Cases (TPC) Table of Contents
  • Table 25: Training type and related information..........................................................................................................
  • Table 26: Test Completion Criteria: Test Identifier 1 – Test Case 1: Statistics...........................................................
  • Table 27: Test Completion Criteria: Test Identifier 1 – Test Case 2: Output in a CSV format...................................
  • Table 28: Test Completion Criteria: Test Identifier 1 – Test Case 3: Count Source Lines of Code............................
  • Table 29: Test Completion Criteria: Test Identifier 1 – Test Case 4: Count Comments..............................................
  • Table 30: Test Completion Criteria: Test Identifier 1 – Test Case 5: Count namespace..............................................
  • Table 31: Test Completion Criteria: Test Identifier 1 – Test Case 6: output file summary.........................................
  • Table 32: Test Completion Criteria: Test Identifier 1 – Test Case 7: Exception Handling..........................................
  • Table 33: Test Completion Criteria: Test Identifier 1 – Test Case 8: Count first level elements.................................
  • Table 34: Test Completion Criteria: Test Identifier 1 – Test Case 9: Count first level complex type elements..........
  • 1st level complex type................................................................................................................................................... Table 35: Test Completion Criteria: Test Identifier 1 – Test Case 10: Count average and max number of levels for
  • Table 36: Test Completion Criteria: Test Identifier 2 – Test Case 1: xml_list.dat is empty........................................
  • Table 37: Test Completion Criteria: Test Identifier 2 – Test Case 2: xml_list is a dat file..........................................
  • Table 38: Test Completion Criteria: Test Identifier 2 – Test Case 3: xml_list .dat contains xml files........................
  • Table 39: Test Completion Criteria: Test Identifier 2 – Test Case 4: xml_list.dat exists.............................................
  • Table 40: Test Completion Criteria: Test Identifier 3 – Test Case 1: Intro..................................................................
  • Table 41: Test Completion Criteria: Test Identifier 3 – Test Case 2: License.............................................................
  • Table 42: Test Completion Criteria: Test Identifier 3 – Test Case 3: Details...............................................................
  • Table 43: Test Completion Criteria: Test Identifier 4– Case 1: Individual sum...........................................................
  • Table 44: Test Completion Criteria: Test Identifier 5 – Test Case 1: Accuracy...........................................................
  • Table 45: Test Completion Criteria: Test Identifier 5 – Test Case 2: Availability.......................................................
  • Table 46: Test Completion Criteria: Test Identifier 5 – Test Case 3: Correctness.......................................................
  • Table 47: Test Completion Criteria: Test Identifier 5 – Test Case 4: Performance.....................................................
  • TPC_IOC1_S06b_T23_V1.4.doc x Version Date: 4/1/

Test Plan and Cases Version no x.xx

Table of Figures

TPC_IOC1_S06b_T23_V1.4.doc xi Version Date: 4/1/

Test Plan and Cases

http://greenbay.usc.edu/csci577/spring2006/projects/team23/RLCA/

SSAD_RLCA_S06b_T23_V2.2.doc

Quality Management Plan (QMP)

http://greenbay.usc.edu/csci577/spring2006/projects/team23/RLCA/

QMP_IOC0_S06b_T23_V1.1.doc

CSCI 588

http://den.usc.edu/

A.1.3 Change Summary Version Number Change made Rationale

 Original Draft  Initial draft

 Additional Capability Test Cases  Changes Made according

to RLCA

 Additional test completion criteria

for above test cases

 Missing

 New Test Cases: Level of Services  Added Test Priority for each test case  Verification Matrix added to section 2.  Added Test Completion Criteria  Added Change Summary section 1.  Glossary

 After performing peer

review

 Revision of the following sections:

1.1, 2.1, 2.2, 2.3, 3.6, 4.1, and 4.

 Changes made according

to TA suggestions

TPC_IOC1_S06b_T23_V1.4.doc 13 Version Date: 4/1/

Test Plan and Cases A.2. Test Strategy and Preparation A.2.1 Hardware preparation

No hardware preparation is required because the client and user have the necessary

hardware. Some of the possible hardware includes computer, monitor, and mouse.

A.2.2 Software preparation

This section describes the procedure needed to prepare the software for testing.

1. Xerces-C++, an Open Source XML Parser, which checks for the well-formedness

of the XML source code files.

2. C++ compiler: Visual Studios, gcc, org g++

3. XMLCodeCounter

A.2.3 Requirements Traceability

The following Requirement Verification Matrix specify how each requirement from

SSRD will be verified either by Testing, Demonstration, Analysis, Simulation, or

Inspection.

The definition for the verification method is the following (taken from csci588 DEN

website).

Inspection:

Examine physical products not produced by the system, such as database structures,

documents, source code, etc., for content and completeness.

Analysis:

Use mathematical models, charts, calculations, graphs, data reduction, etc., to draw

analytical conclusions about whether the requirement has been satisfied.

Demonstration:

Visually observe items produced by the system, such as displays for content and

accuracy, printouts for comparison with independently derived test data, display prompts

when failures are induced, etc.

TPC_IOC1_S06b_T23_V1.4.doc 14 Version Date: 4/1/

Test Plan and Cases complex type elements. 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 provides all the functionalities, as they are required from it. Testing and Demonstration SSRD LOS-5 Test Identifier 5 – Test Case 4 Performance is a measure of how well a given system works. It is measured in terms of the response time taken by the code counter to give the results depending on the size and the complexity of the file which is given as an input to the system. Testing A.2.4 Other pre-test preparations

None identified at this time

TPC_IOC1_S06b_T23_V1.4.doc 16 Version Date: 4/1/

Test Plan and Cases A.3. Test Identification A.3.1 Test Identifier 1: Capability Requirement

The following test cases come from Section 3 of the SSRD.

3.1.1 Test Level

This is a system qualification level.

3.1.2 Test Class

This is a functionality test.

3.1.3 Test Case A.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-

TPC_IOC1_S06b_T23_V1.4.doc 17 Version Date: 4/1/

Test Plan and Cases Specification 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 Constraints None Dependencies None Traceability SSRD 3.0 CR- A.3.1.3.3 Test case 4 Table 4 : Test Identifier 1 – Test Case 4: Count Comments Test Case Number Test Identifier 1 – Test Case 4 Test Item Count of whole and embedded comments along with the blank lines Test Priority Must have Pre-conditions An input file containing XML code. Post-conditions The statistics will be archived at the client side. Input Specification A list of XML source files whose blank lines whole and embedded comments are required to be counted through files called xml_list.dat which contains the list of programs. Expected Output Specification The number of whole and embedded comments along with other information is given as output in a file called xml_outfile.dat and output in CSV format. Pass/Fail Criteria Passed if manual count equals what the program produced else failed. Assumptions and Constraints Assume valid xml file Dependencies None Traceability SSRD 3.0 CR- A.3.1.3.4 Test Case 5

TPC_IOC1_S06b_T23_V1.4.doc 19 Version Date: 4/1/

Test Plan and Cases Table 5 : Test Identifier 1 – Test Case 5: Count namespace Test Case Number Test Identifier 1 – Test Case 5 Test Item Counts the number of namespaces in the xml file. Test Priority Must have Pre-conditions The program to be inputted should contain namespaces. 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- A.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.

TPC_IOC1_S06b_T23_V1.4.doc 20 Version Date: 4/1/