CN111258916A - Automatic testing method and device, storage medium and equipment - Google Patents

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

Info

Publication number
CN111258916A
CN111258916A CN202010151328.9A CN202010151328A CN111258916A CN 111258916 A CN111258916 A CN 111258916A CN 202010151328 A CN202010151328 A CN 202010151328A CN 111258916 A CN111258916 A CN 111258916A
Authority
CN
China
Prior art keywords
data
statistical
result
change
calculation rule
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.)
Granted
Application number
CN202010151328.9A
Other languages
Chinese (zh)
Other versions
CN111258916B (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

Images

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 testing method, an automatic testing device, a storage medium and equipment, and belongs to the technical field of data testing. The method comprises the following steps: when detecting that a change exists in the service data statistical link based on the configuration, acquiring a data statistical calculation rule related to the change position; acquiring service data generated based on a configured service process and to be counted by a data statistics calculation rule and a system code corresponding to the data statistics calculation rule; the business data is used for verifying the data statistical calculation rule to obtain a first statistical data result corresponding to the data statistical 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 business data statistical link according to the first statistical data result and the second statistical data result. The embodiment of the invention is suitable for the test process based on the data statistics of the configuration.

Description

Automatic testing method and device, storage medium and equipment
Technical Field
The invention relates to the technical field of data testing, in particular to an automatic testing method, an automatic testing device, a storage medium and equipment.
Background
The business is influenced by factors such as policies of various cities, the business processes of various cities are different, and in order to flexibly support the personalized transaction processes of various cities across the country, a configuration scheme is adopted to realize that one transaction system simultaneously supports the operation of the transaction processes of hundreds of cities across the country. The business process is realized in a configuration mode, the transaction data generated by the transaction process are generated according to the defined transaction process, and the statistics of the transaction data are generated by substituting the transaction data generated by the transaction process into a configured data statistical rule and calculating through a statistical system. Because the link of the whole data statistical system is long and the process is complex, when the accuracy of the data calculated by the statistical system is verified, if the manual test is high in cost, the problem of unreasonableness of configuration is not easy to find in time.
Disclosure of Invention
The embodiment of the invention aims to provide an automatic testing method, a device, a storage medium and equipment, which solve the problems that in the prior art, when the accuracy of statistical data of a configuration-based service system is verified, manual testing is high in cost and unreasonable configuration is not easy to find in time, when a change is detected in a configuration-based service data statistical link, the data statistical calculation rule and a corresponding system code are verified by using service data generated by a service process to be counted by the data statistical calculation rule related to the change, and a change testing result of the configuration-based data statistical link is determined according to the verification results of the data statistical calculation rule and the corresponding system code, so that the rapid and low-cost automatic testing of the configuration-based data statistics is realized.
In order to achieve the above object, an embodiment of the present invention provides an automated testing method, where the method includes: when detecting that a change exists in the service data statistical link based on the configuration, acquiring a data statistical calculation rule related to the change position; acquiring business data generated based on the configured business process and to be counted by the data statistics calculation rule and a system code corresponding to the data statistics calculation rule; verifying 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 business 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: a change in a configured business process, a change in a data statistics calculation rule, or a change in system code for data statistics.
Further, the determining, according to the first statistical data result and the second statistical data result, a change test result of the current service data statistical link includes: when the first statistic data result is detected to be abnormal, determining that the change test result of the current business data statistic link is unreasonable; when the second statistical data result is detected to be abnormal, determining the change test result of the business data statistical link as the system code abnormality; when 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 the system accuracy of data statistics; and when the first statistical data result and the second statistical data result are detected to be not abnormal and the first statistical data result and the second statistical data result are compared to be consistent, determining that the change test result of the business data statistical link passes the test.
Further, the method further comprises: when the change test result of the business data statistical link is determined to be that the data statistical calculation rule is unreasonable, prompting to modify the data statistical calculation rule; when the change test result of the business data statistical link is determined to be that the system code is abnormal, prompting to modify the system code; and when the change test result of the business data statistics link is determined to be abnormal system accuracy of the data statistics, prompting to modify the data statistics calculation rule and the corresponding system code.
Correspondingly, an embodiment of the present invention further provides an automatic testing apparatus, including: a detection unit for detecting whether there is a change in the statistical link based on the configured service data; the first acquisition unit is used for acquiring a data statistics calculation rule related to a change position when the detection unit detects that the change exists in the service data statistics link based on the configuration; the second obtaining unit is used for obtaining the service data generated based on the configured service process and to be counted by the data statistics calculation rule and the system code corresponding to the data statistics calculation rule; the rule checking unit is used for checking the data statistical calculation rule by using the service data to obtain a first statistical data result corresponding to the data statistical calculation rule; the code checking unit is used for checking 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 business 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: a change in a configured business process, a change in a data statistics calculation rule, or a change in system code for data statistics.
Further, the determining unit is further configured to determine, when the first statistical data result is detected to be abnormal, that a change test result of the current service data statistical link is that the data statistical calculation rule is unreasonable; when the second statistical data result is detected to be abnormal, determining the change test result of the business data statistical link as the system code abnormality; when 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 the system accuracy of data statistics; and when the first statistical data result and the second statistical data result are detected to be not abnormal and the first statistical data result and the second statistical data result are compared to be consistent, determining that the change test result of the business data statistical link passes the test.
Further, the device further comprises a prompting unit, configured to prompt to modify 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; when the change test result of the business data statistical link is determined to be that the system code is abnormal, prompting to modify the system code; and when the change test result of the business data statistics link is determined to be abnormal system accuracy of the 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 when the program runs, the device on which the storage medium is located is controlled to execute the automatic testing method.
Correspondingly, the embodiment of the invention also provides equipment, which comprises at least one processor, at least one memory and a bus, wherein the memory and the bus are connected with the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform the automated test method described above.
Through the technical scheme, when the change in the configured-based business data statistical link is detected, the data statistical calculation rule and the corresponding system code are verified by using the business data generated by the business process to be counted by the data statistical calculation rule related to the change, and the change test result of the configured-based data statistical link is determined according to the verification results of the data statistical calculation rule and the corresponding system code, so that the rapid and low-cost automatic test of the configured-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, which are included to provide a further understanding of the 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 the embodiments of the invention without limiting 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 schematic flow chart of another automated testing method provided by the embodiment of the invention;
FIG. 3 is a schematic structural diagram of an automated testing apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another automated testing apparatus provided in the embodiments 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 detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
Because of different policies of various cities, the business processes are different in processing, and taking the house property transaction of each city as an example, links in the house property transaction process of each city and information collected under each link are different, even data with the same meaning and defined names are not consistent, so that in order to flexibly support the personalized house property transaction process of each city across the country, the operation of the house property transaction process of hundreds of cities across the country can be simultaneously supported by one business system through a configuration scheme. For the statistics of the service data, the service data statistics requirements of each city need to be realized through configuration. The business process is realized based on configuration, the business data generated by the business process is generated according to the defined business process, and the statistics of the business data is obtained by substituting the business data generated by the business process into the configuration-based data statistics calculation rule and calculating through a statistical system. Therefore, the whole link process is complex, when any link in the link is changed, if a verification test is required, high-cost labor is consumed, and the irrational 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 there is a change in a configured service data statistics link, acquiring a data statistics calculation rule related to a changed position;
102, acquiring service data generated based on a configured service process and to be counted by the data statistics calculation rule and a system code corresponding to the data statistics calculation rule;
103, verifying 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, verifying 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 business data statistical link according to the first statistical data result and the second statistical data result.
The service data statistical link comprises service data generated based on a configured service process, namely the service data is used as input of data statistics, then a data statistical calculation rule configured for counting the service data, namely a rule to be implemented when statistical data corresponding to the service data is calculated, and a system code corresponding to the data statistical calculation rule is utilized, and the service data is substituted into the data statistical calculation rule, and then the corresponding system code is executed, so that a final statistical data result is obtained. The above is the traffic data statistical link based on the configuration. When there is a change in any stage of the link, the realization of the whole link is affected, so that the accuracy of the statistical data obtained after the change can be ensured by the automatic test of the link. 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: a change in a configured business process, a change in a data statistics calculation rule, or a change in system code for data statistics. In addition, the above-described changes include new and modified ones.
The following description will be made by taking the above three modifications as examples.
And when detecting that the configured business process has change, acquiring data corresponding to the business process, and generating business data corresponding to the changed business process based on the changed business process. And then substituting the service data into the corresponding data statistical calculation rule, and checking on the computational logic level to obtain a first statistical data result corresponding to the data statistical calculation rule. In addition, the service data is used for verifying the system code corresponding to the data statistical calculation rule, and a second statistical data result after the system code is executed is obtained through verification on a code level. And then, determining a change test result of the business data statistical link according to the first statistical data result and the second statistical data result. Since there are many kinds of service data generated in the service flow, there are also many kinds of corresponding statistical data, so that, during testing, an automated test is performed on all the statistical data corresponding to the service flow, that is, all the data statistical calculation rules corresponding to the changed service flow and the system codes corresponding to the rules are checked.
The statistical calculation rule for the data may be a specific calculation formula, for example: a + (B-C) × D/E, the entire data statistics calculation rule may be defined as the following format:
Figure BDA0002402540930000071
when detecting that the data statistics calculation rule has a change, acquiring business data generated based on the configured business process to be counted by the changed data statistics calculation rule and a system code corresponding to the data statistics calculation rule. The change of the data statistics calculation rule may be a sign change in the formula, a variable change in the formula (including a variable increase, a variable decrease, or a variable replacement), and the like, and may also be a configuration of the final result, for example, a few bits after a decimal point is reserved, and the like. The embodiment of the present invention does not limit the specific change of the data statistics calculation rule, and as long as there is a change, the embodiment of the present invention may be used to perform an automated test. And then substituting the service data into the data statistical calculation rule, and checking the service data from a calculation logic level to obtain a first statistical data result corresponding to the data statistical calculation rule. In addition, the service data is used for verifying the system code corresponding to the data statistical calculation rule, and a second statistical data result after the system code is executed is obtained through verification on a code level. And then, determining a change test result of the business data statistical link according to the first statistical data result and the second statistical data result.
When detecting that the system code of the data statistics has change, acquiring a data statistics calculation rule related to the changed system code and business data generated based on the configured business process to be counted by the data statistics calculation rule. The change of the system code includes the change of the system code caused by the data statistics calculation rule, and also includes the upgrade of the system code, and the like. In the embodiment of the present invention, specific changes of the system code are not limited, and as long as there is a change, the automated test may be performed by the embodiment of the present invention. And then substituting the service data into the data statistical calculation rule, and checking the service data from a calculation logic level to obtain a first statistical data result corresponding to the data statistical calculation rule. In addition, the service data is used for verifying the system code corresponding to the data statistical calculation rule, and a second statistical data result after the system code is executed is obtained through verification on a code level. And then, determining a change test result of the business data statistical link according to the first statistical data result and the second statistical data result.
And for the check of the two layers, the check of the logic layer is to ensure the reasonability of rule setting, and when the first statistic data result is detected to be abnormal, the change test result of the service data statistic link is determined to be that the data statistic calculation rule is unreasonable, and the data statistic calculation rule can be prompted to be modified. For example, when a character string in which the dividend value is 0 or is a non-number is detected, it is determined that there is an abnormality. And the code level check is to ensure that the code is executed normally, and when the second statistical data result is detected to be abnormal, the change test result of the service data statistical link is determined to be the system code abnormality, and the system code can be prompted to be modified. For example, when error information is detected as occurring when code is executed, then an exception is determined to exist.
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 business data statistical link is abnormal in the system accuracy of the 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 not abnormal and the first statistical data result is consistent with the second statistical data result, determining that the change test result of the business data statistical link passes the test, and further performing other tests, such as manual tests and the like.
In order to facilitate understanding of the embodiments of the present invention, a description will be given below by taking an example that the above configured service flow, the data statistics calculation rule, and the system code of the data statistics all have changes, where the change of the service flow is a change of a business loan transaction flow in a house property transaction, and the change of the data statistics calculation rule is a new loan timeliness data statistics calculation rule, where the loan timeliness is a result of subtracting a web tag start time from a bank loan batching and lending completion time, and the rule is defined as follows:
Figure BDA0002402540930000091
in addition, the change of the system code of the data statistics is the system code corresponding to the new loan timeliness data statistics calculation rule.
Fig. 2 is a schematic 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 there is a change in the statistical link based on the configured service data, and executing step 202 when detecting that there is a change in the configured service flow; when detecting that the data statistics calculation rule has a change, executing step 207; when detecting that the system code of the data statistics has change, executing step 207;
step 202, acquiring data corresponding to the business process, and generating business data corresponding to the changed business process based on the changed business process;
step 203, acquiring all data statistical calculation rules corresponding to the business process and corresponding system codes;
step 204, substituting the service data into the corresponding data statistical calculation rule to obtain a first statistical data result set corresponding to all the data statistical calculation rules, and verifying the system codes corresponding to the data statistical calculation rules by using the service data to obtain a second statistical data result set after all the system codes are executed;
step 205, determining whether the first statistical data result set is abnormal, if so, determining that the corresponding data statistical calculation rule is unreasonable, determining whether the second statistical data result set is abnormal, if so, determining that the corresponding system code is abnormal, and if not, determining that the system accuracy of data statistics is abnormal;
step 206, when it is detected that there is no abnormality in the first statistical data result set and the second statistical data result set, and corresponding results in the first statistical data result set and the second statistical data result set are compared to be consistent, determining that the change test result of the current service process is a pass test.
The loan process in the house property transaction will be described as an example when a change is detected in the calculation rule of the data statistics or when a change is detected in the system code of the data statistics.
Step 207, acquiring service data generated based on a configured service process and to be counted by a loan aging data statistical calculation rule and a system code corresponding to the loan aging data statistical calculation rule, wherein the service data comprises bank loan batch loan completion time and network sign start time;
step 208, substituting the bank loan approving completion time and the network sign starting time into the loan aging data statistical calculation rule to obtain a first loan aging statistical data result, and verifying the system code by using the service data to obtain a second loan aging statistical data result 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 the first loan aging statistical data result is inconsistent with the second loan aging statistical data result, determining that the system accuracy of data statistics is abnormal;
and step 210, when the comparison result of the first loan aging statistical data is consistent with the second loan aging statistical data, determining that the change test result of the loan aging data statistical calculation rule at this time passes the test.
Through the embodiment of the invention, in the implementation process of the configured service data statistical link, when the service flow is changed, the data statistical 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 irrationality of the calculation rule definition, abnormal system code execution and accuracy of the data statistics can be quickly and timely found.
Correspondingly, fig. 3 is a schematic structural diagram of an automated testing apparatus according to an embodiment of the present invention. As shown in fig. 3, the apparatus 30 includes: a detecting unit 31, configured to detect whether there is a change in the statistical link based on the configured service data; a first obtaining unit 32, configured to, when the detecting unit detects that there is a change in the configured service data statistics link, obtain a data statistics calculation rule related to the change; a second obtaining unit 33, configured to obtain service data generated based on the configured service flow 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, to obtain a first statistics data result corresponding to the data statistics calculation rule; a code checking unit 35, configured to check 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 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: a change in a configured business process, a change in a data statistics calculation rule, or a change in system code for data statistics.
Further, the determining unit is further configured to determine, when the first statistical data result is detected to be abnormal, that a change test result of the current service data statistical link is that the data statistical calculation rule is unreasonable; when the second statistical data result is detected to be abnormal, determining the change test result of the business data statistical link as the system code abnormality; when 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 the system accuracy of data statistics; and when the first statistical data result and the second statistical data result are detected to be not abnormal and the first statistical data result and the second statistical data result are compared to be consistent, determining that the change test result of the business data statistical link passes the test.
Further, as shown in fig. 4, the apparatus further includes a prompting unit 37, configured to prompt to modify 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 not reasonable; when the change test result of the business data statistical link is determined to be that the system code is abnormal, prompting to modify the system code; and when the change test result of the business data statistics link is determined to be abnormal system accuracy of the data statistics, prompting to modify the data statistics calculation rule and the corresponding system code.
The operation process of the device refers to the implementation process of the automatic testing method.
Correspondingly, fig. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, and 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; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory to execute the processing method of the sensitive information according to the embodiment.
Correspondingly, the embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device on which the storage medium is located is controlled to execute the processing method of the sensitive information according to the embodiment.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the electronic device and the like are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding 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 service data statistical link based on the configuration, acquiring a data statistical calculation rule related to the change position;
acquiring business data generated based on the configured business process and to be counted by the data statistics calculation rule and a system code corresponding to the data statistics calculation rule;
verifying 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 business 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: a change in a configured business process, a change in a data statistics calculation rule, or a change in system code for data statistics.
3. The automated testing method of claim 1, wherein the determining the change testing result of the current statistical link of the service data according to the first statistical data result and the second statistical data result comprises:
when the first statistic data result is detected to be abnormal, determining that the change test result of the current business data statistic link is unreasonable;
when the second statistical data result is detected to be abnormal, determining the change test result of the business data statistical link as the system code abnormality;
when 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 the system accuracy of data statistics;
and when the first statistical data result and the second statistical data result are detected to be not abnormal and the first statistical data result and the second statistical data result are compared to be consistent, determining that the change test result of the business data statistical link passes the test.
4. The automated testing method of claim 3, further comprising:
when the change test result of the business data statistical link is determined to be that the data statistical calculation rule is unreasonable, prompting to modify the data statistical calculation rule;
when the change test result of the business data statistical link is determined to be that the system code is abnormal, prompting to modify the system code;
and when the change test result of the business data statistics link is determined to be abnormal system accuracy of the data statistics, prompting to modify the data statistics calculation rule and the corresponding system code.
5. An automated testing apparatus, comprising:
a detection unit for detecting whether there is a change in the statistical link based on the configured service data;
the first acquisition unit is used for acquiring a data statistics calculation rule related to a change position when the detection unit detects that the change exists in the service data statistics link based on the configuration;
the second obtaining unit is used for obtaining the service data generated based on the configured service process and to be counted by the data statistics calculation rule and the system code corresponding to the data statistics calculation rule;
the rule checking unit is used for checking the data statistical calculation rule by using the service data to obtain a first statistical data result corresponding to the data statistical calculation rule;
the code checking unit is used for checking 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 business data statistical link according to the first statistical data result and the second statistical data result.
6. The automated testing apparatus of claim 5, wherein the change in the configuration-based traffic data statistics link is at least one of: a change in a configured business process, a change in a data statistics calculation rule, or a change in system code for data statistics.
7. The automatic testing device according to claim 5, wherein the determining unit is further configured to determine that the change testing result of the current service data statistical link is that the data statistical calculation rule is not reasonable when the first statistical data result is detected to be abnormal; when the second statistical data result is detected to be abnormal, determining the change test result of the business data statistical link as the system code abnormality; when 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 the system accuracy of data statistics; and when the first statistical data result and the second statistical data result are detected to be not abnormal and the first statistical data result and the second statistical data result are compared to be consistent, determining that the change test result of the business data statistical link passes the test.
8. The automated testing device according to claim 7, further comprising a prompting unit for prompting to modify 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 not reasonable; when the change test result of the business data statistical link is determined to be that the system code is abnormal, prompting to modify the system code; and when the change test result of the business data statistics link is determined to be abnormal system accuracy of the 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 executed, controls a device on which the storage medium is located to perform the automated testing method according to any one of claims 1 to 4.
10. An apparatus comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory to execute the automatic test method of any one of the 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 true CN111258916A (en) 2020-06-09
CN111258916B 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 (16)

* 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
US20110145005A1 (en) * 2009-12-10 2011-06-16 Wu Cao Method and system for automatic business content discovery
CN102298551A (en) * 2010-06-23 2011-12-28 中兴通讯股份有限公司 Variable-rule method and system for counting real-time performance based on events
US20150356001A1 (en) * 2014-06-06 2015-12-10 Ebay Inc. Unit test automation for business rules and applications
US20160140032A1 (en) * 2014-11-19 2016-05-19 International Business Machines Corporation Correlating test results variations with business requirements
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
CN109815039A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Test method and device, storage medium, the computer equipment of business software
CN109815109A (en) * 2018-12-11 2019-05-28 口碑(上海)信息技术有限公司 Data pattern alteration detection method, apparatus, equipment and readable storage medium storing program for executing
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

Patent Citations (16)

* 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
US20110145005A1 (en) * 2009-12-10 2011-06-16 Wu Cao Method and system for automatic business content discovery
CN102298551A (en) * 2010-06-23 2011-12-28 中兴通讯股份有限公司 Variable-rule method and system for counting real-time performance based on events
US20150356001A1 (en) * 2014-06-06 2015-12-10 Ebay Inc. Unit test automation for business rules and applications
US20160140032A1 (en) * 2014-11-19 2016-05-19 International Business Machines Corporation Correlating test results variations with business requirements
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
CN111258916B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN107678936B (en) Business system pre-inspection method, server and computer readable storage medium
CN106325826A (en) Configuration file detection method and apparatus
CN106487603A (en) A kind of response test method and device
CN112579621A (en) Data display method and device, electronic equipment and computer storage medium
JP2017068293A (en) Test db data generation method and device
US20120310849A1 (en) System and method for validating design of an electronic product
JP6975086B2 (en) Quality evaluation method and quality evaluation equipment
CN112541688B (en) Service data verification method and device, electronic equipment and computer storage medium
CN112416725A (en) Pressure testing method and device
CN111258916B (en) Automatic test method, device, storage medium and equipment
CN111651500A (en) User identity recognition method, electronic device and storage medium
CN114595216A (en) Data verification method and device, storage medium and electronic equipment
CN115168217A (en) Defect discovery method and device for source code file
CN111737130B (en) Public cloud multi-tenant authentication service testing method, device, equipment and storage medium
CN111835566A (en) System fault management method, device and system
CN112416782A (en) Test result verification method and device and electronic equipment
CN112130838A (en) Transaction data processing method and device
CN112631852A (en) Macro checking method, macro checking device, electronic equipment and computer readable storage medium
CN110147893A (en) A kind of string part is cannibalized the optimization method of the preventative maintenance spare part under mode
CN110597703A (en) Regression testing method and device
CN112395179B (en) Model training method, disk prediction method, device and electronic equipment
CN111815401B (en) Order flow control method and equipment
CN117313856B (en) Reliability test planning system and method
CN112650679A (en) Test verification method and device and computer system
CN117271316A (en) Software fault detection 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