CN111382075B - Automatic test data processing method and device - Google Patents

Automatic test data processing method and device Download PDF

Info

Publication number
CN111382075B
CN111382075B CN202010162509.1A CN202010162509A CN111382075B CN 111382075 B CN111382075 B CN 111382075B CN 202010162509 A CN202010162509 A CN 202010162509A CN 111382075 B CN111382075 B CN 111382075B
Authority
CN
China
Prior art keywords
result
comparison
rule
output result
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010162509.1A
Other languages
Chinese (zh)
Other versions
CN111382075A (en
Inventor
刘清洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Tongbang Zhuoyi Technology Co ltd
Original Assignee
Beijing Tongbang Zhuoyi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tongbang Zhuoyi Technology Co ltd filed Critical Beijing Tongbang Zhuoyi Technology Co ltd
Priority to CN202010162509.1A priority Critical patent/CN111382075B/en
Publication of CN111382075A publication Critical patent/CN111382075A/en
Application granted granted Critical
Publication of CN111382075B publication Critical patent/CN111382075B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a data processing method and a device for automatic test, comprising the following steps: obtaining an output result obtained after the interface to be tested processes the test parameters; obtaining a corresponding comparison rule according to the parameter type of the output result, wherein the comparison rule comprises: consistency, containment relationship; comparing the output result with the predicted result according to the comparison rule to obtain a comparison result; the prediction result is used for judging whether the output result accords with the expectation; and determining a test result of the interface to be tested according to the comparison result. By the method, related testers can automatically compare output results only by carrying out rule configuration in advance to obtain the test result of the interface to be tested, and further judge whether the performance of the interface to be tested meets the expectations; the operation of the tester can be greatly simplified and the accuracy can be improved.

Description

Automatic test data processing method and device
Technical Field
The present application relates to the field of testing technologies, and in particular, to a data processing method and apparatus for automatic testing.
Background
The interface test is a test for testing interfaces between components of a system, and is mainly used for testing interfaces between the system and other external systems and interfaces between all sub-modules in the system. The key points of the test are to check the correctness of the interface parameter transmission, the correctness of the interface function realization, the correctness of the output result and the integrity and rationality of fault tolerance treatment of various abnormal conditions.
In the prior art, the purpose of judging whether the interface function can be correctly realized and how the output result is correct is realized by comparing the output results in the interface test process, and most of the purposes are to compare the output results by human beings or to write assertions; however, the output result is compared manually or the output result is compared in a writing and asserting mode, so that the workload is still large, the operation is complicated and the accuracy is not high for the testers; it is difficult to adapt to the high-strength test requirements and the high-strength test precision of the prior art enterprises.
Aiming at a plurality of technical problems existing in the related art, no effective solution is provided at present.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a data processing method and apparatus for automated testing.
In a first aspect, an embodiment of the present application provides a data processing method for automated testing, including:
obtaining an output result obtained after the interface to be tested processes the test parameters;
obtaining a corresponding comparison rule according to the parameter type of the output result, wherein the comparison rule is used for comparing the output rule with a preset prediction result, and the prediction result is used for judging whether the output result accords with an expected or not;
comparing the output result with the predicted result according to the comparison rule to obtain a comparison result; wherein the prediction result includes: inputting the test parameters into the interface to be tested, and then expecting an obtained result;
and determining a test result of the interface to be tested according to the comparison result.
Optionally, in the foregoing data processing method, the obtaining a corresponding comparison rule according to the parameter type of the output result includes:
determining a history comparison rule adopted when comparing the target history output result; the target historical output result is a historical output result meeting a first preset condition in a historical output result set corresponding to the parameter type;
and determining the comparison rule according to the history comparison rule.
Optionally, in the foregoing data processing method, determining the comparison rule according to the historical comparison rule includes:
acquiring a history comparison result corresponding to the history comparison rule; wherein, the history comparison result includes: comparing the historical output results corresponding to the parameter types by adopting the historical comparison rule to obtain results;
and when the first forming power corresponding to the history comparison result accords with a second preset condition, taking the history comparison rule as the comparison rule.
Optionally, the data processing method, after obtaining the history comparison result corresponding to the history comparison rule, further includes:
when the first forming power corresponding to the history comparison result does not meet a second preset condition, judging that the history comparison rule is not suitable for the parameter type, and obtaining a judgment result;
and generating rule reselection information according to the judging result, wherein the rule reselection information is used for prompting reselection of the comparison rule corresponding to the interface to be tested.
Optionally, in the foregoing data processing method, comparing the output result with the predicted result according to the comparison rule to obtain a comparison result, including:
determining a logical relationship between the predicted outcome and the output outcome, the logical relationship comprising: consistency, containment relationship;
and obtaining the comparison result by judging whether the logic relationship accords with the comparison rule.
Optionally, in the foregoing data processing method, the determining a test result of the interface to be tested according to the comparison result includes:
obtaining comparison results obtained after a plurality of test parameters are input into the interface to be tested;
obtaining second power formed after the interface to be tested processes the test parameters according to the comparison results;
when the second power is in a preset second power forming interval, judging that the interface to be tested passes the test;
and when the second power is not in the second power forming interval, judging that the interface test to be tested fails.
Optionally, in the foregoing data processing method, the obtaining a corresponding comparison rule according to the parameter type of the output result includes:
according to a preset rule corresponding relation, matching to obtain the comparison rule corresponding to the parameter type; the rule correspondence includes correspondence between parameter types and candidate comparison rules.
In a second aspect, an embodiment of the present application provides a data processing apparatus for automated testing, including:
the output result acquisition module is used for acquiring an output result obtained after the interface to be tested processes the test parameters;
the rule acquisition module is used for acquiring a corresponding comparison rule according to the parameter type of the output result, wherein the comparison rule is used for comparing the output rule with a preset prediction result, and the prediction result is used for judging whether the output result accords with an expected or not;
the comparison module is used for comparing the output result with the predicted result according to the comparison rule to obtain a comparison result; the prediction result is used for judging whether the output result accords with the expectation;
and the judging module is used for determining a test result of the interface to be tested according to the comparison result.
In a third aspect, an embodiment of the present application provides an electronic device, including: the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement a processing method according to any one of the preceding claims when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform the processing method according to any one of the preceding claims.
The embodiment of the application provides a data processing method and device for automatic test, comprising the following steps: obtaining an output result obtained after the interface to be tested processes the test parameters; obtaining a corresponding comparison rule according to the parameter type of the output result, wherein the comparison rule is used for comparing the output rule with a preset prediction result, and the prediction result is used for judging whether the output result accords with an expected or not; comparing the output result with the predicted result according to the comparison rule to obtain a comparison result; and determining a test result of the interface to be tested according to the comparison result. By the method, related testers can automatically compare output results only by carrying out rule configuration in advance to obtain the test result of the interface to be tested, and further judge whether the performance of the interface to be tested meets the expectations; the operation of the tester can be greatly simplified and the accuracy can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a data processing method for automated testing according to an embodiment of the present application;
FIG. 2 is a flow chart of a data processing method for automated testing according to another embodiment of the present application;
FIG. 3 is a flow chart of a data processing method for automated testing according to another embodiment of the present application;
FIG. 4 is a flow chart of a data processing method for automated testing according to another embodiment of the present application;
FIG. 5 is a flow chart of a data processing method for automated testing according to another embodiment of the present application;
FIG. 6 is a block diagram of an automated test data processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 is a schematic diagram of a data processing method for automated testing according to an embodiment of the present application, including steps S1 to S4 as follows:
s1, obtaining an output result obtained after the interface to be tested processes the test parameters;
specifically, when designing an interface, the method is to process the test parameters to obtain an output result meeting the preset requirement or purpose, and determine whether the performance of an interface meets the preset requirement, and then the interface test is required to be performed on the interface to be tested.
S2, acquiring a corresponding comparison rule according to the parameter type of the output result, wherein the comparison rule is used for comparing the output rule with a preset prediction result, the prediction result is used for judging whether the output result accords with the expectation, and the comparison rule comprises the following steps: consistency, containment relationship. Wherein, the consistency in the comparison rules can be equal or unequal; containment relationships may include: contain, contained, not; further, the comparison rule may also include whether the output result is empty.
Optionally, the prediction result may be preset, and the prediction result is specifically: when the interface to be tested meets the preset function requirement, the result is expected after the test parameters are input.
Specifically, the comparison rule is comparison logic for comparing the output result with the predicted result; taking the output result as a key-value (key value pair) as an example, the type of the output result can be the type of the key of the output result, for example, when the type of the output result is an ID, the type is generally a character string, the type of the value of the output result (namely, the data type of the output result parameter value) can also be the type of the key and the value of the output result, and the specific type of the specification can be selected according to specific situations; the corresponding comparison rule is obtained according to the parameter type of the output result, for example: when the comparison rule is selected by default according to the key and value types of the expected output result, the corresponding comparison rule is generally consistent if the output result is a character string, the corresponding comparison rule is generally equal if the output result is a number or true or false, the corresponding comparison rule is generally unequal if the output result is a timestamp, and further optionally, the comparison rule can be manually modified if special requirements exist.
And S3, comparing the output result with the predicted result according to the comparison rule to obtain a comparison result.
Specifically, the comparison between the output result and the predicted result is used to obtain a logic relationship between the output result and the predicted result, and the specific logic relationship may be one of the steps S2 or other relationships, which are not listed here one by one; when the relation between the output result and the predicted result is consistent with the relation defined in the comparison rule, the comparison result is successful (generally, the representation is performed through true); when the relationship between the output result and the predicted result is inconsistent with the relationship defined in the comparison rule, the comparison result is failed (generally, characterization is performed by false).
And S4, determining a test result of the interface to be tested according to the comparison result.
Specifically, the test result of the interface to be tested can be determined through the comparison result obtained by one or more groups of test parameters; when a plurality of groups of test parameters are set, testing the interfaces to be tested according to the steps S1 to S3 through each group of test parameters respectively, and obtaining a corresponding number of comparison results; and then determining the test result of the interface to be tested according to the success rate or the number of the comparison results.
By the method in the embodiment, the related testers can automatically compare the output results only by carrying out rule configuration in advance, so as to obtain the test result of the interface to be tested, and further judge whether the performance of the interface to be tested meets the expectations; the operation of the tester can be greatly simplified and the accuracy can be improved.
In some embodiments, in the foregoing data processing method, the step S2 of obtaining the corresponding comparison rule according to the parameter type of the output result specifically includes:
matching to obtain a comparison rule corresponding to the parameter type according to a preset rule corresponding relation; the rule correspondence includes correspondence between parameter types and candidate comparison rules.
Specifically, the system or software including the device in this embodiment may store various comparison rules by presetting a rule base therein, and store the correspondence between the various comparison rules and parameter types, so as to allow automatic matching or manual selection during comparison. The configured comparison rule can be pre-encoded in the program by manpower, the newly configured comparison rule of the operator on the page can be supported in real time, the newly added comparison rule can be shared with other people, and the newly added comparison rule can be used by only the login person. The pre-configured alignment rules may be equal, unequal, inclusive, non-inclusive, or non-null.
As shown in fig. 2, in some embodiments, as in the foregoing data processing method, step S2 obtains a corresponding comparison rule according to a parameter type of an output result, and includes steps S211 to S212 as follows:
s211, determining a history comparison rule adopted when comparing target history output results; the target historical output result is a historical output result meeting a first preset condition in a historical output result set corresponding to the parameter type;
specifically, the above-mentioned history output result is an output result that is also used for testing the interface to be tested before the present output result is compared, and because the history output result and the present output result are both used for testing the same interface and are used for recommending a comparison rule to the present comparison, the parameter type of the selected history output result in the embodiment is required to be consistent with the parameter type of the output result in the step S1; the target historical output result may be a historical output result that has been compared selected according to a first preset condition (e.g., a last output result or an output result for a certain test period, etc.); and the history output result set can store all the history output results obtained after the interfaces to be tested are tested, and the parameter types of the history output results are consistent with the parameter types of the output results in the step S1.
And S212, determining a comparison rule according to the history comparison rule.
Specifically, when the first preset condition is the last history output result of the comparison, the history comparison rule obtained according to the first preset condition is the last selected comparison rule, so that the last selected comparison rule is reserved, and the next automatic carrying-out of the last selected comparison rule is the default comparison rule of the parameter type. For example, when the parameter type is determined from the key, and the output result is: name: liu, and its selected alignment rule is inclusive, then the next time this key of name is again aligned, the alignment rule that will be directly brought out is still inclusive.
As shown in fig. 3, in some embodiments, as the aforementioned data processing method, step S2 determines an alignment rule according to a history alignment rule, including steps S221 and S222 as follows:
s221, obtaining a history comparison result corresponding to the history comparison rule; wherein, history comparison result includes: and comparing the historical output results corresponding to the parameter types by adopting a historical comparison rule.
Specifically, the parameter type of the history output result defined in the embodiment is consistent with the parameter type of the output result in the step S2, so that part or all of the history output results corresponding to the parameter type of the output result in the step S2 can be obtained, and a comparison result obtained by using a history comparison rule for the part or all of the history output results is obtained; for example, when the parameter type of the output result in the step S2 is T1, all or part of the historical output results (H1, H2 … HN) with the parameter type of T1 obtained through the interface to be tested are obtained; and then obtaining the history comparison results (C1, C2 … CN) of the history output results.
And S222, when the first forming power corresponding to the history comparison result meets a second preset condition, taking the history comparison rule as the comparison rule.
Optionally, in the foregoing data processing method, after the history comparing result corresponding to the history comparing rule is obtained in step S221, steps A1 and A2 are further included as follows:
step A1, when the first forming power corresponding to the history comparison result does not accord with a second preset condition, judging that the history comparison rule is not suitable for the parameter type, and obtaining a judgment result;
and step A2, generating rule reselection information according to the judging result, wherein the rule reselection information is used for prompting reselection of the comparison rule corresponding to the interface to be tested.
Specifically, the step S221 may obtain a result of multiple comparison on the interface to be tested by using a history comparison rule, and since each history comparison result has only one possibility of success or failure, the first power for testing the interface to be tested by using the history comparison rule may be obtained by calculating according to the history comparison result; the second preset condition may be a numerical interval (for example, [80% -100% ]), and when the obtained first power is 90%, it is determined that the first power meets the second preset condition, the history comparison rule is approximately applicable to the interface to be tested; on the contrary, when the first power is only 20%, the first power is judged to be not in accordance with the second preset condition, and besides the problem of the interface to be tested is eliminated, the problem of selection of the history comparison rule is most likely to occur, so that rule reselection information is generated; optionally, the rule reselection information may generate corresponding prompt information to remind an operator to replace the comparison rule, and replacement of the comparison rule may be performed by the operator to select an optimal comparison rule according to the historical result.
Therefore, by the method in this embodiment, whether the selected comparison rule is correct or not can be determined according to the parameter type of the output result; the error selection comparison rule of the tester is avoided, meanwhile, the comparison rule can be checked, and an operator is reminded to replace the rule in time, so that time is not wasted for error testing.
As shown in fig. 4, in some embodiments, as in the foregoing data processing method, the step S3 is to compare the output result with the predicted result according to the comparison rule, so as to obtain a comparison result, and includes the following steps S31 and S32:
s31, determining a logic relation between a predicted result and an output result, wherein the logic relation comprises: consistency, containment relationship;
specifically, the logical relationship between the predicted result and the output result may be one of equal, unequal, including, included, not including, or not including, and therefore, the aforementioned comparison rule, the history comparison rule, and the candidate comparison rule may be one of equal, unequal, including, included, not including, or not including. In some cases, other logical relationships may also be included.
S32, judging whether the logic relationship accords with the comparison rule or not to obtain a comparison result.
Specifically, for example, taking whether the values of the keys and the values are consistent as an example, when the value prediction result of the key meets the comparison rule with the actually obtained value, if yes, the true is returned, if not, the false is returned, if all true, the success is achieved, and if false, the failure is returned, and the failure item is displayed. Only one rule can be aligned at a time. For example, the predicted outcome name: liu, the actual output value is name: wang, when the alignment rules are equal, then returning an alignment result false after the alignment is completed, if the actual output is name: liu, then the comparison returns true, other keys and values, and so on, until all return true, the comparison is successful.
As shown in fig. 5, in some embodiments, the step S4 of determining the test result of the interface to be tested according to the comparison result according to the foregoing data processing method includes the following steps S41 to S44:
and S41, obtaining comparison results obtained after a plurality of test parameters are input into the interfaces to be tested.
Specifically, the performance of the interface to be tested is judged through a plurality of comparison results, so that some abnormal factors in the interface to be tested can be effectively filtered, and the test results are more credible; therefore, in this embodiment, a plurality of comparison results need to be obtained.
And S42, obtaining second power formed after the interface to be tested processes the test parameters according to the comparison results.
Specifically, since each comparison result generally has only one possibility of success or failure, the second power can be calculated according to a plurality of comparison results corresponding to the interface to be tested, and the second power is used for measuring the coincidence degree of the output result obtained by processing the test parameters by the interface to be tested and the prediction result, namely whether the interface to be tested meets the preset performance requirement.
S43, judging that the interface to be tested passes the test when the second power is in a preset second power forming interval;
and S44, judging that the interface test to be tested fails when the second power is not in the second power forming interval.
Specifically, the second power forming interval can be a numerical value interval (for example, [70% -100% ]), when the obtained second power forming is 90%, the second power forming interval is judged, the performance of the interface to be tested is judged to meet the performance requirement, and the test is passed; otherwise, when the first power is only 20%, the second power is determined not to be in the second power forming interval, which indicates that the interface to be tested has a larger problem, the performance requirement is not met, and the test is failed.
As shown in fig. 6, according to another aspect of the present application, there is also provided a data processing apparatus for automated testing, including:
the output result acquisition module 1 is used for acquiring an output result obtained after the interface to be tested processes the test parameters;
the rule acquisition module 2 is used for acquiring a corresponding comparison rule according to the parameter type of the output result, wherein the comparison rule is used for comparing the output rule with a preset prediction result, and the prediction result is used for judging whether the output result accords with an expected or not;
the comparison module 3 is used for comparing the output result with the predicted result according to the comparison rule to obtain a comparison result;
and the judging module 4 is used for determining a test result of the interface to be tested according to the comparison result.
In particular, the specific process of implementing the functions of each module in the apparatus of the embodiment of the present application may be referred to the related description in the method embodiment, which is not repeated herein.
According to another embodiment of the present application, there is also provided an electronic apparatus including: as shown in fig. 7, the electronic device may include: the device comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 are in communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to execute the program stored in the memory 1503, thereby implementing the steps of the method embodiment described above.
The buses mentioned for the above electronic devices may be peripheral component interconnect standard (Peripheral Component Interconnect, PCI) buses or extended industry standard architecture (Extended Industry Standard Architecture, EISA) buses, etc. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also Digital signal processors (Digital SignalProcessing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The embodiment of the application also provides a non-transitory computer readable storage medium, which stores computer instructions that cause a computer to execute the steps of the method embodiment.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A method of data processing for automated testing, comprising:
obtaining an output result obtained after the interface to be tested processes the test parameters;
obtaining a corresponding comparison rule according to the parameter type of the output result, wherein the comparison rule comprises the following steps: determining a history comparison rule adopted when comparing the target history output result; the target historical output result is a historical output result meeting a first preset condition in a historical output result set corresponding to the parameter type; determining the comparison rule according to the history comparison rule; the comparison rule is used for comparing the output result with a preset prediction result, and the prediction result is used for judging whether the output result accords with the expectation;
comparing the output result with the predicted result according to the comparison rule to obtain a comparison result;
and determining a test result of the interface to be tested according to the comparison result.
2. The data processing method of claim 1, wherein determining the alignment rule based on the historical alignment rule comprises:
acquiring a history comparison result corresponding to the history comparison rule; wherein, the history comparison result includes: comparing the historical output results corresponding to the parameter types by adopting the historical comparison rule to obtain results;
and when the first forming power corresponding to the history comparison result accords with a second preset condition, taking the history comparison rule as the comparison rule.
3. The data processing method according to claim 2, further comprising, after obtaining the history alignment result corresponding to the history alignment rule:
when the first forming power corresponding to the history comparison result does not meet a second preset condition, judging that the history comparison rule is not suitable for the parameter type, and obtaining a judgment result;
and generating rule reselection information according to the judging result, wherein the rule reselection information is used for prompting reselection of the comparison rule corresponding to the interface to be tested.
4. The data processing method according to claim 1, wherein comparing the output result with the predicted result according to the comparison rule to obtain a comparison result, comprises:
determining a logical relationship between the predicted outcome and the output outcome;
and obtaining the comparison result by judging whether the logic relationship accords with the comparison rule.
5. The method for processing data according to claim 1, wherein determining the test result of the interface to be tested according to the comparison result includes:
obtaining comparison results obtained after a plurality of test parameters are input into the interface to be tested;
obtaining second power formed after the interface to be tested processes the test parameters according to the comparison results;
when the second power is in a preset second power forming interval, judging that the interface to be tested passes the test;
and when the second power is not in the second power forming interval, judging that the interface test to be tested fails.
6. The method according to claim 1, wherein the obtaining the corresponding comparison rule according to the parameter type of the output result includes:
according to a preset rule corresponding relation, matching to obtain the comparison rule corresponding to the parameter type; the rule correspondence includes correspondence between parameter types and candidate comparison rules.
7. A data processing apparatus for automated testing, comprising:
the output result acquisition module is used for acquiring an output result obtained after the interface to be tested processes the test parameters;
the rule obtaining module is used for obtaining a corresponding comparison rule according to the parameter type of the output result, and comprises the following steps: determining a history comparison rule adopted when comparing the target history output result; the target historical output result is a historical output result meeting a first preset condition in a historical output result set corresponding to the parameter type; determining the comparison rule according to the history comparison rule; the comparison rule is used for comparing the output result with a preset prediction result, and the prediction result is used for judging whether the output result accords with the expectation;
the comparison module is used for comparing the output result with the predicted result according to the comparison rule to obtain a comparison result;
and the judging module is used for determining a test result of the interface to be tested according to the comparison result.
8. An electronic device, comprising: the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor being adapted to implement the processing method of any of claims 1-6 when executing the computer program.
9. A non-transitory computer readable storage medium storing computer instructions that cause the computer to perform the processing method of any of claims 1-6.
CN202010162509.1A 2020-03-10 2020-03-10 Automatic test data processing method and device Active CN111382075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010162509.1A CN111382075B (en) 2020-03-10 2020-03-10 Automatic test data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010162509.1A CN111382075B (en) 2020-03-10 2020-03-10 Automatic test data processing method and device

Publications (2)

Publication Number Publication Date
CN111382075A CN111382075A (en) 2020-07-07
CN111382075B true CN111382075B (en) 2023-09-26

Family

ID=71218710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010162509.1A Active CN111382075B (en) 2020-03-10 2020-03-10 Automatic test data processing method and device

Country Status (1)

Country Link
CN (1) CN111382075B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021226A (en) * 2014-06-25 2014-09-03 华为技术有限公司 Method and device for updating prefetch rule
CN108696369A (en) * 2017-04-06 2018-10-23 华为技术有限公司 A kind of warning information processing equipment and method
CN109189679A (en) * 2018-08-24 2019-01-11 北京京东尚科信息技术有限公司 Interface test method and system, electronic equipment, storage medium
CN109491891A (en) * 2018-10-17 2019-03-19 深圳壹账通智能科技有限公司 Full-automatic interface pressure surveys method, apparatus, computer equipment and storage medium
CN109614309A (en) * 2018-10-22 2019-04-12 中国平安财产保险股份有限公司 Compare the method, apparatus, computer equipment and storage medium of test result
CN109739742A (en) * 2018-11-27 2019-05-10 口碑(上海)信息技术有限公司 Business datum checking method, device and equipment
CN109947646A (en) * 2019-03-13 2019-06-28 平安信托有限责任公司 Interface test method, device, computer equipment and storage medium
CN109947639A (en) * 2019-01-30 2019-06-28 兴业证券股份有限公司 ESB automatic interface testing method and storage medium
CN110362497A (en) * 2019-07-23 2019-10-22 上海金融期货信息技术有限公司 Cover the automation api interface test method and system of full unusual character
CN110750440A (en) * 2019-09-06 2020-02-04 平安普惠企业管理有限公司 Data testing method and terminal equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190362222A1 (en) * 2018-05-22 2019-11-28 Adobe Inc. Generating new machine learning models based on combinations of historical feature-extraction rules and historical machine-learning models

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021226A (en) * 2014-06-25 2014-09-03 华为技术有限公司 Method and device for updating prefetch rule
CN108696369A (en) * 2017-04-06 2018-10-23 华为技术有限公司 A kind of warning information processing equipment and method
CN109189679A (en) * 2018-08-24 2019-01-11 北京京东尚科信息技术有限公司 Interface test method and system, electronic equipment, storage medium
CN109491891A (en) * 2018-10-17 2019-03-19 深圳壹账通智能科技有限公司 Full-automatic interface pressure surveys method, apparatus, computer equipment and storage medium
CN109614309A (en) * 2018-10-22 2019-04-12 中国平安财产保险股份有限公司 Compare the method, apparatus, computer equipment and storage medium of test result
CN109739742A (en) * 2018-11-27 2019-05-10 口碑(上海)信息技术有限公司 Business datum checking method, device and equipment
CN109947639A (en) * 2019-01-30 2019-06-28 兴业证券股份有限公司 ESB automatic interface testing method and storage medium
CN109947646A (en) * 2019-03-13 2019-06-28 平安信托有限责任公司 Interface test method, device, computer equipment and storage medium
CN110362497A (en) * 2019-07-23 2019-10-22 上海金融期货信息技术有限公司 Cover the automation api interface test method and system of full unusual character
CN110750440A (en) * 2019-09-06 2020-02-04 平安普惠企业管理有限公司 Data testing method and terminal equipment

Also Published As

Publication number Publication date
CN111382075A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN111611172A (en) Project test defect analysis method, device, equipment and storage medium
CN110297767B (en) Automatic execution method, device, equipment and storage medium for test cases
CN111324540B (en) Interface testing method and device
CN110888799A (en) Software testing method and device
CN114443483A (en) Test method and device of artificial intelligence system, electronic equipment and medium
CN111382075B (en) Automatic test data processing method and device
CN117495544A (en) Sandbox-based wind control evaluation method, sandbox-based wind control evaluation system, sandbox-based wind control evaluation terminal and storage medium
CN112506802A (en) Test data management method and system
CN116756037A (en) Abnormal code positioning system, method, equipment and computer readable storage medium
CN111047017A (en) Neural network algorithm evaluation method and device and electronic equipment
CN114138659A (en) Test case processing method and system
CN110928765B (en) Link testing method and device
CN113360389A (en) Performance test method, device, equipment and storage medium
CN112231229A (en) Web UI (user interface) automatic testing method and system, electronic equipment and readable storage medium
CN111475400A (en) Verification method of service platform and related equipment
CN111782527A (en) Interface testing method and device, computer equipment and storage medium
CN111198798A (en) Service stability measuring method and device
CN112506803B (en) Big data testing method and system
CN114401494B (en) Short message issuing abnormality detection method, device, computer equipment and storage medium
CN111258916B (en) Automatic test method, device, storage medium and equipment
CN115936611A (en) Product link inspection method, electronic equipment and storage medium
CN107291613B (en) Functional node abnormity simulation method and device
CN114282699A (en) Approval process simulation operation method, system, terminal and medium
CN117591501A (en) Data cleaning method, device, equipment and storage medium
CN116415216A (en) Interface verification method and device, electronic equipment and storage medium

Legal Events

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