Parameter transfer test method and device, equipment and storage medium

By obtaining and comparing the output parameter data from test traffic data and baseline traffic data during application testing, the problem of parameter passing errors was solved, testing efficiency and accuracy were improved, and the probability of errors after release was reduced.

CN121597552APending Publication Date: 2026-03-03BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411124735.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

In existing technologies, application programs are prone to mispassing or missing parameters during the parameter passing process, resulting in a high probability of parameter passing errors after release, and there is a lack of effective testing solutions.

Method used

By matching input parameter data that meets the target field conditions from the test traffic data of the target test object, the corresponding output parameter data is obtained as test output parameter data, and compared with the baseline output parameter data obtained from the baseline traffic data of the target test object to determine the parameter transmission test result.

Benefits of technology

It enables effective testing of application parameter passing, reduces the probability of parameter passing errors after release, and improves testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121597552A_ABST
    Figure CN121597552A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a parameter passing test method and device, equipment and a storage medium, and the method comprises the steps: obtaining out-parameter data corresponding to the in-parameter data from test flow data as test out-parameter data in response to the in-parameter data matched with a target field condition from the test flow data of a target test object, and enabling the out-parameter data to serve as the test out-parameter data; the method comprises the following steps: acquiring in-parameter data meeting a target field condition from reference flow data of a target test object, acquiring out-parameter data corresponding to the in-parameter data from the reference flow data as reference out-parameter data, and comparing the test out-parameter data with the reference out-parameter data to obtain comparison result information. According to the embodiment of the invention, the test-out parameter data and the reference-out parameter data of the input parameter data meeting the target field condition are obtained from the test flow data and the reference flow data, and the difference data between the test-out parameter data and the reference-out parameter data is determined through parameter comparison so as to reflect the parameter transfer test result, so that the probability that the application program has a parameter transfer error is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing, and in particular to a parameter transfer testing method, apparatus, device, and storage medium. Background Technology

[0002] With the development of computer technology, various types of applications are becoming increasingly common. To ensure the stability of applications, they are usually tested before release, and only after passing the tests can they be released.

[0003] Currently, when testing applications, it is necessary to test the various functions provided by the application. Since parameters need to be passed during the logical implementation of various functions, and it is easy for parameters to be mispassed or missed, there is an urgent need for an effective solution to test parameter passing, so as to reduce the probability of parameter passing errors in the released application. Summary of the Invention

[0004] To solve the above-mentioned technical problems, or at least partially solve them, this disclosure provides a parameter transfer testing method, apparatus, device, and storage medium.

[0005] In a first aspect, embodiments of this disclosure provide a parameter transfer testing method, the method comprising:

[0006] In response to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, the output parameter data corresponding to the input parameter data is obtained from the test traffic data as test output parameter data; wherein, the target field conditions are used to describe the feature information of the input parameter data corresponding to the target test scenario of the target test object;

[0007] Obtain input parameter data that meets the target field conditions from the baseline traffic data corresponding to the target test object, and obtain the output parameter data corresponding to the input parameter data from the baseline traffic data as the baseline output parameter data;

[0008] The test parameter data is compared with the baseline parameter data to obtain comparison result information; wherein, the comparison result information includes the difference data between the test parameter data and the baseline parameter data, and the comparison result information is used to determine the parameter transmission test result of the target test object for the target test scenario.

[0009] In an optional implementation, before the step of obtaining the output parameter data corresponding to the input parameter data from the test traffic data of the target test object and using it as the test output parameter data, in response to matching the input parameter data that meets the target field conditions from the test traffic data of the target test object, the method further includes:

[0010] Receive target field conditions set for the target test scenario of the target test object; wherein, the target field conditions include at least one feature field and the feature value of the feature field.

[0011] In one optional implementation, the at least one feature field conforms to a preset regular expression.

[0012] In an optional implementation, before the step of obtaining the output parameter data corresponding to the input parameter data from the test traffic data of the target test object and using it as the test output parameter data, in response to matching the input parameter data that meets the target field conditions from the test traffic data of the target test object, the method further includes:

[0013] Based on the field conditions corresponding to multiple test scenarios, the traffic data of the target test object during operation is collected and stored as the test traffic data of the target test object.

[0014] In one optional implementation, the step of collecting traffic data of the target test object during its operation based on field conditions corresponding to multiple test scenarios, and storing it as test traffic data of the target test object, includes:

[0015] During the operation of the target test object, traffic data that meets the field conditions corresponding to the first test scenario is collected, and the identifier of the first test scenario, the field conditions, and the correspondence between the traffic data are stored in the scenario traffic library; wherein, the scenario traffic library is used to store the test traffic data of the target test object.

[0016] In an optional implementation, before comparing the test parameter data with the benchmark parameter data to obtain the comparison result information, the method further includes:

[0017] The test output data and the benchmark output data are filtered by a preset noise template. The preset noise template stores preset fields and is used to filter the preset fields from the test output data and the benchmark output data.

[0018] In an optional implementation, before the step of obtaining the output parameter data corresponding to the input parameter data from the test traffic data of the target test object and using it as the test output parameter data, in response to matching the input parameter data that meets the target field conditions from the test traffic data of the target test object, the method further includes:

[0019] For the target test object, user interface interaction simulation is performed based on the input parameter data that meets the field conditions corresponding to the test scenario of the target test object to obtain the test traffic data of the target test object.

[0020] Secondly, this disclosure provides a parameter transfer testing apparatus, the apparatus comprising:

[0021] The first acquisition module is used to, in response to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, acquire the output parameter data corresponding to the input parameter data from the test traffic data as test output parameter data; wherein, the target field conditions are used to describe the feature information of the input parameter data corresponding to the target test scenario of the target test object;

[0022] The second acquisition module is used to acquire input parameter data that meets the target field conditions from the baseline traffic data corresponding to the target test object, and to acquire output parameter data corresponding to the input parameter data from the baseline traffic data as baseline output parameter data.

[0023] The comparison processing module is used to compare the test output parameter data with the benchmark output parameter data to obtain comparison result information; wherein, the comparison result information includes the difference data between the test output parameter data and the benchmark output parameter data, and the comparison result information is used to determine the parameter transmission test result of the target test object for the target test scenario.

[0024] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the parameter transfer test method provided in embodiments of this disclosure.

[0025] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program for executing the parameter transfer test method provided in embodiments of this disclosure.

[0026] Fifthly, this disclosure provides a computer program product comprising a computer program / instruction that, when executed by a processor, implements the method described above.

[0027] The technical solution provided in this disclosure has the following advantages compared with the prior art:

[0028] In the parameter transfer testing method provided in this embodiment, in response to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, output parameter data corresponding to the input parameter data is obtained from the test traffic data as test output parameter data. The target field conditions are used to describe the feature information of the input parameter data corresponding to the target test scenario of the target test object. Then, input parameter data that meets the target field conditions is obtained from the baseline traffic data corresponding to the target test object, and output parameter data corresponding to the input parameter data is obtained from the baseline traffic data as baseline output parameter data. The test output parameter data and the baseline output parameter data are then compared to obtain comparison result information. The comparison result information includes the difference data between the test output parameter data and the baseline output parameter data. The comparison result information is used to determine the parameter transfer test result of the target test object for the target test scenario.

[0029] As can be seen, this embodiment of the present disclosure obtains the test output data and the baseline output data corresponding to the input data that meet the target field conditions from the test traffic data and the baseline traffic data, respectively, and determines the difference data between the two by parameter comparison, so as to reflect the parameter transmission test result corresponding to the input data, thereby realizing the parameter transmission test function of the application and reducing the probability of parameter transmission errors in the released application. Attached Figure Description

[0030] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0031] Figure 1 A flowchart illustrating a parameter transfer testing method provided in an embodiment of this disclosure;

[0032] Figure 2 This is a schematic diagram illustrating a process for collecting test traffic data of a target test object, as provided in an embodiment of this disclosure.

[0033] Figure 3 A flowchart illustrating a parameter transfer testing method provided in an embodiment of this disclosure;

[0034] Figure 4 This is a schematic diagram of the structure of a parameter transfer testing device provided in an embodiment of the present disclosure;

[0035] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0036] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0037] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0038] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0039] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0040] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0041] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0042] Parameter passing test is a testing method that tests the parameters of an application. By testing the input and output parameter data of the application, it ensures the correctness of parameter passing during the application's operation.

[0043] To improve testing efficiency, this disclosure provides a parameter transfer testing method. Specifically, in response to matching input parameter data that meets target field conditions from the test traffic data of the target test object, output parameter data corresponding to the input parameter data is obtained from the test traffic data as test output parameter data. The target field conditions are used to describe the feature information of the input parameter data corresponding to the target test scenario of the target test object. Then, input parameter data that meets the target field conditions is obtained from the baseline traffic data corresponding to the target test object, and output parameter data corresponding to the input parameter data is obtained from the baseline traffic data as baseline output parameter data. The test output parameter data and the baseline output parameter data are then compared to obtain comparison result information. The comparison result information includes the difference data between the test output parameter data and the baseline output parameter data. The comparison result information is used to determine the parameter transfer test result of the target test object for the target test scenario.

[0044] As can be seen, this embodiment of the present disclosure obtains the test output data and the baseline output data corresponding to the input data that meet the target field conditions from the test traffic data and the baseline traffic data, respectively, and determines the difference data between the two by parameter comparison, so as to reflect the parameter transmission test result corresponding to the input data, thereby realizing the parameter transmission test function of the application and reducing the probability of parameter transmission errors in the released application.

[0045] Based on this, the present disclosure provides a parameter transfer testing method, which will be described below with reference to specific embodiments.

[0046] Figure 1 This is a flowchart illustrating a parameter transfer testing method provided in an embodiment of this disclosure. Figure 1 As shown, the method includes:

[0047] S101: In response to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, obtain the output parameter data corresponding to the input parameter data from the test traffic data as test output parameter data.

[0048] The target field conditions are used to describe the feature information of the input parameter data corresponding to the target test scenario of the target test object.

[0049] In this embodiment of the disclosure, the target test object may include an application or other object that needs to be tested. Specifically, the target test object may be a test of a specific application client, or a test of a specific application page, etc.

[0050] The test traffic data in this embodiment may include traffic data collected from the test environment. The test traffic data may include input parameter data prepared for the test, and output parameter data generated during the test based on the input parameter data.

[0051] In this embodiment of the disclosure, the target field condition is one or more of a plurality of field conditions, which are pre-set based on the target test scenario of the target test object. The target field condition is used to determine the target test scenario, that is, to distinguish the traffic data of the target test scenario from the traffic data through the pre-configured target field condition. The target test scenario can be any business scenario that needs to be tested for the target test object.

[0052] In one optional implementation, since the input parameter data contained in the traffic data includes feature fields and feature values, in order to accurately distinguish the input parameter data that conforms to the target test scenario of the target test object from the traffic data, the target field condition may include at least one feature field and the feature value of that feature field. That is, setting feature fields and their corresponding feature values ​​can distinguish traffic data under different test scenarios.

[0053] Specifically, different feature values ​​can be set for the same feature field to match input parameter data that matches the target test object in the test scenario. For example, for feature field "A", feature values ​​1 and 0 can be set. Assuming that the feature value of feature field A is 1 in scenario B and 0 in scenario C, if feature field A and input parameter data with a feature value of 1 are matched from the traffic data, then the input parameter data is determined to be traffic data generated in scenario B. If input parameter data with a feature value of 0 for feature field A are matched from the traffic data, then the input parameter data is determined to be traffic data generated in scenario C.

[0054] Specifically, it can also determine whether the value of the same feature field is empty to identify different scenarios.

[0055] In one optional implementation, the target field condition may further include at least one feature field that conforms to a preset regular expression. That is, the feature value of the feature field satisfies the preset regular expression. For example, assuming the feature field is Y, in scenario X, the feature value corresponding to Y conforms to the preset regular expression. When the input parameter data of feature field Y is matched from the traffic data, it is determined whether the feature value of Y conforms to the preset regular expression. If the feature value of Y conforms to the preset regular expression, then the input parameter data is determined to be the traffic data generated in scenario X.

[0056] Preferably, to further improve the accuracy of matching the input parameter data of the target test object in the target test scenario from traffic data, the target field condition may also include multiple feature fields and their corresponding feature values. That is, multiple feature fields and their corresponding feature values ​​are combined. For example, the field for the live streaming scenario is set to "Z", and the feature value corresponding to this feature field is "1". The feature field for influencer marketing is set to "R", and the feature value corresponding to this feature field is "1". Through the above two feature fields and feature values, input parameter data that matches the live streaming influencer marketing scenario can be distinguished from the traffic data.

[0057] In one optional implementation, the process involves matching input parameter data that meets target field conditions from test traffic data, and obtaining the corresponding output parameter data from the test traffic data. The test traffic data can be obtained in real-time from the test package using a parameter acquisition tool. Specifically, based on test package operations, input parameter data from the test traffic data is obtained in real-time, and input parameter data that meets the target field conditions is matched from the input parameter data in the test traffic data based on pre-configured target field conditions. When input parameter data that meets the target field conditions is matched from the test traffic data, the corresponding output parameter data is obtained based on the input parameter data that meets the target field conditions, and this output parameter data is used as the test output parameter data.

[0058] In another optional implementation, the test traffic data can also be traffic data pre-stored in a scenario traffic library. Specifically, firstly, based on the field conditions corresponding to multiple test scenarios, traffic data during the operation of the target test object is collected and stored as test traffic data of the target test object. Then, based on the target field conditions, when input parameter data that meets the target field conditions is matched from the test traffic data, the output parameter data corresponding to the input parameter data is obtained from the test traffic data.

[0059] This process involves collecting traffic data from the target test object during its operation, based on field conditions corresponding to multiple test scenarios, and storing this data as test traffic data for the target test object. Specifically, during the operation of the target test object, traffic data matching the field conditions corresponding to a first test scenario is collected, and the identifier of the first test scenario, the field conditions, and the correspondence between the traffic data are stored in a scenario traffic library. This scenario traffic library stores the test traffic data of the target test object and includes test traffic data for each test scenario. The correspondence between these traffic data is used to obtain the output parameter data corresponding to the input parameter data matching the field conditions of the first test scenario. The first test scenario can be any test scenario of the target test object.

[0060] like Figure 2The diagram illustrates a process for collecting test traffic data of a target test object according to an embodiment of this disclosure. During the operation of the target test object, traffic data is collected. Based on pre-configured field conditions, it is determined whether there is input parameter data in the collected traffic data that matches the field conditions corresponding to any test scenario. If input parameter data matching the field conditions corresponding to any test scenario is found in the traffic data, then the input parameter data matching the field conditions is obtained from the traffic data. Based on the input parameter data, the corresponding output parameter data is obtained from the traffic data. The input parameter data and parameter data are stored in the scenario traffic library as the test traffic data of the target test object in that test scenario.

[0061] Based on the above embodiments, this disclosure embodiment can further compare the field conditions in the test traffic data collected for the target test object with the field conditions of the traffic data in the scene traffic library. If the same field conditions exist, the test traffic data of the target test object collected this time can be discarded; otherwise, it is stored in the scene traffic library. Wherein, if the field conditions of the test traffic data collected for the target test object are the same as the field conditions of the traffic data in the scene traffic library, it indicates that the scene traffic library already contains traffic data for that test scene.

[0062] By comparing the field conditions of the test traffic data collected for the target test object with the field conditions of the traffic data in the scenario traffic library, it is possible to avoid repeatedly storing traffic data for the same test scenario.

[0063] S102: Obtain input parameter data that meets the target field conditions from the baseline traffic data corresponding to the target test object, and obtain the output parameter data corresponding to the input parameter data from the baseline traffic data as the baseline output parameter data.

[0064] The baseline traffic data in this embodiment may include traffic data generated by the target test object during actual application. That is, traffic data generated by actual user operations after online verification.

[0065] In one optional implementation, the baseline traffic data may include operational data generated by the target test object during actual application.

[0066] S103: Compare the test output data with the benchmark output data to obtain comparison result information.

[0067] The comparison result information includes the difference data between the test output parameter data and the benchmark output parameter data. The comparison result information is used to determine the parameter transfer test results of the target test object for the target test scenario.

[0068] In this embodiment of the disclosure, the obtained test parameter data and benchmark parameter data are compared based on the target field conditions to obtain comparison result information, which makes it easier for users to view the difference between the test parameter data and the benchmark parameter data.

[0069] The comparison results include the difference between the test parameter data and the benchmark parameter data, which is used to determine whether there are any problems with the parameter data.

[0070] In practical applications, to reduce the amount of comparison data between test output data and benchmark output data and improve testing efficiency, embodiments of this disclosure can also set a preset noise template to filter the test output data and benchmark output data. The preset noise template stores preset fields, which are used to remove preset fields from the test output data and benchmark output data. These preset fields may include additional output parameters generated in the target test scenario based on the target test object, and output parameters that are not of primary concern.

[0071] In one optional implementation, the test parameter data and the benchmark output data are filtered by using preset noise, and then the filtered test output data and the benchmark output data are compared to obtain the comparison result information.

[0072] As can be seen, this embodiment of the present disclosure obtains the test output data and the baseline output data corresponding to the input data that meet the target field conditions from the test traffic data and the baseline traffic data, respectively, and determines the difference data between the two by parameter comparison, so as to reflect the parameter transmission test result corresponding to the input data, thereby realizing the parameter transmission test function of the application and reducing the probability of parameter transmission errors in the released application.

[0073] In practical applications, if the target test object is not published, there may be a situation where there is no baseline traffic data. In this case, parameter passing tests are performed on the target test object. This embodiment of the disclosure can also simulate user interface interactions based on input parameter data that meets the field conditions corresponding to the test scenario of the target test object, thereby obtaining the baseline traffic data of the target test object. Specifically, the user interface model is created based on the input parameter data corresponding to the field conditions of the test scenario of the target test object. This can be achieved by simulating user operations in a baseline environment using automated testing tools. Simulating user operations in a baseline environment using automated testing tools can simulate user interaction with the application or website in the baseline environment, automating user interface operations such as clicking buttons, entering text, and selecting options.

[0074] Based on the above embodiments, test traffic data can also be obtained using automated testing tools in this disclosure. In one optional implementation, for the target test object, user interface interaction simulation is performed in the test environment based on input parameter data that meets the field conditions corresponding to the test scenario of the target test object, to obtain the test traffic data of the target test object.

[0075] To facilitate understanding of the parameter transfer testing method provided in the embodiments of this disclosure, the embodiments of this disclosure provide a parameter transfer testing process based on a specific application scenario, such as... Figure 3 The diagram shown is a flowchart illustrating a parameter transfer testing method provided in an embodiment of this disclosure.

[0076] In one optional implementation, firstly, when input parameter data that meets the target field conditions is matched from the scene traffic library of the target test object, output parameter data corresponding to the input parameter data is obtained from the scene traffic library based on the input parameter data, and used as test output parameter data.

[0077] Then, input parameter data that meets the target field condition is obtained from the baseline traffic data of the target test object. Based on the input parameter data, the corresponding output parameter data is obtained from the baseline traffic data as the baseline output parameter data.

[0078] Then, based on the obtained test output data and benchmark output data, the two are compared to obtain the comparison result information.

[0079] This embodiment of the disclosure obtains test output data and baseline output data corresponding to input data that meet the target field conditions from test traffic data and baseline traffic data, respectively, and determines the difference data between the two by parameter comparison, so as to reflect the parameter transmission test result corresponding to the input data, thereby realizing the parameter transmission test function of the application and reducing the probability of parameter transmission errors in the released application.

[0080] To implement the above embodiments, this disclosure also proposes a parameter transfer testing device. Figure 4 This is a schematic diagram of a parameter transfer testing device provided in an embodiment of this disclosure. Figure 4 As shown, the device includes:

[0081] The first acquisition module 401 is used to, in response to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, acquire the output parameter data corresponding to the input parameter data from the test traffic data as test output parameter data; wherein, the target field conditions are used to describe the feature information of the input parameter data corresponding to the target test scenario of the target test object;

[0082] The second acquisition module 402 is used to acquire input parameter data that meets the target field conditions from the baseline traffic data corresponding to the target test object, and acquire output parameter data corresponding to the input parameter data from the baseline traffic data as baseline output parameter data;

[0083] The comparison processing module 403 is used to compare the test output parameter data with the benchmark output parameter data to obtain comparison result information; wherein, the comparison result information includes the difference data between the test output parameter data and the benchmark output parameter data, and the comparison result information is used to determine the parameter transmission test result of the target test object for the target test scenario.

[0084] In one optional embodiment, the apparatus further includes:

[0085] The first receiving module is configured to receive target field conditions set for the target test scenario of the target test object; wherein the target field conditions include at least one feature field and the feature value of the feature field.

[0086] In one optional implementation, the at least one feature field conforms to a preset regular expression.

[0087] In one optional embodiment, the apparatus further includes:

[0088] The data acquisition module is used to collect traffic data of the target test object during its operation based on field conditions corresponding to multiple test scenarios, and store it as test traffic data of the target test object.

[0089] In one optional implementation, the data acquisition module is specifically used for:

[0090] During the operation of the target test object, traffic data that meets the field conditions corresponding to the first test scenario is collected, and the identifier of the first test scenario, the field conditions, and the correspondence between the traffic data are stored in the scenario traffic library; wherein, the scenario traffic library is used to store the test traffic data of the target test object.

[0091] In one optional embodiment, the apparatus further includes:

[0092] A filtering module is used to filter the test output data and the benchmark output data by using a preset noise template; wherein, the preset noise template stores preset fields, and the preset noise template is used to filter the preset fields from the test output data and the benchmark output data.

[0093] In one optional embodiment, the apparatus further includes:

[0094] The interactive simulation module is used to simulate user interface interaction for the target test object based on input parameter data that meets the field conditions corresponding to the test scenario of the target test object, so as to obtain the test traffic data of the target test object.

[0095] In the parameter transfer testing apparatus provided in this embodiment, in response to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, output parameter data corresponding to the input parameter data is obtained from the test traffic data as test output parameter data. The target field conditions are used to describe the feature information of the input parameter data corresponding to the target test scenario of the target test object. Then, input parameter data that meets the target field conditions is obtained from the baseline traffic data corresponding to the target test object, and output parameter data corresponding to the input parameter data is obtained from the baseline traffic data as baseline output parameter data. The test output parameter data and the baseline output parameter data are then compared to obtain comparison result information. The comparison result information includes the difference data between the test output parameter data and the baseline output parameter data. The comparison result information is used to determine the parameter transfer test result of the target test object for the target test scenario.

[0096] As can be seen, this embodiment of the present disclosure obtains the test output data and the baseline output data corresponding to the input data that meet the target field conditions from the test traffic data and the baseline traffic data, respectively, and determines the difference data between the two by parameter comparison, so as to reflect the parameter transmission test result corresponding to the input data, thereby realizing the parameter transmission test function of the application and reducing the probability of parameter transmission errors in the released application.

[0097] The parameter transfer testing apparatus provided in this disclosure can execute the parameter transfer testing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the method execution.

[0098] To implement the above embodiments, this disclosure also proposes a computer program product, including a computer program / instruction, which, when executed by a processor, implements the parameter passing test method in the above embodiments.

[0099] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure.

[0100] The following is a detailed reference. Figure 5The diagram illustrates a structural schematic suitable for implementing the electronic device 500 in the embodiments of this disclosure. The electronic device 500 in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0101] like Figure 5 As shown, the electronic device 500 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0102] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0103] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the parameter transfer testing method of embodiments of this disclosure.

[0104] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0105] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0106] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0107] The aforementioned computer-readable medium carries one or more programs. When the aforementioned one or more programs are executed by the electronic device, the electronic device causes the following actions: in response to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, the electronic device obtains the output parameter data corresponding to the input parameter data from the test traffic data as test output parameter data, wherein the target field conditions are used to describe the characteristic information of the input parameter data corresponding to the target test scenario of the target test object; then, the electronic device obtains input parameter data that meets the target field conditions from the baseline traffic data corresponding to the target test object, and obtains the output parameter data corresponding to the input parameter data from the baseline traffic data as baseline output parameter data; and then compares the test output parameter data with the baseline output parameter data to obtain comparison result information, wherein the comparison result information includes the difference data between the test output parameter data and the baseline output parameter data, and the comparison result information is used to determine the parameter transmission test result of the target test object for the target test scenario. Therefore, in the embodiments of this disclosure, by obtaining the test output parameter data and benchmark output parameter data corresponding to the input parameter data that meet the target field conditions from the test traffic data and benchmark traffic data respectively, and determining the difference data between the two by parameter comparison, the parameter transmission test result corresponding to the input parameter data is reflected, thereby realizing the parameter transmission test function of the application and reducing the probability of parameter transmission errors in the released application. Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof. The aforementioned programming languages ​​include, but are not limited to, object-oriented programming languages—such as Java, Smalltalk, and C++—and also conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0108] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0109] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.

[0110] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0111] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0112] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0113] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0114] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A parameter transfer testing method, characterized in that, include: In response to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, the output parameter data corresponding to the input parameter data is obtained from the test traffic data as test output parameter data; wherein, the target field conditions are used to describe the feature information of the input parameter data corresponding to the target test scenario of the target test object; Obtain input parameter data that meets the target field conditions from the baseline traffic data corresponding to the target test object, and obtain the output parameter data corresponding to the input parameter data from the baseline traffic data as the baseline output parameter data; The test parameter data is compared with the baseline parameter data to obtain comparison result information; wherein, the comparison result information includes the difference data between the test parameter data and the baseline parameter data, and the comparison result information is used to determine the parameter transmission test result of the target test object for the target test scenario.

2. The method according to claim 1, characterized in that, Before the step of responding to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, and obtaining the output parameter data corresponding to the input parameter data from the test traffic data as the test output parameter data, the step further includes: Receive target field conditions set for the target test scenario of the target test object; wherein, the target field conditions include at least one feature field and the feature value of the feature field.

3. The method according to claim 2, characterized in that, The at least one feature field conforms to a preset regular expression.

4. The method according to claim 1, characterized in that, Before the step of responding to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, and obtaining the output parameter data corresponding to the input parameter data from the test traffic data as the test output parameter data, the step further includes: Based on the field conditions corresponding to multiple test scenarios, the traffic data of the target test object during operation is collected and stored as the test traffic data of the target test object.

5. The method according to claim 4, characterized in that, The process of collecting traffic data of the target test object during operation based on field conditions corresponding to multiple test scenarios and storing it as test traffic data of the target test object includes: During the operation of the target test object, traffic data that meets the field conditions corresponding to the first test scenario is collected, and the identifier of the first test scenario, the field conditions, and the correspondence between the traffic data are stored in the scenario traffic library; wherein, the scenario traffic library is used to store the test traffic data of the target test object.

6. The method according to claim 1, characterized in that, Before comparing the test parameter data with the benchmark parameter data to obtain the comparison result information, the method further includes: The test output data and the benchmark output data are filtered by a preset noise template. The preset noise template stores preset fields and is used to filter the preset fields from the test output data and the benchmark output data.

7. The method according to claim 1, characterized in that, Before the step of responding to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, and obtaining the output parameter data corresponding to the input parameter data from the test traffic data as the test output parameter data, the step further includes: For the target test object, user interface interaction simulation is performed based on the input parameter data that meets the field conditions corresponding to the test scenario of the target test object to obtain the test traffic data of the target test object.

8. A parameter transfer testing device, characterized in that, The device includes: The first acquisition module is used to, in response to matching input parameter data that meets the target field conditions from the test traffic data of the target test object, acquire the output parameter data corresponding to the input parameter data from the test traffic data as test output parameter data; wherein, the target field conditions are used to describe the feature information of the input parameter data corresponding to the target test scenario of the target test object; The second acquisition module is used to acquire input parameter data that meets the target field conditions from the baseline traffic data corresponding to the target test object, and to acquire output parameter data corresponding to the input parameter data from the baseline traffic data as baseline output parameter data. The comparison processing module is used to compare the test output parameter data with the benchmark output parameter data to obtain comparison result information; wherein, the comparison result information includes the difference data between the test output parameter data and the benchmark output parameter data, and the comparison result information is used to determine the parameter transmission test result of the target test object for the target test scenario.

9. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the parameter transfer test method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program for executing the parameter transfer test method according to any one of claims 1-7.

11. A computer program product, characterized in that, The computer program product includes a computer program / instruction that, when executed by a processor, implements the method as described in any one of claims 1-7.