Automatic test method and device for document format conversion

A document format and automatic test technology, applied in software testing/debugging, special data processing applications, instruments, etc., can solve problems such as low efficiency and quality of manual testing, errors in document comparison process, and huge testing workload, etc., to achieve automation The effect of testing, high efficiency and accuracy, flexibility and rational evaluation

Inactive Publication Date: 2011-12-21
BEIJING INFORMATION SCI & TECH UNIV +1
View PDF5 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there are two problems in this manual testing method: first, the testing workload is huge, and the efficiency and quality of manual testing are low.
According to analysis and statistics, there are more than 200 commonly used functions of word processing alone, and there are about 848 function points. For each function point, different test cases need to be designed according to its attribute range or the enumeration value stipulated in the standard. Therefore, the number of test cases used to test all function points will increase exponentially, which brings great pressure to the test work, especially the comparison between the source document and the target document, and reduces the efficiency of the test work
And due to the large number of test cases, it is easy to cause errors in the document comparison process and reduce the quality of test work
Second, some function points may not be able to be tested manually, for example, the existing office software does not fully support the UOF standard
Take the shadow function point of the word processing part as an example, the UOF1.1 standard supports the "X offset" and "Y offset" of the shadow, but the shadow offset cannot be given quantitatively in Yongzhong software
Therefore, only using office software to verify the attributes of the relevant function points of the source document and the target document will make the testing work restricted by the office software, which will bring difficulties and deviations to the testing work

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
  • Automatic test method and device for document format conversion
  • Automatic test method and device for document format conversion
  • Automatic test method and device for document format conversion

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

[0026] The document format conversion method and device provided by the present invention compare whether the content and format of the document before and after conversion are consistent according to the underlying code of the document, without resorting to a software front-end interface for editing and viewing the document. Consistent attributes contained in the underlying code indicate that there is no error in the process of document format conversion. On the contrary, if a certain attribute contained in the underlying code is inconsistent, it indicates that content or format distortion occurs during document format conversion. Since most existing standards describe documents based on XML, it is possible to directly read the underlying XML code of the document and extract the corresponding attribute information data...

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 document process technology. A document format conversion method provided by the invention comprises the following comparing and assessing steps: a primitive attribute conversion step, a inter-attribute comparison step, and an assessment step. In the primitive attribute conversion step, primitive attributes of a source document and a target document are all converted to uniformly defined inter-attributes. In the inter-attribute comparison step, the inter-attributes of the source document and the target document are compared. In the assessment step, whether the document format conversion results are correct or not can be assessed according to the inter-attribute comparison results. The invention avoids using document authoring software of document foreground and a display interface thereof, but directly processes bottom codes of document of document background, which can efficiently realize automatic test to the document format conversion results. Compared with the present manual test method, the method for automatically testing document format conversion has higher efficiency and accuracy, can divide the test to the entire document into tests to every functional point and attribute according to different important degrees or different functions, and can more flexibly and reasonably assess the document conversion results.

Description

technical field [0001] The invention relates to document processing technology, in particular to a method and device for automatically testing document format conversion results based on XML codes. Background technique [0002] Documents are widely used information resources, but currently there are more than 10,000 kinds of documents in the world, and there are more than 300 commonly used document formats, and the compatibility with each other is very poor. In order to achieve better compatibility among various document formats, many document format standards are provided in the prior art. Extensible Markup Language XML [0003] (eXtensible Markup Language) has become the basis for describing various document format standards due to its verifiability, scalability and interoperability. At present, there are many document format standards based on XML, such as ODF (Open Document Format) organized by OASIS, OOXML (Office Open XML Format) of Microsoft Corporation (Microsoft),...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F17/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