System response test method and device, equipment, storage medium and program product

By obtaining the test tool address information and modifying its code, the abnormal scenario of the interface between systems is simulated, which solves the problem in the existing technology that the response of the docking system cannot be simulated in the AWS environment, and improves the efficiency and accuracy of abnormal scenario testing of interaction between systems.

CN118656302APending Publication Date: 2024-09-17CHINA MERCHANTS BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410853260.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing technology is difficult to efficiently and accurately simulate abnormal interaction scenarios between systems. Especially in the AWS environment, it cannot effectively simulate the normal or abnormal response of the docking system, and it cannot distinguish between timeout and normal forwarding of test requests, which affects test efficiency and accuracy.

Method used

By obtaining the address information of the test tool, forward the test request to the test tool, modify the test tool code according to the actual test scenario requirements, and simulate different forwarding states to obtain responses, including the number of interface requests, request parameter modifications and response processing, using data The simulation framework library performs parameter verification and conversion.

Benefits of technology

It realizes the normal and abnormal scenarios of simulating the interface between systems in different deployment environments, improves the testing efficiency and accuracy, allows different testers to test at the same time without affecting each other, and can be used effectively in the AWS environment and can be distinguished according to the request parameters. response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656302A
    Figure CN118656302A
Patent Text Reader

Abstract

The invention discloses a system response test method and device, equipment, a storage medium and a program product, and relates to the technical field of data processing, and the method comprises the steps: obtaining the address information of a test tool; forwarding the test request to the test tool according to the address information of the test tool; and according to actual test scene requirements, modifying a test tool code through the test tool to obtain a response corresponding to the test request. According to the scheme, special scenes can be simulated in different deployment environments by using the test tool; and the test tool code is modified through the test tool, the forwarding state of the test request is determined, and different responses are obtained, so that testers can conveniently perform tests at the same time without mutual influence, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a system response testing method, device, equipment, storage medium and program product. Background Art

[0002] Business products involve interactions between systems. Abnormal scenarios such as timeouts and failures between systems and automated construction and batch running are an important part of testing work.

[0003] Currently, there are four main methods for testing abnormal interaction scenarios between systems: 1. Simulation with the assistance of developers. This method usually requires developers to modify the code and has higher risks. 2. Contact the docking system to assist in simulation, which is usually only possible during non-working hours and adds additional communication costs; 3. With the help of simulation timeout tools, it can only test the scenario of timeout of interaction between system interfaces, but cannot simulate the scenario of failure of docking system interface, nor can it simulate the scenario of several abnormalities of the same interface. Moreover, it will affect all test requests, and cannot distinguish which test requests have timed out and which test requests are forwarded normally according to different request parameters; 4. With the help of the in-house baffle platform, but because the in-house baffle platform is not connected to the AWS environment, products deployed in the AWS environment cannot use the baffle platform to simulate normal or abnormal responses of the docking system, and the platform cannot obtain the path parameters in the HTTP test request.

[0004] In summary, how to improve the efficiency and accuracy of abnormal scenario testing of system interactions has become one of the hot issues that need to be solved in the relevant technical field. Summary of the invention

[0005] The main purpose of this application is to provide a system response testing method, device, equipment, storage medium and program product, aiming to solve the technical problem of how to improve the efficiency and accuracy of abnormal scenario testing of system interactions.

[0006] To achieve the above object, the present application proposes a system response testing method, the method comprising: Get the address information of the test tool; forwarding the test request to the test tool according to the address information of the test tool; According to the actual test scenario requirements, the test tool code is modified through the test tool to obtain a response corresponding to the test request.

[0007] In one embodiment, the step of forwarding the test request to the test tool according to the address information of the test tool includes: According to the address information of the test tool, the test request is forwarded to the IP and port of the test tool.

[0008] In one embodiment, the step of modifying the test tool code by the test tool according to the actual test scenario requirements to obtain a response corresponding to the test request includes: In the test tool, modify the request parameters to obtain the modified test request; Sending the modified test request to the docking system, so that the docking system returns a corresponding response based on the modified test request; Receive a corresponding response returned by the docking system.

[0009] In one embodiment, the step of modifying the test tool code by the test tool according to the actual test scenario requirements to obtain a response corresponding to the test request further includes: After the test tool obtains the test request, it counts the number of test requests of the interface; Determine whether the number of test requests for the interface meets the preset number of interface test requests; According to the determination result, confirming the forwarding status of the test request; Based on the forwarding status of the test request, a test request corresponding to the forwarding status of the test request is responded to to obtain a corresponding response.

[0010] In one embodiment, the forwarding status of the test request includes normal forwarding, abnormal forwarding, and non-forwarding, and the step of responding to the test request corresponding to the forwarding status of the test request based on the forwarding status of the test request to obtain the corresponding response includes: For the test request whose forwarding status is the normal forwarding and the abnormal forwarding, modify the corresponding request parameters to obtain a modified test request; Sending the modified test request to the docking system, so that the docking system returns a corresponding response based on the modified test request; receiving a corresponding response returned by the docking system; or For the test request whose forwarding status is not forwarding, a corresponding response is returned based on the test request.

[0011] In one embodiment, after the step of the testing tool obtaining the interface test request, the method further includes: In the test tool, the request parameters of the obtained interface test request are verified and converted through the data simulation framework library.

[0012] In one embodiment, after the step of modifying the test tool code by the test tool according to the actual test scenario requirements to obtain the response corresponding to the test request, the step further includes: The test tool is run again to ensure that the modified test tool code is effective.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a system response test device, the system response test device comprising: An acquisition module is used to obtain the address information of the test tool; A forwarding module, used for forwarding the test request to the test tool according to the address information of the test tool; The modification module is used to modify the test tool code through the test tool according to the actual test scenario requirements to obtain a response corresponding to the test request.

[0014] In addition, to achieve the above objectives, the present application also proposes a system response testing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the system response testing method described above.

[0015] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the system response test method described above are implemented.

[0016] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the system response testing method described above are implemented.

[0017] The embodiment of the present application provides a system response test method, which obtains the address information of the test tool; forwards the test request to the test tool according to the address information of the test tool; and modifies the test tool code through the test tool according to the actual test scenario requirements to obtain the response corresponding to the test request. By using the test tool, the solution can simulate special scenarios in different deployment environments; and modify the test tool code through the test tool to determine the forwarding status of the test request and obtain different responses, which not only makes it convenient for testers to conduct tests at the same time, but also does not affect each other, thereby improving the efficiency of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 A flowchart of the first embodiment of the system response test method of the present application is provided; Figure 2 The first effect diagram of the test tool running in the first embodiment of the system response test method of the present application; Figure 3 The second effect diagram of the test tool running provided in the first embodiment of the system response test method of this application; Figure 4 A flowchart of the second embodiment of the system response test method of the present application is provided; Figure 5 A flowchart of the third embodiment of the system response test method of the present application is provided; Figure 6 A brief flowchart of the system response test method of this application; Figure 7 This is a schematic diagram of the module structure of the system response test device according to an embodiment of the present application; Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the system response testing method in the embodiment of the present application.

[0021] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0022] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0023] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0024] The main solution of the embodiment of the present application is: obtain the address information of the test tool; forward the test request to the test tool according to the address information of the test tool; modify the test tool code through the test tool according to the actual test scenario requirements to obtain the response corresponding to the test request.

[0025] Currently, there are four main methods for testing abnormal interaction scenarios between systems: 1. Simulation with the assistance of developers. This method usually requires developers to modify the code and has higher risks. 2. Contact the docking system to assist in simulation, which is usually only possible during non-working hours and adds additional communication costs; 3. With the help of simulation timeout tools, it can only test the scenario of timeout of interaction between system interfaces, but cannot simulate the scenario of failure of docking system interface, nor can it simulate the scenario of several abnormalities of the same interface. Moreover, it will affect all test requests, and cannot distinguish which test requests have timed out and which test requests are forwarded normally according to different request parameters; 4. With the help of the in-house baffle platform, but because the in-house baffle platform is not connected to the AWS environment, products deployed in the AWS environment cannot use the baffle platform to simulate normal or abnormal responses of the docking system, and the platform cannot obtain the path parameters in the HTTP test request.

[0026] In summary, how to improve the efficiency and accuracy of abnormal scenario testing of system interactions has become one of the hot issues that need to be solved in the relevant technical field.

[0027] The present application provides a solution by modifying the server address information into the test tool address information, thereby simulating normal and abnormal interface scenarios. For some problems with unstable docking system environment, the normal response of the docking system interface is simulated, and automated case construction and batch running are performed, thereby improving the efficiency of the test.

[0028] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes a personal computer as an example to illustrate this embodiment and the following embodiments.

[0029] Based on this, the present application embodiment provides a system response test method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the system response testing method of the present application.

[0030] In this embodiment, the system response test method includes steps S10 to S30: Step S10, obtaining the address information of the test tool; It should be noted that the testing tool in this embodiment refers to a tool that can simulate the behavior of a server interface, so as to verify the functions and performance of an application program in different testing scenarios.

[0031] The address information of a testing tool refers to the specific network location information monitored or provided by the testing tool when using a simulation server or proxy service for software testing.

[0032] In this step, by modifying the server address information to the address information of the test tool, the address information corresponding to the test tool can be obtained.

[0033] Step S20, forwarding the test request to the test tool according to the address information of the test tool; In this step, the test request originally directed to the real server can be redirected to the address of the test tool, so that the test tool can simulate the test request processing scenarios under various forwarding states, thereby comprehensively testing the performance and responsiveness of the application under various forwarding conditions.

[0034] In a feasible embodiment, step S20 may include step S21: Step S21, forwarding the test request to the IP and port of the test tool according to the address information of the test tool.

[0035] In this step, you need to ensure that the test tool has been started and configured on the target IP address and port.

[0036] When the test request is sent to the IP and port of the test tool corresponding to the address information according to the address information of the test tool.

[0037] Through the above steps, the test request can be effectively redirected from the real server environment to the test tool so that the test tool can simulate and test various preset scenarios to ensure that the application can run stably under different conditions.

[0038] Step S30, modifying the test tool code through the test tool according to the actual test scenario requirements to obtain a response corresponding to the test request.

[0039] It should be noted that the actual test scenario requirements include normal test request scenarios and abnormal test request scenarios.

[0040] Specifically, modify the code of the test tool, including but not limited to setting the number of test requests as needed, whether to modify request parameters, whether to test request delay, whether to respond to delay, whether to forward to the docking system, and what response to return.

[0041] Furthermore, when deploying the test tool code, it is necessary to ensure that the computer where the test tool is deployed and the original business system network are unobstructed, otherwise the test tool will not receive the test request message.

[0042] In a feasible embodiment, step S30 may include steps A1 to A3: Step A1, in the test tool, modify the request parameters to obtain a modified test request; The test tool obtains the test request sent to the docking system and ensures that the test request can be successfully executed under normal circumstances, which serves as the basis for the test.

[0043] After the test tool obtains the test request sent to the docking system, the request parameters are modified through the test tool, where the request parameters include path parameters, query parameters or test request body parameters, etc., to test the scenario where the docking system interface test request fails.

[0044] Among them, for modifying path parameters, if the interface URL test request contains path parameters (such as / users / {userId}), modify userId to an invalid value (such as a negative number, non-numeric, or too long a string), and observe how the system handles such erroneous test requests.

[0045] For query parameter modification, intentionally provide incorrect query parameters, including non-existent parameter names, mismatched data types (such as assigning a numeric field to a string), or assigning a non-date format value to a date field, to verify whether the docking system can correctly identify the error and respond.

[0046] For modifying request body parameters, you can delete necessary fields to verify whether the system requires these fields to exist; or change the data type of the field, such as changing a numeric field to a string, to test the validation logic of the data type; or exceed the reasonable range of the field value, such as entering a very large number into the amount field, to check whether the system has a mechanism to handle boundary conditions; or send an invalid JSON format, such as unclosed brackets, to test the system's ability to parse the data format.

[0047] Step A2, sending the modified test request to the docking system, so that the docking system returns a corresponding response based on the modified test request; After the parameter modification is completed, these modified test requests are sent to the docking system, and the docking system executes these modified test requests one by one and returns different responses to the business system according to these modified test requests.

[0048] In the process of sending test requests, by turning on the network monitoring and logging functions of the test tool, the sending time, response time and any potential network problems of the test requests can be tracked, while retaining detailed test request and response details to provide a data basis for subsequent analysis.

[0049] It should be noted that when forwarding the modified test request to the docking system, it is necessary to ensure that the computer where the test tool is deployed and the docking system network are unobstructed, otherwise the test tool cannot forward the test request to the docking system.

[0050] Step A3: receiving a corresponding response returned by the docking system.

[0051] When the docking system executes these modified test requests one by one and returns different responses to the business system according to these modified test requests, the business system will receive these responses and perform operations such as verification, review or performance indicator analysis on these responses. Figure 2 shown.

[0052] Through the above steps, the test tool can determine whether the test request is a normal response or an abnormal response according to different request parameters, so that different testers can perform tests at the same time without affecting each other, thereby improving work efficiency; and the test tool can obtain the path parameters in the test request and obtain different responses based on the parameters.

[0053] In another feasible implementation, step S30 may include steps B1 to B4: Step B1, after the test tool obtains the interface test request, the number of interface test requests is counted; In the test tool, you can configure a counter for each interface test request that needs to be monitored. Every time the test tool receives a test request for the interface, the counter automatically increases by one to track the number of times the interface is called.

[0054] Step B2, determining whether the number of interface test requests meets a preset number of interface test requests; Preset one or more thresholds for the number of API test requests based on the needs of the test scenario. These thresholds can be used to simulate different load conditions or specific trigger conditions, such as testing the performance of an API under high concurrency or verifying the behavior changes of an API after a specific number of calls.

[0055] Step B3, confirming the forwarding status of the test request according to the judgment result; The "forwarding status" of the test request is dynamically determined based on whether the number of test requests of the current interface reaches a preset threshold. Confirming the forwarding status of the test request may be confirming whether the test request is forwarded normally, forwarded abnormally, or not forwarded.

[0056] Step B4: Based on the forwarding status of the test request, a test request corresponding to the forwarding status of the test request is responded to to obtain a corresponding response.

[0057] According to the preset number of interface test requests, the test environment's processing strategy for test requests can be flexibly adjusted to simulate system responses in different scenarios, including normal operation, abnormal state or denial of service. Figure 3 shown.

[0058] In a feasible embodiment, step B4 may include steps B41 to B44: Step B41, for the test request whose forwarding status is the normal forwarding and the abnormal forwarding, modify the corresponding request parameters to obtain a modified test request; For normal forwarding and abnormal forwarding test requests, by modifying the request parameters, including modifying the path parameters, query parameters or test request body parameters, the test requests with different forwarding states can be customized to meet the needs of the docking system or test specific scenarios.

[0059] Step B42, sending the modified test request to the docking system, so that the docking system returns a corresponding response based on the modified test request; The modified test request will be sent to the docking system so that the docking system can return the corresponding response based on the modified test request. This means that the docking system will process it according to the modified request parameters and return the corresponding response result. This helps to test the stability and correctness of the system.

[0060] Step B43, receiving a corresponding response returned by the docking system; The business system receives the response returned by the docking system, which means that the business system will obtain the processing result returned by the docking system for further analysis and processing.

[0061] Step B44: for the test request whose forwarding status is not forwarding, a corresponding response is obtained based on the test request.

[0062] In some test scenarios, it may be necessary to simulate a situation where the test request is not processed at all, such as simulating the system performance when the service is unavailable or a denial of service attack occurs. In this case, the test request will be directly intercepted by the test tool and will not be passed to the docking system. Instead, the corresponding response will be returned to the business system based on the test request.

[0063] Through the above steps, by setting the threshold of the number of test requests for the docking system interface, different forwarding states of the test requests are determined, and further different response processing is performed on the test requests with different forwarding states, so as to determine whether the test request is a normal response or an abnormal response. In this way, different testers can perform tests at the same time without affecting each other, thereby improving work efficiency.

[0064] Through the above-mentioned embodiment method, the address information of the test tool is obtained; according to the address information of the test tool, the test request is forwarded to the test tool; according to the actual test scenario requirements, the test tool code is modified through the test tool to obtain the response corresponding to the test request. By using the test tool, this solution can simulate special scenarios in different deployment environments; and by modifying the test tool code through the test tool, the forwarding status of the test request is determined, and different responses are obtained, which not only makes it convenient for testers to conduct tests at the same time, but also does not affect each other, thereby improving the efficiency of the test.

[0065] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 After step SB1, the system response test method further includes step B11: Step B11: verify and convert the request parameters of the obtained interface test request through the data simulation framework library in the test tool.

[0066] In the prior art, the baffle platform can only obtain parameters and then manually write codes to verify the parameters, which is inefficient.

[0067] Therefore, this embodiment proposes a method that verifies and converts data through the data model framework Pydantic library, which can efficiently complete the verification of interface parameters and can be used to verify whether the interface request parameters sent by the upstream system conform to the interface definition. There is no need to manually verify the interface parameters, thereby improving work efficiency.

[0068] Among them, the Pydantic library is a Python library for data validation and serialization. It provides a simple and powerful way to define data models and validate and convert input data.

[0069] Specifically, use the Pydantic library to define a data model, including the fields, types, validation rules, and other information of the interface request parameters. For example, you can define a data model for a user registration interface, including fields such as username, password, and email address.

[0070] When receiving an interface test request from a business system, you can use the Pydantic library to convert the request parameters of the received interface test request into a defined data model and perform request parameter verification of the interface test request. The Pydantic library will automatically verify whether the request parameters of the interface test request comply with the defined rules. If the request parameters of the interface test request do not comply with the rules, a corresponding exception will be thrown.

[0071] According to the verification results of the Pydantic library, corresponding processing can be performed according to different situations. If the request parameter verification of the interface test request passes, the interface test request can continue to be processed; if the request parameter verification of the interface test request fails, an error message can be returned to the business system, indicating that the request parameter of the interface test request is wrong.

[0072] Through the above-mentioned embodiment method, the data model framework library is used to realize efficient verification of interface parameters, avoiding the tedious work of manual verification of parameters, improving work efficiency and code reliability, and being able to manage and process interface request parameters to ensure the stability and security of the system interface.

[0073] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 5 After step S30, the system response test method further includes step S301: Step S301, the test tool is run again to ensure that the modified test tool code is effective.

[0074] After modifying the test code, you can run the modified test tool again to verify whether the modified code is effective. When running the test tool, you can simulate sending a test request and check whether the corresponding response can be obtained correctly.

[0075] It should be noted that when running the test tool, you can execute pre-defined test cases to verify whether the modified test tool works as expected. You can check whether the test request and response meet expectations to ensure the correctness and reliability of the modified test tool code.

[0076] Through the above steps, it can be ensured that the modified test tool code is effective and the necessary test verification is performed to ensure that the test tool can correctly obtain the response corresponding to the test request in the actual test scenario, improve the accuracy and reliability of the test tool, and ensure the validity of the test results.

[0077] For example, to help understand the implementation process of the system response test method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 6 , Figure 6 A brief flow chart of a system response test method is provided, specifically: First, the address information of the business system is modified to the address information of the test tool. According to the address information of the test tool, the business system sends the test request to the test tool for routing matching to ensure the stability of the scenario.

[0078] Then, by modifying the test tool code, the test scenarios of simulating normal or abnormal interfaces can be implemented.

[0079] Specifically, first, through the preset threshold of the number of test requests, it is determined whether the number of interface test requests reaches the threshold of the number of test requests set in advance. And based on the result of determining whether the number of interface test requests reaches the threshold of the number of test requests set in advance, the forwarding status of these test requests is determined, and the forwarding status of the test requests includes normal forwarding, abnormal forwarding or non-forwarding.

[0080] If the test requests are in a normal forwarding state or an abnormal forwarding state, it is necessary to further determine whether the request parameters of the test requests need to be modified, including modifying the path parameters, query parameters, or test request body parameters.

[0081] After modifying the request parameters, the test request with the modified request parameters can be sent to the docking system, and the docking system returns a corresponding response to the business system based on the test request with the modified request parameters. This step process is used to test the scenario where the docking system interface fails.

[0082] If it is a test request in a non-forwarding state, the request parameter type of the test request is confirmed, and different responses are directly returned to the business system according to the type of the request parameter.

[0083] In addition, decide whether to add a delay when sending a test request to the docking system or returning a response to the business system. The introduction of delay is to simulate network delays and the performance of test tools in a high-latency environment, and also to synchronize the operation time between different systems.

[0084] In this embodiment, it should be noted that each time the test tool code tool is modified, the test tool needs to be re-run, otherwise it will not take effect; when deploying the test tool, it is necessary to ensure that the computer where the test tool is deployed and the original business system network are unobstructed, otherwise the test tool will not receive the test request message; if it needs to be forwarded to the docking system, it is necessary to ensure that the computer where the test tool is deployed and the docking system network are unobstructed, otherwise the test tool cannot forward the test request to the docking system.

[0085] Through the above-mentioned embodiment method, that is, by obtaining the address information of the test tool; forwarding the test request to the test tool according to the address information of the test tool; modifying the test tool code through the test tool according to the actual test scenario requirements to obtain the response corresponding to the test request. The test tool can simulate the scene of interface timeout and failure, while the existing timeout simulation tool can only simulate the timeout scene; the test tool can determine whether the test request is a normal response or an abnormal response according to the different request parameters, which is convenient for different testers to test at the same time without affecting each other, improving work efficiency, while the existing timeout simulation tool tests abnormal scenarios by one person, which will hinder the testing work of other personnel; the test tool can be freely deployed in various environments, so it can be used as a baffle in the AWS environment to simulate special scenarios; the test tool can obtain the path parameters in the HTTP test request and return different responses; the test tool can verify and convert the data through the data model framework Pydantic library, and can efficiently complete the verification of interface parameters, which can be used to verify whether the interface request parameters sent by the upstream system meet the interface definition, without manually verifying the interface parameters, and improving work efficiency.

[0086] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the system response test method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0087] This application also provides a system response test device, please refer to Figure 7 , the system response test device comprises: An acquisition module 10 is used to acquire the address information of the test tool; A forwarding module 20, configured to forward the test request to the test tool according to the address information of the test tool; The modification module 30 is used to modify the test tool code through the test tool according to the actual test scenario requirements to obtain a response corresponding to the test request.

[0088] The system response test device provided by the present application adopts the system response test method in the above embodiment, which can solve the technical problem of how to improve the efficiency and accuracy of the abnormal scene test of the interaction between systems. Compared with the prior art, the beneficial effects of the system response test device provided by the present application are the same as the beneficial effects of the system response test method provided by the above embodiment, and the other technical features in the system response test device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0089] The present application provides a system response testing device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the system response testing method in the above-mentioned embodiment 1.

[0090] Reference below Figure 8 , which shows a schematic diagram of the structure of a system response test device suitable for implementing the embodiment of the present application. The system response test device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The system response test device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0091] like Figure 8As shown, the system response test device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the system response test device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the system response test device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a system response test device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0092] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0093] The system response test device provided by the present application adopts the system response test method in the above embodiment, which can solve the technical problem of how to improve the efficiency and accuracy of the abnormal scene test of the interaction between systems. Compared with the prior art, the beneficial effects of the system response test device provided by the present application are the same as the beneficial effects of the system response test method provided by the above embodiment, and the other technical features in the system response test device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0094] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0095] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0096] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the system response test method in the above-mentioned embodiment.

[0097] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0098] The computer-readable storage medium may be included in the system response test device; or may exist independently without being assembled into the system response test device.

[0099] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the system response test device, the system response test device: Get the address information of the test tool; forwarding the test request to the test tool according to the address information of the test tool; According to the actual test scenario requirements, the test tool code is modified through the test tool to obtain a response corresponding to the test request.

[0100] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0101] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] The modules involved in the embodiments of the present application may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0103] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned system response test method, and can solve the technical problem of how to improve the efficiency and accuracy of abnormal scenario testing of system interactions. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the system response test method provided in the above-mentioned embodiment, and will not be repeated here.

[0104] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the system response testing method as described above are implemented.

[0105] The computer program product provided by the present application can solve the technical problem of how to improve the efficiency and accuracy of the abnormal scenario test of the interaction between systems. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the method for improving the efficiency and accuracy of the abnormal scenario test of the interaction between systems provided by the above embodiment, and will not be repeated here.

[0106] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A system response testing method, characterized in that: The method comprises: Get the address information of the test tool; forwarding the test request to the test tool according to the address information of the test tool; According to the actual test scenario requirements, the test tool code is modified through the test tool to obtain a response corresponding to the test request.

2. The method according to claim 1, characterized in that The step of forwarding the test request to the test tool according to the address information of the test tool comprises: According to the address information of the test tool, the test request is forwarded to the IP and port of the test tool.

3. The method according to claim 1, characterized in that The step of modifying the test tool code by the test tool according to the actual test scenario requirements to obtain a response corresponding to the test request includes: In the test tool, modify the request parameters to obtain the modified test request; Sending the modified test request to the docking system, so that the docking system returns a corresponding response based on the modified test request; Receive a corresponding response returned by the docking system.

4. The method according to claim 1, characterized in that The step of modifying the test tool code by the test tool according to the actual test scenario requirements to obtain a response corresponding to the test request also includes: After the test tool obtains the interface test request, it counts the number of interface test requests; Determine whether the number of interface test requests meets a preset number of interface test requests; According to the determination result, confirming the forwarding status of the test request; Based on the forwarding status of the test request, a test request corresponding to the forwarding status of the test request is responded to to obtain a corresponding response.

5. The method according to claim 4, characterized in that The forwarding status of the test request includes normal forwarding, abnormal forwarding and non-forwarding, and the step of responding to the test request corresponding to the forwarding status of the test request based on the forwarding status of the test request to obtain the corresponding response includes: For the test request whose forwarding status is the normal forwarding and the abnormal forwarding, modify the corresponding request parameters to obtain a modified test request; Sending the modified test request to the docking system, so that the docking system returns a corresponding response based on the modified test request; receiving a corresponding response returned by the docking system; or For the test request whose forwarding status is not forwarding, a corresponding response is obtained based on the test request.

6. The method according to claim 4, characterized in that After the step of the test tool obtaining the interface test request, the method further includes: In the test tool, the request parameters of the obtained interface test request are verified and converted through the data simulation framework library.

7. The method according to claim 1, characterized in that After the step of modifying the test tool code by the test tool according to the actual test scenario requirements to obtain a response corresponding to the test request, the method further includes: The test tool is run again to ensure that the modified test tool code is effective.

8. A system response test device, characterized in that: The system response test device comprises: An acquisition module is used to obtain the address information of the test tool; A forwarding module, used for forwarding the test request to the test tool according to the address information of the test tool; The modification module is used to modify the test tool code through the test tool according to the actual test scenario requirements to obtain a response corresponding to the test request.

9. A system response test device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the system response test method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the system response test method according to any one of claims 1 to 7 are implemented.

11. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the system response testing method according to any one of claims 1 to 7 are implemented.