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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com