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

Log-driven interface automatic test method and system

An automated testing and logging technology, applied in software testing/debugging, error detection/correction, special data processing applications, etc., can solve problems such as difficult to ensure long-term test stability, achieve convenient interface automated testing, simplify the construction process, reduce cost effect

Inactive Publication Date: 2018-09-11
SHANGHAI CTRIP COMMERCE CO LTD
View PDF8 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is to overcome the defect that the interface automation test in the prior art writes the use case through the unit test framework, which leads to the need to continuously maintain the test case code, and it is difficult to ensure the stability of the long-term test, and provides a log-driven Interface automated testing method and system

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
  • Log-driven interface automatic test method and system
  • Log-driven interface automatic test method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention is further illustrated below by means of examples, but the present invention is not limited to the scope of the examples.

[0024] Such as figure 1 As shown, the present invention provides a log-driven interface automated testing method, comprising the following steps:

[0025] Step 101, query the log of the production environment and import it into the local database;

[0026] Step 102, for each log, according to the mock interface of the log, make a request under different test environments, and obtain the return log messages under different test environments;

[0027] Step 103, comparing the returned log messages under different test environments, and saving the comparison results;

[0028] Step 104, generate a report of the comparison result and output it to the front-end page for display.

[0029] Wherein, in step 101, the es log of the production environment is queried to detect whether there is a log, and if so, the log is imported into t...

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 log-driven interface automatic test method and system. The log-driven interface automatic test method includes the following steps that S1, logs of the production environmentare queried and guided into a local database; S2, for each log, requesting is carried out in different test environments according to mock interfaces of the logs, and return log messages in the different test environments are obtained; S3, the return log messages in the different test environments are compared, and comparison results are stored. According to the log-driven interface automatic test method and system, production logs related to the interfaces are dynamically collected through es interfaces and downloaded to the local database, and mock testing is carried out according to the messages, interface automatic testing can be conveniently carried out accordingly, the automatic interface building process is simplified, and the interface automatic test cost is reduced.

Description

technical field [0001] The invention relates to an interface automation testing technology, in particular to a log-driven interface automation testing method and system. Background technique [0002] In the existing technology, the current interface automation test is in the form of writing use cases through the unit test framework, but this form is limited by the writer's familiarity with the interface implementation, and requires continuous maintenance of test case codes, making it difficult to ensure long-term test stability. Contents of the invention [0003] The technical problem to be solved by the present invention is to overcome the defect that the interface automation test in the prior art writes the use case through the unit test framework, which leads to the need to continuously maintain the test case code, and it is difficult to ensure the stability of the long-term test, and provides a log-driven Interface automated testing method and system. [0004] The pre...

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/36G06F17/30
CPCG06F11/3684G06F11/3688
Inventor 纪春宇陈亮
Owner SHANGHAI CTRIP COMMERCE 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