CN115687083A - Business system testing method and device, electronic equipment and storage medium - Google Patents

Business system testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115687083A
CN115687083A CN202211108332.2A CN202211108332A CN115687083A CN 115687083 A CN115687083 A CN 115687083A CN 202211108332 A CN202211108332 A CN 202211108332A CN 115687083 A CN115687083 A CN 115687083A
Authority
CN
China
Prior art keywords
error code
initial
script
target
error
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.)
Pending
Application number
CN202211108332.2A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202211108332.2A priority Critical patent/CN115687083A/en
Publication of CN115687083A publication Critical patent/CN115687083A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present disclosure provides a business system testing method, which can be applied to the testing technical field and the financial field. The method comprises the following steps: acquiring a test task aiming at a target service system, wherein the test task comprises an error code screening condition; screening initial error codes from the error codes generated by the production system according to error code screening conditions to obtain an initial error code list; aiming at each initial error code in the initial error code list, under the condition that the error code script library does not contain the error code script corresponding to the initial error code, generating an initial error code script corresponding to the initial error code to obtain an initial script set corresponding to the initial error code list; acquiring a script execution rule configured aiming at an initial error code script in an initial script set; and executing the initial error code script according to the script execution rule to obtain a test result corresponding to the target service system. The disclosure also provides a service system testing device, equipment and a storage medium.

Description

Business system testing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of testing technologies and finance, and more particularly, to a method, an apparatus, a device, a medium, and a program product for testing a business system.
Background
The system test is an important stage in the project development process, and meanwhile, important basis is provided for production implementation, parameter setting and the like. In the related art, the method for checking account generally includes that testers design various successful scenes to test a service system, and design of failure scenes is less.
In carrying out the inventive concept of the present disclosure, the inventors found that at least the following problems exist in the related art: with continuous development, transformation and optimization of services, the number of various error codes in a failure scene is gradually increased, the related technology has less coverage on the failure scene, and a test scene is difficult to be completely covered in a test process, so that the test accuracy is poor.
Disclosure of Invention
In view of the above, the present disclosure provides a business system testing method, apparatus, device, medium, and program product.
According to an aspect of the present disclosure, there is provided a service system testing method, including:
acquiring a test task aiming at a target service system, wherein the test task comprises an error code screening condition;
screening initial error codes from the error codes generated by the production system according to the error code screening conditions to obtain an initial error code list;
for each initial error code in the initial error code list, under the condition that an error code script corresponding to the initial error code is determined not to be contained in an error code script library, generating an initial error code script corresponding to the initial error code to obtain an initial script set corresponding to the initial error code list;
acquiring script execution rules configured for the initial error code scripts in the initial script set; and
and executing the initial error code script according to the script execution rule to obtain a test result corresponding to the target service system.
According to an embodiment of the present disclosure, the test task further includes a matching rule;
the method further comprises the following steps:
according to the matching rule, matching an initial error code from the initial error code list to obtain a target error code list, wherein a target error code in the target error code list meets the matching rule;
wherein, for each initial error code in the initial error code list, if it is determined that an error code script corresponding to the initial error code is not included in an error code script library, generating an initial error code script corresponding to the initial error code, and obtaining an initial script set corresponding to the initial error code list includes:
for each target error code in the target error code list, under the condition that the error code script library does not contain an error code script corresponding to the target error code, generating a target error code script corresponding to the target error code to obtain a target script set corresponding to the target error code list;
the obtaining of the script execution rule configured for the initial error code script in the initial script set includes:
and acquiring a script execution rule configured for the target error code script in the target script set.
According to an embodiment of the present disclosure, the generating a target error code script corresponding to the target error code includes:
tracing the source of the reason of the target error code to obtain the error reporting reason of the target error code;
generating a target error code test case corresponding to the target error code according to the error reporting reason of the target error code;
and generating the target error code script according to the target error code test case.
According to an embodiment of the present disclosure, the tracing the source of the reason of the target error code to obtain the error code error reporting reason includes:
determining application information corresponding to the target error code according to the target error code;
tracing the source of the error code according to the application information to report the error reason;
and generating the error code test case according to the error code error report reason.
According to an embodiment of the present disclosure, the error code screening condition includes error code type information and error code attribute information;
the step of screening the initial error codes from the error codes generated by the production system according to the error code screening condition to obtain an initial error code list comprises:
screening an initial error code from the error codes generated by the production system according to the error code type information;
according to the error code attribute information, screening error code content corresponding to the error code attribute information from the error code content of the initial error code to obtain initial error code content;
and generating the initial error code list according to the content of the initial error code.
According to an embodiment of the present disclosure, the error code type information includes one or more of an organization type, a transaction period, and a transaction region;
the error code attribute information comprises one or more of error code description, error code date, transaction type, service type and card type.
According to an embodiment of the present disclosure, the matching rule includes one or more of an organization type, an error code number, a service type, a transaction type, an error code sequence, and a card type.
According to the embodiment of the present disclosure, the service system testing method further includes:
and acquiring an initial error code script corresponding to the initial error code from the error code script library under the condition that the error code script corresponding to the initial error code is determined to be contained in the error code script library.
Another aspect of the present disclosure provides a service system testing apparatus, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a test task aiming at a target service system, and the test task comprises an error code screening condition;
the screening module is used for screening initial error codes from the error codes generated by the production system according to the error code screening conditions to obtain an initial error code list;
a generating module, configured to generate an initial error code script corresponding to the initial error code under the condition that it is determined that an error code script corresponding to the initial error code is not included in an error code script library for each initial error code in the initial error code list, so as to obtain an initial script set corresponding to the initial error code list;
a second obtaining module, configured to obtain a script execution rule configured for the initial error code script in the initial script set; and
and the execution module is used for executing the initial error code script according to the script execution rule to obtain a test result corresponding to the target service system.
Another aspect of the present disclosure provides an electronic device including: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-described business system testing method.
Another aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-mentioned business system testing method.
Another aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the business system testing method described above.
According to the embodiment of the disclosure, a test task for a target service system is obtained, wherein the test task comprises an error code screening condition; then screening initial error codes from the error codes generated by the production system according to error code screening conditions to obtain an initial error code list; then, aiming at each initial error code in the initial error code list, under the condition that the error code script library does not contain the error code script corresponding to the initial error code, generating an initial error code script corresponding to the initial error code to obtain an initial script set corresponding to the initial error code list; and then acquiring a script execution rule configured for the initial error code script in the initial script set, and executing the initial error code script according to the script execution rule to obtain a test result corresponding to the target service system. Because the error codes are obtained from the production system, and the corresponding scripts are generated according to the error codes to test the service system, the error codes of failure scenes are subdivided and accumulated to form the error code scripts, and the error codes are taken as dimensions, the technical problem that the testing accuracy is poor due to the fact that the error scenes are covered less in the testing process is at least partially solved, the covering pertinence of the corresponding scenes of different error codes under the condition of transaction failure is further achieved, the testing accuracy is improved, and the technical effect of stable operation of production transaction is guaranteed.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a business system testing method, apparatus, device, medium and program product in accordance with an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a business system testing method according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flow diagram of a business system testing method according to another embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram of a target error code script generation method according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates an architecture diagram of a business system testing device, in accordance with an embodiment of the present disclosure;
FIG. 6 schematically shows a block diagram of a business system testing device according to an embodiment of the present disclosure;
fig. 7 schematically shows a block diagram of a service system testing apparatus according to another embodiment of the present disclosure; and
fig. 8 schematically shows a block diagram of an electronic device adapted to implement a business system testing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "A, B and at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
With the continuous construction of open ecological banks, the cooperation of banks and more institutions becomes increasingly compact, and more convenient financial scene services and payment settlement products are released. In the process of project development, system testing is an important stage and can provide important basis for production implementation, parameter setting and the like. In the related art, the method for checking account has the following problems:
(1) More test personnel cover various scenes of design functions on the premise of ensuring successful transaction, and only a few kinds of scenes are simply covered for failure scenes. Although only one answer code is used for successful transaction, hundreds of reasons for failure of transaction are provided. For example, the transaction amount of the quick payment service in production includes a large number of successful transactions, and also includes the condition that a large number of transactions fail, and a tester only pays attention to success but not to failure tests of different error codes, so that the coverage of a failure scene in the test process is less, the test process is difficult to completely cover the test scene, and the test accuracy is poor;
(2) With continuous development and transformation optimization of services, the number of various error codes under the condition of failure is gradually increased, service knowledge is usually only in the mind of testers and is passed by a mouth-to-mouth transmission mode, after repeated handover and omission, the number of the failure error codes which are usually mastered by the testers is very small, and tools are not provided for supporting assets forming unified standards and a system for accumulating new error codes.
In view of the above, the present disclosure provides a method for testing a service system, which obtains error codes from a production system, generates corresponding scripts according to the error codes, stores the corresponding scripts into an error code script library, and then tests the service system according to the scripts in the error code script library, so as to subdivide and accumulate the error codes in a failure scenario, and form an error code script, where the error codes are used as dimensions, thereby solving the technical problem of poor testing accuracy caused by less coverage on the error scenario in a testing process, further achieving the coverage pertinence of different error code corresponding scenarios under a transaction failure condition, and contributing to improving the testing accuracy, thereby ensuring the technical effect of stable operation of production transactions.
Specifically, an embodiment of the present disclosure provides a service system testing method, including: acquiring a test task aiming at a target service system, wherein the test task comprises an error code screening condition; screening initial error codes from the error codes generated by the production system according to the error code screening conditions to obtain an initial error code list; for each initial error code in the initial error code list, under the condition that an error code script corresponding to the initial error code is determined not to be contained in an error code script library, generating an initial error code script corresponding to the initial error code to obtain an initial script set corresponding to the initial error code list; acquiring a script execution rule configured for the initial error code script in the initial script set; and executing the initial error code script according to the script execution rule to obtain a test result corresponding to the target service system.
It should be noted that the business system testing method and device provided by the embodiment of the disclosure can be used in the technical field of testing or the financial field. The business system testing method and device provided by the embodiment of the disclosure can also be used in any fields except the testing technical field or the financial field. The application fields of the service system testing method and the service system testing device provided by the embodiment of the disclosure are not limited.
In the technical scheme of the disclosure, before the personal information of the user is acquired or collected, the authorization or the consent of the user is acquired.
In the technical scheme of the disclosure, the data acquisition, collection, storage, use, processing, transmission, provision, disclosure, application and other processing are all in accordance with the regulations of relevant laws and regulations, necessary security measures are taken, and the public order and good custom are not violated.
Fig. 1 schematically illustrates an application scenario diagram of a business system testing method, apparatus, device, medium, and program product according to embodiments of the disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include a network, a terminal device, and a server. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The backend management server may analyze and process the received data such as the user request, and feed back a processing result (for example, a web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the service system testing method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the service system testing device provided by the embodiment of the present disclosure may be generally disposed in the server 105. The service system testing method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the service system testing apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The service system testing method of the disclosed embodiment will be described in detail below with reference to fig. 2 to 5 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flow chart of a business system testing method according to an embodiment of the present disclosure.
As shown in fig. 2, the service system testing method of the embodiment includes operations S210 to S250, and the service system testing method may be performed by a server.
In operation S210, a test task for a target service system is obtained, where the test task includes an error code screening condition.
According to the embodiment of the disclosure, the error code screening condition is used for screening the error codes meeting the test task at this time. For example, error code screening conditions may include the error code's attribution institution, transaction type, start and stop date and time, acquisition mode, and the like. More specifically, the error code screening condition is used to obtain the error code, error code description, etc. information of the transaction that a certain transaction type reports in error in a certain period of time of a certain institution.
It should be noted that the error code screening conditions can be customized individually by the tester.
In operation S220, an initial error code is screened from the error codes generated by the production system according to the error code screening condition, so as to obtain an initial error code list.
According to an embodiment of the present disclosure, the initial error code list may form a list according to the initial error codes screened out by the above-mentioned screening condition, for example. For example, the initial error code list includes information such as the affiliate of the error code, the transaction type, start and end dates and times, acquisition mode, and description of the error code.
According to the embodiment of the disclosure, the initial error code list can be stored in the information storage module so as to be convenient to call in later use.
In operation S230, for each initial error code in the initial error code list, if it is determined that an error code script corresponding to the initial error code is not included in the error code script library, an initial error code script corresponding to the initial error code is generated, and an initial script set corresponding to the initial error code list is obtained.
According to the embodiment of the present disclosure, the service system testing method further includes: and acquiring an initial error code script corresponding to the initial error code from the error code script library under the condition that the error code script corresponding to the initial error code is determined to be contained in the error code script library.
According to the embodiment of the disclosure, the error code script library is used for storing the error code script, so that the error code storing script can be directly obtained from the error code script library when the service test is carried out, and the test efficiency is improved.
According to an embodiment of the present disclosure, in a case where an error code script corresponding to an initial error code is not included in the error code script library, an error code script corresponding to the initial error code is generated.
According to the embodiment of the disclosure, the generated error code script corresponding to the initial error code script is stored in an error code script library.
According to the embodiment of the disclosure, the script execution rule configured by the initial error code script is stored in the information storage module.
In operation S240, script execution rules configured for the initial error code scripts in the initial script set are obtained.
According to embodiments of the present disclosure, the script execution rules of the initial error code script may be maintained by a tester.
According to an embodiment of the present disclosure, the script execution rule may include, for example, identification information of an initial error code script to be executed, an execution start time, an execution end time, an execution frequency, an associated error code, and the like.
Table 1 schematically illustrates script execution rules in one embodiment.
TABLE 1
Figure BDA0003842382310000101
As shown in table 1, the meaning of the task ID being script 1 is that the error code 1110 script is executed every 0.5 hours within 8/1/6 of 2021. Task ID is script 2 means that the error code 9999 script is executed every 0.5 hours within 2021, 8, 1, 6.
In operation S250, the initial error code script is executed according to the script execution rule to obtain a test result corresponding to the target service system.
According to the embodiment of the disclosure, a tester can maintain the execution triggering mode of the initial error script, and the execution triggering mode comprises a manual triggering mode and a timing triggering mode. For the timing trigger mode, a preset time needs to be configured, so that the initial error code script is automatically executed within the preset time.
According to the embodiment of the disclosure, the execution of the initial error code script is finished, and the execution condition of the whole script is subjected to statistical analysis according to the test result. The statistical analysis may include, for example, calculation of test execution coverage, test execution result information, execution time, etc., and coverage of production error codes for the testers to check and accept and guide the test. And analyzing and checking the error code script result which is not in line with the expectation, thereby comprehensively improving the test quality.
According to the embodiment of the disclosure, a test task for a target service system is obtained, wherein the test task comprises an error code screening condition; then screening initial error codes from the error codes generated by the production system according to error code screening conditions to obtain an initial error code list; then, aiming at each initial error code in the initial error code list, under the condition that the error code script library does not contain the error code script corresponding to the initial error code, generating an initial error code script corresponding to the initial error code to obtain an initial script set corresponding to the initial error code list; and then acquiring a script execution rule configured for the initial error code script in the initial script set, and executing the initial error code script according to the script execution rule to obtain a test result corresponding to the target service system. The error codes are obtained from the production system, the corresponding scripts are generated according to the error codes to test the service system, the error codes of failure scenes are subdivided and accumulated to form error code scripts, the error codes are taken as dimensions, the technical problem that the testing accuracy is poor due to the fact that the error scenes are covered less in the testing process is at least partially solved, the covering pertinence of the scenes corresponding to different error codes under the condition of transaction failure is further achieved, the testing accuracy is improved, and the technical effect of stable operation of production transactions is guaranteed.
According to an embodiment of the present disclosure, the error code screening condition includes error code type information and error code attribute information; the step of screening the initial error codes from the error codes generated by the production system according to the error code screening condition to obtain an initial error code list includes: screening an initial error code from the error codes generated by the production system according to the error code type information; according to the error code attribute information, screening error code content corresponding to the error code attribute information from the error code content of the initial error code to obtain initial error code content; and generating the initial error code list according to the content of the initial error code.
According to an embodiment of the present disclosure, the error code type information includes one or more of an organization type, a transaction period, and a transaction region; the error code attribute information comprises one or more of error code description, error code date, transaction type, service type and card type.
According to the embodiment of the disclosure, the error codes meeting the error code type are obtained from the error codes generated by the production system according to the error code type information to obtain the initial error codes, and since each initial error code contains contents with various different attributes, the required attribute contents are obtained from the contents with various different attributes of the error codes according to the error code attribute information.
For example, the attributes of the error code include the error code description, error code date, transaction type, service type, card type; the error code attribute information in the error code screening condition includes an error code description and an error code date, and only the content corresponding to the error code description and the error code date is obtained.
In one embodiment, the error code type information includes an affiliation institution, a transaction type, a date and time of acquisition, an acquisition mode, and the like of the error code, the error code attribute information includes an error code, an error code description, an institution, a date, a transaction type, a service type, a card type, and merchant information, and an initial error code list obtained by screening according to the screening conditions is shown in table 2.
TABLE 2
Figure BDA0003842382310000121
As shown in table 2, the first filtering condition filters all error code information of the payment transaction with the institution a in the range from 2 am at 10/1/m/s in 2021 to 8 am at 11/1/s in 2021, which shows the error code, error code description, institution, date, transaction type and service type.
According to an embodiment of the present disclosure, the test task further includes a matching rule; the method further comprises the following steps: according to the matching rule, matching an initial error code from the initial error code list to obtain a target error code list, wherein a target error code in the target error code list meets the matching rule; wherein, for each initial error code in the initial error code list, if it is determined that an error code script corresponding to the initial error code is not included in an error code script library, generating an initial error code script corresponding to the initial error code, and obtaining an initial script set corresponding to the initial error code list includes: for each target error code in the target error code list, under the condition that the error code script library does not contain an error code script corresponding to the target error code, generating a target error code script corresponding to the target error code to obtain a target script set corresponding to the target error code list; the obtaining of the script execution rule configured for the initial error code script in the initial script set includes: and acquiring a script execution rule configured for the target error code script in the target script set.
According to an embodiment of the present disclosure, the matching rule includes one or more of an organization type, an error code number, a service type, a transaction type, an error code sequence, and a card type.
According to the embodiment of the disclosure, the initial error code list is matched by using the matching rule, so that the error code meeting the matching rule is selected as the target error code.
In one embodiment, the matching rules are shown in Table 3:
TABLE 3
Figure BDA0003842382310000131
As shown in table 3, the matching rule 1 is used for matching the error code with the institution a, the service type being electric fee payment, and the transaction type being payment transaction with the error number more than 100 reported in the period from 10/1/2021 to 12/1/2021. The matching rule 2 is used for matching error codes which accord with that the institution is B, the service type is social insurance payment, and the transaction type is payment transaction, wherein the error codes report the number of errors and rank ten before the payment transaction in the period from 10 month 1 in 2021 to 12 month 1 in 2021.
According to the embodiment of the disclosure, a tester can maintain the matching rules and the matching elements through the multi-stage matching module. As shown in table 3, the matching rules include, for example, institution, number of error codes, type of transaction, order of error codes, type of card, merchant dimensions. The matching elements include start time, receive time, whether enabled, etc.
According to the embodiment of the disclosure, the initial error list is screened by using the screening condition, and the target error code list is obtained by matching the initial error code list by using the matching rule, which is beneficial to reducing the interference generated to the production system.
Fig. 3 schematically shows a flow chart of a business system testing method according to another embodiment of the present disclosure.
As shown in fig. 3, the service system testing method of this embodiment includes operations S301 to S311.
In operation S301, a test task for a target service system is obtained, where the test task includes error code screening conditions and matching rules, and the error code screening conditions include error code type information and error code attribute information.
In operation S302, an initial error code is screened from error codes generated by the production system according to the error code type information.
In operation S303, according to the error code attribute information, the error code content corresponding to the error code attribute information is screened from the error code content of the initial error code, so as to obtain the initial error code content.
In operation S304, an initial error code list is generated according to the initial error code content.
In operation S305, an initial error code is matched from the initial error code list according to a matching rule, and a target error code list is obtained, wherein the target error codes in the target error code list satisfy the matching rule.
In operation S306, for each target error code in the target error code list, it is determined whether an error code script corresponding to the target error code is included in the error code script library. In a case where it is determined that the error code script corresponding to the target error code is not included in the error code script library, performing operation S307; in the case that it is determined that the error code script corresponding to the target error code is included in the error code script library, operation S308 is performed.
In operation S307, a target error code script corresponding to the target error code is generated.
In operation S308, a target error code script corresponding to the target error code is obtained from the error code script library.
In operation S309, a target script set corresponding to the target error code list is obtained according to the target error code script.
In operation S310, script execution rules configured for target error code scripts in the target script set are obtained.
In operation S311, the target error code script is executed according to the script execution rule, so as to obtain a test result corresponding to the target service system.
According to the embodiment of the disclosure, by setting the matching rule and combining the production transaction condition, decision bases such as the priority of the test range, the attention measurement, the distribution of test manpower and test time and the like are provided for the error code test range required to be developed under different implementation conditions.
According to an embodiment of the present disclosure, the generating a target error code script corresponding to the target error code includes: tracing the source of the reason of the target error code to obtain the error reporting reason of the target error code; generating a target error code test case corresponding to the target error code according to the error reporting reason of the target error code; and generating the target error code script according to the target error code test case.
According to the embodiment of the disclosure, the service test further includes determining whether a cause of the error report of the target error code exists, and generating a test case of the target error code corresponding to the target error code according to the cause of the error report of the target error code when the cause of the error report of the target error code does not exist; and under the condition that the error reporting reason of the target error code exists, displaying the existence of the error reporting reason of the target error code on a display interface without generating a target error code test case.
According to an embodiment of the present disclosure, the tracing the source of the reason of the target error code to obtain the error code error reporting reason includes: determining application information corresponding to the target error code according to the target error code; tracing the source of the error code according to the application information to report the error reason; and generating the error code test case according to the error code report reason.
According to an embodiment of the present disclosure, the application information may include primary application identification information.
According to the embodiment of the disclosure, the error reporting reason according to the application information tracing error code includes: and tracing to the specific error reporting reason and the scene configuration parameters according to the main application, and generating a corresponding error code test case.
FIG. 4 schematically shows a flowchart of a target error code script generation method according to an embodiment of the present disclosure.
As shown in fig. 4, the target error code script generation method of this embodiment includes operations S401 to S405.
In operation S401, the source tracing is performed on the target error code to obtain the error reporting reason of the target error code.
In operation S402, it is determined whether an error-reporting reason exists. In the case that the error report reason for the target error code does not exist, performing operation S403; in the case where the target error code error-reporting reason exists, operation S405 is performed.
In operation S403, a target error code test case corresponding to the target error code is generated according to the error cause of the target error code.
In operation S404, a target error code script is generated according to the target error code test case.
In operation S405, it is shown in the display interface that the reason for the error report of the target error code already exists.
According to the embodiment of the disclosure, error codes of failure scenes are subdivided and accumulated, the error code reasons are traced through a system, error code case scripts are formed, the coverage pertinence of different error code corresponding scenes under the condition of transaction failure is effectively enhanced by taking the error codes as dimensions, the blank of testing is filled, flexible and automatic coverage of rapid payment transaction depending on matching rules is realized, decision basis and guidance opinions are provided for error code testing ranges required under different emergency conditions by setting the matching rules and the condition of production transaction amount, and the strategy and flexibility of error code coverage testing are improved; in addition, the coverage condition is analyzed, calculated and displayed, so that the test efficiency is improved, the comprehensiveness and systematicness of the coverage of the failure scene are effectively guaranteed, and the stable operation of production transaction is enhanced.
Fig. 5 schematically shows an architecture diagram of a business system testing device according to an embodiment of the present disclosure.
As shown in fig. 5, the tester fills in the matching rule through the matching rule maintenance module, and then submits the matching rule and stores the matching rule in the storage module.
And the testing personnel fills in the error code application through the error code application system, acquires the error code information from the production system according to the error code application and sends the error code information to the matching module.
And the matching module receives the error code information, acquires the matching rule from the storage module, matches the error code information according to the matching rule to obtain a matching result, and sends the matching result to the reason tracing module.
And the reason tracing module receives the matching result, traces the source of the error code reason according to the matching result to obtain the error code error report reason, and sends the error code error report reason to the case maintenance module.
The case maintenance module receives the error code error reporting reason, generates an error code test case according to the error code error reporting reason, generates an automatic script according to the error code test case, and then stores the automatic script in the storage module.
And the tester maintains the automatic execution rule through the automatic execution module, associates the automatic script with the storage module, and stores the automatic execution rule into the storage module after submitting the automatic execution rule.
The automatic execution module triggers execution according to a trigger condition (timer or manual trigger), acquires the error code automatic script from the storage module, and executes the automatic script according to an automatic execution rule. And after the execution of the automation script is finished, acquiring an execution result of the automation script, and storing the execution result of the automation script in a storage module.
And the error code analysis module analyzes the execution result of the automation script to obtain an analysis report of the automation execution result and stores the analysis report into the storage module.
It should be noted that, unless explicitly stated that there is an execution sequence between different operations or there is an execution sequence between different operations in technical implementation, the execution sequence between multiple operations may not be sequential, or multiple operations may be executed simultaneously in the flowchart in this disclosure.
Based on the service system testing method, the disclosure also provides a service system testing device. The apparatus will be described in detail below with reference to fig. 6.
Fig. 6 schematically shows a block diagram of a service system testing apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the business system testing apparatus 600 of this embodiment includes a first obtaining module 610, a screening module 620, a generating module 630, a second obtaining module 640, and an executing module 650.
The first obtaining module 610 is configured to obtain a test task for a target service system, where the test task includes an error code screening condition. In an embodiment, the first obtaining module 610 may be configured to perform the operation S210 described above, which is not described herein again.
The screening module 620 is configured to screen an initial error code from the error codes generated by the production system according to the error code screening conditions to obtain an initial error code list. In an embodiment, the screening module 620 may be configured to perform the operation S220 described above, which is not described herein again.
The generating module 630 is configured to, for each initial error code in the initial error code list, generate an initial error code script corresponding to the initial error code if it is determined that an error code script corresponding to the initial error code is not included in the error code script library, and obtain an initial script set corresponding to the initial error code list. In an embodiment, the generating module 630 may be configured to perform the operation S230 described above, which is not described herein again.
The second obtaining module 640 is configured to obtain a script execution rule configured for the initial error code script in the initial script set. In an embodiment, the second obtaining module 640 may be configured to perform the operation S240 described above, which is not described herein again.
The execution module 650 is configured to execute the initial error code script according to the script execution rule to obtain a test result corresponding to the target service system. In an embodiment, the execution module 650 may be configured to execute the operation S250 described above, and is not described herein again.
According to an embodiment of the present disclosure, the test task further includes a matching rule.
According to an embodiment of the present disclosure, the apparatus further includes: and a matching module.
A matching module, configured to match an initial error code from the initial error code list according to the matching rule to obtain a target error code list, where a target error code in the target error code list satisfies the matching rule; the generating module is further configured to generate a target error code script corresponding to the target error code under the condition that it is determined that the error code script library does not include an error code script corresponding to the target error code for each target error code in the target error code list, so as to obtain a target script set corresponding to the target error code list; the second obtaining module is further configured to obtain a script execution rule configured for the target error code script in the target script set.
According to an embodiment of the present disclosure, the generating module includes: the system comprises a reason tracing submodule, a first generation submodule and a second generation submodule.
And the reason tracing submodule is used for tracing the reason of the target error code to obtain the error reporting reason of the target error code.
And the first generation submodule is used for generating a target error code test case corresponding to the target error code according to the error report reason of the target error code.
And the second generation submodule is used for generating the target error code script according to the target error code test case.
According to an embodiment of the present disclosure, the reason tracing submodule includes: the device comprises a determining unit, a tracing unit and a generating unit.
And the determining unit is used for determining the application information corresponding to the target error code according to the target error code.
And the tracing unit is used for tracing the error code error report reason according to the application information.
And the generating unit is used for generating the error code test case according to the error code error reporting reason.
According to an embodiment of the present disclosure, the error code screening condition includes error code type information and error code attribute information.
According to an embodiment of the present disclosure, the screening module includes: a first screening submodule, a second screening submodule, and a third generation submodule.
And the first screening submodule is used for screening the initial error codes from the error codes generated by the production system according to the error code type information.
And the second screening submodule is used for screening the error code content corresponding to the error code attribute information from the error code content of the initial error code according to the error code attribute information to obtain the initial error code content.
And the third generation submodule is used for generating the initial error code list according to the content of the initial error code.
According to an embodiment of the present disclosure, the error code type information includes one or more of an organization type, a transaction period, and a transaction region; the error code attribute information comprises one or more of error code description, error code date, transaction type, service type and card type.
According to an embodiment of the present disclosure, the matching rule includes one or more of an organization type, an error code number, a service type, a transaction type, an error code sequence, and a card type.
According to an embodiment of the present disclosure, the service system testing apparatus further includes: and a third obtaining module.
And a third obtaining module, configured to obtain an initial error code script corresponding to the initial error code from the error code script library when it is determined that the error code script library includes an error code script corresponding to the initial error code.
Any number of modules, sub-modules, units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units according to the embodiments of the present disclosure may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging the circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, one or more of the modules, sub-modules, units according to embodiments of the disclosure may be implemented at least partly as computer program modules, which, when executed, may perform corresponding functions.
According to the embodiment of the present disclosure, any plurality of the first obtaining module 610, the screening module 620, the generating module 630, the second obtaining module 640, and the executing module 650 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first obtaining module 610, the screening module 620, the generating module 630, the second obtaining module 640, and the executing module 650 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or an appropriate combination of any several of them. Alternatively, at least one of the first obtaining module 610, the screening module 620, the generating module 630, the second obtaining module 640 and the executing module 650 may be at least partially implemented as a computer program module, which when executed may perform a corresponding function.
Fig. 7 schematically shows a block diagram of a service system testing apparatus according to another embodiment of the present disclosure.
As shown in fig. 7, the apparatus 700 for testing a business system of this embodiment includes an error code extraction module 710, a multi-stage matching module 720, a reason tracing and case generating module 730, an automation execution module 740, a test condition analysis module 750, and an information storage module 760.
The error code extraction module 710 is configured to, by the tester, propose an acquisition application for acquiring a target error code in the production system according to a requirement, automatically acquire error code information after the acquisition application is proposed, and send the error code information to the multistage matching module 720, where the submitted acquisition application may include error codes of dimensions such as a transaction type, a region, and a period.
The multistage matching module 720 is configured to perform matching on error code information data according to a matching rule maintained in advance according to the error code information extracted by the error code extraction module 710, obtain matched error code information, and push the matched error code information to the reason tracing and case generating module 730.
The reason tracing and case generating module 730 is configured to trace the reason of the error code according to the matched error code information, generate an automatic case script corresponding to the error code, and push the automatic case script to the automatic executing module 740.
The automatic execution module 740 is configured to receive the automatic case script generated by the reason tracing and case generating module 730, perform automatic execution coverage on the transaction corresponding to the error code in combination with the maintained execution rule, and obtain an execution result after the script is executed, and send the execution result to the information storage module for storage 760.
The test condition analyzing module 750 is configured to perform error code analysis statistics on the execution result of the automation executing module 740, and send the analysis statistics result to the information storing module 760.
The information storage module 760 is configured to store the error codes and the related information extracted by the error code extraction module 710, store the matching rules maintained by the multi-stage matching module 720, store the error code information matched according to the matching rules, store the automatic case script generated by the reason tracing and case generation module 730, store the execution rules and the results of the automatic execution executed by the automatic execution module 740, and store the analysis results generated by the test condition analysis module 750.
The error code extracting module 710 includes an error code acquiring application unit, an error code acquiring unit, and an error code pushing unit.
And the error code obtaining application unit is used for submitting the application of obtaining the error code by a tester. And the error code acquisition unit is used for receiving the error code acquisition application pushed by the error code acquisition application unit, acquiring an error code information result according to the application content and pushing the error code information result to the error code pushing unit.
And the error code pushing unit is used for receiving the error code information result pushed by the error code pushing unit and pushing the error code information result to the error code storage unit and the multistage matching module receiving unit.
The multistage matching module 720 includes a multistage matching module receiving unit, a multistage rule maintaining unit, a multistage matching unit, and a matching result pushing unit.
And the multistage matching module receiving unit is used for receiving the error code information result pushed by the error code pushing unit and pushing the error code information result to the multistage matching unit.
And the multi-stage rule maintenance unit is used for maintaining the multi-stage matching rules by the tester and pushing the maintained matching rules to the multi-stage matching result storage unit.
And the multistage matching unit is used for receiving the error code information result pushed by the multistage matching module receiving unit, matching the error code information in combination with the multistage rule maintenance unit, matching the error code information result, and pushing the matching result to the matching result pushing unit.
And the matching result pushing unit is used for receiving the matching result pushed by the matching pushing unit and pushing the matching result to the reason information tracing receiving unit and the multistage matching result storage unit.
The reason tracing and case generating module 730 includes a reason information tracing receiving unit, a reason tracing unit and an error code case generating unit.
And the reason information tracing receiving unit is used for receiving the matching result pushed by the matching result pushing unit and pushing the matching result to the reason tracing unit for error code reason tracing.
And the reason tracing unit is used for receiving the matching result pushed by the reason information tracing receiving unit, transferring the matching result to related personnel to analyze and position the reason of the error code, and then pushing the matching result to the error code case generating unit after confirming the reason of the error code.
And the error code case generation unit is used for generating an automatic script of the error code reason according to the error code reason and pushing the script to the error code case storage unit.
The automation execution module 740 includes an execution rule maintenance unit, an execution case information receiving unit, an automation execution unit, and an execution result pushing unit.
And the execution rule maintenance unit is used for automatically maintaining the execution rule by a tester, and pushing the execution rule to the execution rule storage unit and the execution case information receiving unit after the maintenance is finished.
And the execution case information receiving unit is used for executing the error code automation script pushed by the rule maintenance unit and pushing the script to the automation execution unit.
And the automatic execution unit is used for executing the automatic script after receiving the execution rule pushed by the execution case information receiving unit, acquiring the execution result information, and pushing the execution result information to the execution result pushing unit after acquiring the execution result information.
And the execution result pushing unit is used for pushing the information to the execution result storage unit to store the execution result information after receiving the information of the error code script execution result pushed by the automatic execution unit.
The test condition analysis module 750 includes a test result analysis unit and an analysis result pushing unit.
And the test result analysis unit is used for analyzing the execution result information stored in the execution result storage unit and sending the analysis result to the analysis structure pushing unit.
And the analysis result pushing unit is used for receiving the analysis condition of the test result pushed by the test result analyzing unit and pushing the analysis condition to the analysis result storage unit.
The information storage module 760 includes an error code storage unit, a multi-level matching result storage unit, a multi-level rule storage unit, an error code case storage unit, an execution rule storage unit, an execution result storage unit, and an analysis result storage unit.
And the error code storage unit is used for storing the error code information pushed by the error code pushing unit.
And the multi-stage matching result storage unit is used for storing the error code matching result pushed by the matching result pushing unit.
And the multi-level rule storage unit is used for storing the multi-level matching rules maintained by the testing personnel.
And the error code case storage unit is used for storing the test case script corresponding to the matched error code information.
And the execution rule storage unit is used for storing the automatic script execution rule maintained by the execution rule maintenance unit.
And the execution result storage unit is used for storing the automatic execution result pushed by the execution result pushing unit.
And the analysis result storage unit is used for storing the execution result analysis report pushed by the analysis result pushing unit.
It should be noted that, the service system testing apparatus portion in the embodiment of the present disclosure corresponds to the service system testing method portion in the embodiment of the present disclosure, and the description of the service system testing apparatus portion specifically refers to the service system testing method portion, which is not described herein again.
Fig. 8 schematically shows a block diagram of an electronic device adapted to implement a business system testing method according to an embodiment of the present disclosure.
As shown in fig. 8, an electronic device 800 according to an embodiment of the present disclosure includes a processor 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., application Specific Integrated Circuit (ASIC)), among others. The processor 801 may also include onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are stored. The processor 801, ROM 802, and RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or the RAM 803. Note that the programs may also be stored in one or more memories other than the ROM 802 and RAM 803. The processor 801 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 800 may also include input/output (I/O) interface 805, input/output (I/O) interface 805 also connected to bus 804, according to an embodiment of the present disclosure. Electronic device 800 may also include one or more of the following components connected to I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include one or more memories other than the ROM 802 and/or RAM 803 and/or ROM 802 and RAM 803 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the business system testing method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 801. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal on a network medium, distributed, downloaded and installed via communication section 809, and/or installed from removable media 811. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program, when executed by the processor 801, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It will be appreciated by a person skilled in the art that various combinations or/and combinations of features recited in the various embodiments of the disclosure and/or in the claims may be made, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. A service system testing method comprises the following steps:
acquiring a test task aiming at a target service system, wherein the test task comprises an error code screening condition;
screening initial error codes from the error codes generated by the production system according to the error code screening conditions to obtain an initial error code list;
for each initial error code in the initial error code list, under the condition that an error code script corresponding to the initial error code is determined not to be contained in an error code script library, generating an initial error code script corresponding to the initial error code to obtain an initial script set corresponding to the initial error code list;
acquiring a script execution rule configured for the initial error code script in the initial script set; and
and executing the initial error code script according to the script execution rule to obtain a test result corresponding to the target service system.
2. The method of claim 1, wherein the test task further comprises a matching rule;
the method further comprises the following steps:
according to the matching rule, matching an initial error code from the initial error code list to obtain a target error code list, wherein a target error code in the target error code list meets the matching rule;
wherein, for each initial error code in the initial error code list, generating an initial error code script corresponding to the initial error code under the condition that it is determined that an error code script corresponding to the initial error code is not included in an error code script library, and obtaining an initial script set corresponding to the initial error code list includes:
for each target error code in the target error code list, under the condition that the error code script library does not contain an error code script corresponding to the target error code, generating a target error code script corresponding to the target error code to obtain a target script set corresponding to the target error code list;
the obtaining of the script execution rule configured for the initial error code script in the initial script set includes:
and acquiring script execution rules configured for the target error code scripts in the target script set.
3. The method of claim 2, wherein the generating a target error code script corresponding to the target error code comprises:
tracing the source of the reason of the target error code to obtain the error reporting reason of the target error code;
generating a target error code test case corresponding to the target error code according to the error reporting reason of the target error code;
and generating the target error code script according to the target error code test case.
4. The method of claim 3, wherein the tracing the cause of the target error code to obtain the error code error reporting cause comprises:
determining application information corresponding to the target error code according to the target error code;
tracing the source of the error code according to the application information to report the error reason;
and generating the error code test case according to the error code error reporting reason.
5. The method of claim 1, wherein the error code screening condition includes error code type information and error code attribute information;
the step of screening the initial error codes from the error codes generated by the production system according to the error code screening condition to obtain an initial error code list comprises the following steps:
screening initial error codes from the error codes generated by the production system according to the error code type information;
screening error code content corresponding to the error code attribute information from the error code content of the initial error code according to the error code attribute information to obtain initial error code content;
and generating the initial error code list according to the initial error code content.
6. The method of claim 5, wherein the error code type information includes one or more of institution type, transaction period, transaction region;
the error code attribute information comprises one or more of error code description, error code date, transaction type, service type and card type.
7. The method of claim 6, wherein the matching rules include one or more of institution type, number of error codes, type of transaction, type of error codes, sequence of error codes, type of card.
8. The method of claim 1, further comprising:
and under the condition that the error code script corresponding to the initial error code is determined to be contained in the error code script library, acquiring the initial error code script corresponding to the initial error code from the error code script library.
9. A business system testing apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a test task aiming at a target service system, and the test task comprises an error code screening condition;
the screening module is used for screening initial error codes from the error codes generated by the production system according to the error code screening conditions to obtain an initial error code list;
the generating module is used for generating an initial error code script corresponding to the initial error code under the condition that an error code script corresponding to the initial error code is not contained in an error code script library aiming at each initial error code in the initial error code list, so as to obtain an initial script set corresponding to the initial error code list;
a second obtaining module, configured to obtain a script execution rule configured for the initial error code script in the initial script set; and
and the execution module is used for executing the initial error code script according to the script execution rule to obtain a test result corresponding to the target service system.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 8.
12. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
CN202211108332.2A 2022-09-13 2022-09-13 Business system testing method and device, electronic equipment and storage medium Pending CN115687083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211108332.2A CN115687083A (en) 2022-09-13 2022-09-13 Business system testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211108332.2A CN115687083A (en) 2022-09-13 2022-09-13 Business system testing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115687083A true CN115687083A (en) 2023-02-03

Family

ID=85062154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211108332.2A Pending CN115687083A (en) 2022-09-13 2022-09-13 Business system testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115687083A (en)

Similar Documents

Publication Publication Date Title
US11487539B2 (en) Systems and methods for automating and monitoring software development operations
CN113535577B (en) Application testing method and device based on knowledge graph, electronic equipment and medium
CN112860556B (en) Coverage rate statistics method, coverage rate statistics device, computer system and readable storage medium
CN115080433A (en) Testing method and device based on flow playback
CN115660842A (en) Accounting checking method, device, equipment and storage medium
CN115391655A (en) Information query method and device, electronic equipment and computer readable storage medium
CN115687083A (en) Business system testing method and device, electronic equipment and storage medium
CN114115628A (en) U shield display information acquisition method, device, equipment, medium and program product applied to U shield test
CN113487224A (en) Content processing method, apparatus, device, medium, and program product
CN114416559A (en) Test method, device, equipment, medium and program product
CN115629983A (en) Test case set generation method, device, equipment and medium
CN117493208A (en) Software testing method and device, electronic equipment and storage medium
CN117931673A (en) Test method, test device, test apparatus, test medium, and test program product
CN115629899A (en) Data checking method, device and equipment
CN114610641A (en) Software testing validity evaluation method and device based on application system
CN113568838A (en) Test data generation method, device, equipment, storage medium and program product
CN114116519A (en) Interface test method and device, electronic equipment and storage medium
CN115687078A (en) Test case evaluation method, test case evaluation apparatus, test case evaluation device, test case evaluation medium, and program product
CN115827122A (en) Operation guiding method and device, electronic equipment and storage medium
CN117130934A (en) Data processing method and device, electronic equipment and storage medium
CN116414600A (en) Data automatic checking method, device, equipment and storage medium
CN114066651A (en) Product recommendation method and device, electronic equipment and storage medium
CN117435472A (en) Page test method, device, equipment and medium
CN115309571A (en) Abnormality detection method, abnormality detection device, electronic apparatus, and storage medium
CN117112063A (en) System date processing 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