Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for realizing batch comparison test of XML-JSON (Extensible Markup Language-JavaScript Object Notation)

A technology of XML-JSON and test method, applied in the field of batch comparison test method and device for realizing XML-JSON, can solve problems such as data problems, increased operation risks of projects, etc.

Pending Publication Date: 2020-10-27
北京思特奇信息技术股份有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing conversion of XML format to JSON format will cause data problems. At this time, directly implementing the converted data on the project will increase the operational risk of the project, and there is no relevant testing technology solution in the existing technology to solve the format conversion bring about problems

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 and device for realizing batch comparison test of XML-JSON (Extensible Markup Language-JavaScript Object Notation)
  • Method and device for realizing batch comparison test of XML-JSON (Extensible Markup Language-JavaScript Object Notation)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The principles and features of the present invention will be described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0042] Such as figure 1 As shown, a batch comparison test method for realizing XML-JSON provided by the embodiment of the present invention, the method includes:

[0043] S1, calling a C program to generate an XML data file;

[0044] It should be noted that, in some examples, the XML data file can be obtained by: inputting the data to be queried, executing a C language script, and obtaining the XML data file; for example: file name: xml service name, file format: {'ID': 'Number', 'XML': 'XML message'};

[0045] S2, calling the JAVA program to obtain the JSON data file;

[0046] It should be noted that, in some examples, the JSON data file can be obtained by: inputting the data to be queried, executing the JAV...

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 discloses a method and a device for realizing the batch comparison test of XML-JSON (Extensible Markup Language-JavaScript Object Notation) and relates to the field of software test. Themethod comprises the steps of calling a program C to generate an XML data file, calling a JAVA program to obtain a JSON data file, comparing the XML data file with the JSON data file one by one through a comparison program, and obtaining comparison results in batches. The batch comparison test of the XML-JSON is realized, the problem of the data file due to conversion is known in advance, modification and adjustment are carried out in time, and the risk of project implementation is reduced.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a batch comparison testing method and device for realizing XML-JSON. Background technique [0002] Under the tide of the Internet, many systems have launched cloud projects, replacing small computers with X86 hosts. Before the replacement, the program on the minicomputer is in C language, and the service output parameter is in XML format. After the replacement, the program on the X86 host computer is a JAVA statement, and the service output parameter is JSON. The existing conversion of XML format to JSON format will cause data problems. At this time, directly implementing the converted data on the project will increase the operational risk of the project, and there is no relevant testing technology solution in the existing technology to solve the format conversion bring about problems. Contents of the invention [0003] The technical problem to be solved by the present inventi...

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): G06F11/36G06F40/194G06F40/154G06F40/143
CPCG06F11/3604G06F40/194G06F40/154G06F40/143
Inventor 贾莎莎
Owner 北京思特奇信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products