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

A visual automatic testing method and system thereof

An automatic test system and automatic test technology, applied in the direction of software testing/debugging, etc., can solve problems such as error-prone, not convenient enough, and cannot be automated, etc., to achieve the effect of reducing error rate, improving efficiency, and automating software testing

Active Publication Date: 2018-03-27
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF3 Cites 1 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
  • A visual automatic testing method and system thereof
  • A visual automatic testing method and system thereof
  • A visual 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 can 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), etc.

[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 the flow ...

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

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 visual automatic testing method and system thereof. The method includes: obtaining an IDL file of target testing software, and mapping the IDL file to generate an XML file according to a preset mapping rule from IDL data type to XML element; The file is parsed and compiled to generate an executable test program that contains XML file read and write routines; when a use case test needs to be performed, a copy of the XML file is generated for the test case, and the input in the test case Parameters are updated in the copy of the XML file, and the executable test program is run, and the executable test program reads the input parameters from the copy of the XML file corresponding to the test case to obtain the output parameters of the test case and / or return value. The invention can improve the testing efficiency of software testing, can make the display of test cases and test results more friendly, and can locate problems in programs more conveniently.

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 Patents(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products