CN111258916B - Automatic test method, device, storage medium and equipment - Google Patents

Automatic test method, device, storage medium and equipment Download PDF

Info

Publication number
CN111258916B
CN111258916B CN202010151328.9A CN202010151328A CN111258916B CN 111258916 B CN111258916 B CN 111258916B CN 202010151328 A CN202010151328 A CN 202010151328A CN 111258916 B CN111258916 B CN 111258916B
Authority
CN
China
Prior art keywords
data
result
statistical
change
statistics
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
CN202010151328.9A
Other languages
Chinese (zh)
Other versions
CN111258916A (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.)
Beike Technology Co Ltd
Original Assignee
Beike 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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN202010151328.9A priority Critical patent/CN111258916B/en
Publication of CN111258916A publication Critical patent/CN111258916A/en
Application granted granted Critical
Publication of CN111258916B publication Critical patent/CN111258916B/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
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Abstract

The embodiment of the invention provides an automatic test method, an automatic test device, a storage medium and automatic test equipment, and belongs to the technical field of data test. The method comprises the following steps: when detecting that a change exists in the business data statistics link based on configuration, acquiring data statistics calculation rules related to a change place; acquiring business data generated based on a configured business process to be counted by a data statistics calculation rule and a system code corresponding to the data statistics calculation rule; checking the data statistics calculation rule by using the service data to obtain a first statistics data result corresponding to the data statistics calculation rule; verifying the system code by using the service data to obtain a second statistical data result generated by executing the system code; and determining a change test result of the current service data statistical link according to the first statistical data result and the second statistical data result. The embodiment of the invention is suitable for a testing process based on the data statistics of the configuration.

Description

Automatic test method, device, storage medium and equipment
Technical Field
The present invention relates to the field of data testing technologies, and in particular, to an automated testing method, an apparatus, a storage medium, and a device.
Background
The business is influenced by the factors of policies of various cities, and the business processes of various cities are quite different, so that in order to flexibly support the personalized transaction processes of various cities in the whole country, a transaction system is realized through a configuration scheme, and the operation of the transaction processes of hundreds of cities in the whole country is simultaneously supported. Because the business process is realized in a configuration mode, the transaction data generated by the transaction process is generated according to the defined transaction process, and the statistics of the transaction data is generated by substituting the transaction data generated by the transaction process into the configured data statistics rule and calculating through a statistics system. Because the link of the whole data statistics system is longer, the process is complex, and when the accuracy of the data calculated by the statistics system is verified, if the cost of manual testing is high, the problem of irrational configuration is not easy to find in time.
Disclosure of Invention
The embodiment of the invention aims to provide an automatic test method, an automatic test device, a storage medium and automatic test equipment, which solve the problems that in the prior art, when the accuracy of statistical data of a configuration-based service system is verified, the manual test is high in cost, the configuration is not easy to find timely, when a change exists in a configuration-based service data statistical link, service data generated by a service flow which is to be counted by a data statistical calculation rule related to the change is detected, the data statistical calculation rule and a corresponding system code are checked, and according to the check result of the data statistical calculation rule and the corresponding system code, the change test result of the configuration-based data statistical link is determined, so that the quick and low-cost automatic test of configuration-based data statistics is realized.
To achieve the above object, an embodiment of the present invention provides an automated testing method, including: when detecting that a change exists in the business data statistics link based on configuration, acquiring data statistics calculation rules related to a change place; acquiring business data which is to be counted by the data statistics calculation rule and is generated based on a configured business process, and a system code corresponding to the data statistics calculation rule; checking the data statistics calculation rule by using the service data to obtain a first statistics data result corresponding to the data statistics calculation rule; checking the system code by using the service data to obtain a second statistical data result generated by executing the system code; and determining a change test result of the current service data statistical link according to the first statistical data result and the second statistical data result.
Further, the change in the configuration-based traffic data statistics link is at least one of: based on the change of the configured business flow, the change of the data statistics calculation rule or the change of the system code of the data statistics.
Further, the determining, according to the first statistical data result and the second statistical data result, the change test result of the current service data statistical link includes: when detecting that the first statistical data result is abnormal, determining that the change test result of the current business data statistical link is that the data statistical calculation rule is unreasonable; when detecting that the second statistical data result is abnormal, determining that the changed test result of the current business data statistical link is abnormal; when the first statistical data result is inconsistent with the second statistical data result, determining that the change test result of the current service data statistical link is abnormal in system accuracy of data statistics; and when detecting that the first statistical data result and the second statistical data result are not abnormal, and comparing the first statistical data result with the second statistical data result to be consistent, determining that the change test result of the current service data statistical link is the passing test.
Further, the method further comprises: prompting to modify the data statistics calculation rule when the change test result of the current service data statistics link is determined to be that the data statistics calculation rule is unreasonable; prompting to modify the system code when the change test result of the current service data statistical link is determined to be abnormal; when the change test result of the current business data statistics link is determined to be abnormal in system accuracy of data statistics, prompting to modify the data statistics calculation rule and the corresponding system code.
Correspondingly, the embodiment of the invention also provides an automatic testing device, which comprises: the detection unit is used for detecting whether a change exists in the service data statistics link based on configuration; the first acquisition unit is used for acquiring a data statistics calculation rule related to a change place when the detection unit detects that a change exists in the service data statistics link based on configuration; the second acquisition unit is used for acquiring business data which is to be counted by the data statistics calculation rule and is generated based on the configured business process and a system code corresponding to the data statistics calculation rule; the rule checking unit is used for checking the data statistics calculation rule by utilizing the service data to obtain a first statistics data result corresponding to the data statistics calculation rule; the code verification unit is used for verifying the system code by using the service data to obtain a second statistical data result generated by executing the system code; and the determining unit is used for determining a change test result of the current service data statistical link according to the first statistical data result and the second statistical data result.
Further, the change in the configuration-based traffic data statistics link is at least one of: based on the change of the configured business flow, the change of the data statistics calculation rule or the change of the system code of the data statistics.
Further, the determining unit is further configured to determine that, when detecting that the first statistical data result is abnormal, the change test result of the current service data statistical link is that the data statistical calculation rule is unreasonable; when detecting that the second statistical data result is abnormal, determining that the changed test result of the current business data statistical link is abnormal; when the first statistical data result is inconsistent with the second statistical data result, determining that the change test result of the current service data statistical link is abnormal in system accuracy of data statistics; and when detecting that the first statistical data result and the second statistical data result are not abnormal, and comparing the first statistical data result with the second statistical data result to be consistent, determining that the change test result of the current service data statistical link is the passing test.
Further, the device also comprises a prompting unit, which is used for prompting to modify the data statistics calculation rule when the change test result of the current service data statistics link is determined to be unreasonable; prompting to modify the system code when the change test result of the current service data statistical link is determined to be abnormal; when the change test result of the current business data statistics link is determined to be abnormal in system accuracy of data statistics, prompting to modify the data statistics calculation rule and the corresponding system code.
Correspondingly, the embodiment of the invention also provides a storage medium, which comprises a stored program, wherein the device where the storage medium is controlled to execute the automatic test method when the program runs.
Correspondingly, the embodiment of the invention also provides equipment, which comprises at least one processor, at least one memory connected with the processor and a bus; wherein the processor and the memory complete communication with each other through the bus; the processor is configured to invoke program instructions in the memory to perform the automated test method as described above.
Through the technical scheme, when the change in the configuration-based service data statistics link is detected, the service data generated by the service flow to be counted by the data statistics calculation rule related to the change is utilized to check the data statistics calculation rule and the corresponding system code, and the change test result of the configuration-based data statistics link is determined according to the check results of the data statistics calculation rule and the corresponding system code, so that the quick and low-cost automatic test based on the configuration-based data statistics is realized.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain, without limitation, the embodiments of the invention. In the drawings:
FIG. 1 is a schematic flow chart of an automated testing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another automated testing method provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of an automated test equipment according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another automated testing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The following describes the detailed implementation of the embodiments of the present invention with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
Because of the different policies of each city, the business process is also quite different, taking the real estate transaction of each city as an example, links in the real estate transaction process of each city and information collected under each link are different, even the data with the same meaning and the defined names are inconsistent, so that in order to flexibly support the personalized real estate transaction process of each city in the whole country, a business system can be realized through a configuration scheme, and the real estate transaction process operation of hundreds of cities in the whole country can be simultaneously supported. And for statistics of service data, the service data statistics requirement of each city is realized through configuration. Because the business process is realized based on configuration, business data generated by the business process is generated according to the defined business process, and statistics of the business data is obtained by substituting the business data generated by the business process into a data statistics calculation rule based on configuration and calculating through a statistics system. Therefore, since the above-mentioned business data generated from the business flow based on the configuration is substituted into the corresponding data statistics calculation rule and the corresponding system code is executed, the business data statistics link based on the configuration is formed, the whole link process is complex, and when any link in the above-mentioned link is changed, if a check test is to be performed, high cost labor is required, and the unreasonability of the configuration cannot be found in time. Therefore, the embodiments of the present invention have been made to solve the above problems.
Fig. 1 is a schematic flow chart of an automated testing method according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
step 101, when detecting that a change exists in a business data statistics link based on configuration, acquiring a data statistics calculation rule related to a change place;
step 102, acquiring business data which is to be counted by the data statistics calculation rule and is generated based on a configured business process and a system code corresponding to the data statistics calculation rule;
step 103, checking the data statistics calculation rule by using the service data to obtain a first statistics data result corresponding to the data statistics calculation rule;
step 104, checking the system code by using the service data to obtain a second statistical data result generated by executing the system code;
and 105, determining a change test result of the current service data statistical link according to the first statistical data result and the second statistical data result.
The service data statistics link includes service data generated based on configured service flow, namely the service data is used as input of data statistics, then according to data statistics calculation rules configured by the service data, namely rules to be implemented when calculating statistical data corresponding to the service data, and system codes corresponding to the data statistics calculation rules are utilized to substitute the service data into the data statistics calculation rules, and then corresponding system codes are executed to obtain a final statistical data result. The above is the service data statistics link based on configuration. When any stage in the link is changed, the realization of the whole link is affected, so that the automatic test of the link can ensure the accuracy of the statistical data obtained after the change. In an embodiment of the present invention, the change in the configuration-based traffic data statistics link is at least one of the following changes: based on the change of the configured business flow, the change of the data statistics calculation rule or the change of the system code of the data statistics. In addition, the above-described changes include both new and modified ones.
The following description will take the above three modifications as examples.
When detecting that the service flow based on the configuration is changed, acquiring data corresponding to the service flow, and generating service data corresponding to the changed service flow based on the changed service flow. And substituting the service data into a corresponding data statistics calculation rule, and checking from a calculation logic level to obtain a first statistics data result corresponding to the data statistics calculation rule. And in addition, verifying the system codes corresponding to the data statistics calculation rules by using the service data, and verifying the system codes from a code layer to obtain a second statistics data result after the system codes are executed. And then, according to the first statistical data result and the second statistical data result, determining a change test result of the current service data statistical link. Since the service data generated in the service flow are multiple, the corresponding statistical data are also multiple, and therefore, during testing, an automatic test is performed on all the statistical data corresponding to the service flow, that is, all the statistical calculation rules of the data corresponding to the changed service flow and the system codes corresponding to the rules are checked.
Wherein, the calculation rule for the data statistics may be a specific calculation formula, for example: a+ (B-C) D/E, then the overall data statistics calculation rule may be defined as follows:
when the data statistics calculation rule is detected to be changed, service data which is to be counted by the changed data statistics calculation rule and is generated based on the configured service flow and a system code corresponding to the data statistics calculation rule are obtained. The change of the data statistics calculation rule may be a sign change in the formula, a variable change (including variable increase, variable decrease or variable replacement) in the formula, or the like, or may be a configuration of the final result, for example, a few bits after a decimal point are reserved, or the like. The embodiment of the invention is not limited to the specific change of the data statistics calculation rule, and the embodiment of the invention can execute the automatic test as long as the change exists. And substituting the service data into the data statistics calculation rule, and checking from a calculation logic level to obtain a first statistics result corresponding to the data statistics calculation rule. And in addition, verifying the system codes corresponding to the data statistics calculation rules by using the service data, and verifying the system codes from a code layer to obtain a second statistics data result after the system codes are executed. And then, according to the first statistical data result and the second statistical data result, determining a change test result of the current service data statistical link.
And when detecting that the system code of the data statistics has a change, acquiring the data statistics calculation rule related to the changed system code and the business data generated based on the configured business flow to be counted by the data statistics calculation rule. Wherein, the change of the system code comprises the change of the system code caused by the data statistics calculation rule, and also comprises the upgrade of the system code and the like. In the embodiment of the invention, the specific change of the system code is not limited, and as long as the change exists, the automatic test can be executed through the embodiment of the invention. And substituting the service data into the data statistics calculation rule, and checking from a calculation logic level to obtain a first statistics result corresponding to the data statistics calculation rule. And in addition, verifying the system codes corresponding to the data statistics calculation rules by using the service data, and verifying the system codes from a code layer to obtain a second statistics data result after the system codes are executed. And then, according to the first statistical data result and the second statistical data result, determining a change test result of the current service data statistical link.
For the verification of the two layers, the verification of the logic layer is to ensure the rationality of rule setting, when the first statistics data result is detected to be abnormal, the change test result of the current business data statistics link is determined to be unreasonable to the data statistics calculation rule, and the modification of the data statistics calculation rule can be prompted. For example, when a string having a dividend value of 0 or a non-number is detected, it is determined that an abnormality exists. And the verification of the code layer is to ensure that the code execution is normal, and when the second statistical data result is detected to be abnormal, the changed test result of the current business data statistical link is determined to be the abnormal system code, so that the system code can be prompted to be modified. For example, when error information occurs upon detecting code execution, it is determined that an exception exists.
And comparing the two statistical data results, namely comparing the result of the logic level with the result of the code level, and if the first statistical data result is inconsistent with the second statistical data result, determining that the change test result of the current business data statistical link is abnormal in system accuracy of data statistics, and prompting to modify the data statistics calculation rule and the corresponding system code. If the first statistical data result and the second statistical data result are detected to be abnormal, and the first statistical data result is consistent with the second statistical data result, determining that the changed test result of the current service data statistical link is the test passing, and further performing other tests, such as manual test and the like.
In order to facilitate understanding of the embodiments of the present invention, the following description will be given by taking the case that the above-mentioned configuration-based business process, data statistics calculation rule, and system code of data statistics are changed as examples, where the change of the business process is the change of the business loan transaction process in the house property transaction, the change of the data statistics calculation rule is the case that the loan aging data statistics calculation rule is newly added, where the loan aging is the time of completing a bank loan batch minus the start time of a web label, and the rule is defined as follows:
in addition, the change of the system code of the data statistics is the system code corresponding to the statistical calculation rule of the loan aging data.
Fig. 2 is a flow chart of an automated testing method according to an embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
step 201, detecting whether a change exists in a business data statistics link based on configuration, and executing step 202 when detecting that a change exists in a business flow based on configuration; when a change in the data statistics calculation rule is detected, step 207 is performed; when a change in the system code of the data statistics is detected, executing step 207;
step 202, obtaining data corresponding to the business process, and generating business data corresponding to the changed business process based on the changed business process;
step 203, obtaining all data statistics calculation rules and corresponding system codes corresponding to the business process;
204, substituting the service data into the corresponding data statistics calculation rule to obtain a first statistics data result set corresponding to all the data statistics calculation rules, and checking the system codes corresponding to the data statistics calculation rules by using the service data to obtain a second statistics data result set after all the system codes are executed;
step 205, determining whether an abnormality exists in the first statistical data result set, determining that a corresponding data statistics calculation rule is unreasonable if the abnormality exists, determining whether an abnormality exists in the second statistical data result set, determining that a corresponding system code is abnormal if the abnormality exists, and determining that a system accuracy of data statistics is abnormal if the corresponding results in the first statistical data result set and the second statistical data result set are inconsistent;
and step 206, when detecting that no abnormality exists in the first statistical data result set and the second statistical data result set, and comparing the corresponding results in the first statistical data result set and the second statistical data result set to be consistent, determining that the change test result of the current business process is the test passing.
When a change in the data statistics calculation rule is detected or a change in the system code of the data statistics is detected, the loan process in the real estate transaction is taken as an example.
Step 207, obtaining service data which is to be counted by a loan aging data statistics calculation rule and is generated based on a configured service flow and a system code corresponding to the loan aging data statistics calculation rule, wherein the service data comprises bank loan batch loan completion time and online sign start time;
step 208, substituting the time of completing the batch loan of the bank loan and the time of starting the web label into the statistical calculation rule of the aging data of the loan to obtain a first aging statistical data result of the loan, and checking the system code by using the service data to obtain a second aging statistical data result of the loan after the system code is executed;
step 209, determining whether the first loan aging statistical data result is abnormal, if so, determining that the loan aging data statistical calculation rule is unreasonable, determining whether the second loan aging statistical data result is abnormal, if so, determining that the corresponding system code is abnormal, and if so, determining that the comparison of the first loan aging statistical data result and the second loan aging statistical data result is inconsistent, otherwise, determining that the system accuracy of the data statistics is abnormal;
and step 210, when comparing the first loan aging statistical data result with the second loan aging statistical data result, determining that the changed test result of the current loan aging data statistical calculation rule is the passing test.
According to the embodiment of the invention, in the implementation process of the service data statistics link based on configuration, when the service flow is changed, the data statistics calculation rule is changed and the system code of the data statistics is changed, the automatic test can be automatically triggered, and the problems of irrational definition of the calculation rule, abnormal execution of the system code and accuracy of the data statistics can be rapidly and timely found.
Correspondingly, fig. 3 is a schematic structural diagram of an automatic testing device according to an embodiment of the present invention. As shown in fig. 3, the apparatus 30 includes: a detecting unit 31 for detecting whether there is a change in the traffic data statistics link based on the configuration; a first obtaining unit 32, configured to obtain a data statistics calculation rule related to a change place when the detecting unit detects that there is a change in the service data statistics link based on the configuration; a second obtaining unit 33, configured to obtain service data generated based on a configured service flow and to be counted by the data statistics calculation rule, and a system code corresponding to the data statistics calculation rule; a rule checking unit 34, configured to check the data statistics calculation rule by using the service data, so as to obtain a first statistics data result corresponding to the data statistics calculation rule; a code verification unit 35, configured to verify the system code by using the service data, so as to obtain a second statistical data result generated by executing the system code; and the determining unit 36 is configured to determine a change test result of the current service data statistics link according to the first statistics data result and the second statistics data result.
Further, the change in the configuration-based traffic data statistics link is at least one of: based on the change of the configured business flow, the change of the data statistics calculation rule or the change of the system code of the data statistics.
Further, the determining unit is further configured to determine that, when detecting that the first statistical data result is abnormal, the change test result of the current service data statistical link is that the data statistical calculation rule is unreasonable; when detecting that the second statistical data result is abnormal, determining that the changed test result of the current business data statistical link is abnormal; when the first statistical data result is inconsistent with the second statistical data result, determining that the change test result of the current service data statistical link is abnormal in system accuracy of data statistics; and when detecting that the first statistical data result and the second statistical data result are not abnormal, and comparing the first statistical data result with the second statistical data result to be consistent, determining that the change test result of the current service data statistical link is the passing test.
Further, as shown in fig. 4, the apparatus further includes a prompting unit 37, configured to prompt modification of the data statistics calculation rule when it is determined that the change test result of the current service data statistics link is that the data statistics calculation rule is unreasonable; prompting to modify the system code when the change test result of the current service data statistical link is determined to be abnormal; when the change test result of the current business data statistics link is determined to be abnormal in system accuracy of data statistics, prompting to modify the data statistics calculation rule and the corresponding system code.
The operation process of the device is referred to the implementation process of the automatic test method.
Accordingly, fig. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, where, as shown in fig. 5, the apparatus 50 includes at least one processor 51, and at least one memory 52 and a bus 53 connected to the processor; wherein the processor and the memory complete communication with each other through the bus; the processor is configured to call the program instructions in the memory to perform the method for processing sensitive information according to the above embodiment.
Correspondingly, the embodiment of the invention also provides a storage medium, which comprises a stored program, wherein the device where the storage medium is controlled to execute the sensitive information processing method according to the embodiment when the program runs.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of electronic devices and the like are merely illustrative, wherein the elements described as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform the embodiments or the methods described in some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An automated testing method, comprising:
when detecting that a change exists in the business data statistics link based on configuration, acquiring data statistics calculation rules related to a change place;
acquiring business data which is to be counted by the data statistics calculation rule and is generated based on a configured business process, and a system code corresponding to the data statistics calculation rule;
checking the data statistics calculation rule by using the service data to obtain a first statistics data result corresponding to the data statistics calculation rule;
checking the system code by using the service data to obtain a second statistical data result generated by executing the system code;
and determining a change test result of the current service data statistical link according to the first statistical data result and the second statistical data result.
2. The automated testing method of claim 1, wherein the change in the configuration-based traffic data statistics link is at least one of: based on the change of the configured business flow, the change of the data statistics calculation rule or the change of the system code of the data statistics.
3. The automated testing method of claim 1, wherein determining the changed testing result of the current traffic data statistics link according to the first statistics result and the second statistics result comprises:
when detecting that the first statistical data result is abnormal, determining that the change test result of the current business data statistical link is that the data statistical calculation rule is unreasonable;
when detecting that the second statistical data result is abnormal, determining that the changed test result of the current business data statistical link is abnormal;
when the first statistical data result is inconsistent with the second statistical data result, determining that the change test result of the current service data statistical link is abnormal in system accuracy of data statistics;
and when detecting that the first statistical data result and the second statistical data result are not abnormal, and comparing the first statistical data result with the second statistical data result to be consistent, determining that the change test result of the current service data statistical link is the passing test.
4. The automated test method of claim 3, further comprising:
prompting to modify the data statistics calculation rule when the change test result of the current service data statistics link is determined to be that the data statistics calculation rule is unreasonable;
prompting to modify the system code when the change test result of the current service data statistical link is determined to be abnormal;
when the change test result of the current business data statistics link is determined to be abnormal in system accuracy of data statistics, prompting to modify the data statistics calculation rule and the corresponding system code.
5. An automated test equipment, comprising:
the detection unit is used for detecting whether a change exists in the service data statistics link based on configuration;
the first acquisition unit is used for acquiring a data statistics calculation rule related to a change place when the detection unit detects that a change exists in the service data statistics link based on configuration;
the second acquisition unit is used for acquiring business data which is to be counted by the data statistics calculation rule and is generated based on the configured business process and a system code corresponding to the data statistics calculation rule;
the rule checking unit is used for checking the data statistics calculation rule by utilizing the service data to obtain a first statistics data result corresponding to the data statistics calculation rule;
the code verification unit is used for verifying the system code by using the service data to obtain a second statistical data result generated by executing the system code;
and the determining unit is used for determining a change test result of the current service data statistical link according to the first statistical data result and the second statistical data result.
6. The automated test equipment of claim 5, wherein the change in the configuration-based traffic data statistics link is at least one of: based on the change of the configured business flow, the change of the data statistics calculation rule or the change of the system code of the data statistics.
7. The automated test equipment of claim 5, wherein the determining unit is further configured to determine that the changed test result of the current service data statistics link is that the data statistics calculation rule is unreasonable when detecting that the first statistics data result is abnormal; when detecting that the second statistical data result is abnormal, determining that the changed test result of the current business data statistical link is abnormal; when the first statistical data result is inconsistent with the second statistical data result, determining that the change test result of the current service data statistical link is abnormal in system accuracy of data statistics; and when detecting that the first statistical data result and the second statistical data result are not abnormal, and comparing the first statistical data result with the second statistical data result to be consistent, determining that the change test result of the current service data statistical link is the passing test.
8. The automated test equipment of claim 7, further comprising a prompting unit configured to prompt modification of the data statistics calculation rule when it is determined that the changed test result of the current service data statistics link is that the data statistics calculation rule is unreasonable; prompting to modify the system code when the change test result of the current service data statistical link is determined to be abnormal; when the change test result of the current business data statistics link is determined to be abnormal in system accuracy of data statistics, prompting to modify the data statistics calculation rule and the corresponding system code.
9. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the automated test method of any one of claims 1-4.
10. An apparatus comprising at least one processor, and at least one memory, bus coupled to the processor; wherein the processor and the memory complete communication with each other through the bus; the processor is configured to invoke program instructions in the memory to perform the automated test method of any of the preceding claims 1-4.
CN202010151328.9A 2020-03-06 2020-03-06 Automatic test method, device, storage medium and equipment Active CN111258916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010151328.9A CN111258916B (en) 2020-03-06 2020-03-06 Automatic test method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010151328.9A CN111258916B (en) 2020-03-06 2020-03-06 Automatic test method, device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN111258916A CN111258916A (en) 2020-06-09
CN111258916B true CN111258916B (en) 2023-08-15

Family

ID=70952926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010151328.9A Active CN111258916B (en) 2020-03-06 2020-03-06 Automatic test method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN111258916B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007014521A1 (en) * 2005-08-01 2007-02-08 Tong Wang A method for designing test case and a system thereof
CN102298551A (en) * 2010-06-23 2011-12-28 中兴通讯股份有限公司 Variable-rule method and system for counting real-time performance based on events
WO2017020721A1 (en) * 2015-08-04 2017-02-09 阿里巴巴集团控股有限公司 Service function testing method and device
US9588871B1 (en) * 2015-04-14 2017-03-07 Don Estes & Associates, Inc. Method and system for dynamic business rule extraction
CN108572918A (en) * 2018-04-13 2018-09-25 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
CN108681503A (en) * 2018-03-23 2018-10-19 杭州电子科技大学 Safety detection method, device and the equipment of programmable controller program
US10289534B1 (en) * 2015-10-29 2019-05-14 Amdocs Development Limited System, method, and computer program for efficiently automating business flow testing
CN109815109A (en) * 2018-12-11 2019-05-28 口碑(上海)信息技术有限公司 Data pattern alteration detection method, apparatus, equipment and readable storage medium storing program for executing
CN109815039A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Test method and device, storage medium, the computer equipment of business software
CN109933514A (en) * 2017-12-18 2019-06-25 北京京东尚科信息技术有限公司 A kind of data test method and apparatus
CN110162468A (en) * 2019-04-26 2019-08-23 腾讯科技(深圳)有限公司 A kind of test method, device and computer readable storage medium
CN110489321A (en) * 2019-07-08 2019-11-22 平安科技(深圳)有限公司 Test case screening technique, device, computer equipment and storage medium
WO2020036763A1 (en) * 2018-08-17 2020-02-20 Google Llc Testing data changes in production systems

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110145005A1 (en) * 2009-12-10 2011-06-16 Wu Cao Method and system for automatic business content discovery
US9606903B2 (en) * 2014-06-06 2017-03-28 Paypal, Inc. Unit test automation for business rules and applications
US10296448B2 (en) * 2014-11-19 2019-05-21 International Business Machines Corporation Correlating test results variations with business requirements

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007014521A1 (en) * 2005-08-01 2007-02-08 Tong Wang A method for designing test case and a system thereof
CN102298551A (en) * 2010-06-23 2011-12-28 中兴通讯股份有限公司 Variable-rule method and system for counting real-time performance based on events
US9588871B1 (en) * 2015-04-14 2017-03-07 Don Estes & Associates, Inc. Method and system for dynamic business rule extraction
WO2017020721A1 (en) * 2015-08-04 2017-02-09 阿里巴巴集团控股有限公司 Service function testing method and device
US10289534B1 (en) * 2015-10-29 2019-05-14 Amdocs Development Limited System, method, and computer program for efficiently automating business flow testing
CN109933514A (en) * 2017-12-18 2019-06-25 北京京东尚科信息技术有限公司 A kind of data test method and apparatus
CN108681503A (en) * 2018-03-23 2018-10-19 杭州电子科技大学 Safety detection method, device and the equipment of programmable controller program
CN108572918A (en) * 2018-04-13 2018-09-25 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
WO2020036763A1 (en) * 2018-08-17 2020-02-20 Google Llc Testing data changes in production systems
CN109815109A (en) * 2018-12-11 2019-05-28 口碑(上海)信息技术有限公司 Data pattern alteration detection method, apparatus, equipment and readable storage medium storing program for executing
CN109815039A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Test method and device, storage medium, the computer equipment of business software
CN110162468A (en) * 2019-04-26 2019-08-23 腾讯科技(深圳)有限公司 A kind of test method, device and computer readable storage medium
CN110489321A (en) * 2019-07-08 2019-11-22 平安科技(深圳)有限公司 Test case screening technique, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111258916A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN107678936B (en) Business system pre-inspection method, server and computer readable storage medium
CN112650685B (en) Automatic test method, device, electronic equipment and computer storage medium
CN108664388A (en) Dynamic field data return to test system, method, electronic equipment and the readable storage medium storing program for executing of interface
CN106487603A (en) A kind of response test method and device
CN110347590A (en) The interface testing control method and device of operation system
CN103440460A (en) Application system change validation method and system
CN113051180B (en) Method, device, equipment and storage medium for monitoring test task
CN110780904A (en) Application updating method and device
CN114002587A (en) Chip supporting workload proving mechanism and testing method thereof
CN112486957B (en) Database migration detection method, device, equipment and storage medium
CN111258916B (en) Automatic test method, device, storage medium and equipment
CN111159029B (en) Automated testing method, apparatus, electronic device and computer readable storage medium
CN113127331B (en) Test method and device based on fault injection and computer equipment
CN116662197A (en) Automatic interface testing method, system, computer and readable storage medium
CN116431522A (en) Automatic test method and system for low-code object storage gateway
CN111209180B (en) Regression testing method and device based on fuzzy matching
CN111737130B (en) Public cloud multi-tenant authentication service testing method, device, equipment and storage medium
CN115168217A (en) Defect discovery method and device for source code file
CN107992749A (en) A kind of method and device for detecting patch packet conflict
CN114595216A (en) Data verification method and device, storage medium and electronic equipment
CN117009115A (en) Fault positioning method and device, electronic equipment and computer storage medium
CN114546749A (en) Chip random test case regression method, device, equipment and readable medium
CN112416725A (en) Pressure testing method and device
CN111475400A (en) Verification method of service platform and related equipment
CN110147893A (en) A kind of string part is cannibalized the optimization method of the preventative maintenance spare part under mode

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