CN117785723A - Dynamic interface parameter association method and device and electronic equipment - Google Patents
Dynamic interface parameter association method and device and electronic equipment Download PDFInfo
- Publication number
- CN117785723A CN117785723A CN202410210593.8A CN202410210593A CN117785723A CN 117785723 A CN117785723 A CN 117785723A CN 202410210593 A CN202410210593 A CN 202410210593A CN 117785723 A CN117785723 A CN 117785723A
- Authority
- CN
- China
- Prior art keywords
- interface
- data
- function
- setting
- field
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000012360 testing method Methods 0.000 claims abstract description 82
- 238000012545 processing Methods 0.000 claims abstract description 28
- 230000014509 gene expression Effects 0.000 claims abstract description 27
- 238000000605 extraction Methods 0.000 claims abstract description 13
- 230000008569 process Effects 0.000 claims abstract description 13
- XSQUKJJJFZCRTK-NJFSPNSNSA-N UREA C 14 Chemical compound N[14C](N)=O XSQUKJJJFZCRTK-NJFSPNSNSA-N 0.000 claims abstract description 11
- 238000004140 cleaning Methods 0.000 claims abstract description 7
- 230000006870 function Effects 0.000 claims description 101
- 239000003550 marker Substances 0.000 claims description 13
- 230000004044 response Effects 0.000 claims description 8
- 238000012795 verification Methods 0.000 claims description 6
- 208000025174 PANDAS Diseases 0.000 claims description 5
- 208000021155 Paediatric autoimmune neuropsychiatric disorders associated with streptococcal infection Diseases 0.000 claims description 5
- 235000016496 Panda oleosa Nutrition 0.000 claims description 5
- 240000000220 Panda oleosa Species 0.000 claims 1
- 230000005856 abnormality Effects 0.000 abstract description 5
- 240000004718 Panda Species 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000009517 secondary packaging Methods 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention belongs to the technical field of automatic testing, and relates to a dynamic interface parameter association method, a dynamic interface parameter association device and electronic equipment. Setting an expression of a path field extraction function of data returned by a storage field storage extraction interface by using Excel storage test cases; reading a test case; setting a data processing function to process the interface return data; class attribute setting, namely cleaning a class attribute release space by using a front-back clamp function of pytest; searching key values of parameters to be replaced by regular matching; dynamically replacing to obtain target parameters; and verifying the correctness of the interface returned data. The invention can realize automatic processing and parameter replacement of interface test data, solves the problems of abnormality and accuracy of the test data, improves the test efficiency and maintainability, ensures the correctness of the execution of the interface, and has good flexibility and expandability.
Description
Technical Field
The invention belongs to the technical field of automatic testing, and particularly relates to a dynamic interface parameter association method and device and electronic equipment.
Background
In the interface automation test process, many functions need to prepare data before testing, and many interface data depend on the return data of other interfaces; if test data is fixed in an automated test case, execution failure may occur if the data has been modified or deleted at execution time.
Disclosure of Invention
In order to solve the technical problems, the invention provides a dynamic interface parameter association method.
In a first aspect, the present invention provides a dynamic interface parameter association method, including:
storing the test case by using Excel, and setting a storage field in the test case to store an expression of a path field extraction function for extracting the interface return data;
setting an Excel reading function, and using the Excel reading function to read the test cases before each test case is executed;
in the data requested by the interface, setting a marker for a field needing dynamic replacement;
setting a data processing function to process the interface return data, and providing a path expression to extract a field with a marker in the test case; the data processing function is used for extracting the scheduling list number in the interface return data and storing the field of the scheduling list number;
setting the extracted appointed interface field data as a class attribute of an independent class by using a dynamic attribute setting function, initializing data of each test class by using a front-back clamp function of pytest, and cleaning a class attribute release space;
when the interface test case is used, the interface data is subjected to regular matching through a parameter replacement function, key values of parameters needing to be replaced are searched, and the search result is stored in a list;
dynamically replacing the key value to be replaced by using the field of the scheduling list number through a parameter replacement function to obtain a target parameter;
and judging the correctness of the interface execution by setting assertion, and verifying the correctness of the returned data of the interface.
In a second aspect, the invention provides a dynamic interface parameter association device, which comprises a storage unit, a reading unit, a marking unit, a processing unit, a setting unit, a matching unit, an acquisition unit, a replacement unit and a verification unit;
the storage unit is used for storing the test case by using Excel, and setting a storage field in the test case to store an expression of a path field extraction function for extracting interface return data;
the reading unit is used for setting an Excel reading function, and reading the test cases by using the Excel reading function before each test case is executed;
the marking unit is used for setting a marker for a field needing dynamic replacement in the data requested by the interface;
the processing unit is used for setting a data processing function to process the interface return data and providing a path expression to extract a field with a marker in the test case; the data processing function is used for extracting the scheduling list number in the interface return data and storing the field of the scheduling list number;
the setting unit is used for setting the extracted appointed interface field data into class attributes of an independent class by using a dynamic attribute setting function, initializing data of each test class by using a front-back clamp function of pytest, and cleaning a class attribute release space;
the matching unit is used for carrying out regular matching on interface data through a parameter replacement function when the interface test case is tested, searching key values of parameters needing to be replaced, and storing the searching result into a list;
the replacing unit is used for dynamically replacing the key value to be replaced by utilizing the field of the scheduling single number through a parameter replacing function to obtain a target parameter;
and the verification unit is used for judging the correctness of the execution of the interface by setting assertion, and verifying the correctness of the returned data of the interface.
In a third aspect, the present invention provides an electronic device comprising:
a processor and a memory;
the memory is used for storing computer operation instructions;
the processor is used for executing a dynamic interface parameter association method by calling the computer operation instruction.
On the basis of the technical scheme, the invention can be improved as follows.
Further, the reading function performs secondary packaging based on the pandas library, reads data of a corresponding table page, and returns the data in a dictionary form.
Further, let obj be the response data of the interface request, let the path expression be expr, and let the expression of the path field extraction function be jsonpath (obj, expr).
Further, the extracted specified interface field data is set as a class attribute of an independent class by using a dynamic attribute setting function, the dynamic attribute setting function is set as setattr, the class is HandleAttribute, the class attribute is key, the value corresponding to the class attribute is value, and the dynamic attribute setting function is set as setattrr (HandleAttribute, key, value).
Further, in the replacement function, all character strings with markers are queried through regular expressions, and parameters needing dynamic replacement are obtained.
Further, by setting a assertion and a custom assertion function, the interface return result is verified and judged.
The beneficial effects of the invention are as follows:
(1) The invention can realize automatic processing and parameter replacement of the interface test data, and solves the problems of abnormality and accuracy of the test data in the traditional interface test;
(2) The invention can improve the accuracy of the test data, ensure that the test data is real data existing in the current system through automatic processing and parameter replacement, and reduce the risks of data abnormality and error;
(3) According to the invention, the data to be processed is rapidly positioned and replaced through the customized mark and parameter replacement function, so that the testing efficiency and maintainability are improved;
(4) According to the invention, through setting the assertion and the custom assertion function, the interface return result is verified and judged, so that the correctness of the interface execution is ensured;
(5) The invention is based on a pytest test framework, has good flexibility and expandability, and can be integrated and expanded with other test frameworks and tools.
Drawings
FIG. 1 is a schematic diagram of a dynamic interface parameter association method according to embodiment 1 of the present invention;
FIG. 2 is a flowchart of a dynamic interface parameter association method according to embodiment 1 of the present invention;
FIG. 3 is a schematic diagram of a dynamic interface parameter association device according to embodiment 2 of the present invention;
fig. 4 is a schematic diagram of an electronic device according to embodiment 3 of the present invention.
Icon: 40-an electronic device; 410-a processor; 420-bus; 430-memory; 440-transceiver.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Example 1
As an embodiment, as shown in fig. 1, to solve the above technical problem, the present embodiment provides a dynamic interface parameter association method, including:
storing the test case by using Excel, and setting a storage field in the test case to store an expression of a path field extraction function for extracting the interface return data;
setting an Excel reading function, and using the Excel reading function to read the test cases before each test case is executed;
in the data requested by the interface, setting a marker for a field needing dynamic replacement;
setting a data processing function to process the interface return data, and providing a path expression to extract a field with a marker in the test case; the data processing function is used for extracting the scheduling list number in the interface return data and storing the field of the scheduling list number;
setting the extracted appointed interface field data as a class attribute of an independent class by using a dynamic attribute setting function, initializing data of each test class by using a front-back clamp function of pytest, and cleaning a class attribute release space;
when the interface test case is used, the interface data is subjected to regular matching through a parameter replacement function, key values of parameters needing to be replaced are searched, and the search result is stored in a list;
dynamically replacing the key value to be replaced by using the field of the scheduling list number through a parameter replacement function to obtain a target parameter;
and judging the correctness of the interface execution by setting assertion, and verifying the correctness of the returned data of the interface.
In a specific implementation process, the method stores the test case through Excel, and sets a storage field extract_data in the test case to store data needing to be extracted from the interface return data. In the data requested by the interface, a marker is set for the field needing dynamic replacement, for example, "#" -is set for the head end and the tail end of the field needing dynamic replacement respectively. The flow of the dynamic interface parameter association method is shown in fig. 2.
Optionally, the reading function performs secondary packaging based on the pandas library, reads the data of the corresponding table page, and returns the data in the form of a dictionary.
In the actual application process, before each test case is executed, an Excel reading function is used for reading the test case, the Excel reading function is set as get_case_data, the function is secondarily packaged based on a pandas library, data of a corresponding table page are read, and data return is carried out in a dictionary form, so that the acquisition of test case code fields is facilitated. The same method can be used for setting up test cases stored in the database.
Optionally, let obj be the response data of the interface request, let the path expression be expr, and let the expression of the path field extraction function be jsonpath (obj, expr).
In the actual application process, the extracted interface return data is processed through the data processing function extract_data to obtain a scheduling single number in the interface return data, a jsonpath (obj, expr) form is provided to extract the field to be extracted, which is set in the test case, and the class attribute setting operation is performed after the extraction is completed.
Optionally, the extracted specified interface field data is set as a class attribute of an independent class by using a dynamic attribute setting function, the dynamic attribute setting function is set as setattr, the class is HandleAttribute, the class attribute is key, the value corresponding to the class attribute is value, and the dynamic attribute setting function is setattr (HandleAttribute, key, value).
And setting each test class by using a front-and-back clamp function of pytest, and initializing data to realize that class attributes are cleaned to release space after each test class is executed. Dynamic acquisition and storage of data are realized. Assuming that the front-back clamp function is pytest. Field, class is class level, the front-back clamp function is denoted @ pytest. Field (class).
Optionally, in the replacement function, all character strings with markers are queried through regular expressions to obtain parameters needing dynamic replacement.
In the parameter replacement of the subsequent interface test case, the interface data is subjected to regular matching through a get_replace_keys function, key values needing parameter replacement are searched out, and the key values are stored in a list. When the replacement is executed, a key value to be replaced is acquired through a class attribute acquisition function getattr (handle attribute), and then the field data is dynamically replaced through a parameter replacement function replace_data. Specifically, the matching is obtained by using circulation, and the replacement of a plurality of fields can be supported simultaneously, so that the dynamic parameter data replacement is realized.
Optionally, by setting a assertion and a custom assertion function, the interface return result is verified and judged.
In the actual application process, by introducing a data association mechanism, the test data of the subsequent interface can be ensured to depend on the return data of the front interface, and the consistency of the data is ensured
In the actual application process, in the application scene of the emergency system, when the interface for inquiring the scheduling detail list is called, a specific scheduling list number needs to be transmitted. And setting a dispatch list number as jz_dddh, wherein the dispatch list number is returned in response data after the success of a dispatch interface is confirmed. The schedule single number jz_dddh field in the response data confirming the schedule is saved for use in a subsequent interface call.
When the automatic test is executed, the system firstly calls the confirmation scheduling interface, initiates one-time scheduling emergency, and then transmits the extra_data in the test case table and the response returned by the confirmation scheduling interface into the extra_data processing function. The processing function will extract and save the data of the jz_dddh field in response as a class attribute of the HandleAttribute class and named jz_dddh.
When the query schedule detail list interface is invoked, the system passes the data ({ "schedule single number": "#jz_dddh#" }) into the replacement function before initiating the request. In the replacement function, firstly, inquiring character strings of all scheduling single numbers jz_dddh through a regular expression; the character string is a parameter which needs to be dynamically replaced, wherein the regular matching uses a method of findall matching the character string, and a plurality of parameter names which need to be replaced can be obtained. The method for matching character strings by findall is used for searching all character strings conforming to regular expressions in the whole character strings, returning the character strings in the form of a list, returning the list containing a matching structure if matching is successful, and returning an empty list if matching is not successful; then, the data of the single number jz_dddh field of the schedule interface stored in the HandleAttribute class is obtained by a getattr (HandleAttribute) method, and finally, the data is replaced by a replacing function. After the steps are finished, the dynamic parameter replacement operation is finished. The executable interface invokes an operation, a request operation to query the schedule details list interface.
The invention can realize automatic processing and parameter replacement of the interface test data, and solves the problems of abnormality and accuracy of the test data in the traditional interface test.
The invention can improve the accuracy of the test data, ensure that the test data is real data existing in the current system through automatic processing and parameter replacement, and reduce the risks of data abnormality and error;
according to the invention, the data to be processed is rapidly positioned and replaced through the customized mark and parameter replacement function, so that the testing efficiency and maintainability are improved.
The invention verifies and judges the returned result of the interface by setting the assertion and the custom assertion function, thereby ensuring the accuracy of the execution of the interface.
The invention is based on a pytest test framework, has good flexibility and expandability, and can be integrated and expanded with other test frameworks and tools.
Example 2
Based on the same principle as the method shown in embodiment 1 of the present invention, as shown in fig. 3, there is further provided in an embodiment of the present invention a dynamic interface parameter association device including a storage unit, a reading unit, a marking unit, a processing unit, a setting unit, a matching unit, an obtaining unit, a replacing unit, and a verifying unit;
the storage unit is used for storing the test case by using Excel, and setting a storage field in the test case to store an expression of a path field extraction function for extracting interface return data;
the reading unit is used for setting an Excel reading function, and reading the test cases by using the Excel reading function before each test case is executed;
the marking unit is used for setting a marker for a field needing dynamic replacement in the data requested by the interface;
the processing unit is used for setting a data processing function to process the interface return data and providing a path expression to extract a field with a marker in the test case; the data processing function is used for extracting the scheduling list number in the interface return data and storing the field of the scheduling list number;
the setting unit is used for setting the extracted appointed interface field data into class attributes of an independent class by using a dynamic attribute setting function, initializing data of each test class by using a front-back clamp function of pytest, and cleaning a class attribute release space;
the matching unit is used for carrying out regular matching on interface data through a parameter replacement function when the interface test case is tested, searching key values of parameters needing to be replaced, and storing the searching result into a list;
the replacing unit is used for dynamically replacing the key value to be replaced by utilizing the field of the scheduling single number through a parameter replacing function to obtain a target parameter;
and the verification unit is used for judging the correctness of the execution of the interface by setting assertion, and verifying the correctness of the returned data of the interface.
Optionally, the reading function performs secondary packaging based on the pandas library, reads the data of the corresponding table page, and returns the data in the form of a dictionary.
Optionally, let obj be the response data of the interface request, and expr be the corresponding path field extraction expression, and then the path expression is jsonpath (obj, expr).
Optionally, the extracted specified interface field data is set as a class attribute of an independent class by using a dynamic attribute setting function, the dynamic attribute setting function is set as setattr, the class is HandleAttribute, the class attribute is key, the value corresponding to the class attribute is value, and the dynamic attribute setting function is setattr (HandleAttribute, key, value).
Optionally, in the replacement function, all character strings with markers are queried through regular expressions to obtain parameters needing dynamic replacement.
Optionally, by setting a assertion and a custom assertion function, the interface return result is verified and judged.
Example 3
Based on the same principle as the method shown in the embodiment of the present invention, there is also provided an electronic device in the embodiment of the present invention, as shown in fig. 4, which may include, but is not limited to: a processor and a memory; a memory for storing a computer program; and the processor is used for executing the dynamic interface parameter association method shown in the embodiment of the invention by calling the computer program.
In an alternative embodiment, an electronic device is provided, the electronic device 40 shown in fig. 4 comprising: a processor 410 and a memory 430. Processor 410 is coupled to memory 430, such as via bus 420.
Optionally, the electronic device 40 may further comprise a transceiver 440, and the transceiver 440 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data, etc. It should be noted that, in practical applications, the transceiver 440 is not limited to one, and the structure of the electronic device 40 is not limited to the embodiment of the present invention.
The processor 410 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. Processor 410 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 420 may include a path to transfer information between the aforementioned components. Bus 420 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture ) bus, among others. Bus 420 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
Memory 430 may be, but is not limited to, ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, EEPROM (Electrically Erasable Programmable Read Only Memory ), CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 430 is used to store application program codes (computer programs) for executing the inventive arrangements and is controlled to be executed by the processor 410. The processor 410 is configured to execute application code stored in the memory 430 to implement what is shown in the foregoing method embodiments.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. The dynamic interface parameter association method is characterized by comprising the following steps:
storing the test case by using Excel, and setting a storage field in the test case to store an expression of a path field extraction function for extracting the interface return data;
setting an Excel reading function, and using the Excel reading function to read the test cases before each test case is executed;
in the data requested by the interface, setting a marker for a field needing dynamic replacement;
setting a data processing function to process the interface return data, and providing a path expression to extract a field with a marker in the test case; the data processing function is used for extracting the scheduling list number in the interface return data and storing the field of the scheduling list number;
setting the extracted appointed interface field data as a class attribute of an independent class by using a dynamic attribute setting function, initializing data of each test class by using a front-back clamp function of pytest, and cleaning a class attribute release space;
when the interface test case is used, the interface data is subjected to regular matching through a parameter replacement function, key values of parameters needing to be replaced are searched, and the search result is stored in a list;
dynamically replacing the key value to be replaced by using the field of the scheduling list number through a parameter replacement function to obtain a target parameter;
and judging the correctness of the interface execution by setting assertion, and verifying the correctness of the returned data of the interface.
2. The method according to claim 1, wherein the Excel reading function is secondarily packaged based on the pandas library, reads data of a corresponding form page, and returns the data in the form of a dictionary.
3. The method according to claim 1, wherein obj is set as response data of an interface request, and a path expression is set as expr, and an expression of a path field extraction function is jsonpath (obj, expr).
4. The method according to claim 1, wherein the extracted specific interface field data is set as a class attribute of an independent class by using a dynamic attribute setting function, the dynamic attribute setting function is set as setattr, the class is HandleAttribute, the class attribute is key, the value corresponding to the class attribute is value, and the dynamic attribute setting function is setattribute (key, value).
5. The method according to claim 1, wherein in the replacement function, all character strings with markers are queried through regular expressions to obtain parameters to be dynamically replaced.
6. The method according to claim 1, wherein the verification and judgment of the interface return result is performed by setting a assertion and a custom assertion function.
7. The dynamic interface parameter association device is characterized by comprising a storage unit, a reading unit, a marking unit, a processing unit, a setting unit, a matching unit, an acquisition unit, a replacement unit and a verification unit;
the storage unit is used for storing the test case by using Excel, and setting a storage field in the test case to store an expression of a path field extraction function for extracting interface return data;
the reading unit is used for setting an Excel reading function, and reading the test cases by using the Excel reading function before each test case is executed;
the marking unit is used for setting a marker for a field needing dynamic replacement in the data requested by the interface;
the processing unit is used for setting a data processing function to process the interface return data and providing a path expression to extract a field with a marker in the test case; the data processing function is used for extracting the scheduling list number in the interface return data and storing the field of the scheduling list number;
the setting unit is used for setting the extracted appointed interface field data into class attributes of an independent class by using a dynamic attribute setting function, initializing data of each test class by using a front-back clamp function of pytest, and cleaning a class attribute release space;
the matching unit is used for carrying out regular matching on interface data through a parameter replacement function when the interface test case is tested, searching key values of parameters needing to be replaced, and storing the searching result into a list;
the replacing unit is used for dynamically replacing the key value to be replaced by utilizing the field of the scheduling single number through a parameter replacing function to obtain a target parameter;
and the verification unit is used for judging the correctness of the execution of the interface by setting assertion, and verifying the correctness of the returned data of the interface.
8. An electronic device, comprising:
a processor and a memory;
the memory is used for storing computer operation instructions;
the processor is configured to execute the dynamic interface parameter association method according to any one of claims 1 to 6 by invoking the computer operation instructions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410210593.8A CN117785723A (en) | 2024-02-27 | 2024-02-27 | Dynamic interface parameter association method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410210593.8A CN117785723A (en) | 2024-02-27 | 2024-02-27 | Dynamic interface parameter association method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117785723A true CN117785723A (en) | 2024-03-29 |
Family
ID=90393022
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410210593.8A Pending CN117785723A (en) | 2024-02-27 | 2024-02-27 | Dynamic interface parameter association method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117785723A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118036047A (en) * | 2024-04-11 | 2024-05-14 | 四川互慧软件有限公司 | Multi-role interface automatic test method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112882927A (en) * | 2021-01-26 | 2021-06-01 | 北京高因科技有限公司 | Interface automatic testing method, device, equipment and medium |
CN116775458A (en) * | 2023-05-12 | 2023-09-19 | 郑州信大捷安信息技术股份有限公司 | Interface testing method and system for dynamic link library |
CN117271645A (en) * | 2023-10-11 | 2023-12-22 | 赛力斯汽车有限公司 | Test data processing method and device and computer readable storage medium |
CN117370217A (en) * | 2023-12-08 | 2024-01-09 | 天津华来科技股份有限公司 | Automatic interface test result generation method based on python |
-
2024
- 2024-02-27 CN CN202410210593.8A patent/CN117785723A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112882927A (en) * | 2021-01-26 | 2021-06-01 | 北京高因科技有限公司 | Interface automatic testing method, device, equipment and medium |
CN116775458A (en) * | 2023-05-12 | 2023-09-19 | 郑州信大捷安信息技术股份有限公司 | Interface testing method and system for dynamic link library |
CN117271645A (en) * | 2023-10-11 | 2023-12-22 | 赛力斯汽车有限公司 | Test data processing method and device and computer readable storage medium |
CN117370217A (en) * | 2023-12-08 | 2024-01-09 | 天津华来科技股份有限公司 | Automatic interface test result generation method based on python |
Non-Patent Citations (2)
Title |
---|
WU_CANDY: "Pandas、Excel实现 Pytest 数据驱动", pages 1 - 13, Retrieved from the Internet <URL:https://www.cnblogs.com/Wu13241454771/p/14374643.html> * |
小码哥说测试: "Python接口自动化测试工具(Pytest+Allure+jsonpath+xlrd+excel、支持Restful接口规范)", pages 1 - 14, Retrieved from the Internet <URL:https://blog.51cto.com/u_15333574/3531938> * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118036047A (en) * | 2024-04-11 | 2024-05-14 | 四川互慧软件有限公司 | Multi-role interface automatic test method and device and electronic equipment |
CN118036047B (en) * | 2024-04-11 | 2024-06-07 | 四川互慧软件有限公司 | Multi-role interface automatic test method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111488174B (en) | Method and device for generating application program interface document, computer equipment and medium | |
CN117785723A (en) | Dynamic interface parameter association method and device and electronic equipment | |
CN112560401B (en) | Verilog file conversion method, device, storage medium and equipment | |
CN110287696B (en) | Detection method, device and equipment for rebound shell process | |
JP3822044B2 (en) | Design verification system, design verification method, and computer-readable recording medium storing design verification program | |
CN114048701A (en) | Netlist ECO method, device, equipment and readable storage medium | |
CN116860949A (en) | Question-answering processing method, device, system, computing equipment and computer storage medium | |
CN114091383A (en) | Test sequence generation method, device and system and related equipment | |
CN111767213B (en) | Database check point testing method and device, electronic equipment and storage medium | |
CN111506362B (en) | Processing method, device, storage medium and system for configuration form of game | |
CN101017496A (en) | Method and apparatus for automatically formatting data based on a best match test result type | |
CN117171030A (en) | Method, device, equipment and storage medium for detecting software running environment | |
CN109324838B (en) | Execution method and execution device of single chip microcomputer program and terminal | |
WO2021031110A1 (en) | Configuration file generation method and device, and storage medium | |
CN116820996A (en) | Automatic generation method and device for integrated test cases based on artificial intelligence | |
CN111159040A (en) | Test data generation method, device, equipment and storage medium | |
CN113742156B (en) | Joint debugging method, joint debugging device, electronic equipment and storage medium | |
CN108334313A (en) | Continuous integrating method, apparatus and code management system for large-scale SOC research and development | |
CN113722321A (en) | Data export method and device and electronic equipment | |
CN112463896A (en) | Archive cataloging data processing method and device, computing equipment and storage medium | |
CN112559331A (en) | Test method and device | |
CN112035432A (en) | Data replacement and migration method, device and computer equipment | |
CN112380133A (en) | Method and device for simulating instruction set simulator by using function library | |
CN113742360B (en) | Method and device for rapidly generating SQL script of heterogeneous database based on metadata | |
CN113742361B (en) | Method and system for storing JSON data by using SQL under JS development environment |
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 |