A batch automated testing method and platform

By preconfiguring test execution statements, test environment information and assertion statements in the test configuration table, automated batch testing is realized, solving the problem that manual testing in the existing technology is difficult to achieve efficient and accurate, and improving the simplicity and efficiency of batch testing.

CN113434398BActive Publication Date: 2025-02-18INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110697247.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-23
Publication Date
2025-02-18
Estimated Expiration
2041-06-23

AI Technical Summary

Technical Problem

It is difficult for the existing technology to achieve efficient and accurate automatic batch testing, especially when faced with complex existing operations and changing testing environments, manual testing is difficult to achieve full coverage and efficiency.

Method used

Provides a batch automation testing method and platform, which realizes automated batch testing by preconfiguring test execution statements, test environment information and assertion statements in the test configuration table. The test platform receives batch test requests, reads relevant configuration information and performs test operations.

Benefits of technology

It improves the simplicity and efficiency of batch testing, can automate the execution of batch testing operations, reduces the workload of testers, and simplifies the maintenance and modification of test execution statements and test environment information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113434398B_ABST
    Figure CN113434398B_ABST
Patent Text Reader

Abstract

The embodiments of this specification relate to the field of big data technology, and specifically disclose a batch automated testing method and platform, which are applied to a testing platform, wherein a test configuration table is stored in the testing platform, and the test configuration table at least includes at least one test execution statement associated with a job identifier and test environment information corresponding to the execution of the test execution statement; the method includes: receiving a batch testing request, wherein the batch testing request at least includes a specified job identifier; reading from the test configuration table at least one test execution statement associated with the specified job identifier and the test environment information corresponding to the execution of the test execution statement; performing a test operation on the test job identified by the specified job identifier using the read at least one test execution statement and the test environment information corresponding to the execution of the test execution statement, thereby realizing automated batch testing and improving the simplicity of batch testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present specification relates to the field of big data technology, and in particular, to a batch automated testing method and platform. Background Art

[0002] Batch framework is an important way of data processing. With the continuous development of business, the original batch jobs often need to be changed. There are many existing jobs, which makes manual testing affected by factors such as time and manpower, and it is difficult to achieve full coverage testing. In addition, the types of existing jobs are complex and the number is large, which makes the test case script statements numerous, and there may be problems such as lack of support for some batch types, which makes the writing of test cases difficult. In addition, the environment configuration involved in batch job testing is also relatively complex and changeable, and manual testing cannot adapt well to changes in test applications (different applications may have their own characteristics) and test environments (mainly upstream dependent environments). Therefore, there is an urgent need for a more efficient and accurate automatic batch testing method. Summary of the invention

[0003] The purpose of the embodiments of this specification is to provide a batch automated testing method and platform, which can realize automated batch testing and improve the simplicity and efficiency of batch testing.

[0004] This specification provides a batch automated testing method and platform that is implemented in the following ways:

[0005] A batch automated testing method is applied to a testing platform, wherein a test configuration table is stored in the testing platform, wherein the test configuration table includes at least one test execution statement associated with a job identifier and the test environment information corresponding to the execution of the test execution statement; the job identifier refers to information for identifying the test job; the method includes: receiving a batch testing request, wherein the batch testing request includes at least a specified job identifier; the specified job identifier refers to information for identifying at least one test job involved in the batch testing request; reading from the test configuration table at least one test execution statement associated with the specified job identifier and the test environment information corresponding to the execution of the test execution statement; and performing a test operation on the test job identified by the specified job identifier using the read at least one test execution statement and the test environment information corresponding to the execution of the test execution statement.

[0006] In some other embodiments of the method provided in this specification, when the test execution statements associated with the job identifier include more than two, an execution order is set between the more than two test execution statements so that the more than two test execution statements are executed sequentially based on the corresponding execution order during testing.

[0007] In some other embodiments of the method provided in this specification, the test configuration table includes a statement configuration table and an environment configuration table; the statement configuration table stores at least one test execution statement associated with the job identifier; and the environment configuration table stores test environment information corresponding to the execution of the test execution statement.

[0008] In some other embodiments of the method provided in this specification, the test environment information stored in the environment configuration table is identified by a test environment identifier; and the test execution statement includes the test environment identifier of the test environment information corresponding to the execution.

[0009] In some other embodiments of the method provided in this specification, the test environment information includes at least an environment type, so that when executing a test execution statement, a test environment corresponding to the test environment information is connected based on an environment connection program corresponding to the environment type.

[0010] In some other embodiments of the method provided in this specification, the test configuration table also includes an assertion statement associated with the job identifier, and the assertion statement is used to verify the execution result of the corresponding test execution statement after the test execution statement is executed.

[0011] In some other embodiments of the method provided in this specification, the test configuration table also includes a storage address and a transfer address of a test data file associated with the job identifier, so that the test data file required for the test can be copied from the storage address to the transfer address during the test.

[0012] On the other hand, the present specification also provides a batch automated testing device, which is applied to a testing platform, wherein a test configuration table is stored in the testing platform, wherein the test configuration table includes at least one test execution statement associated with a job identifier and the test environment information corresponding to the execution of the test execution statement; the job identifier refers to information for identifying the test job; the device includes: a receiving module for receiving a batch test request, wherein the batch test request includes at least a specified job identifier; the specified job identifier refers to information for identifying at least one test job involved in the batch test request; a reading module for reading from the test configuration table at least one test execution statement associated with the specified job identifier and the test environment information corresponding to the execution of the test execution statement; an execution module for performing a test operation on the test job identified by the specified job identifier using the read at least one test execution statement and the test environment information corresponding to the execution of the test execution statement.

[0013] In some other embodiments of the device provided in this specification, the test configuration table includes a statement configuration table and an environment configuration table; the statement configuration table stores at least one test execution statement associated with the job identifier; and the environment configuration table stores test environment information corresponding to the execution of the test execution statement.

[0014] On the other hand, the present specification also provides a test platform, which includes at least one processor and a memory for storing processor executable instructions, and the instructions, when executed by the processor, implement the steps of the method described in any one or more of the above embodiments.

[0015] The batch automated testing method and platform provided by one or more embodiments of this specification configures the test execution statements, test environment information, etc. into the test configuration table in advance. During the test process, the test platform can automatically execute batch test operations based on the test configuration table, thereby improving the simplicity and execution efficiency of batch testing. Moreover, based on the form of the test configuration table, the maintenance and modification of the test execution statements, test environment information, etc. can be performed more intuitively, greatly improving the simplicity of test personnel in performing test operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:

[0017] Figure 1 A configuration diagram of the test execution statements and assertion statements provided in this manual;

[0018] Figure 2 A schematic diagram of the reading flow of the test execution statement or assertion statement provided in this specification;

[0019] Figure 3 A diagram showing how to read the test environment information provided in this manual and connect the test environment;

[0020] Figure 4 A schematic diagram of information reading and execution for the test execution provided in this manual;

[0021] Figure 5 A schematic diagram of the execution result verification process during the test execution process provided in this manual;

[0022] Figure 6 A schematic diagram of the implementation process of the batch automated testing method provided in this specification;

[0023] Figure 7 This is a schematic diagram of the module structure of the batch automated testing device provided in this specification. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of the specification, not all of the embodiments. Based on one or more embodiments of the specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the embodiments of this specification.

[0025] In the scenario examples provided in this specification, the batch automated testing method can be applied to a testing platform, which may include a server, a database, and the like. When there is a testing requirement, the tester can fill in the test requirement information in the terminal device. The tester can select or enter the job identifier of the test job of the current batch test, the test execution time, and the like. The terminal device can initiate a batch test request based on the test requirement information entered by the tester and send it to the testing platform. The testing platform can perform automated batch testing based on the batch test request. Of course, a test trigger mechanism can also be configured on the testing platform or other platforms that interact with the testing platform. After the test trigger mechanism is met, a batch test request can be generated, and the testing platform can perform batch testing based on the batch test request. Alternatively, other test startup methods can be used, which are not limited here.

[0026] The test platform may store a test configuration table, which may include at least one test execution statement associated with the job identifier and test environment information corresponding to the execution of the test execution statement.

[0027] For example, the table specification of the test configuration table can be designed in advance according to the needs. For example, the table type of the test configuration table, the fields contained in the table, the information format of the field information under each field, etc. can be designed. The test configuration table can at least include a job identification field, a test execution statement field, an environment information field, an assertion statement field, etc. Of course, the tester can also call up the previously used test configuration table, reuse the table specification of the test configuration table, or make appropriate adjustments to the table specification of the test configuration table.

[0028] The tester can input the test execution statement corresponding to the test job and the test environment information corresponding to the test execution statement in the test configuration table according to the test requirements, and associate the job identifier of the corresponding test job, etc. The test environment information may include the database environment, server environment, etc. Such as the server IP address, port, user name, password, etc.

[0029] In the case where the test execution statements associated with the job identifier include more than two, an execution order can also be set between the two or more test execution statements, so that the test execution statements are executed in sequence based on the corresponding execution order during the test, and the corresponding test job is completed efficiently and accurately. Correspondingly, the test configuration table can be accessed by using a pre-built test parsing program to read the test execution statements under each job identifier and the test environment information corresponding to the execution of the test execution statements to complete the test. For example, the test parsing statement can be configured to read and parse the test execution statements under a certain job identifier in sequence to automatically complete the batch test.

[0030] Alternatively, when the test execution statements associated with the job identifier include more than two, each test execution statement may be configured with a test execution statement identifier. Accordingly, the execution mode of each test execution statement identifier may be configured in the test parsing program, and the execution mode may include the execution order of each test execution statement identifier, so that the test parsing program can read and parse the test execution statements from the test configuration table in an orderly manner and automatically complete the batch test.

[0031] The test execution statement and the test environment information corresponding to the execution of the test execution statement can be configured respectively through two tables. Accordingly, the test configuration table may include a statement configuration table and an environment configuration table. The statement configuration table may store at least one test execution statement associated with a job identifier. The environment configuration table may store the test environment information corresponding to the execution of the test execution statement. The test environment information stored in the environment configuration table may be identified using a test environment identifier; the test execution statement may include a test environment identifier corresponding to the test environment information when executed.

[0032] Batch jobs sometimes involve multiple databases and servers. Configuring the test environment information corresponding to the test execution statement directly into the test execution statement makes the writing of the test execution statement more cumbersome and difficult to troubleshoot and modify when errors occur. At the same time, if the test environment information is configured in the configuration file in the test parsing program, if the actual environment changes, the program configuration files must be modified one by one, which indirectly affects the execution efficiency of batch operations. In this scenario example, the test environment information is configured separately in a table, and the test environment identifier is used to associate the test execution statement with the test environment information corresponding to the test execution statement. This can greatly improve the simplicity of writing the test execution statement and modifying the test environment information, and improve the accuracy of the connection between the test execution statement and the test environment information corresponding to the test execution statement.

[0033] The test environment information may at least include an environment type, so that when executing a test execution statement, the test environment corresponding to the test environment information is connected based on the environment connection program corresponding to the environment type. There may be large differences in the environment connection methods corresponding to different test environments. By configuring different connection programs for different test environments, the simplicity and accuracy of the test connection can be greatly improved. Table 1 is an example table of test environment information. Table 2 is an example table of test execution statements.

[0034] Table 1

[0035]

[0036] Table 2

[0037]

[0038] The test configuration table may also include an assertion statement associated with the job identifier, and the assertion statement may be used to verify the execution result of the corresponding test execution statement after the test execution statement is executed. By further configuring the assertion statement, after the test execution statement is executed, it is judged whether the test execution statement is executed normally, and effective monitoring of each link of the overall execution process can be achieved from the code level, so that when the test execution fails, the erroneous test execution statement can be quickly and accurately located. And the test execution statement is configured in the test configuration table, which can also facilitate the tester to easily modify and improve the erroneous test execution statement after locating the erroneous test execution statement, greatly improving the troubleshooting and adjustment of the execution program during the batch test, and efficiently and easily realizing the effective operation of the batch test.

[0039] For example, the execution mode of the test execution statement and the assertion statement can be configured in the test parsing statement. The execution mode may include whether to execute the assertion statement after the test execution statement is executed, which assertion statements to execute, and when to execute the assertion statement, etc. By also configuring the assertion statement to the test configuration table, the simplicity of automatic test execution can be further improved. Alternatively, the test execution statement identifier of the test execution statement can also be configured in the assertion statement to determine the association relationship between the assertion statement and the test execution statement based on the test execution statement identifier. By configuring the association relationship between the assertion statement and the test execution statement in the test configuration table, the tester can more intuitively view and modify the association relationship between the test execution statement and the assertion statement, thereby improving the simplicity of test maintenance.

[0040] Preferably, it is also possible to use Figure 1 The table specification design statement configuration table shown can make the test process more intuitive and clear by configuring the test execution statements in different stages of the execution process separately, thereby improving the convenience of test execution statement configuration and subsequent maintenance.

[0041] The tester can also upload the test data files involved in the test process to the designated location of the test platform for pre-storage. And enter the storage address and transfer address of the test data file in the test configuration table. The transfer address refers to the location where the test data file is transferred when the test is executed. Before configuring the above information, the tester can also clean up the records that affect the judgment of the batch execution results to ensure that other irrelevant data will not affect the test.

[0042] After the tester completes the configuration of the test configuration table according to the above implementation mode, the terminal device can send the configured test configuration table to the database of the test platform for storage. The tester can also input the test requirement information and trigger the test start operation in the terminal device. The terminal device can generate a batch test request based on the trigger and send it to the test platform. The test request can include the specified job identifier corresponding to the current test job, etc.

[0043] The test platform can call the test parsing program according to the test request, so that the test parsing program reads and parses the test execution statement corresponding to the specified job identifier from the test configuration table, such as Figure 2 shown. Figure 2 It represents a flow chart of reading and parsing test execution statements. The test parsing program can also read the test environment information based on the test environment identifier in the test execution statement. The test parsing program can also call the corresponding environment connection program based on the environment type in the test environment information, and connect to the environment corresponding to the test environment information based on the called environment connection program. For example, it can connect to a data table of a database or connect to a server, etc. Figure 3It represents the flow chart of reading the test environment information and connecting the test environment. During the test execution, the test parser can also read and parse the assertion statement, use the assertion statement to judge whether the test execution is correct or not, and complete the execution of the entire automated test case.

[0044] In the above scenario example, by configuring the test execution statements, test environment information, assertion statements, etc. in the test configuration table in advance, during the test process, the test platform can automatically execute batch test jobs based on the test configuration table, improving the simplicity and execution efficiency of batch testing. In addition, based on the form of the test configuration table, the maintenance and modification of test execution statements, test environment information, assertion statements, etc. can be more intuitive, greatly improving the simplicity of test operations for testers.

[0045] The following uses an SQL+SHELL statement to perform batch testing as an example.

[0046] Before execution: Testers can modify batches of existing date records in the database to complete job dependencies. Clean up past batch logs and prepare data files.

[0047] During execution: You can use the test parser to execute batch jobs. For example, you can directly call the shell script to perform the test.

[0048] After execution: Determination of data file loading logs. Determination of database batch records.

[0049] The above process can be automated and simplified as follows:

[0050] Before execution: database operations (add, delete, modify), server operations (delete files, add files).

[0051] When executed: Server operation (execute shell script).

[0052] After execution: Assertion statement (database query, log query executed in the server).

[0053] Test execution statements are database addition, deletion, modification and query, server shell scripts and command lines. Correspondingly, the test execution statements of database and server statements can usually be of the following types: addition, INSERT; deletion, DELETE; modification, UPDATE; query, SELECT; SHELL script file, sh$dir / filename.sh; command line statements, rm, cp, etc. For example, to execute the UPDATE statement in the OS1 environment, write OS1:update...; to execute the rm command in the LS1 environment, write LS1:rm...

[0054] The test execution statement can be configured in the statement configuration table based on the above statement types. The test environment identifier in the statement configuration table must be consistent with the test environment identifier corresponding to each test environment in the environment configuration table, so that the corresponding test execution statement is executed in the environment corresponding to this test environment identifier. Figure 4 shown.

[0055] Assertion statements can include assertion execution statements, target result acquisition statements, comparison judgment statements, etc. Among them, the assertion execution statement corresponding to the database is mainly to query the result of SELECT, and then compare the query result with the preset target result. The assertion execution statement corresponding to the server is mainly to filter out the error information of the corresponding batch execution log, and then compare the filtered error information with the preset target result. For example, if you query the database result: ASSERT (OS1: SELECT..., =, VALUE) the query result = VALUE is true. If you judge the execution log: ASSERT (LS1: cat / DIR / LOGFILE|grep...,! =, RESULT) the query value is a certain result is true. The execution process of the assertion statement is as follows: Figure 5 shown.

[0056] The batch automated testing framework provided by the above implementation is easier to write and maintain test cases than directly writing test case codes. It can be used frequently after writing once, and can be operated with one click, reducing the workload of testers. In addition, the test execution statements and test environment configuration are more concise and intuitive, which is convenient for modification and change, reducing the impact of environmental changes on the execution of test programs. It is also easy to expand. For batch types with other operations, you only need to expand the corresponding code specifications and add them to the table.

[0057] Based on the above scenario example, the embodiment of this specification provides a batch automated testing method, such as Figure 6 shown. Figure 6 The present invention is a flowchart of an embodiment of a batch automated testing method provided in this specification. The method can be applied to a test platform, in which a test configuration table is stored, and the test configuration table at least includes at least one test execution statement associated with a job identifier and the test environment information corresponding to the execution of the test execution statement; the job identifier refers to information for identifying the test job. The method may include the following steps.

[0058] S602: Receive a batch test request, where the batch test request at least includes a designated job identifier; the designated job identifier refers to information for identifying at least one test job involved in the batch test request.

[0059] S604: Read at least one test execution statement associated with the designated job identifier and the test environment information corresponding to the execution of the test execution statement from the test configuration table.

[0060] S606: Execute a test operation on the test job identified by the designated job identifier by using the read at least one test execution statement and the test environment information corresponding to the execution of the test execution statement.

[0061] In some other embodiments, when the test execution statements associated with the job identifier include more than two, an execution order is set between the more than two test execution statements, so that the test execution statements are executed in sequence based on the corresponding execution order during testing.

[0062] In some other embodiments, the test configuration table includes an execution statement configuration table and an environment configuration table; the execution statement configuration table stores at least one test execution statement associated with the job identifier; and the environment configuration table stores the test environment information corresponding to the execution of the test execution statement.

[0063] In some other embodiments, the test environment information stored in the environment configuration table is identified by a test environment identifier; and the test execution statement includes the test environment identifier of the test environment information corresponding to the execution.

[0064] In some other embodiments, the test environment information at least includes an environment type, so that when executing a test execution statement, a test environment corresponding to the test environment information is connected based on an environment connection program corresponding to the environment type.

[0065] In some other embodiments, the test configuration table further includes an assertion statement associated with the job identifier, and the assertion statement is used to verify the execution result of the corresponding test execution statement after the test execution statement is executed.

[0066] In some other embodiments, the test configuration table further includes a storage address and a transfer address of a test data file associated with the job identifier, so that the test data file required for the test can be copied from the storage address to the transfer address during the test.

[0067] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For details, please refer to the description of the above-mentioned related processing related embodiments, and no further description is given here.

[0068] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0069] Based on the method provided in the above embodiment, the embodiment of this specification also provides a batch automated testing device, which is applied to a test platform, wherein a test configuration table is stored in the test platform, and the test configuration table includes at least one test execution statement associated with a job identifier and the test environment information corresponding to the execution of the test execution statement; the job identifier refers to the information for identifying the test job. Figure 7 As shown, the device may include: a receiving module 702, used to receive a batch test request, the batch test request at least including a specified job identifier; the specified job identifier refers to information for identifying at least one test job involved in the batch test request; a reading module 704, used to read from the test configuration table at least one test execution statement associated with the specified job identifier and the test environment information corresponding to the execution of the test execution statement; an execution module 706, used to perform a test operation on the test job identified by the specified job identifier using the read at least one test execution statement and the test environment information corresponding to the execution of the test execution statement.

[0070] It should be noted that the above-mentioned device may also include other implementations according to the description of the above-mentioned embodiment. The specific implementation methods may refer to the description of the relevant method embodiments, which will not be described one by one here.

[0071] This specification also provides a test platform, which may include at least one processor and a memory for storing processor executable instructions, and the instructions, when executed by the processor, implement the steps of the method described in any one or more of the above embodiments. The memory may include a physical device for storing information, which is usually to digitize the information and then store it in a medium using electrical, magnetic or optical methods. The storage medium may include: devices that store information using electrical energy, such as various memories, such as RAM, ROM, etc.; devices that store information using magnetic energy, such as hard disks, floppy disks, magnetic tapes, magnetic core memories, bubble memories, and U disks; devices that store information optically, such as CDs or DVDs. Of course, there are other types of readable storage media, such as quantum memories, graphene memories, and so on.

[0072] It should be noted that the embodiments of this specification are not limited to the situations that must comply with the standard data model / template or the embodiments of this specification. Certain industry standards or slightly modified implementation plans based on the implementation described in the custom method or the embodiment can also achieve the same, equivalent or similar, or predictable implementation effects after deformation of the above-mentioned embodiments. The embodiments obtained by using these modified or deformed data acquisition, storage, judgment, processing methods, etc. can still fall within the scope of the optional implementation plans of this specification.

[0073] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. In the description of this specification, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, in the absence of contradiction, a person skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0074] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A batch automated testing method, characterized in that: Applied to a test platform, wherein a test configuration table is stored in the test platform, wherein the test configuration table includes at least one test execution statement associated with a job identifier and test environment information corresponding to the execution of the test execution statement; The job identification refers to information for identifying the test job; the method includes: Receive a batch test request, the batch test request including at least a specified job identifier; the specified job identifier refers to information for identifying at least one test job involved in the batch test request; Reading at least one test execution statement associated with the specified job identifier and the test environment information corresponding to the execution of the test execution statement from the test configuration table; Using the read at least one test execution statement and the test environment information corresponding to the execution of the test execution statement, a test operation is performed on the test job identified by the designated job identifier; Among them, the test configuration table also includes an assertion statement associated with the job identifier, and the assertion statement is used to verify the execution result of the corresponding test execution statement after the test execution statement is executed; the assertion statement is configured with a test execution statement identifier of the test execution statement to determine the association relationship between the assertion statement and the test execution statement based on the test execution statement identifier.

2. The method according to claim 1, characterized in that When the job identifier includes more than two test execution statements, an execution sequence is set between the two or more test execution statements, so that the two or more test execution statements are executed in sequence based on the corresponding execution sequence during testing.

3. The method according to claim 1, characterized in that The test configuration table includes a statement configuration table and an environment configuration table; the statement configuration table stores at least one test execution statement associated with a job identifier; and the environment configuration table stores test environment information corresponding to the execution of the test execution statement.

4. The method according to claim 3, characterized in that The test environment information stored in the environment configuration table is identified by a test environment identifier; the test execution statement includes the test environment identifier of the test environment information corresponding to the execution.

5. The method according to claim 3, characterized in that: The test environment information at least includes an environment type, so that when executing a test execution statement, a test environment corresponding to the test environment information is connected based on an environment connection program corresponding to the environment type.

6. The method according to claim 1, characterized in that The test configuration table also includes a storage address and a transfer address of a test data file associated with the job identifier, so that the test data file required for the test can be copied from the storage address to the transfer address during the test.

7. A batch automated testing device, characterized in that: Applied to a test platform, wherein a test configuration table is stored in the test platform, wherein the test configuration table includes at least one test execution statement associated with a job identifier and test environment information corresponding to the execution of the test execution statement; The job identification refers to information for identifying the test job; the device includes: A receiving module, configured to receive a batch test request, wherein the batch test request at least includes a designated job identifier; the designated job identifier refers to information for identifying at least one test job involved in the batch test request; A reading module, used to read from the test configuration table at least one test execution statement associated with the specified job identifier and the test environment information corresponding to the execution of the test execution statement; An execution module, configured to execute a test operation on the test job identified by the designated job identifier by using the read at least one test execution statement and the test environment information corresponding to the execution of the test execution statement; Among them, the test configuration table also includes an assertion statement associated with the job identifier, and the assertion statement is used to verify the execution result of the corresponding test execution statement after the test execution statement is executed; the assertion statement is configured with a test execution statement identifier of the test execution statement to determine the association relationship between the assertion statement and the test execution statement based on the test execution statement identifier.

8. The device according to claim 7, characterized in that The test configuration table includes a statement configuration table and an environment configuration table; the statement configuration table stores at least one test execution statement associated with a job identifier; and the environment configuration table stores test environment information corresponding to the execution of the test execution statement.

9. A test platform, characterized in that: The platform comprises at least one processor and a memory for storing processor-executable instructions, wherein the instructions implement the steps of the method according to any one of claims 1 to 6 when executed by the processor.

Citation Information

Patent Citations

  • Interface test environment determination method and device, electronic device and storage medium

    CN109542757A

  • Database grammar compatibility testing method and device

    CN112988583A