Method for automatically generating test cases aiming at document converters

A test case and automatic generation technology, applied in the direction of instruments, special data processing applications, electrical digital data processing, etc., can solve the problems of low coverage rate and heavy repetitive workload, so as to ensure coverage rate, reduce design workload, eliminate Test the effect of blind spots

Inactive Publication Date: 2013-11-27
BEIJING INFORMATION SCI & TECH UNIV +1
View PDF6 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The technical problem to be solved by the present invention is to provide a method for automatically generating test cases, which is

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for automatically generating test cases aiming at document converters
  • Method for automatically generating test cases aiming at document converters
  • Method for automatically generating test cases aiming at document converters

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] like figure 1 As shown, Embodiment 1 provides a method for automatically generating test cases for document converters, including:

[0038] Step 1. Obtain the formalized test requirements according to the product requirements of the test object, and divide the test function points based on the formalized test requirements;

[0039] Step 2, dynamically instantiate the class objects in the formalized test requirements, and write test data to the class objects to obtain the class object collection containing the test data, and then serialize the class object collection to generate the corresponding test function based on Point XML fragment;

[0040] Step 3, write the XML fragment based on the test function point into the corresponding underlying XML instance document collection, and generate the test case document.

[0041] Here, the product requirements of the test object include UOF2.0 standard documents, conversion scope documents and standard difference documents.

...

Embodiment 2

[0112] According to the system modeling and implementation scheme of the first embodiment, the second embodiment implements a prototype system for automatically generating test cases based on WinForm and .Net Framework4.0.

[0113] The prototype system allows test case designers to select test function points that need to generate test cases, edit test case related information, and then manually enter test data from the system interface or import test data from external data sources, generate test cases and view the test case database.

[0114] The system has designed a system interface for importing test data, and the test data list lists the independent function point slices selected by the test designer and the corresponding test data; the system allows the test designer to manually enter the test data and save the data to text Documentation; the system allows test designers to import test data from external data sources and to modify external data source data. After ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for automatically generating test cases aiming at document converters. The method includes step 1, acquiring formalized test needs according to product needs of test objects, and dividing test function points based on the formalized test needs; step 2, performing dynamic instantiation processing on class objects in the formalized test needs, writing test data in the class objects, acquiring class object sets containing the test data, serializing the class object sets, and generating XML (extensive makeup language) segments based on corresponding test function points; step 3, writing the XML segments based on the test function points in corresponding bottom-layer XML instance document sets, and generating test case documents. The method is independent of an office software interface, the problem of test blind points caused by the fact that office software is insufficiently supportive of standards is avoided, and test case generation is short in time and high in efficiency.

Description

technical field [0001] The invention relates to the technical field of converter testing, in particular to a method for automatically generating test cases for document converters. Background technique [0002] Document format standards are the basis for realizing information resource sharing and open document formats. Although the document format is gradually becoming more open, many standards coexist in the office document industry. As an international standard, OOXML is formulated by a company and has the right to interpret it. From the perspective of technical documents and applications, there are still many patents and copyright restrictions. It is difficult to do so. It is unrealistic to realize the information sharing and interoperability of various document format standards in the short term. In order to realize the two-way conversion of office documents between the Chinese national standard UOF and the international standard OOXML, it is necessary to test the UOF / O...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/21
Inventor 牟永敏
Owner BEIJING INFORMATION SCI & TECH UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products