Visualized automatic testing method and system thereof

An automatic testing system and automatic testing technology, applied in software testing/debugging and other directions, can solve problems such as error-prone, inability to automate, and inconvenience, and achieve the effect of reducing error rate, improving efficiency, and automating software testing.

Active Publication Date: 2014-09-10
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] (1) For each test, it is necessary to write the test program code, which cannot be automated;
[0009] (2) For each test case, the user is required to write the test data into a text file, which is error-prone and not convenient enough;

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
  • Visualized automatic testing method and system thereof
  • Visualized automatic testing method and system thereof
  • Visualized automatic testing method and system thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] Between the terminal APP and the background server, the communication is generally carried out through the agreed protocol format. The agreed protocol format may be a custom format, or a standard protocol format, such as ASN.1 (Abstract Syntax Notation One, Abstract Syntax Notation), IDL (Interface description language, Interface Description Language) and the like.

[0030] In this embodiment, the protocol for interaction between the terminal and the background server is IDL format as an example. In the test of the mobile Internet background server, the IDL file of the target test software is parsed and compiled to generate an XML file read and write routine. The executable test program generates an XML file by mapping the IDL file, generates a copy of the XML file for each test, displays and receives input parameters through a visual interface and updates them to the copy of the XML file, and obtains output parameters and / or or return value.

[0031] figure 1 It is t...

Embodiment 2

[0080] This embodiment is divided into two parts to describe the preparation work before the test and the detailed steps of the test process, including the interaction steps between the user and the test system, and the work steps automatically completed inside the test system. Through these steps, the technical solution of this embodiment is explained.

[0081] For the preparation steps before the test, see figure 2 ,include:

[0082] S201. Receive the IDL file uploaded by the user and the input IP address and port number of the background server.

[0083] The user uploads the IDL file through the front-end page, and fills in the IP number and port number of the machine where the background service program to be tested is located.

[0084] S202. The IDL compiler compiles the IDL file into files with corresponding suffixes .h and .cpp.

[0085] S203. Lex&Yacc parses the IDL file to generate an XML file describing the data format of the IDL protocol.

[0086] ...

Embodiment 3

[0112] According to the same idea of ​​the present invention, the present invention also provides a visual automatic test system, Figure 4 It is a structural block diagram of the visual automatic testing system described in this embodiment, such as Figure 4 As shown, the visual automatic testing system described in this embodiment includes:

[0113] The XML file generating module 401 is used to obtain an interface description language file (IDL file) of the target test software, and generate an XML file by mapping the IDL file according to a preset mapping rule from IDL data types to XML language elements.

[0114] Between the terminal APP and the background server, the communication is generally carried out through the agreed protocol format. The protocol can be in a custom format, or a standard protocol format, such as ASN.1 (Abstract Syntax Notation One, abstract syntax notation), IDL (Interface description language, interface description language), etc. In a pr...

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 visualized automatic testing method and a system thereof. The method includes that an interface definition language (IDL) document of target testing software is obtained, and the IDL document is mapped to generate an extensive markup language (XML) document according to a preset mapping rule from IDL data types to XML elements; the IDL document is analyzed and compiled to generate an executable testing program which contains an XML document read-write routine; when use case testing is required to be preformed for one time, a copy of the XML document is generated for a test case, input parameters in the test case are updated to the XML document copy, the executable testing program is operated to read the input parameters from the corresponding XML document copy of the test case, and output parameter and/or returned values of the test case are obtained. By means of the visualized automatic testing method and the system thereof, the software testing efficiency can be increased, the display of the test case and a test result is further friendly, and problems in programs can be conveniently located.

Description

technical field [0001] The invention relates to the technical field of software automatic testing, in particular to a visual automatic testing method and system thereof. Background technique [0002] With the advent of the mobile Internet era, the number of smartphone terminal users has grown rapidly, and APPs (abbreviation for Application, referring to third-party applications for smartphones) on the terminals are constantly emerging, and the functions of APPs are becoming more and more colorful. The function and performance of the background server (background Server) put forward higher requirements. [0003] Before the mobile Internet APP is officially released, it is necessary to fully test the functions of the APP and the background server, so as to ensure that there will be no failures that will affect the user experience after the official release. [0004] Between the terminal APP and the background server, the communication is generally carried out through the agre...

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/36
Inventor 刘建中
Owner TENCENT TECH (SHENZHEN) CO LTD
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