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

Interface testing method and device

An interface testing and interface technology, applied in the field of interface testing methods and devices, can solve the problem of high maintenance cost of test cases, achieve the effects of good readability, good maintenance, and reduced maintenance costs

Pending Publication Date: 2019-08-06
MIGU CO LTD
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides an interface testing method and device to solve the problem in the prior art that the maintenance cost of the test case is relatively high when the http interface is automatically tested

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

Examples

Experimental program
Comparison scheme
Effect test

test Embodiment v2

[0107] -----------------Test template 1 corresponds to test case v2.xls

[0108] ----+case_dir2 /

Embodiment v1

[0109] ----------------- Test template 2 corresponds to test case v1.xls

Embodiment v2

[0110] -----------------Test template 2 corresponds to test case v2.xls

[0111] ----+result_case_dir1 /

[0112] -----------------result_test template 1 corresponds to test case v1.xls

[0113] -----------------result_test template 1 corresponds to test case v2.xls

[0114]----+result_case_dir2 /

[0115] -----------------result_test template 2 corresponds to test case v1.xls

[0116] -----------------result_test template 2 corresponds to test case v2.xls

[0117] ----testRobot.exe

[0118] From the above example, it can be obtained that there must be a testRobot.exe test engine file in the working directory of the excel file, and the test case file can be placed in the root directory or subdirectory of the working directory; in addition, the file name of the test case file can be freely appointed , but cannot start with result; in addition, the test result file name is: result_${the corresponding test case file name}, for example, the test result file corresponding to the...

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 embodiment of the invention provides an interface testing method and device. The method comprises the following steps of obtaining an excel file pre-stored with a test file, wherein the test filecomprises a test template file and a test data file corresponding to each test template in the test template file, the test template file is stored in at least one first worksheet page in the excel file, and the test data file is stored in at least one second worksheet page in the excel file; obtaining a target test template from the first set page, and obtaining a target test data file corresponding to the target test template from the second set page; and testing the http interface according to the target test template and the target test data file. According to the embodiment of the invention, the separation of the test template and the test data is realized, and the maintenance cost of the test case is reduced.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of software testing, in particular to an interface testing method and device. Background technique [0002] In the existing interface testing work, there are a large number of http interface testing scenarios. Among them, at present, when performing automated testing on the http interface, it is usually tested with the help of an automated testing framework (such as robot framework), which requires users to learn the test case specification of the framework, write test cases in the framework, and write a small amount of test cases if necessary. script code, and after making the test cases, the framework executes the test cases in batches to get the test results. [0003] However, this testing method has high learning costs, time-consuming test case writing, poor readability of test cases, and high test case maintenance costs. Contents of the invention [0004] Embodiments of the...

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
IPC IPC(8): G06F11/36
CPCG06F11/3672G06F11/3688
Inventor 李伟
Owner MIGU 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