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

Automatic interface testing method and device

An automated test and interface technology, applied in the communication field, can solve the problems of ATFS script execution time, high maintenance cost, test data and test script are not completely independent, etc.

Pending Publication Date: 2020-09-11
BANK OF CHINA
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Automated testing using ATFS requires data preparation in advance, and the execution of test scripts depends on environmental data. The test data and test scripts are not completely independent; the frequency of interface changes is generally higher than that of interface changes. If the interface changes, each test needs to be maintained manually Scripts have high maintenance costs; in addition, ATFS takes a long time to execute scripts, which cannot meet the needs of rapid delivery of agile projects

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 interface testing method and device
  • Automatic interface testing method and device
  • Automatic interface testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0027] In the description of this specification, the words "comprising", "comprising", "having", "containing" and so on are all open terms, meaning including but not limited to. A description referring to the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one of the present application. Examples or examples. In this specification, schematic representations of the above terms do not ne...

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 provides an automatic interface testing method and device, and the method comprises the steps: obtaining a packaging step in a testing script of a tested interface, wherein the packagingstep is formed through the packaging of a plurality of steps in the testing script, the packaging step comprises a call parameter, and enabling the call parameter to comprise a testing data identification; obtaining test data corresponding to a test script based on the test data identifier, with the test data including basic message structure data, an expected value, and a position of the expected value in returned message data; adjusting basic message structure data in the test data to obtain adjusted test data; executing a test script based on the adjusted test data to obtain returned message data; obtaining an actual return value in the return message data based on the position of the expected value in the return message data; and comparing the expected value with the actual return value to obtain a test result. The interface can be automatically tested, the efficiency is high, and test data and scripts can be separated.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to an interface automatic testing method and device. Background technique [0002] Interface automation testing can bring efficient defect monitoring and quality supervision capabilities to large and complex systems. The requirements for interface automation testing at this stage are to reduce the difficulty of script writing, reduce script maintenance costs, and improve data quality. Independence from scripts, reducing the time and cost of regression testing, and meeting the needs of rapid iteration of agile projects. The existing method is to test through the customized GUI automated testing tool ATFS, first write transaction-level scripts, then combine transaction-level scripts into scenario-level scripts, and verify the correctness of system functions by executing scenario-level scripts. Automated testing using ATFS requires data preparation in advance, and the execution...

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
CPCG06F11/3684G06F11/3688
Inventor 林丽云张聪纪锴
Owner BANK OF CHINA
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