CN109189684B - Python-based automatic interface testing method - Google Patents

Python-based automatic interface testing method Download PDF

Info

Publication number
CN109189684B
CN109189684B CN201810987431.XA CN201810987431A CN109189684B CN 109189684 B CN109189684 B CN 109189684B CN 201810987431 A CN201810987431 A CN 201810987431A CN 109189684 B CN109189684 B CN 109189684B
Authority
CN
China
Prior art keywords
test
interface
python
information
case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810987431.XA
Other languages
Chinese (zh)
Other versions
CN109189684A (en
Inventor
王雪涵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201810987431.XA priority Critical patent/CN109189684B/en
Publication of CN109189684A publication Critical patent/CN109189684A/en
Application granted granted Critical
Publication of CN109189684B publication Critical patent/CN109189684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a Python-based interface automatic test method which comprises the steps of defining an interface template and a test case template, reading a test case, calling an interface to send a request, analyzing an interface return message and outputting a test report. The Python-based interface automatic testing method provided by the invention follows the basic principle of a testing framework, separates the service logic from the testing script, and separates the testing script from the testing data, so that the testing script can be changed at any time according to the requirements, and the requirements on the coding level of a tester can be greatly reduced.

Description

Python-based automatic interface testing method
Technical Field
The invention relates to the technical field of automated testing, in particular to an automated testing method for an interface based on Python.
Background
The interface test is a test for testing interfaces among components of the system, and is mainly used for detecting interaction points between an external system and the system and between subsystems inside the system. The key point of the test is to check the exchange of data, transfer and control management processes, mutual logic dependency relationship between systems and the like. Most of the current interfaces are used in http protocol, and the basic principle of the test is to simulate a client to send data to a server to obtain corresponding response data, so as to judge whether the interfaces can normally perform data exchange.
The manual test interface is also a test mode, the manual test interface is for each test case, interface parameters need to be modified each time, the expected value of the case needs to be compared one by one after the interface is called, whether the returned value of the interface is consistent with the expected value is judged, if the returned value of the interface is consistent with the expected value, the returned value of the interface passes through the result, reasons need to be found out if the returned value of the interface is inconsistent with the expected value, the result is fed back to developers, corresponding modification is convenient to be carried out, the manual test interface is complex work, especially when the test case reaches a certain order of magnitude, the workload is doubled, the test efficiency is low, and the quality cannot be completely guaranteed. How to improve the test efficiency on the premise of ensuring the test quality, reduce the workload of testers and liberate labor force becomes the problem that the interface test needs to be solved urgently.
Many tools for automated interface testing are available on the market, such as Postman, JMeter, Robot Framework, etc., and various testing tools have different features. Interface testing is carried out on a tool, such as JMeter, which is focused on performance testing, and a test report cannot be generated due to the fact that the tool is a bit large and small in size; postman needs to know and master details of a front-end page to a certain extent through JavaScript script control; the Robot Framework is used as an open source tool, the bottom layer is developed by python, and the Robot Framework has strong library functions to support various test scenes.
Although the interface testing tools have rich choices and basically meet the requirements of simple interface testing, none of the tools can be completely matched to be suitable for each project because different projects have different data processing and business logic processing modes, and the utilization tools need to be familiar with the operation flow to complete various necessary configurations and are not flexible enough. A more flexible interface testing framework needs to be developed by itself to accommodate different project environments.
Disclosure of Invention
The invention aims to overcome the defects in the background technology, provides an automatic interface testing method based on Python, separates service logic from a testing script and separates the testing script from testing data according to the basic principle of a testing framework, can be changed at any time according to requirements, and can greatly reduce the requirements on the coding level of a tester.
In order to achieve the technical effects, the invention adopts the following technical scheme:
the automatic test method of the interface based on Python comprises the following steps:
A. writing a test script by adopting Python, writing a test case on a business layer, and storing the test case by adopting a CSV file format;
B. reading test cases and interface information, and storing the read information as a dictionary format of key value pairs;
C. calling different request functions according to the request method of the tested interface, calling the interface and returning a response message;
D. analyzing the JSON response message, setting assertion, and extracting useful return fields;
E. outputting a test report in a CSV file format;
the Python-based interface automatic test method reads a test case from a CSV file, reads interface information from an Excel file, splices read interface input data into interface parameters, calls an interface, analyzes JSON data returned by the interface, extracts useful fields, and compares the useful fields with an expected return value of the test case, thereby realizing the interface automatic test;
in the Python-based interface automatic test method, a Robot Framework test tool is abandoned, the Python is directly adopted to compile a test script, so that the code amount is greatly reduced, and the reading speed of the program is effectively improved by adopting a CSV file access test case mode, so that the problem of low test efficiency is fundamentally solved, and finally, a simple and clear test report is output in a user-defined mode, so that the test result and the defect positioning are clear at a glance, and the work burden of a tester is reduced.
Further, the step a specifically includes:
A1. defining a test case compiling format, compiling according to columns, and defining a format of interface information;
A2. writing a test script by adopting Python, and writing a test case on a business layer;
A3. and storing the test case in a CSV file format, and storing the interface information in an Excel file format.
Further, the test case writing format is as follows: the first column is the case number, the second column is the case content, the third column is the return value field expected by the case, and the fourth column is the field value corresponding to the return value field.
Further, the interface information at least includes an IP, a domain name, port information, and a request type of the test interface server.
Further, the step B specifically includes:
B1. packaging a function for operating an Excel file for reading test interface information;
B2. installing a function for operating the CSV file to read the test case information;
B3. calling a self-defined function for operating the CSV file format and a self-defined function for operating the Excel file format, and respectively reading a test case and a test interface;
B4. and storing the read interface information and the test case information in a dictionary in a key value pair mode, recording the length of the dictionary, and circularly reading.
Further, the step C specifically includes:
C1. judging the read information of the interface server;
C2. filling the read test data into an interface parameter dictionary to form complete interface parameter information;
C3. and calling the corresponding request function according to the request method of the tested interface and returning the corresponding response message.
Further, the step D specifically stores the JSON packet in a dictionary in the form of a key-value pair and matches the expected return value field name according to the key name.
Further, the test report at least includes the total number of test cases, the test result, the number of failed test cases, the interface return message and the failure reason analysis when used for testing.
Compared with the prior art, the invention has the following beneficial effects:
the automatic test method for the Python-based interface mainly comprises the steps of layering nested JSON according to JSON data returned by the interface, storing useful return value information of each layer into a list, and comparing the useful return values of different layers with all expected values respectively.
Drawings
FIG. 1 is a flow chart of a test using the automated test Framework tool Robot Framework.
Fig. 2 is a test flow chart of the Python-based interface automation test method of the present invention.
Detailed Description
The invention will be further elucidated and described with reference to the embodiments of the invention described hereinafter.
Example (b):
fig. 1 shows a test flow chart of interface test performed by a mainstream automatic test tool Robot Framework at present, the tool is characterized by simple use, very rich library, capability of writing test cases like programming, and support of development system keywords, and the architecture of the tool is a universal automated test Framework (ATDD) for acceptance test and acceptance test driven development, and has an easy-to-use table for organizing test process and test data.
The automatic testing process comprises the following steps: the test cases, interface addresses, and expected return values are first saved in constant form, since these three data must remain unchanged throughout the test. And then, self-defining an interface keyword by utilizing the characteristic of supporting the keywords of the development system, wherein the keyword is a method or a function, and the method comprises four steps of constructing interface parameters, calling an interface, acquiring an interface return value and converting the interface return value into a JSON character string.
When building a parameter, since the test case is also a part of the parameter, the test case needs to be defined as a variable. The user-defined key words have the advantages of simplifying codes and improving the multiplexing rate, and if the interface changes, only the interface constant needs to be modified.
And writing a test case, taking the test case as input data, calling interface keywords, extracting fields needing to be compared from interface return values, comparing the fields with expected return values defined in advance, if the fields are consistent, passing the test case, and otherwise, failing the test case.
And when the execution of the use case is finished, the Robot Framework generates a report in an html format, and the report link is clicked, so that the result of each step of the use case can be checked, and the failure reason can be located.
Practice shows that the Robot Framework is adopted to realize that the automatic test code quantity of the interface is too large, once the test case is changed or the expected value is changed, the test cases need to be modified one by one, the workload is still huge, and the maintenance is difficult; and the use case running time is too long, and although the efficiency is obviously improved compared with the manual test, the ideal effect is still not achieved.
In addition, each test case has a corresponding html test report, but if the number of failed test cases is large, the test report is checked with a large workload, because only which step the code goes to is wrong can be seen from the existing test report, but to exactly find out the root cause of the error, namely which field is not matched with the expected value, the JSON message returned by the case needs to be checked, so that the workload is further increased.
From the above, the current interface testing method mainly has the following problems: the script amount is too large, and the maintenance is difficult; the script has long running time and low efficiency; the test report information quantity is too large, and bug positioning is difficult.
In view of the above technical problems, the present invention discloses a Python-based automated interface testing method, as shown in fig. 2, specifically comprising the following steps:
A. writing a test script by adopting Python, writing a test case on a business layer, and storing the test case by adopting a CSV file format;
A1. defining a test case compiling format, compiling according to columns, and defining a format of interface information;
A2. writing a test script by adopting Python, and writing a test case on a business layer;
A3. and storing the test case in a CSV file format, and storing the interface information in an Excel file format.
Because the invention adopts the mode of storing the interface address and the parameters in the Excel file and the test case in the CSV file, the specific formats of the two data files must be defined in advance, and the module is equivalent to a data source in the whole framework. Xls, can be through the configuration file interface, carry on the flexible configuration to IP, domain name, port information, request type (GET, POST) and interface parameter of the interface server to be tested, namely interface template; the defined test case template can flexibly configure a case mode to be run, a case ID list to be run, a return value field name expected by a case and a field value thereof through a testcase-CSV configuration file.
B. Reading test cases and interface information, and storing the read information as a dictionary format of key value pairs;
B1. packaging a function for operating an Excel file for reading test interface information;
B2. installing a function for operating the CSV file to read the test case information;
B3. calling a self-defined function for operating the CSV file format and a self-defined function for operating the Excel file format, and respectively reading a test case and a test interface;
B4. and storing the read interface information and the test case information in a dictionary in a key value pair mode, recording the length of the dictionary, and circularly reading.
In the specific implementation, a function Excel. py for operating an Excel file can be packaged for reading test interface information, a function CSV. py for operating a CSV file can be packaged for reading test case information, and the two functions can realize read-write operations on any Excel file and CSV file, including reading and writing values of a certain row, a certain column and a certain cell. And storing the read interface information and the test case information in a dictionary in a key value pair mode, recording the length of the dictionary, and circularly reading.
C. Calling different request functions according to the request method of the tested interface, calling the interface and returning a response message;
C1. judging the read information of the interface server;
C2. filling the read test data into an interface parameter dictionary to form complete interface parameter information;
c3 calls the corresponding request function according to the request method of the tested interface and returns the corresponding response message.
Particularly, common HTTP POST and GET request methods are packaged, and free expansion is supported so as to add other methods. The module firstly judges the read information of the interface server, judges which request method needs to be used according to different request types, and because test data is used as input data of an interface and is part of interface parameters, the read test data also needs to be filled in an interface parameter dictionary to form complete interface parameter information, and then calls a corresponding request method to return a corresponding response message.
D. Analyzing the JSON response message, setting assertion, extracting useful return fields, specifically storing the JSON message in a dictionary in a key value pair mode, and matching expected return value field names according to key names;
the method supports JSON format, JSON (JavaScript Object Notation) is a light data exchange format, adopts a text format completely independent of programming language to store and represent data, has a simple and clear hierarchical structure, is easy to read and write by people, is easy to analyze and generate by a machine, can effectively improve the network transmission efficiency, and is an ideal data exchange language.
The returned response message is inevitably provided with JSON data in a nested object format, such as { "ordtotetalPrice": 95, "goods" [ { "shopId": 987654354, "goodsId": 108, "goodsNumber": 1} ] }, at which time the JSON message can be stored in a dictionary in the form of key-value pairs, and the expected return value field names are matched according to the key names, and if the JSON message is matched, the following five conditions can be stored:
the first method comprises the following steps: if the expected return value is null and the actual return value is null, the test is passed;
and the second method comprises the following steps: expecting the return value to be null, actually returning the value to be non-null, stating that the interface returns the field value which should not be returned, the test is not passed;
and the third is that: expecting the return value to be not null, actually returning the value to be null, showing that the interface does not return the field value which should be returned, and the test is not passed;
and fourthly: the expected return value is not null, the actual return value is also not null and is equal to the expected value, and the test is passed;
and a fifth mode: the expected return value is not null, and the actual return value is also not null but not equal to the expected value, which indicates that the interface cannot correctly resolve the case, so that the response is wrong, and the test fails.
E. And outputting the test report in the CSV file format.
And outputting the interface message analyzed in the last step to a test report in a CSV file format, wherein the report comprises the total number of test cases, the test result, the number of failed test cases, the interface return message and failure reason analysis when the test is performed, and the whole process is completed.
The design principle is as follows:
firstly, in the invention, a Robot Framework test tool is abandoned, and a test script is directly written by Python, so that the code amount is greatly reduced.
The code amount is huge because the Robot Framework is used, mainly because the script writing follows the Framework use rule, each case corresponds to one testcase, and when the number of test cases reaches a certain order of magnitude, the code amount is multiplied; and the test case and the interface expected value need to be manually copied from the Excel file and added to the constant file (the constant file is represented by instant), and the preparation work in the early stage is long. Although the bottom layer of the Robot Framework is also supported by Python, the script is directly written by Python, the code logic has no difference, but the code quantity is much more simplified because the direct use of Python does not need to consider a series of bar frame frames and use rules of the Framework, only needs to pay attention to the code logic and the implementation mode, and the later maintenance is simple.
Secondly, the reason that the running time of the Robot Framework test script is too long is obtained through analysis and comparison, not because of the large code amount, but the basic reason is that the whole test efficiency is low because the program takes too long time to read the test case and the interface parameter each time and return the expected value of the parameter.
In the Python-based automatic interface testing method, a CSV file format is adopted to store a test case, and Excel file format is adopted to store interface information; firstly, defining a test case compiling format, compiling according to columns, wherein the first column is a case number, the second column is case content, and then sequentially arranging a return value field expected by the case and a field value corresponding to the return value field; secondly, defining formats of interface information, including IP (Internet protocol), domain name, port information, request type (GET, POST) and the like of an interface server to be tested, calling a self-defined function for operating a CSV (common client) file format and an Excel file format by a program, reading a test case and a test interface, storing the test case and the test interface in a dictionary in a key-value pair mode, recording the length of the dictionary and reading in a circulating mode; and the reading speed of the program is greatly improved by adopting a CSV file access test case mode, so that the problem of low test efficiency is fundamentally solved.
Finally, for the problem of the test report, although the test report in html form is automatically generated by the interface test of the Robot Framework, on the test report, for each use case, the execution result of each step of the test script can be seen, and the test report is more like a breakpoint set by a program. But thousands of test cases, and therefore thousands of test reports, are derived, which greatly increases the workload of the tester, in order to reduce the time for positioning the defects, the automatic test method for the Python-based interface adopts a self-defined test report format, and after one-time test process is finished, a program automatically outputs a complete and detailed test report, the report comprises the total number of test cases, test results, the number of failed test cases, interface return messages and failure reason analysis when in test, which is the result obtained by analyzing the interface return messages, the report is also output in a CSV file format, and the method of the invention outputs a test report in a user-defined mode, so that the test result and the defect positioning are clear, the workload of testers is reduced, and the communication efficiency between the testers and developers is also improved.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (6)

1. The automatic test method of the interface based on Python is characterized by comprising the following steps:
A. writing a test script by adopting Python, writing a test case on a business layer, and storing the test case by adopting a CSV file format;
B. reading test cases and interface information, and storing the read information as a dictionary format of key value pairs;
C. calling different request functions according to the request method of the tested interface, calling the interface and returning a response message;
D. analyzing the JSON response message, setting assertion, and extracting useful return fields;
E. outputting a test report in a CSV file format;
the step A specifically comprises the following steps:
A1. defining a test case compiling format, compiling according to columns, and defining a format of interface information;
A2. writing a test script by adopting Python, and writing a test case on a business layer;
A3. storing a test case in a CSV file format, and storing interface information in an Excel file format;
the step B specifically comprises the following steps:
B1. packaging a function for operating an Excel file for reading test interface information;
B2. installing a function for operating the CSV file to read the test case information;
B3. calling a self-defined function for operating the CSV file format and a self-defined function for operating the Excel file format, and respectively reading a test case and a test interface;
B4. and storing the read interface information and the test case information in a dictionary in a key value pair mode, recording the length of the dictionary, and circularly reading.
2. The automated Python-based interface testing method according to claim 1, wherein the test case writing format is: the first column is the case number, the second column is the case content, the third column is the return value field expected by the case, and the fourth column is the field value corresponding to the return value field.
3. The Python-based interface automation test method of claim 1, wherein the interface information includes at least IP, domain name, port information, request type of the test interface server.
4. The automated Python-based interface testing method according to claim 1, wherein the step C specifically comprises:
C1. judging the read information of the interface server;
C2. filling the read test data into an interface parameter dictionary to form complete interface parameter information;
C3. and calling the corresponding request function according to the request method of the tested interface and returning the corresponding response message.
5. The Python-based interface automation test method of claim 1, wherein the step D specifically adopts the steps of storing JSON messages in a dictionary in a key-value pair form and matching expected return value field names according to key names.
6. The automated Python-based interface testing method according to any one of claims 1 to 5, wherein the test report comprises at least the following data: when the test is used, the total number of the test cases, the test result, the number of the failed test cases, the interface return message and the failure reason are analyzed.
CN201810987431.XA 2018-08-28 2018-08-28 Python-based automatic interface testing method Active CN109189684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810987431.XA CN109189684B (en) 2018-08-28 2018-08-28 Python-based automatic interface testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810987431.XA CN109189684B (en) 2018-08-28 2018-08-28 Python-based automatic interface testing method

Publications (2)

Publication Number Publication Date
CN109189684A CN109189684A (en) 2019-01-11
CN109189684B true CN109189684B (en) 2022-02-22

Family

ID=64916386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810987431.XA Active CN109189684B (en) 2018-08-28 2018-08-28 Python-based automatic interface testing method

Country Status (1)

Country Link
CN (1) CN109189684B (en)

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800111A (en) * 2019-02-01 2019-05-24 上海雷腾软件股份有限公司 The test method and equipment of interface redundancy data
CN109902017A (en) * 2019-03-06 2019-06-18 厦门商集网络科技有限责任公司 A kind of method and terminal based on RobotFramework test Dubbo interface
CN110096434A (en) * 2019-03-28 2019-08-06 咪咕文化科技有限公司 A kind of interface test method and device
CN111752820B (en) * 2019-03-29 2024-01-19 上海哔哩哔哩科技有限公司 gRPC interface pressure test method, computer equipment and storage medium
CN109977020B (en) * 2019-04-01 2022-02-22 山东威尔数据股份有限公司 Automatic testing method
CN110245083A (en) * 2019-06-11 2019-09-17 四川长虹电器股份有限公司 A kind of automatic interface testing method based on python
CN110287119A (en) * 2019-06-28 2019-09-27 深圳市万睿智能科技有限公司 A kind of automatic interface testing method and device based on python
CN110297774B (en) * 2019-07-02 2022-08-19 四川长虹电器股份有限公司 Automatic interface testing method based on python
CN110502436A (en) * 2019-07-30 2019-11-26 广东分利宝金服科技有限公司 The method for improving automatic test execution efficiency
CN110737590B (en) * 2019-09-16 2023-11-03 上海御渡半导体科技有限公司 Offline debugging method
CN110489349B (en) * 2019-09-23 2022-06-03 四川长虹电器股份有限公司 JSON configuration file-based interface test method
CN111143192A (en) * 2019-11-28 2020-05-12 叮当快药科技集团有限公司 Interface automation test method and device and related product
CN111026666A (en) * 2019-12-06 2020-04-17 京东数字科技控股有限公司 Test data processing method, device, computer system and medium
CN111078555B (en) * 2019-12-16 2024-04-23 深圳市朱墨科技有限公司 Test file generation method, system, server and storage medium
CN111221735B (en) * 2020-01-08 2022-08-09 福建博思软件股份有限公司 System for automatically generating service interaction test script
CN111488274B (en) * 2020-03-27 2023-10-24 杭州海兴电力科技股份有限公司 Test case construction method, test equipment and storage medium
CN111679982A (en) * 2020-06-08 2020-09-18 广东赛百威信息科技有限公司 Automatic testing method for REST API (representational State transfer) interface software
CN111723009A (en) * 2020-06-12 2020-09-29 芯河半导体科技(无锡)有限公司 Framework system of python automated testing series products
CN111930614B (en) * 2020-07-20 2021-07-16 腾讯科技(深圳)有限公司 Automatic testing method, device, equipment and medium
CN111950252A (en) * 2020-07-31 2020-11-17 上海中通吉网络技术有限公司 HTTP response message format verification method, device and equipment
CN112069076A (en) * 2020-09-11 2020-12-11 四川长虹电器股份有限公司 JMeter-based interface test automatic assertion method
CN112131131A (en) * 2020-10-10 2020-12-25 四川长虹电器股份有限公司 Automatic interface testing framework system for pre-constructed domain name and request body
CN112241369B (en) * 2020-10-16 2022-06-21 四川长虹电器股份有限公司 Automatic interface testing method based on python
CN112214412B (en) * 2020-10-23 2023-04-28 郑州阿帕斯数云信息科技有限公司 Method and device for generating test report
CN112416802A (en) * 2020-12-09 2021-02-26 深圳开源互联网安全技术有限公司 Python language-based interface test method and device and storage medium
CN112579446A (en) * 2020-12-10 2021-03-30 北京软通智慧城市科技有限公司 Interface testing method and device, electronic equipment and storage medium
CN113419774A (en) * 2021-05-31 2021-09-21 西南电子技术研究所(中国电子科技集团公司第十研究所) Test method for automatically traversing different test parameters of tested product
CN113806150B (en) * 2021-08-16 2024-02-13 济南浪潮数据技术有限公司 Method, system, equipment and storage medium for remote test of storage server
CN114880239B (en) * 2022-05-31 2024-05-24 成都秦川物联网科技股份有限公司 Data-driven-based interface automation test framework and method
CN115426300B (en) * 2022-08-15 2023-12-01 成都北中网芯科技有限公司 Method for automatically testing API (application program interface) of NP (network Programming) chip based on data packet

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819487A (en) * 2011-06-10 2012-12-12 腾讯科技(深圳)有限公司 Method and device for testing online game
CN107193730A (en) * 2017-05-11 2017-09-22 丹露成都网络技术有限公司 A kind of interface test method of automation
CN107577599A (en) * 2017-08-21 2018-01-12 同程网络科技股份有限公司 A kind of automatic interface testing method and platform based on custom script
CN108268348A (en) * 2017-12-08 2018-07-10 广州视源电子科技股份有限公司 Interface test method, device, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819487A (en) * 2011-06-10 2012-12-12 腾讯科技(深圳)有限公司 Method and device for testing online game
CN107193730A (en) * 2017-05-11 2017-09-22 丹露成都网络技术有限公司 A kind of interface test method of automation
CN107577599A (en) * 2017-08-21 2018-01-12 同程网络科技股份有限公司 A kind of automatic interface testing method and platform based on custom script
CN108268348A (en) * 2017-12-08 2018-07-10 广州视源电子科技股份有限公司 Interface test method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN109189684A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN109189684B (en) Python-based automatic interface testing method
US11379348B2 (en) System and method for performing automated API tests
US7673292B2 (en) Auto conversion of tests between different functional testing tools
CN110716870B (en) Automatic service testing method and device
CN108459967B (en) Web application test case generation method based on user interface state flow diagram
CN111324526B (en) Interface test system, method and server
CN103605556A (en) Virtual test subject integrally-constructing system and method
CN114741283A (en) Automatic interface testing method and device based on python design
CN112306861A (en) Unittest and Jenkins tool-based interface automatic testing system and method
CN104111852A (en) Web application automated testing system and testing method based on data drive
CN116483730A (en) Service system automatic test method based on domestic software and hardware and open source test tool
CN111966587A (en) Data acquisition method, device and equipment
CN113419969B (en) Interface automatic formation power guarantee method based on browser plug-in
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
CN117370217A (en) Automatic interface test result generation method based on python
CN110888641B (en) Script automatic generation method and device, server and storage medium
US20210326243A1 (en) Dynamic reordering of test case execution
CN117632710A (en) Method, device, equipment and storage medium for generating test code
CN110286882B (en) Foreground system design and verification method based on model detection
CN109491904B (en) Automatic testing method and device for spark SQL application program
CN114297074A (en) Method for realizing automatic testing of functions, interfaces and performances based on dynamic configuration
CN108521350A (en) A kind of industrial gateway equipment automatization test method driving script based on XML
CN111813665A (en) Big data platform interface data testing method and system based on python
CN112699022A (en) Real-time efficient automatic contract testing method and system
CN113238940A (en) Interface test result comparison method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant