CN113434398A - Batch automatic testing method and platform - Google Patents

Batch automatic testing method and platform Download PDF

Info

Publication number
CN113434398A
CN113434398A CN202110697247.3A CN202110697247A CN113434398A CN 113434398 A CN113434398 A CN 113434398A CN 202110697247 A CN202110697247 A CN 202110697247A CN 113434398 A CN113434398 A CN 113434398A
Authority
CN
China
Prior art keywords
test
execution
statement
configuration table
batch
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
CN202110697247.3A
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 CN202110697247.3A priority Critical patent/CN113434398A/en
Publication of CN113434398A publication Critical patent/CN113434398A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

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

Abstract

The embodiment of the specification relates to the technical field of big data, and particularly discloses a batch automated testing method and a batch automated testing platform, which are applied to a testing platform, wherein a testing configuration table is stored in the testing platform, and the testing configuration table at least comprises at least one testing execution statement associated with an operation identifier and testing environment information corresponding to the execution of the testing execution statement; the method comprises the following steps: receiving a batch test request, wherein the batch test request at least comprises a designated job identifier; reading at least one test execution statement associated with the specified operation identification and test environment information corresponding to the test execution statement during execution from the test configuration table; and executing test operation on the test operation identified by the specified operation identification by using the read at least one test execution statement and the test environment information corresponding to the test execution statement during execution, thereby realizing automatic batch test and improving the simplicity of batch test.

Description

Batch automatic testing method and platform
Technical Field
The present disclosure relates to the field of big data technologies, and in particular, to a batch automated testing method and a batch automated testing platform.
Background
Batch frameworks are an important way of data processing. With the continuous development of business, the original batch operation is often changed, and the stock operation is more, so that the manual test is influenced by factors such as time, hands and the like, and the full coverage test is difficult to achieve. And the types and the quantity of the stock operation are complex, so that the script statements of the test cases are numerous, the problems that the partial batch types are not supported and the like can also exist, and the compiling difficulty of the test cases is larger. In addition, the environment configuration involved in the batch job test is also complex and variable, and the manual test cannot be well adapted to the change of the test application (different applications may have their own characteristics) and the test environment (mainly referring to the upstream dependent environment). Therefore, a more efficient and accurate automatic batch testing method is needed.
Disclosure of Invention
An object of the embodiments of the present specification is to provide a batch automated testing method and platform, which can implement automated batch testing and improve the simplicity and efficiency of batch testing.
The specification provides a batch automatic testing method and a platform, which are realized in the following ways:
a batch automatic test method is applied to a test platform, a test configuration table is stored in the test platform, and the test configuration table at least comprises at least one test execution statement associated with an operation identifier and test environment information corresponding to the execution of the test execution statement; the operation identification refers to information for identifying the test operation; the method comprises the following steps: receiving a batch test request, wherein the batch test request at least comprises a designated job identifier; the appointed operation identification refers to information for identifying at least one test operation related to the batch test request; reading at least one test execution statement associated with the specified operation identification and test environment information corresponding to the test execution statement during execution from the test configuration table; and executing test operation on the test operation identified by the specified operation identification by using the read at least one test execution statement and the test environment information corresponding to the execution of the test execution statement.
In other embodiments of the method provided in this specification, when the test execution statement associated with the job identifier includes two or more test execution statements, an execution order is set between the two or more test execution statements, so that the two or more test execution statements are sequentially executed based on the corresponding execution order during testing.
In other embodiments of the method provided in this specification, the test configuration table includes a statement configuration table and an environment configuration table; at least one test execution statement associated with the operation identification is stored in the statement configuration table; the environment configuration table stores test environment information corresponding to the execution of the test execution statement.
In 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; the test execution statement comprises a test environment identifier of test environment information corresponding to the execution.
In other embodiments of the method provided in this specification, the test environment information at least includes an environment type, so that when the test execution statement is executed, the test environment corresponding to the test environment information is connected based on an environment connection program corresponding to the environment type.
In still other embodiments of the methods provided in this specification, the test configuration table further includes an assertion statement associated with the job identifier, and the assertion statement is used to verify an execution result of the corresponding test execution statement after the test execution statement completes execution.
In still other embodiments of the method provided in this specification, the test configuration table further includes a storage address and a transfer address of the test data file associated with the job identification, so that the test data file required for the test is copied from the storage address to the transfer address at the time of the test.
On the other hand, the present specification further provides a batch automated testing apparatus, which is applied to a testing platform, where a testing configuration table is stored in the testing platform, and the testing configuration table at least includes at least one testing execution statement associated with an operation identifier and testing environment information corresponding to the execution of the testing execution statement; the operation identification refers to information for identifying the test operation; the device comprises: the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving batch test requests, and the batch test requests at least comprise appointed operation identifications; the appointed operation identification refers to information for identifying at least one test operation related to the batch test request; a reading module, configured to read, from the test configuration table, at least one test execution statement associated with the specified job identifier and test environment information corresponding to the test execution statement during execution; and the execution module is used for executing the test operation on the test operation identified by the specified operation identification by utilizing the read at least one test execution statement and the test environment information corresponding to the test execution statement during execution.
In other embodiments of the apparatus provided in this specification, the test configuration table includes a statement configuration table and an environment configuration table; at least one test execution statement associated with the operation identification is stored in the statement configuration table; the environment configuration table stores test environment information corresponding to the execution of the test execution statement.
In another aspect, the present specification also provides a test platform comprising at least one processor and a memory for storing processor-executable instructions, which when executed by the processor, implement the steps of the method described in any one or more of the above embodiments.
In the batch automatic testing method and platform provided by one or more embodiments of the present description, by configuring a test execution statement, test environment information, and the like in a test configuration table in advance, during a testing process, the test platform can automatically execute batch testing operations based on the test configuration table, thereby improving the simplicity and execution efficiency of batch testing. And based on the form of the test configuration table, the maintenance and modification of test execution statements, test environment information and the like can be performed more intuitively, and the convenience of test operation performed by a tester is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort. In the drawings:
FIG. 1 is a diagram illustrating a configuration of test execution statements and predicate statements provided herein;
FIG. 2 is a schematic diagram of a read flow of a test execute statement or predicate statement provided in the present specification;
FIG. 3 is a schematic diagram of reading of test environment information and connection of test environments provided herein;
FIG. 4 is a schematic diagram of the reading and execution of test execution information provided herein;
FIG. 5 is a schematic diagram illustrating a verification process of an execution result during a test execution process provided in the present specification;
FIG. 6 is a schematic flow chart of an implementation of the batch automated testing method provided in the present specification;
fig. 7 is a schematic block diagram of a batch automated testing apparatus provided in the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the drawings in one or more embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the specification, and not all embodiments. All other embodiments obtained by a person skilled in the art based on one or more embodiments of the present specification without making any creative effort shall fall within the protection scope of the embodiments of the present specification.
In the scenario example provided in this specification, the batch automated testing method may be applied to a testing platform, where the testing platform may include a server, a database, and the like. When the test requirement exists, the tester can fill in the test requirement information in the terminal equipment. The tester can select or input the job identification, the test execution time and the like of the test job of the current batch test. The terminal equipment can initiate a batch test request according to the test requirement information input by the tester and send the batch test request to the test platform. The test platform may perform an automated batch test based on the batch test request. Of course, the test trigger mechanism may also be configured on the test platform or other platforms interacting with the test platform, and after the test trigger mechanism is satisfied, the batch test request may be generated, and the test platform may execute the batch test based on the batch test request. Alternatively, other test initiation methods may be used, and are not limited herein.
The test platform may store therein a test configuration table. The test configuration table 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.
For example, a table specification of the test configuration table may be designed in advance as needed. Such as 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. may be designed. The test configuration table may include, for example, at least a job identification field, a test execution statement field, a context information field, an assertion statement field, and so forth. Of course, the tester may also retrieve 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.
The tester can input the test execution statement corresponding to the test operation and the test environment information corresponding to the test execution statement in the test configuration table according to the test requirement, and input the operation identification of the corresponding test operation in a correlated manner. The test environment information may include a database environment, a server environment, and the like. Such as server IP address, port, username, password, etc.
When the test execution statements associated with the job identifiers include more than two test execution statements, an execution sequence can be further arranged between the more than two test execution statements, so that the test execution statements are sequentially executed based on the corresponding execution sequence during testing, and the corresponding test jobs are efficiently and accurately completed. Correspondingly, if a pre-constructed test analysis program can be used to access the test configuration table, the test execution statements under each job identifier and the test environment information corresponding to the execution of the test execution statements can be read, and the test is completed. If the test analysis statements can be configured to read and analyze the test execution statements under certain operation marks in sequence, the batch test is automatically completed.
Alternatively, in a case where the test execution statement associated with the job identifier includes two or more test execution statements, each test execution statement may be configured with a test execution statement identifier. Correspondingly, the execution mode of each test execution statement mark can be configured in the test analysis program, and the execution mode can include the execution sequence of each test execution statement mark, so that the test analysis program reads and analyzes the test execution statements from the test configuration table in order to automatically complete batch test
The test execution statement and the test environment information corresponding to the test execution statement during execution can be configured through the two tables respectively. Correspondingly, 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 identification. The environment configuration table may store test environment information corresponding to the execution of the test execution statement. The test environment information stored in the environment configuration table can be identified by using a test environment identifier; the test execution statement may correspondingly include a test environment identifier of test environment information corresponding to the execution.
Batch operation sometimes involves a plurality of databases and servers, and test environment information corresponding to test execution statements is directly configured into the test execution statements, so that the test execution statements are complicated to write and difficult to check and modify in case of errors. Meanwhile, if the test environment information is configured into the configuration file in the test analysis program, if the actual environment is changed, the configuration file of the program needs to be modified one by one, which indirectly affects the execution efficiency of batch operation. In the scenario example, the test environment information is configured into one table separately, and the test environment identifier is used to associate the test execution statement with the test environment information corresponding to the test execution statement, so that the simplicity of writing the test execution statement and modifying the test environment information can be greatly improved, and the accuracy of connection between the test execution statement and the test environment information corresponding to the test execution statement can be improved.
The test environment information may include at least an environment type, so that when the test execution statement is executed, the test environment corresponding to the test environment information is connected based on an environment connection program corresponding to the environment type. The environment connection modes corresponding to different test environments may have larger difference, and the simplicity and the accuracy of test connection can be greatly improved by configuring different connection programs aiming at different test environments. Table 1 is an example table of test environment information. Table 2 is an example table of test execution statements.
TABLE 1
Figure BDA0003128340630000051
TABLE 2
Figure BDA0003128340630000061
The test configuration table may further include an assertion statement associated with the job identifier, and the assertion statement may be used to verify an execution result of the corresponding test execution statement after the test execution statement completes execution. By further configuring the assertion statements, after the execution of the test execution statements is completed, whether the test execution statements are normally executed or not is judged, so that each link of the whole execution process can be effectively monitored from a code level, and the test execution statements with errors can be quickly and accurately positioned when the test execution has errors. And the test execution statement is configured in the test configuration table, so that a tester can conveniently and conveniently modify and perfect the test execution statement which makes mistakes after positioning the test execution statement which makes mistakes, the checking and the adjustment of the execution program in the batch test process are greatly improved, and the effective operation of the batch test is efficiently and conveniently realized.
For example, the execution modes of the test execution statement and the assertion statement may be configured in the test parsing statement. The execution mode may include, for example, testing whether the execution of the execute statement is completed and then the predicate statement is executed, which predicate statements are executed, and when the predicate statement is executed. By configuring the assertion statement to the test configuration table as well, the simplicity of automatic test execution can be further improved. Alternatively, the test execution statement identifier of the test execution statement may be configured in the predicate statement to determine the association relationship between the predicate 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, a tester can more intuitively check and modify the association relationship between the test execution statement and the assertion statement, and the test maintenance convenience is improved.
Preferably, a statement configuration table can be designed by using a table specification as shown in fig. 1, and a test execution statement at different stages in the execution process is separately configured, so that the test process is more intuitive and clear, and the simplicity of test execution statement configuration and post-maintenance is improved.
The tester can also upload the test data files related in the test process to the designated position of the test platform and store the test data files in advance. And inputting the storage address and the transfer address of the test data file in the test configuration table. The transfer address refers to a position to which a test data file is transferred when the test is performed. Before configuring the information, the tester can also perform operations such as cleaning the records influencing the judgment of the batch execution result, so as to ensure the influence of other irrelevant data on the test.
After the tester completes the configuration of the test configuration table according to the above embodiment, the terminal device may 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 starting operation in the terminal equipment, and the terminal equipment can generate a batch test request according to the trigger and send the batch test request to the test platform. The test request may include, for example, a designated job identifier corresponding to the current test job.
The test platform may invoke the test analysis program according to the test request, so that the test analysis program reads and analyzes the test execution statement corresponding to the specified job identifier from the test configuration table, as shown in fig. 2. FIG. 2 shows a flow chart of test execution statement reading and parsing. The test parser may also read the test environment information based on the test environment identification in the test execution statement. The test analysis program can also call the corresponding environment connection program based on the environment type in the test environment information, so as to connect the environment corresponding to the test environment information based on the called environment connection program. Such as a data table to which a database may be connected or a connection server, etc. FIG. 3 is a flowchart illustrating test environment information reading and test environment connection. In the test execution process, the test analysis program can also read and analyze the assertion statements, and judge whether the test execution is correct or not by using the assertion statements to complete the execution of the whole automatic test case.
According to the scene example, the test execution statement, the test environment information, the assertion statement and the like are configured in the test configuration table in advance, so that the test platform can automatically execute batch test operation based on the test configuration table in the test process, and the simplicity and the execution efficiency of batch test are improved. And based on the form of the test configuration table, the maintenance and modification of the test execution statement, the test environment information, the assertion statement and the like can be performed more intuitively, and the convenience of test operation performed by a tester is greatly improved.
The following description will take an example of the application of a batch test using an SQL + SHELL statement.
Before execution: the tester can modify the existing date records in batch in the database to complete the operation dependence. And cleaning the logs in batches in the future, and preparing data files.
When executed: batch job execution may be performed using the enteror as a test parser. Such as by directly invoking the shell script during testing.
After the execution: and judging the loading log of the data file. And judging the batch records of the database.
The process can be automatically realized and can be simplified as follows:
before execution: database operations (add, delete, change), server operations (delete files, add files).
When executed: the server operates (executes the shell script).
After the execution: assertion statements (database queries, execution of log queries in servers).
The test execution statement is the addition, deletion, modification and check of the database, and the shell script and the command line of the server. Accordingly, the test execution statements of the database and server statements may be of several types in general: increasing, INSERT; DELETE, DELETE; modify, UPDATE; query, SELECT; SHELL script file, sh $ dir/filename.sh; command line statements, rm, cp, and so on. For example, executing an UPDATE statement in the OS1 environment writes OS1: UPDATE … …; executing the rm command in the LS1 environment writes LS1: rm … ….
The test execution statements may be configured in a statement configuration table based on the statement types described above. The test environment identifier in the statement configuration table is to 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 the test environment identifier. The database and server statement execution flow is shown in fig. 4.
The predicate statements may include predicate execute statements, target result fetch statements, compare judge statements, and the like. The assertion execution statement corresponding to the database mainly refers to a SELECT to query results, and then compares the query results with preset target results. The assertion execution statement corresponding to the server mainly screens out error reporting information of the corresponding batch execution log, and then compares the screened error reporting information with a preset target result. If the database is queried: the result of an ASSERT query (OS1: select., VALUE) is true. If judging the execution log: the value queried by ASSERT (LS 1: cat/DIR/LOGFILE | grep., |, RESULT) is that some RESULT is true. The flow of execution of the assertion statement is shown in fig. 5.
Compared with a mode of directly writing test case codes, the framework for batch automatic testing provided by the embodiment is easier to write and maintain test cases, can be frequently used after being written once, can be operated by one key, and reduces the workload of testers. And the test execution statement and the test environment configuration are simpler and more visual, the change is convenient to modify, and the influence of the environment change on the test program execution is reduced. And the method is easy to extend, and for batch types with other operations, only corresponding code specifications need to be extended and added into the table.
Based on the above scenario example, the embodiment of the present specification provides a batch automated testing method, as shown in fig. 6. FIG. 6 is a flow diagram of one embodiment of a batch automated testing method provided herein. The method can be applied to a test platform, wherein a test configuration table is stored in the test platform, and the test configuration table at least comprises at least one test execution statement associated with an operation 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 may comprise the following steps.
S602: receiving a batch test request, wherein the batch test request at least comprises a designated job identifier; the designated job identifier is information identifying at least one test job to which the batch test request relates.
S604: and reading at least one test execution statement associated with the specified operation identification and test environment information corresponding to the test execution statement during execution from the test configuration table.
S606: and executing the test operation on the test operation identified by the specified operation identification by using the read at least one test execution statement and the test environment information corresponding to the execution of the test execution statement.
In other embodiments, when the test execution statements associated with the job identifier include more than two test execution statements, an execution order is set between the more than two test execution statements, so that the test execution statements are sequentially executed based on the corresponding execution order during testing.
In other embodiments, the test configuration table includes an execution statement configuration table and an environment configuration table; at least one test execution statement associated with the operation identification is stored in the execution statement configuration table; the environment configuration table stores test environment information corresponding to the execution of the test execution statement.
In other embodiments, the test environment information stored in the environment configuration table is identified by using a test environment identifier; the test execution statement comprises a test environment identifier of test environment information corresponding to the execution.
In other embodiments, the test environment information at least includes an environment type, so that when the test execution statement is executed, the test environment corresponding to the test environment information is connected based on an environment connection program corresponding to the environment type.
In other embodiments, the test configuration table further includes an assertion statement associated with the job identifier, and the assertion statement is used to verify an execution result of the corresponding test execution statement after the test execution statement completes execution.
In still other embodiments, the test configuration table further includes a storage address and a transfer address of the test data file associated with the job identification to copy the test data file required for the test from the storage address to the transfer address at the time of the test.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. For details, reference may be made to the description of the related embodiments of the related processing, and details are not repeated herein.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the method provided by the foregoing embodiment, an embodiment of the present specification further provides a batch automation testing apparatus, which is applied to a testing platform, where a testing configuration table is stored in the testing platform, and the testing configuration table at least includes at least one testing execution statement associated with an operation identifier and testing environment information corresponding to the execution of the testing execution statement; the job identification refers to information for identifying the test job. As shown in fig. 7, the apparatus may include: a receiving module 702, configured to receive a batch test request, where the batch test request at least includes a specified job identifier; the appointed operation identification refers to information for identifying at least one test operation related to the batch test request; a reading module 704, configured to read, from the test configuration table, at least one test execution statement associated with the specified job identifier and test environment information corresponding to the test execution statement during execution; the executing module 706 is configured to execute a test operation on the test job identified by the specified job identifier by using the read at least one test execution statement and the test environment information corresponding to the test execution statement during execution.
It should be noted that the above-mentioned apparatus may also include other embodiments according to the description of the above-mentioned embodiments. The specific implementation manner may refer to the description of the related method embodiment, and is not described in detail herein.
The present specification also provides a test platform which may comprise at least one processor and a memory for storing processor-executable instructions which, when executed by the processor, implement steps comprising the method of any one or more of the embodiments described above. The memory may include physical means for storing information, typically by digitizing the information for storage on a medium using electrical, magnetic or optical means. The storage medium may include: devices that store information using electrical energy, such as various types of memory, e.g., RAM, ROM, etc.; devices that store information using magnetic energy, such as hard disks, floppy disks, tapes, core memories, bubble memories, and usb disks; devices that store information optically, such as CDs or DVDs. Of course, there are other ways of storing media that can be read, such as quantum memory, graphene memory, and so forth.
It should be noted that the embodiments of the present disclosure are not limited to the cases where the data model/template is necessarily compliant with the standard data model/template or the description of the embodiments of the present disclosure. Certain industry standards, or implementations modified slightly from those described using custom modes or examples, may also achieve the same, equivalent, or similar, or other, contemplated implementations of the above-described examples. The embodiments using these modified or transformed data acquisition, storage, judgment, processing, etc. may still fall within the scope of the alternative embodiments of the present description.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (10)

1. The batch automatic test method is characterized by being applied to a test platform, wherein a test configuration table is stored in the test platform and at least comprises at least one test execution statement associated with an operation identifier and test environment information corresponding to the execution of the test execution statement; the operation identification refers to information for identifying the test operation; the method comprises the following steps:
receiving a batch test request, wherein the batch test request at least comprises a designated job identifier; the appointed operation identification refers to information for identifying at least one test operation related to the batch test request;
reading at least one test execution statement associated with the specified operation identification and test environment information corresponding to the test execution statement during execution from the test configuration table;
and executing test operation on the test operation identified by the specified operation identification by using the read at least one test execution statement and the test environment information corresponding to the execution of the test execution statement.
2. The method according to claim 1, wherein, in a case where the test execution statement associated with the job identifier includes two or more test execution statements, an execution order 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 order at the time of the test.
3. The method of claim 1, wherein the test configuration table comprises a statement configuration table and an environment configuration table; at least one test execution statement associated with the operation identification is stored in the statement configuration table; the environment configuration table stores test environment information corresponding to the execution of the test execution statement.
4. The method of claim 3, wherein the test environment information stored in the environment configuration table is identified using a test environment identification; the test execution statement comprises a test environment identifier of test environment information corresponding to the execution.
5. The method according to claim 3, wherein the test environment information at least includes an environment type, so that when the test execution statement is executed, the test environment corresponding to the test environment information is connected based on an environment connection program corresponding to the environment type.
6. The method of claim 1, wherein the test configuration table further comprises an assertion statement associated with the job identification, the assertion statement being used to verify an execution result of the corresponding test execution statement after the test execution statement completes execution.
7. The method of claim 1, wherein the test configuration table further comprises a storage address and a transfer address of the test data file associated with the job identification to copy the test data file required for the test from the storage address to the transfer address at the time of testing.
8. The batch automatic testing device is applied to a testing platform, wherein a testing configuration table is stored in the testing platform, and the testing configuration table at least comprises at least one testing execution statement associated with an operation identifier and testing environment information corresponding to the execution of the testing execution statement; the operation identification refers to information for identifying the test operation; the device comprises:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving batch test requests, and the batch test requests at least comprise appointed operation identifications; the appointed operation identification refers to information for identifying at least one test operation related to the batch test request;
a reading module, configured to read, from the test configuration table, at least one test execution statement associated with the specified job identifier and test environment information corresponding to the test execution statement during execution;
and the execution module is used for executing the test operation on the test operation identified by the specified operation identification by utilizing the read at least one test execution statement and the test environment information corresponding to the test execution statement during execution.
9. The apparatus of claim 8, wherein the test configuration table comprises a statement configuration table and a context configuration table; at least one test execution statement associated with the operation identification is stored in the statement configuration table; the environment configuration table stores test environment information corresponding to the execution of the test execution statement.
10. A test platform comprising at least one processor and a memory for storing processor-executable instructions which, when executed by the processor, implement the steps of the method of any one of claims 1 to 7.
CN202110697247.3A 2021-06-23 2021-06-23 Batch automatic testing method and platform Pending CN113434398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110697247.3A CN113434398A (en) 2021-06-23 2021-06-23 Batch automatic testing method and platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110697247.3A CN113434398A (en) 2021-06-23 2021-06-23 Batch automatic testing method and platform

Publications (1)

Publication Number Publication Date
CN113434398A true CN113434398A (en) 2021-09-24

Family

ID=77753549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110697247.3A Pending CN113434398A (en) 2021-06-23 2021-06-23 Batch automatic testing method and platform

Country Status (1)

Country Link
CN (1) CN113434398A (en)

Similar Documents

Publication Publication Date Title
US10055338B2 (en) Completing functional testing
US8386419B2 (en) Data extraction and testing method and system
CN111832236B (en) Chip regression testing method and system, electronic equipment and storage medium
US8151247B2 (en) Test data management
CN109189479B (en) Parallel automatic verification method for processor instruction set
CN113127347B (en) Interface testing method, device, equipment and readable storage medium
CN112256581B (en) Log playback test method and device for high-simulation securities trade trading system
US20070234328A1 (en) File handling for test environments
CN112540924A (en) Interface automation test method, device, equipment and storage medium
CN111462811A (en) Automatic testing method and device, storage medium and electronic equipment
CN111723009A (en) Framework system of python automated testing series products
CN114996127A (en) Intelligent test method and system for solid state disk firmware module
CN114610286A (en) Development document generation method and device, computer equipment and storage medium
CN112069073A (en) Test case management method, terminal and storage medium
US20080172659A1 (en) Harmonizing a test file and test configuration in a revision control system
CN113434398A (en) Batch automatic testing method and platform
CN112130838A (en) Transaction data processing method and device
CN111813665A (en) Big data platform interface data testing method and system based on python
Wang et al. Applications of cucumber on automated functional simulation testing
CN114826956B (en) Automatic DPI policy library file generation method and device for DPI test equipment
CN113094265B (en) Analysis method and analysis device for test script and electronic equipment
CN112100066B (en) Verification method for accuracy of data index and automatic test tool
CN117850866A (en) Data verification test method and system
CN114816453A (en) Configuration method and device of WAS data source
CN114780419A (en) Batch measuring range sequence testing method and device and electronic equipment

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