CN113760428B - Checking tool, method, medium and equipment applied to interface access - Google Patents

Checking tool, method, medium and equipment applied to interface access Download PDF

Info

Publication number
CN113760428B
CN113760428B CN202110929963.XA CN202110929963A CN113760428B CN 113760428 B CN113760428 B CN 113760428B CN 202110929963 A CN202110929963 A CN 202110929963A CN 113760428 B CN113760428 B CN 113760428B
Authority
CN
China
Prior art keywords
interface
data
checking
verification
management system
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
CN202110929963.XA
Other languages
Chinese (zh)
Other versions
CN113760428A (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.)
Shanghai Baiqiu New Online Commerce Digital Technology Co ltd
Original Assignee
Shanghai Baiqiu New Online Commerce Digital Technology 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 Shanghai Baiqiu New Online Commerce Digital Technology Co ltd filed Critical Shanghai Baiqiu New Online Commerce Digital Technology Co ltd
Priority to CN202110929963.XA priority Critical patent/CN113760428B/en
Publication of CN113760428A publication Critical patent/CN113760428A/en
Application granted granted Critical
Publication of CN113760428B publication Critical patent/CN113760428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Economics (AREA)
  • Human Computer Interaction (AREA)
  • Development Economics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a checking tool, a method, a medium and equipment applied to interface access, wherein the checking tool is respectively connected with an order management system and an interface docking system; the checking tool adopts a graphical interactive interface form to check the interface data return and the interface data transmission of the order management system; the checking tool at least comprises a checking configuration module and an interface checking module; the interface checking module is configured to acquire first checking data returned by the interface docking system to the order management system and second checking data stored in the interface docking system, analyze and compare the target data with the first checking data and the second checking data in sequence respectively, achieve two-time handshake checking, and adjust the bottom layer code logic corresponding to the order management system according to the checking result of each interface. The invention is convenient for completing the butt acceptance and regression test of the order management system, and reduces the time and the workload of verification.

Description

Checking tool, method, medium and equipment applied to interface access
Technical Field
The invention relates to the technical field of computers, in particular to a checking tool, a method, a medium and equipment applied to interface access.
Background
An Order Management System (OMS) is applied to supply chain upstream suppliers, downstream buyers and various logistics service suppliers in the field of electronic commerce, and is convenient for Order communication and realization of logistics service and control Management systems. Through the management and control of the orders, the delivery plan of the orders is reasonably arranged, and the order information such as inventory and the like is effectively controlled. The existing brand merchants are not limited to supplying goods on one e-commerce platform, for example, all e-commerce platforms such as Taobao and Jingdong offer network shops, so that an Order Management System (OMS) supporting cooperation of multiple e-commerce is derived.
When the conventional Order Management System (OMS) supporting multi-provider cooperation carries out merchant interface access verification and system regression verification, manual operation verification is needed, and because the repeatability of data verification of each interface is high, the workload of a manual verification task is large; in the verification range of the interface, the operation is mostly based on manual repeatability, so the testing cost is high, a subtlety defect is formed, a large amount of testing time is consumed, and the process is time-consuming and labor-consuming. When carrying out data interface verification test, after request interface butt joint system (HUB), data pass through the interface and convey (HUB) to the database in the corresponding form, for the accuracy of check-up data, the tester needs to compare Order Management System (OMS) request data and the data in the corresponding form of (HUB), need check many field values, need consume a large amount of time, check-up inefficiency. However, the test and verification time given by the merchant is limited, and it is usually difficult to perform complete tests on all test items, which easily results in some system bug holes.
Disclosure of Invention
The embodiment of the application provides a checking tool, a method, a medium and equipment applied to interface access, solves the technical problems that in the prior art, when an order management system carries out data access test checking, testers need to track the order, and because the checking process of each interface is the same, the manual checking has high repeatability and large workload, so that the efficiency is low and the cost is high.
In a first aspect, the present application provides a calibration tool applied to interface access, including a calibration tool, where the calibration tool is respectively connected to an order management system and an interface docking system in a test environment, and the order management system is connected to the interface docking system; the checking tool adopts a graphical interactive interface form to check interface data return and interface data transmission of the order management system;
the checking tool at least comprises a checking configuration module and an interface checking module;
the checking configuration module is configured to configure testing parameters related to interface checking before performing automatic checking of interface data, the testing parameters are adapted to a plurality of label information in the order management system, the testing parameters of different label information are combined to generate input data and target data required by automatic checking of each interface, and different interface checking of the order management system is performed through the input data of different combinations;
the interface checking module is configured to acquire input data corresponding to an adaptive interface scene according to interface checking required by the order management system, so that when the order management system and the interface docking system perform interface interaction, first checking data returned to the order management system by the interface docking system and second checking data stored in the interface docking system are acquired based on an interface request of the order management system by the interface docking system, target data are respectively and sequentially analyzed and compared with the first checking data and the second checking data, two-time handshake checking is realized, and underlying code logic corresponding to the order management system is adjusted according to a checking result of each interface.
Further, the interface checking module includes: the interface returns to the check module; the interface return checking module is configured to perform interface return checking to realize first handshake checking;
sending an interface request to the interface docking system by the order management system according to the selected interface scene, and returning first verification data based on the interface request to the order management system after the interface docking system acquires input data; the interface return checking module is used for comparing the received first checking data with the target data, judging whether the field values of the first checking data and the target data are consistent, if so, judging that the interface return checking of the order management system is successful, and if not, adjusting the logic of the bottom layer code of the order management system to check again.
Further, the interface checking module includes: the interface transmits the check-up module; the interface transmission checking module is configured to perform interface transmission checking after the order management system and the interface of the interface docking system are interacted, so as to realize second handshake checking;
after the interface docking system acquires input data for interface verification, the input data is firstly stored in a database form of the interface docking system in a preset format, and after an interface request sent by the order management system, the first verification data is returned to the order management system; the interface transmission checking module is used for acquiring the first checking data and the second checking data, comparing and analyzing the first checking data and the second checking data, judging whether field values of the first checking data and the second checking data are consistent, if so, the interface transmission of the order management system is successful, otherwise, adjusting the logic of a bottom layer code of the order management system for rechecking.
Further, the verification tool further comprises an identity verification module, wherein the identity verification module is configured to verify a user using the verification tool before executing the automated test through a graphical interactive interface, judge whether a login user is stored in a user list, and if not, trigger the automated verification permission by creating a new user and utilizing the created new user identity.
Further, the checking tool further comprises a data processing module, after the first checking data or the second checking data is obtained, the first checking data or the second checking data is stored in the Json files in a key value pair mode, and each Json file is analyzed through JSONPath.
In a second aspect, the present application provides a method for checking interface access, where the method for checking interface data return and interface data transmission of an order management system in a graphical interactive interface form includes:
s100: before performing automatic interface data verification, configuring test parameters related to interface verification, wherein the test parameters are adapted to a plurality of label information in the order management system and the interface docking system, combining the test parameters of different label information to generate input data and target data required by constructing the automatic interface verification, and realizing the different interface verification of the order management system and the interface docking system through the input data of different combinations;
s200: according to interface verification required by the order management system, input data corresponding to an adaptive interface scene is obtained, so that when the order management system and the interface docking system perform interface interaction, first verification data returned to the order management system by the interface docking system and second verification data stored in the interface docking system are obtained based on an interface request of the order management system by the interface docking system, target data are respectively and sequentially analyzed and compared with the first verification data and the second verification data, two-time handshake verification is achieved, and bottom code logic corresponding to the order management system is adjusted according to a verification result of each interface.
Further, before step S100, the method further includes:
and verifying the user using the verification tool before executing the automatic test through a graphical interactive interface, judging whether the login user is stored in a user list, and if not, triggering the automatic verification permission by creating a new user and utilizing the created new user identity.
Further, in step S200, the method for implementing the two-time handshake verification sequentially includes interface return verification and interface transfer verification;
s210: when the interface returns to the check, the order management system sends an interface request to the interface docking system according to the selected interface scene, and the interface docking system returns first check data based on the interface request to the order management system after acquiring input data; the interface return checking module is used for comparing the received first checking data with the target data, judging whether the field values of the first checking data and the target data are consistent, if so, judging that the interface return checking of the order management system is successful, and if not, adjusting the logic of the bottom layer code of the order management system to check again;
s220: when interface transmission verification is executed, after the interface docking system acquires input data for interface verification, the input data is firstly stored in a database form of the interface docking system through a preset format, and after an interface request sent by the order management system, the first verification data is returned to the order management system; the interface transmission checking module is used for acquiring the first checking data and the second checking data, comparing and analyzing the first checking data and the second checking data, judging whether field values of the first checking data and the second checking data are consistent, if so, the interface transmission of the order management system is successful, otherwise, adjusting the logic of a bottom layer code of the order management system for rechecking.
In a third aspect, the present application provides a computer storage medium storing computer program code, which when run on a computing device, causes the computing device to execute the verification method applied to interface access of any one of the second aspects.
In a fourth aspect, the present application provides a computing device comprising:
a processor;
a memory storing computer program code;
the computer program code, when executed by the processor, causes the computing device to perform the verification method applied to interface access of any of the second aspects.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
(1) The invention adopts the visual graphical interactive interface to check the interface data, simplifies the interface checking process of the tester and simultaneously facilitates the checking operation flow.
(2) The checking tool adopted by the invention at least comprises a checking configuration module and an interface checking module, the interface is subjected to configuration pretreatment before checking through the checking configuration module, and the interface is subjected to handshake checking twice through the interface checking module, so that the interface connection accuracy of the order management system and the content configuration accuracy are improved.
(3) The interface data check automation is realized between the mutual requests of the interfaces between the order management system and the interface docking system by using the check tool, and the code form is converted into the windows graphical interactive interface, so that the tester is not limited by the codes any more, the operation can be very simply and conveniently carried out, the flow test check of all interface data can be met based on the realized scene in the interface docking of the order management system and the interface docking system, the most of repetitive and complicated contents can be executed by the tester instead, and a great step is taken in time saving and efficiency improvement.
Drawings
Fig. 1 is a structural diagram of a verification system of an order management system and an interface docking system of a test environment according to the background art of the present application;
fig. 2 is a system configuration diagram of an order management system and an interface docking system in an actual environment according to the background art of the present application;
fig. 3 is a schematic application structure diagram of a verification tool applied to interface access in the first embodiment of the present application;
fig. 4 is a schematic diagram illustrating an actual docking between an order management system and an interface docking system in an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating the docking of the checking tool with the order management system and the interface docking system according to an embodiment of the present application;
fig. 6 is a flowchart of a verification method applied to interface access in the second embodiment of the present application;
fig. 7 is a flowchart of a method for performing interface double-handshake verification in the second embodiment of the present application.
Detailed Description
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
For better understanding of the present solution, the background of the application of the present solution is first explained. Referring to fig. 1-2, the Order Management System (OMS) in this embodiment may simultaneously support a plurality of data backgrounds including an e-commerce platform, a logistics system, a warehouse system, and a financial system through the interface docking system (HUB), the e-commerce platform may be a common tianmao, kyotong, and the like in the market, and the Order Management System (OMS) receives order data parameters including the e-commerce platform, the warehouse system, the logistics system, and the financial system through the interface docking system (HUB) and dynamically updates parameter information of the commodity. For example, a brand merchant opens stores in both tianmao and jingdong at the same time, when a user places an order to purchase a commodity through the store of the tianmao platform, the user can form a group of order data including a brand name field, a brand store ID, a commodity bar code, a commodity quantity, a discount price, a selling price, a buyer name, a contact way and an order state after placing the order, and an Order Management System (OMS) directly accesses a seller application interface of the tianmao platform, so that the order data can be obtained after the order is placed by the user to form the order data. Because the Order Management System (OMS) supports multiple e-commerce platforms, and the fields of the order data formed by each e-commerce platform may be different, the Order Management System (OMS) needs to normalize the order data before acquiring the order data, convert the order data of each e-commerce platform into a unified data format recognizable by the Order Management System (OMS), and then input the converted order data into the Order Management System (OMS). In this embodiment, the interface docking system (HUB) is connected to an external data interface of the Order Management System (OMS), such as an e-commerce platform, a logistics system, a warehouse system, a financial system, and the like, and converts the received order data into a data format that can be received by the Order Management System (OMS), so the interface docking system (HUB) can be understood as a middleware between the Order Management System (OMS) and the external platform of the Order Management System (OMS). Further, the Order Management System (OMS) provided above is used as an application layer, and cannot store data including orders, inventory, logistics, and finance, and the interface docking system (HUB) is used as a physical layer, and implements multi-port forwarding. Therefore, the interface docking system (HUB) in this embodiment is further connected to a database, and the Order Management System (OMS) is connected to the database of the data layer through the interface docking system (HUB). Of course, in this embodiment, it may be understood that the interface docking system (HUB) is disposed in the database, or the interface docking system (HUB) includes the database, and after receiving the order data, the data is dynamically updated into the database. When executing a certain task, the Order Management System (OMS) directly pulls corresponding data from the database.
Based on the implementation background, when any new-brand merchant uses an Order Management System (OMS), the existing Order Management System (OMS) cannot be directly used or the existing order management system of an e-commerce platform (tianmao, jingdong, and the like) cannot be directly used based on the merchant requirements. The technical scheme provided by the embodiment is used for assisting the brand merchant in carrying out access verification and regression verification of the external data interface. Most interface function requirements of an Order Management System (OMS) and an interface docking system (HUB) based on brand merchants on the market are universal, the same Order Management System (OMS) can be used for improvement, and then the improved Order Management System (OMS) is verified. Based on this, in this embodiment, the Order Management System (OMS) and the interface docking system (HUB) perform verification of each access interface in the test environment in advance, and after verification of each functional interface is successful, the functional interfaces are updated to the actual application scenario synchronously. The repeatability and the checking operation task amount based on the checking of each access interface are large, the checking cost investment of testers is large, and the checking effect is not ideal. Therefore, in order to improve the verification efficiency, it is necessary to reduce some repeatability and cumbersome verification process.
Example one
Referring to fig. 3 to 5, in this embodiment, based on the foregoing implementation background, a calibration tool applied to interface data access is provided, where the calibration tool is respectively connected to an order management system and an interface docking system in a test environment, and the order management system is connected to the interface docking system. In the embodiment, some repeated verification operations are directly completed by using a verification tool, so that the manual verification process is reduced, and the verification efficiency is improved.
Further, in this embodiment, a test server and a verification terminal are provided, the test server is connected to an actual server in an actual scene, a test environment is provided in the test server, the test environment includes an order management system and an interface docking system, and the test server is provided with an order management system to be verified. Because the interface types and the quantity requirements of the shops of all brands are equivalent, the interface docking system (HUB) can be assumed to be consistent with the existing merchants in the embodiment, the interfaces are verified and perfected, the interface docking system (HUB) adopts the interface docking system (HUB) with the database, and the embodiment mainly performs interface verification on the order management system. And after all interfaces required to be verified of the order management system are verified, synchronously updating the order management system to the corresponding actual server. The checking terminal is connected with the testing server, a checking tool is installed in the checking terminal, and the checking tool is respectively connected with the order management system and the interface butt joint system.
The verification tool in the embodiment adopts a visual graphical interactive interface mode to verify interface data return and interface data transmission of the order management system. Furthermore, the tester in this embodiment uses a verification tool through the verification terminal, and the verification tool performs verification of various interface function requirements in a visual graphical interactive interface manner. The following functions can be realized through the graphical interactive interface but are not limited to: identity authentication, user creation, data configuration, interface scene, data generation, data acquisition, interface return verification and interface transmission verification.
The verification tool in the embodiment at least comprises a verification configuration module and an interface verification module;
the verification configuration module in this embodiment is configured to configure test parameters related to interface verification before performing automatic verification of interface data, where the test parameters are adapted to multiple pieces of label information in an order management system, combine the test parameters of different pieces of label information, generate input data and target data required for constructing automatic verification of each interface, and implement different interface verifications of the order management system and the interface docking system through input data of different combinations.
Further, the verification tool in this embodiment is used to assist a tester to perform data verification operations on each interface before the order management system is generated, which mainly includes data return verification and data transmission verification of the interface, but it still needs the tester to perform manual operations on input test parameters and verified order management system bottom logic modification, and for order management system functional requirements of merchants with different brands, the test parameters and the bottom logic which may be needed are different, so that the tester needs to designate special test parameters for interface access of each order management system.
The verification configuration module in this embodiment may execute corresponding functions through the data configuration unit, the interface scene unit, and the data generation unit in the visual interface. The verification configuration module in this embodiment configures and stores the corresponding test parameters, and transmits the test parameters to the project directory config. After parameter configuration is carried out, the order type and the order state are manually selected through the interface scene unit and the data generation unit, and order data are generated.
Further, order data stored in a database in the interface docking system is obtained based on each interface scenario, for example, when tasks as in table 1 below are executed periodically in the order management system.
Figure BDA0003210972620000061
Figure BDA0003210972620000071
TABLE 1
As shown in table 1 above, when executing the tasks corresponding to the "tianmao sales order" and the "tianmao refund order", after executing the "timing task" and the "audit", and when the audit is successful, the order management system executes to notify delivery, sends a corresponding interface request through the interface docking system, and receives interface return data given by the interface docking system according to the interface request. In this embodiment, when a tester issues a task in an order management system, a plurality of interface requests adapted to the order management system that needs to be verified, such as "notify delivery," "order cancel," "refund request < undelivered >", "refund to refund," "push return list," "return list make waste," and "refund request < delivered >" in table 1, are selected, the interface requests corresponding to the interface requests are sent to an interface docking system, and the interface docking system is obtained to return interface data according to the interface requests.
In this embodiment, a tester firstly inputs or configures test parameters related to interface verification through the data configuration unit before performing automatic interface data verification, so that the test parameters are transferred to the background for corresponding calculation processing, for example, before performing automatic verification, the tester clicks the data configuration unit of the verification tool to input the test parameters. And triggering the task A by the order management system, sending an interface request to the interface docking system, if the current verification is successful, the sent interface request is the interface request A, and if not, the sent interface request is the other interface request A. The tester clicks an interface scene unit based on a task triggered by an order management system, selects a task A, and then clicks a data generation unit to generate input data and target data, namely generates corresponding input data and target data based on an interface scene. The tester selects the interface scene to be verified through the interface scene unit, and then generates different return data for the interface request through the data generation unit. And the interface docking system sends interface return data to the order management system according to the interface request, at the moment, if the interface request is the interface request A matched with the task A, the interface docking system sends the interface return data A to the order management system according to the input data generated by the data generation unit, and otherwise, the interface docking system sends the other data.
Further, the data generating unit in this embodiment may be understood to generate data such as a "tianmao sales order", "tianmao refund order" and the like according to the test parameters and the interface scene, so that a tester may select the type and state of an order to be generated, so that after receiving the interface return data of the order management system, if the order management system executes a task, the interface data returned after sending the interface request to the interface docking system meets the verification requirement, the verification tool may determine that the verification data meets the verification requirement, and complete the specified verification test. The data configuration unit, the interface scenario unit, and the data generation unit corresponding to the verification configuration module in this embodiment may be understood as a preprocessing operation process performed by using a verification tool for verification processing. The execution of the verification process by the verification tool is further described.
The interface checking module in this embodiment is configured to select an adapted interface scenario and receive corresponding input data according to interface checking required by an order management system, so that when the order management system performs interface interaction with the interface docking system, first checking data returned to the order management system by the interface docking system and second checking data stored in the interface docking system are obtained based on an interface request of the order management system by the interface docking system, target data is sequentially analyzed and compared with the first checking data and the second checking data, two-time handshake checking is implemented, and a bottom code logic corresponding to the order management system is adjusted according to a checking result of each interface.
The interface verification module in this embodiment may execute the corresponding tool through the data acquisition unit, the interface return verification unit, and the interface transfer verification unit in the visual interface. Based on the preprocessing operation of the interface verification, an interface request is sent out by a task in the order management system in the embodiment, the interface docking system is based on various generated input data and target data, and if the task is executed, a correct interface request is sent, and then the interface docking system sends correct interface return data to the order management system according to the interface request after the interface docking system is based on the input data; otherwise, the interface return data is not correct due to the fact that the incorrect interface request is sent. And judging whether the interface return data and the target data are matched with the interface for testing, judging and modifying according to the task, the interface scene and the corresponding target data in the order management system so as to finish interface verification. It can be known. According to order data and a task triggered by the order management system, the interface docking system sends interface return data to the order management system, check that the interface return is abnormal is carried out, input data and data in an interface request are inserted into a database form of the interface docking system in a field value mode, the requested data and the data inserted into the form are checked and compared automatically every time the interface is run, and the order management system is modified adaptively according to a check result.
Further explaining the two-time handshake verification in the interface verification module, the interface verification module in this embodiment includes: the interface returns to the check module; the interface return checking module is configured to perform interface return checking to realize first handshake checking.
The method comprises the steps that an order management system sends an interface request to an interface docking system according to a selected interface scene, and the interface docking system returns first verification data based on the interface request to the order management system after acquiring input data; the interface return checking module is used for comparing the received first checking data with the target data, judging whether the field values of the first checking data and the target data are consistent, if so, judging that the interface return checking of the order management system is successful, and if not, adjusting the bottom code logic of the order management system to check again.
The handshake can be understood as interface new access verification, and disordered connection between each functional interface in the order management system and the interface butt joint system is avoided. For example, the interface docking system is respectively connected with the financial system, the inventory system, the logistics system and the e-commerce platform, if the functional interfaces in the order management system are disordered, for example, the logistics data are acquired from the financial system, the commodity inventory data are acquired from the logistics system, and the accuracy of interface access can be realized through the handshake check.
The interface checking module in this embodiment includes: the interface transmits the check-up module; and the interface transmission checking module is configured to perform interface transmission checking after the order management system and the interface of the interface docking system complete interaction, so as to realize secondary handshake checking.
After an interface docking system acquires input data for interface verification, the input data is stored in a database form of the interface docking system through a preset format, and after an interface request sent by an order management system, first verification data is returned to the order management system; the interface transmission checking module is used for acquiring the first checking data and the second checking data, comparing and analyzing the first checking data and the second checking data, judging whether field values of the first checking data and the second checking data are consistent, if so, the interface transmission of the order management system is successful, otherwise, adjusting the logic of a bottom layer code of the order management system for rechecking.
The handshake can be understood as that after each functional interface of the order management system is accurately accessed, whether the returned interface data obtained after the interface request sent by the order management system is correct or not is judged, and whether the interface transmission content is correct or not is accurately judged.
The verification tool in this embodiment further includes an identity verification module, and the identity verification module is configured to, before performing the automated test through the graphical interactive interface, verify a user using the verification tool, determine whether a login user is already stored in the user list, and if not, perform triggering of the automated verification permission by creating a new user and using the created new user identity.
Furthermore, the checking tool further comprises a data processing module, after the first checking data or the second checking data are obtained, the first checking data or the second checking data are stored in the Json files in a key value pair mode, and the Json files are analyzed through JSONPath. After the interface data configuration preprocessing, the logic processing method of the bottom layer verification is as follows:
when the order management system triggers an interface check, an interface request body is sent to the interface docking system, and the interface docking system sends interface return data to the order management system according to the interface request body. The verification tool in this embodiment acquires interface return data as first verification data through the data acquisition unit, and stores the first verification data in a first Json file in a key-value pair manner.
And clicking an interface return checking unit in the checking tool, analyzing all effective field values through JsonPath to obtain interface return data, configuring target data obtained after preprocessing based on the interface data, comparing and judging the obtained interface return data with the target data through if condition statements, if the interface return data are the same as the target data, indicating that the current interface of the order management system is successfully asserted, and if not, indicating that the current interface is failed to be asserted.
When the order management system and the interface docking system complete interface docking, the interface docking system inserts input data obtained after interface data configuration preprocessing into a database form according to the interface request body, and then automatic verification of interface transmission is carried out. After an interface of the checking tool is clicked to transmit the checking unit, the data acquisition unit is used for accessing a database form in the interface docking system through the JDBC interface, certain data stored in the database form is acquired through circulation traversal, the data is the second checking data, and the data is stored in a second Json file in a key value pair mode. Analyzing all effective field values in the first Json file and the second Json file through JSONPath, comparing the effective field values, and judging an interface transmission verification result by using an if condition. If the effective field values in the first Json file and the second Json file are the same, the fact that input data acquired according to the interface request body are successfully inserted into a database form of the interface docking system is indicated, the interface transmission verification of the order management system and the interface docking system is successful, if the effective field values are inconsistent or have null values, the fact that the interface transmission verification fails is indicated, and the input data acquired according to the interface request body are not successfully inserted into the database form of the interface docking system.
Further combining with the practical scene example description, the tester operates the verification tool through a visual graphical interaction interface, firstly clicks the identity confirmation unit, and judges whether the user logging in the tool verification tool has the access identity authority or not; and if not, clicking the user creating unit to create a new user, and acquiring the identity information of the new user to execute the authority for triggering the automatic verification so as to execute the identity verification process. After the identity verification process is executed, the preprocessing operation process is started, firstly, the function of a verification configuration module is executed, test parameters are obtained through a data configuration unit in a visual interface, an interface scene unit and a data generation unit are selected, and different input data and target data based on different interface scenes are generated. And after the preprocessing operation process is executed, interface verification is executed. The method comprises the steps of firstly, acquiring interface return data in the interaction process of an order management system and an interface docking system through a data acquisition unit in a visual interface, comparing the interface return data with input data corresponding to an interface scene for verification, comparing the input data stored in the interface docking system with the interface return data, and adjusting bottom code logic corresponding to the order management system when the comparison is inconsistent so as to realize the verification of the corresponding interface.
Example two
Referring to fig. 6 to 7, an embodiment of the present application provides a verification method applied to interface access, where a verification tool in the first embodiment is used, and the verification method of the verification tool includes:
s100: before the automatic interface data verification is executed, testing parameters related to the interface verification are configured and adapted to a plurality of label information in an order management system and an interface docking system, the testing parameters of different label information are combined to generate input data and target data required by the automatic interface verification construction, and different interface verifications of the order management system and the interface docking system are realized through the input data of different combinations.
S300: the method comprises the steps of obtaining input data corresponding to an adaptive interface scene according to interface verification required by an order management system, so that when the order management system and the interface docking system perform interface interaction, on the basis of an interface request of the order management system, the interface docking system obtains first verification data returned to the order management system by the interface docking system and second verification data stored in the interface docking system, target data are respectively and sequentially analyzed and compared with the first verification data and the second verification data, two times of handshake verification are achieved, and bottom layer code logic corresponding to the order management system is adjusted according to a verification result of each interface.
Before step S100, the method further includes: and verifying the user using the verification tool before executing the automatic test through the graphical interactive interface, judging whether the login user is stored in the user list, and if not, triggering the automatic verification permission by creating a new user and utilizing the created new user identity.
In step S200, the verification method for implementing two-time handshake verification includes interface return verification and interface transfer verification, and specifically includes:
s210: when the execution interface returns the verification, the order management system sends an interface request to the interface docking system according to the selected interface scene, and the interface docking system returns first verification data based on the interface request to the order management system after acquiring input data; the interface return checking module is used for comparing the received first checking data with the target data, judging whether the field values of the first checking data and the target data are consistent, if so, judging that the interface return checking of the order management system is successful, and if not, adjusting the bottom code logic of the order management system to check again.
S220: when interface transmission verification is executed, after the interface docking system acquires input data for interface verification, the input data is stored in a database form of the interface docking system through a preset format, and after an interface request sent by an order management system, first verification data is returned to the order management system; the interface transmission checking module is used for acquiring the first checking data and the second checking data, comparing and analyzing the first checking data and the second checking data, judging whether the field values of the first checking data and the second checking data are consistent, if so, successfully transmitting the interface of the order management system, otherwise, adjusting the logic of the bottom layer code of the order management system for checking again.
EXAMPLE III
The present embodiment provides a computer storage medium, which stores computer program codes, and when the computer program codes run on a computing device, the computing device is caused to execute the verification method applied to interface access in the second embodiment.
The present embodiments provide a computing device, comprising: a processor; a memory storing computer program code; the computer program code, when executed by the processor, causes the computing device to perform the verification method applied to interface access of embodiment two.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A calibration tool applied to interface access is characterized by comprising a calibration tool, wherein the calibration tool is respectively connected with an order management system and an interface docking system under a test environment, and the order management system is connected with the interface docking system; the checking tool adopts a graphical interactive interface form to check interface data return and interface data transmission of the order management system;
the checking tool at least comprises a checking configuration module and an interface checking module;
the checking configuration module is configured to configure testing parameters related to interface checking before performing automatic checking of interface data, the testing parameters are adapted to a plurality of label information in the order management system, the testing parameters of different label information are combined to generate input data and target data required by automatic checking of each interface, and different interface checking of the order management system is performed through the input data of different combinations;
the interface checking module is configured to acquire input data corresponding to an adaptive interface scene according to interface checking required by the order management system, so that when the order management system and the interface docking system perform interface interaction, based on an interface request of the order management system, the interface docking system acquires first checking data returned to the order management system by the interface docking system and second checking data stored in the interface docking system, target data is respectively and sequentially analyzed and compared with the first checking data and the second checking data, two-time handshake checking is realized, and underlying code logic corresponding to the order management system is adjusted according to a checking result of each interface.
2. The validation tool applied to interface access of claim 1, wherein the interface validation module comprises: the interface returns to the check module; the interface return checking module is configured to perform interface return checking to realize first handshake checking;
sending an interface request to the interface docking system by the order management system according to the selected interface scene, and returning first verification data based on the interface request to the order management system after the interface docking system acquires input data; the interface return checking module is used for comparing the received first checking data with the target data, judging whether the field values of the first checking data and the target data are consistent, if so, judging that the interface return checking of the order management system is successful, and if not, adjusting the logic of the bottom layer code of the order management system for re-checking.
3. The verification tool applied to interface access of claim 2, wherein the interface verification module comprises: the interface transmits the check-up module; the interface transmission checking module is configured to perform interface transmission checking after the order management system and the interface of the interface docking system are interacted, so as to realize second handshake checking;
after the interface docking system acquires input data for interface verification, the input data is firstly stored in a database form of the interface docking system in a preset format, and after an interface request sent by the order management system, the first verification data is returned to the order management system; the interface transmission checking module is used for acquiring the first checking data and the second checking data, comparing and analyzing the first checking data and the second checking data, judging whether field values of the first checking data and the second checking data are consistent, if so, the interface transmission of the order management system is successful, otherwise, adjusting the logic of a bottom layer code of the order management system for rechecking.
4. The verification tool applied to interface access as claimed in claim 1, further comprising an identity verification module, wherein the identity verification module is configured to, before performing an automated test through a graphical interactive interface, audit a user using the verification tool, determine whether a logged-in user is already stored in the user list, and if not, perform triggering of an automated verification right by creating a new user and using the created new user identity.
5. The validation tool applied to interface access according to claim 1, further comprising a data processing module, wherein after the first validation data or the second validation data is obtained, the validation tool is stored in a Json file in a key-value pair form, and each of the Json files is parsed by Json path.
6. A verification method applied to interface access, which adopts the verification tool applied to interface access of any one of claims 1 to 5, wherein the method for verifying interface data return and interface data transmission of an order management system by the verification tool in a graphical interactive interface form comprises:
s100: before interface data automatic verification is executed, configuring test parameters related to interface verification, enabling the test parameters to be adapted to a plurality of label information in the order management system and the interface docking system, combining the test parameters of different label information, generating input data and target data required by automatic verification of each interface, and achieving different interface verification of the order management system and the interface docking system through input data of different combinations;
s200: according to interface verification required by the order management system, input data corresponding to an adaptive interface scene is obtained, so that when the order management system and the interface docking system perform interface interaction, based on an interface request of the order management system, first verification data returned by the interface docking system to the order management system and second verification data stored in the interface docking system are obtained, target data are respectively and sequentially analyzed and compared with the first verification data and the second verification data, two times of handshake verification are achieved, and bottom layer code logic corresponding to the order management system is adjusted according to a verification result of each interface.
7. The verification method applied to interface access according to claim 6, further comprising, before step S100:
and verifying the user using the verification tool before executing the automatic test through a graphical interactive interface, judging whether the login user is stored in a user list, and if not, triggering the automatic verification permission by creating a new user and utilizing the created new user identity.
8. The verification method applied to interface access according to claim 6, wherein in step S200, the verification method for implementing two times of handshake verification sequentially includes interface return verification and interface transmission verification;
s210: when the interface returns to the check, the order management system sends an interface request to the interface docking system according to the selected interface scene, and the interface docking system returns first check data based on the interface request to the order management system after acquiring input data; the interface return checking module is used for comparing the received first checking data with the target data, judging whether the field values of the first checking data and the target data are consistent, if so, judging that the interface return checking of the order management system is successful, and if not, adjusting the logic of the bottom layer code of the order management system to check again;
s220: when interface transmission verification is executed, after the interface docking system acquires input data for interface verification, the input data is firstly stored in a database form of the interface docking system through a preset format, and after an interface request sent by the order management system, the first verification data is returned to the order management system; the interface transmission checking module is used for acquiring the first checking data and the second checking data, comparing and analyzing the first checking data and the second checking data, judging whether the field values of the first checking data and the second checking data are consistent, if so, the interface transmission of the order management system is successful, otherwise, adjusting the logic of the bottom layer code of the order management system for rechecking.
9. A computer storage medium having computer program code stored thereon which, when run on a computing device, causes the computing device to perform a verification method as claimed in any one of claims 6 to 8 applied to interface access.
10. A computing device, comprising:
a processor;
a memory storing computer program code;
the computer program code, when executed by the processor, causes the computing device to perform a verification method as claimed in any of claims 6 to 8 applied to interface access.
CN202110929963.XA 2021-08-13 2021-08-13 Checking tool, method, medium and equipment applied to interface access Active CN113760428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110929963.XA CN113760428B (en) 2021-08-13 2021-08-13 Checking tool, method, medium and equipment applied to interface access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110929963.XA CN113760428B (en) 2021-08-13 2021-08-13 Checking tool, method, medium and equipment applied to interface access

Publications (2)

Publication Number Publication Date
CN113760428A CN113760428A (en) 2021-12-07
CN113760428B true CN113760428B (en) 2023-01-20

Family

ID=78789278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110929963.XA Active CN113760428B (en) 2021-08-13 2021-08-13 Checking tool, method, medium and equipment applied to interface access

Country Status (1)

Country Link
CN (1) CN113760428B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180144276A1 (en) * 2014-04-08 2018-05-24 M/S. Cigniti Technologies Limited System, method and apparatus for converting the business processes to test-centric activity diagrams
CN109408381B (en) * 2018-10-10 2019-07-16 四川新网银行股份有限公司 A kind of product data automatic Verification platform and method based on data check template
CN112308483A (en) * 2020-10-15 2021-02-02 北京微酷客科技有限公司 Order management system and method applied to seafood industry
CN112528616B (en) * 2020-12-18 2023-08-22 平安银行股份有限公司 Service form generation method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN113760428A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
US8874479B2 (en) Systems and methods for testing a financial trading system
CN103226468B (en) Front end based on business object metadata-back end communications decision
CN103778358B (en) A kind of method and system for realizing shopping online
US20090234749A1 (en) Order Processing Analysis Tool
US20120089480A1 (en) Online purchasing system and methods with buyer&#39;s agency
WO2015066207A1 (en) Purchasing systems and methods
JP2023103229A (en) Integration plugin for identifying and presenting associated items on web page
CN111353841B (en) Document data processing method, device and system
US8024734B2 (en) Enabling a designer to specify workflows to process various results of execution of transactions
CN114170010A (en) Matching transaction method and device, electronic equipment and storage medium
CN113760428B (en) Checking tool, method, medium and equipment applied to interface access
KR20220059068A (en) Overseas Delivery Management System
CN112418969B (en) Commodity matching method, commodity matching device and computer equipment
TWI807142B (en) System and method for managing transaction risk
WO2022219619A1 (en) Integrating and automating supply and demand chains
CN111324537A (en) Test script-based test method and device and computer equipment
CA3022618C (en) Method for searching for electronic transaction certificate, and electronic transaction terminal
CA3054468C (en) Method and device for searching for electronic transaction certificate, and network search engine
CN110633077A (en) Rapid development system and method based on modularization
CN109685626A (en) A kind of lower single test method and device
US20230245138A1 (en) Systems and methods for authenticating online sales using machine learning
CN115543767A (en) Method and device for testing operation flow of mall platform
CN115409469A (en) Order processing method, order processing device, storage medium and electronic device
CN114443469A (en) Test case generation method, device and equipment
Reddy et al. Network For Ordering Food Online

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 200335 floor 2, building B, No. 1358 Xiehe Road, Changning District, Shanghai

Applicant after: Shanghai baiqiu new online commerce Digital Technology Co.,Ltd.

Address before: 200335 room 2403, floor 1, building 8, No. 33, Guangshun Road, Changning District, Shanghai

Applicant before: Shanghai baiqiu e-commerce Co.,Ltd.

GR01 Patent grant
GR01 Patent grant