Docsity

Test Completion Criteria: XML File Analysis, Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
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
Vannak Touch Lead Developer
Naman Modi Lead Tester
Matthew Benjamin IV & V
Leonard Cayetano IV & V
Elaine Huang IV & V and Quality Focal Point
4/1/06
TPC_IOC1_S06b_T23_V1.4.doc Version Date: 04/1/06
Page i of 43
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b

Partial preview of the text

Download Test Completion Criteria: XML File Analysis and more Study Guides, Projects, Research Computer Science 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

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 Version Date: 04/1/

Page i of 43

Test Plan and Cases Version 1.

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

ii

Test Plan and Cases Version 1.

Table of Contents

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

VERSION HISTORY ...................................................................................................... III

TABLE OF CONTENTS.................................................................................................IV

TABLE OF TABLES ....................................................................................................VIII

TABLE OF FIGURES .....................................................................................................X

  1. Introduction .....................................................................................................................................................

1.1 Purpose of the Test Plan ..........................................................................................................................

1.2 References ...............................................................................................................................................

1.3 Change Summary.....................................................................................................................................

  1. Test Strategy and Preparation ..........................................................................................................................

2.1 Hardware preparation ..............................................................................................................................

2.2 Software preparation................................................................................................................................

2.3 Requirements Traceability.......................................................................................................................

2.4 Other pre-test preparations.......................................................................................................................

  1. 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...............................................................................................................................

3.1.3.2 Test Case 3...............................................................................................................................

3.1.3.3 Test case 4................................................................................................................................

3.1.3.4 Test Case 5...............................................................................................................................

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

iv

v

Test Plan and Cases

Test Plan and Cases

Table of Figures

Figure 1:

.............................................................................................. Error! Bookmark not defined.

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

Test Plan and Cases

1. Introduction

1.1 Purpose of the Test Plan

The purpose of the test plan is to identify the item being tested, the features to be tested,

the testing tasks to be performed, the personnel responsible for each task, and the risk

associated with testing. The item to be tested is broken up into the following main areas:

capability requirements, xml_list, line_environment, and xml_outfile. In each category,

the main testing tasks to be performed include mostly functionality test cases. A person is

assigned to each test case group.

1.2 References

“Open Source XML Parser based code count tool” Project Description

http://greenbay.usc.edu/csci577/spring2006/site/projects/description/project14.htm

LeanMBASE Guidelines version 1.

http://greenbay.usc.edu/csci577/spring2006/site/guidelines/LeanMBASE_Guidelines_V

.5.pdf

Team website

http://greenbay.usc.edu/csci577/spring2006/projects/team23/index.html

Life Cycle Plan (LCP)

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

23_V1.08.doc

System and Software Requirements Definition (SSRD)

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

_T23_V1.9.doc

System and Software Architecture Description (SSAD)

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

_T23_V2.2.doc

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

Test Plan and Cases

2. Test Strategy and Preparation

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.

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

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 Version Date: 4/1/

Test Plan and Cases

Testing:

Measure, record, and evaluate data obtained during test using real and/or simulated data.

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

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

Test Plan and Cases

3. Test Identification

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

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 Version Date: 4/1/

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

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

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-

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

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

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