CN115757172A - Test execution method and device, storage medium and computer equipment - Google Patents

Test execution method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN115757172A
CN115757172A CN202211521555.1A CN202211521555A CN115757172A CN 115757172 A CN115757172 A CN 115757172A CN 202211521555 A CN202211521555 A CN 202211521555A CN 115757172 A CN115757172 A CN 115757172A
Authority
CN
China
Prior art keywords
test
code
execution
task
function
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
CN202211521555.1A
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.)
Guangzhou Pinwei Software Co Ltd
Original Assignee
Guangzhou Pinwei Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Pinwei Software Co Ltd filed Critical Guangzhou Pinwei Software Co Ltd
Priority to CN202211521555.1A priority Critical patent/CN115757172A/en
Publication of CN115757172A publication Critical patent/CN115757172A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application provides a test execution method, a test execution device, a storage medium and computer equipment. The method comprises the following steps: acquiring a test function keyword and a service description keyword corresponding to the test function keyword; searching a corresponding test code set in a test code library according to the test function key words; the test code base comprises preset test codes corresponding to at least one test service of each test function; searching a test code matched with the service description keyword in the test code set; generating a test task according to the test code; and executing the test task to obtain a test result. The method and the device can flexibly configure the test task and improve the reusability of the automatic test function.

Description

Test execution method and device, storage medium and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a test execution method and apparatus, a storage medium, and a computer device.
Background
During software development and subsequent use, a great deal of tests are required for testers, and problems are found in the test process so as to carry out debugging and correction. However, the testing work has many repetitive works and needs to be triggered manually, and a large amount of workload of the tester needs to be consumed, so that some tests are usually formed into test cases, and then the test cases are directly called to execute automatic tests, so as to reduce the workload of the tester.
However, in the development process, with the increase or modification of the functions, the original test case has a situation of missing the test, and for the situation, the test needs to be performed manually or the test case needs to be rewritten for testing, so that the reusability of the automatic test function is poor.
Disclosure of Invention
The embodiment of the application provides a test execution method, a test execution device, a storage medium and computer equipment, which can flexibly configure a test task and improve the reusability of an automatic test function.
In a first aspect, the present application provides a test execution method, the method comprising:
acquiring a test function keyword and a service description keyword corresponding to the test function keyword;
searching a corresponding test code set in a test code library according to the test function key words; the test code base comprises preset test codes corresponding to at least one test service of each test function;
searching a test code matched with the service description keyword in the test code set;
generating a test task according to the test code;
and executing the test task to obtain a test result.
In one embodiment, the generating a test task according to the test code includes:
if the object of the test code is configurable, generating an object configuration prompt;
modifying the object in the test code in response to object information input by a user based on the object configuration prompt;
generating the test task based on the modified test code.
In one embodiment, the generating a test task according to the test code includes:
and if the object of the test code is not configurable, generating the test task according to the test code.
In one embodiment, if more than two test function keywords are obtained, executing the test task generated according to the test code includes:
generating a sequencing prompt;
sequencing the test codes in response to a test sequence input by a user based on the sequencing prompt;
generating a test task according to each test code and the sequence thereof; and the test tasks are used for sequentially executing corresponding tests according to the sequence of each test code.
In one embodiment, the method further comprises:
comparing the test result with a preset check result;
if the test result is inconsistent with the verification result, executing the test task again after waiting for a preset time, and comparing the latest test result with the verification result until a preset ending condition is met, and stopping the test;
the preset ending condition is that a test result is consistent with the verification result, or the number of times of executing the test task reaches an execution number threshold value and the test result is inconsistent with the verification result.
In one embodiment, before the comparing the test result with the preset verification result, the method further includes:
if the execution times definition instruction is identified, defining the execution times threshold of the test according to the execution times definition instruction;
if the execution times definition instruction is not identified, acquiring an execution times default value, and defining the execution times threshold according to the execution times default value.
In one embodiment, the test code set is a package test code set corresponding to a MOCK test function, a timing execution test function, an inquiry test function, or a verification test function.
In a second aspect, the present application provides a test execution apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a test function keyword and a service description keyword corresponding to the test function keyword;
the searching module is used for searching a corresponding test code set in a test code library according to the test function key words; the test code base comprises preset test codes corresponding to at least one test service of each test function;
the matching module is used for searching the test codes matched with the service description keywords in the test code set;
the task generating module is used for generating a test task according to the test code;
and the execution module is used for executing the test task to obtain a test result.
In a third aspect, the present application provides a storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the test execution method according to any one of the embodiments described above.
In a fourth aspect, the present application provides a computer device comprising: one or more processors, and a memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the test execution method of any one of the embodiments described above.
According to the technical scheme, the embodiment of the application has the following advantages:
according to the test execution method, the test execution device, the storage medium and the computer equipment, the test code base is established in advance, the test codes are created for the test services performed under the test function, the test functions are classified and stored, when the test is required, the test code set belonging to the classification of the test functions is found out through the test function keywords, the matched test codes are found out from the test code set according to the service description keywords corresponding to the test services required by the test, the test tasks are generated according to the found test codes, the test tasks are executed to obtain the test results, the required test functions can be determined according to the test targets, the test codes of the single test services are inquired for the test services required to be executed by each test function, the test execution method is not limited by the solidification test process of the test cases, the combination of the test services can be performed according to the requirements, the flexibility of automatic test is improved, and the workload of testers is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application 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, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a flow diagram illustrating a method for performing a test in accordance with an embodiment;
FIG. 2 is a flowchart illustrating steps of generating test tasks according to test codes in one embodiment;
FIG. 3 is a flowchart illustrating steps of generating test tasks according to test codes in another embodiment;
FIG. 4 is a block diagram of a test execution apparatus in one embodiment;
FIG. 5 is a diagram of the internal structure of a computer device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
As shown in fig. 1, an embodiment of the present application provides a test execution method, where the method includes:
step S101, obtaining a testing function key word and a service description key word corresponding to the testing function key word.
The test function keywords are keywords for inquiring the test function, the test function to which the test service to be tested belongs is determined according to the test target, and the test codes can be screened in the test function level classification by using the descriptors or the definition words related to the test function as the keywords. The service description keyword is a keyword for querying a test code corresponding to a test service specifically executed in each test function.
And S102, searching a corresponding test code set in a test code library according to the test function key words.
The test code library comprises preset test codes corresponding to at least one test service of each test function. In one embodiment, the test code set is a package test code set corresponding to a MOCK test function, a timing execution test function, an inquiry test function, or a verification test function.
Step S103, searching the test code set for the test code matched with the service description keyword.
And searching the test codes of the preliminarily screened test code set according to the service description keywords, and acquiring a single test service according to the service description keywords. The test services with the same service description may exist in different test functions, and the required test codes can be accurately positioned by associating the service description keywords with the test functions and searching the test codes contained in the required test functions. If the test codes of a plurality of test services under the same test function need to be acquired according to the test target, searching from the test code set according to the service description keywords of each required test service respectively. If the test services under a plurality of test functions are determined to be acquired according to the test targets, the test code sets corresponding to each test function are screened out according to the test function keywords respectively, and then the required test codes are searched out from the test code sets according to the service description keywords corresponding to each test function respectively.
And step S104, generating a test task according to the test code.
And creating a test task according to the acquired test code for executing the test. In one embodiment, if multiple test codes are obtained, a test task may be created for execution according to each test code. In another embodiment, if multiple test codes are acquired, the test codes may be combined to create a test task for execution.
And step S105, executing the test task to obtain a test result.
According to the test execution method, the test code base is established in advance, the test codes are created for the test services performed under the test functions, the classified storage is performed through the test functions, when the test is required, the test code set belonging to the classification of the test functions is found out through the test function keywords, the matched test codes are found out from the test code set according to the service description keywords corresponding to the test services required by the test, the test tasks are generated according to the found test codes, the test tasks are executed to obtain the test results, the required test functions can be determined according to the test targets, the test codes of the single test services are inquired for the test services required to be executed by each test function, the method is not limited by the solidification test process of the test cases, the combination of the test services can be performed according to the requirements, the flexibility of automatic test is improved, and the workload of testers is reduced.
As shown in fig. 2, in one embodiment, the generating a test task according to a test code includes:
step S201, if the object of the test code is configurable, generating an object configuration prompt.
And step S202, responding to the object information input by the user based on the object configuration prompt, and modifying the object in the test code.
Step S203, generating the test task based on the modified test code.
The objects can be associated by means of unique identification information, links and the like, the object which executes the test code and relates to the business can be determined by configuring the object information in the test code, for example, the verification of a certain order needs to be executed, and then the verification test aiming at the target order can be realized by modifying the order number in the test code. The test code library comprises object configurable test codes, the object configurable test codes can establish a test task for execution only after object information is configured, if the found test codes belong to the object configurable test codes, an object configuration prompt is generated to prompt a user to configure the object information, the test codes are modified according to the object information input by the user to obtain executable test codes, and the test tasks are generated according to the test codes.
The embodiment can more flexibly complete automatic testing by using the test codes with configurable objects in the test code library, only different services of the test objects are executed for the same test, a test case does not need to be constructed for each object, only the configurable test codes need to be constructed, and when the test needs to be executed, the test codes are called to carry out the configuration of the objects, so that the automatic test can be quickly realized.
In one embodiment, the generating a test task according to the test code includes:
and if the object of the test code is not configurable, generating the test task according to the test code.
The test code library comprises test codes with non-configurable objects, the test codes can be executed by directly calling without adjustment, and the test services of some fixed objects can be directly multiplexed by configuring the test codes, so that the test efficiency is improved.
As shown in fig. 3, in one embodiment, if more than two test function keywords are obtained, executing the test task generated according to the test code includes:
in step S301, a sort prompt is generated.
And S302, sequencing the test codes in response to the test sequence input by the user based on the sequencing prompt.
Step S303, generating a test task according to each test code and the sequence thereof.
The test tasks are used for sequentially executing corresponding tests according to the sequence of each test code. The sequencing prompt is used for prompting that a user currently has a plurality of test codes and the execution sequence of each test code needs to be sequenced. According to the embodiment, when a plurality of test services need to be executed, each service can be flexibly configured, and after a user inputs a test sequence, each test code is combined according to the test sequence to generate a test task.
In one embodiment, the method further comprises:
comparing the test result with a preset check result;
if the test result is inconsistent with the verification result, executing the test task again after waiting for a preset time, and comparing the latest test result with the verification result until a preset ending condition is met, and stopping the test;
the preset ending condition is that a test result is consistent with the verification result, or the number of times of executing the test task reaches an execution number threshold value and the test result is inconsistent with the verification result.
When the test task is executed, the key value of the test result to be verified may be delayed and changed, so that inconsistency occurs when the test result is verified, in order to avoid test failure caused by delay, the problem can be solved by forcibly waiting for retry, when the test result is inconsistent with the verification result, the test task is executed again after waiting for the preset time, comparison is performed again, and if the comparison is consistent at the moment, the test is finished, and the relevant test information is fed back to a tester. If the comparison is still inconsistent, continuing to wait for the preset time and then executing the test task again for comparison, and if the number of times of executing the test task in the test reaches the execution number threshold value and the test result is still inconsistent with the verification result, feeding the result serving as a final result back to the tester.
In one embodiment, before the comparing the test result with the preset verification result, the method further includes:
if an execution time defining instruction is identified, defining an execution time threshold of the test according to the execution time defining instruction;
if the execution times definition instruction is not identified, acquiring an execution times default value, and defining the execution times threshold according to the execution times default value.
And for the execution time threshold, when the user inputs an execution time definition instruction, defining the execution time threshold of the test according to the execution time definition instruction, if the user does not input the execution time definition instruction, acquiring a preset execution time default, and defining the execution time threshold according to the execution time default. That is, in the present embodiment, the upper limit execution count waiting for retry may be configured, and if the user performs configuration, the execution count threshold is preferably determined according to the configured number, and if the user does not perform configuration, the execution count default is defined as the execution count threshold.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
The following describes the test execution device provided in the embodiments of the present application, and the test execution device described below and the test execution method described above may be referred to correspondingly.
As shown in fig. 4, an embodiment of the present application provides a test execution apparatus 400, including:
an obtaining module 401, configured to obtain a test function keyword and a service description keyword corresponding to the test function keyword;
a searching module 402, configured to search, according to the test function keyword, a corresponding test code set in a test code library; the test code base comprises preset test codes corresponding to at least one test service of each test function;
a matching module 403, configured to search, in the test code set, a test code that matches the service description keyword;
a task generating module 404, configured to generate a test task according to the test code;
and the execution module 405 is configured to execute the test task to obtain a test result.
In one embodiment, the task generation module is configured to perform the steps of:
if the object of the test code is configurable, generating an object configuration prompt;
modifying the object in the test code in response to object information input by a user based on the object configuration prompt;
generating the test task based on the modified test code.
In one embodiment, the task generation module is further configured to perform the steps of:
and if the object of the test code is not configurable, generating the test task according to the test code.
In one embodiment, the task generation module is further configured to perform the steps of:
if more than two test function keywords are obtained, generating a sequencing prompt;
sequencing the test codes in response to a test sequence input by a user based on the sequencing prompt;
generating a test task according to each test code and the sequence thereof; and the test tasks are used for sequentially executing corresponding tests according to the sequence of each test code.
In one embodiment, the test execution apparatus further includes:
the retry waiting module is used for comparing the test result with a preset verification result; if the test result is inconsistent with the verification result, executing the test task again after waiting for a preset time, and comparing the latest test result with the verification result until a preset ending condition is met, and stopping the test; the preset ending condition is that a test result is consistent with the verification result, or the number of times of executing the test task reaches an execution number threshold value and the test result is inconsistent with the verification result.
In one embodiment, the test execution apparatus further includes:
the execution time definition module is used for defining the execution time threshold of the test according to the execution time definition instruction when the execution time definition instruction is identified; and if the execution times definition instruction is not identified, acquiring an execution times default value, and defining the execution times threshold according to the execution times default value.
The division of each module in the test execution apparatus is merely for illustration, and in other embodiments, the test execution apparatus may be divided into different modules as needed to complete all or part of the functions of the test execution apparatus. The modules in the test execution apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, the present application further provides a storage medium having computer-readable instructions stored therein, which when executed by one or more processors, cause the one or more processors to perform the steps of:
acquiring a test function keyword and a service description keyword corresponding to the test function keyword;
searching a corresponding test code set in a test code library according to the test function key words; the test code base comprises preset test codes corresponding to at least one test service of each test function;
searching a test code matched with the service description keyword in the test code set;
generating a test task according to the test code;
and executing the test task to obtain a test result.
In one embodiment, the computer readable instructions when executed by the processor further implement the steps of:
if the object of the test code is configurable, generating an object configuration prompt;
modifying the object in the test code in response to object information input by a user based on the object configuration prompt;
generating the test task based on the modified test code.
In one embodiment, the computer readable instructions when executed by the processor further implement the steps of:
and if the object of the test code is not configurable, generating the test task according to the test code.
In one embodiment, the computer readable instructions when executed by the processor further implement the steps of:
generating a sequencing prompt;
sequencing the test codes in response to the test sequence input by the user based on the sequencing prompt;
generating a test task according to each test code and the sequence thereof; and the test tasks are used for sequentially executing corresponding tests according to the sequence of each test code.
In one embodiment, the computer readable instructions when executed by the processor further implement the steps of:
comparing the test result with a preset check result;
if the test result is inconsistent with the verification result, waiting for a preset time, executing the test task again, comparing the latest test result with the verification result, and stopping the test until a preset ending condition is met;
the preset ending condition is that a test result is consistent with the verification result, or the number of times of executing the test task reaches an execution number threshold value and the test result is inconsistent with the verification result.
In one embodiment, the computer readable instructions when executed by the processor further implement the steps of:
if the execution times definition instruction is identified, defining the execution times threshold of the test according to the execution times definition instruction;
if the execution times definition instruction is not identified, acquiring an execution times default value, and defining the execution times threshold according to the execution times default value.
In one embodiment, the present application further provides a computer device having computer-readable instructions stored therein, which when executed by the one or more processors, perform the steps of:
acquiring a test function keyword and a service description keyword corresponding to the test function keyword;
searching a corresponding test code set in a test code library according to the test function key words; the test code base comprises preset test codes corresponding to at least one test service of each test function;
searching a test code matched with the service description keyword in the test code set;
generating a test task according to the test code;
and executing the test task to obtain a test result.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of:
if the object of the test code is configurable, generating an object configuration prompt;
modifying the object in the test code in response to object information input by a user based on the object configuration prompt;
generating the test task based on the modified test code.
In one embodiment, the processor when executing the computer readable instructions further performs the steps of:
and if the object of the test code is not configurable, generating the test task according to the test code.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of:
generating a sequencing prompt;
sequencing the test codes in response to a test sequence input by a user based on the sequencing prompt;
generating a test task according to each test code and the sequence thereof; the test task is used for sequentially executing corresponding tests according to the sequence of each test code.
In one embodiment, the processor when executing the computer readable instructions further performs the steps of:
comparing the test result with a preset check result;
if the test result is inconsistent with the verification result, executing the test task again after waiting for a preset time, and comparing the latest test result with the verification result until a preset ending condition is met, and stopping the test;
the preset ending condition is that a test result is consistent with the verification result, or the number of times of executing the test task reaches an execution number threshold value and the test result is inconsistent with the verification result.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of:
if an execution time defining instruction is identified, defining an execution time threshold of the test according to the execution time defining instruction;
if the execution times definition instruction is not identified, acquiring an execution times default value, and defining the execution times threshold according to the execution times default value.
Illustratively, in one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The database of the computer device is used to store test codes. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a test execution method.
It will be appreciated by those skilled in the art that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), for example. The databases involved in the embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the various embodiments provided herein may be, without limitation, general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, or the like.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specified otherwise.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, the embodiments may be combined as needed, and the same and similar parts may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of test execution, the method comprising:
acquiring a test function keyword and a service description keyword corresponding to the test function keyword;
searching a corresponding test code set in a test code library according to the test function key words; the test code library comprises preset test codes corresponding to at least one test service of each test function;
searching a test code matched with the service description keyword in the test code set;
generating a test task according to the test code;
and executing the test task to obtain a test result.
2. The test execution method of claim 1, wherein the generating a test task from the test code comprises:
if the object of the test code is configurable, generating an object configuration prompt;
modifying the object in the test code in response to object information input by a user based on the object configuration prompt;
generating the test task based on the modified test code.
3. The method of claim 1, wherein generating a test task from the test code comprises:
and if the object of the test code is not configurable, generating the test task according to the test code.
4. The test execution method according to any one of claims 1 to 3, wherein executing the test task generated according to the test code if more than two test function keywords are obtained includes:
generating a sequencing prompt;
sequencing the test codes in response to the test sequence input by the user based on the sequencing prompt;
generating a test task according to each test code and the sequence thereof; and the test tasks are used for sequentially executing corresponding tests according to the sequence of each test code.
5. The test execution method of claim 1, further comprising:
comparing the test result with a preset check result;
if the test result is inconsistent with the verification result, waiting for a preset time, executing the test task again, comparing the latest test result with the verification result, and stopping the test until a preset ending condition is met;
the preset ending condition is that a test result is consistent with the verification result, or the number of times of executing the test task reaches an execution number threshold value and the test result is inconsistent with the verification result.
6. The method of claim 5, wherein before the comparing the test result with the predetermined verification result, the method further comprises:
if the execution times definition instruction is identified, defining the execution times threshold of the test according to the execution times definition instruction;
if the execution times definition instruction is not identified, acquiring an execution times default value, and defining the execution times threshold according to the execution times default value.
7. The test execution method of claim 1, wherein the test code set is a package test code set corresponding to a MOCK test function, a timing execution test function, an inquiry test function, or a verification test function.
8. A test execution apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a test function keyword and a service description keyword corresponding to the test function keyword;
the searching module is used for searching a corresponding test code set in a test code library according to the test function key words; the test code base comprises preset test codes corresponding to at least one test service of each test function;
the matching module is used for searching the test codes matched with the service description keywords in the test code set;
the task generating module is used for generating a test task according to the test code;
and the execution module is used for executing the test task to obtain a test result.
9. A storage medium, characterized by: the storage medium has stored therein computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the test execution method of any one of claims 1 to 7.
10. A computer device, comprising: one or more processors, and a memory;
the memory has stored therein computer-readable instructions that, when executed by the one or more processors, perform the steps of the test execution method of any one of claims 1 to 7.
CN202211521555.1A 2022-11-30 2022-11-30 Test execution method and device, storage medium and computer equipment Pending CN115757172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211521555.1A CN115757172A (en) 2022-11-30 2022-11-30 Test execution method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211521555.1A CN115757172A (en) 2022-11-30 2022-11-30 Test execution method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN115757172A true CN115757172A (en) 2023-03-07

Family

ID=85341305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211521555.1A Pending CN115757172A (en) 2022-11-30 2022-11-30 Test execution method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN115757172A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116261091A (en) * 2023-05-16 2023-06-13 深圳市百泰实业股份有限公司 Bluetooth testing system and method capable of customizing testing flow

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116261091A (en) * 2023-05-16 2023-06-13 深圳市百泰实业股份有限公司 Bluetooth testing system and method capable of customizing testing flow
CN116261091B (en) * 2023-05-16 2023-08-04 深圳市百泰实业股份有限公司 Bluetooth testing system and method capable of customizing testing flow

Similar Documents

Publication Publication Date Title
CN112286779B (en) Test task processing method and device, storage medium and computer equipment
CN109032824A (en) Database method of calibration, device, computer equipment and storage medium
CN108319460B (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN109032631B (en) Application program patch package obtaining method and device, computer equipment and storage medium
CN106991100B (en) Data import method and device
CN111158730B (en) System updating method, device, electronic equipment and readable storage medium
CN112380130A (en) Application testing method and device based on call dependency relationship
CN112395202B (en) Interface automation test method and device, computer equipment and storage medium
CN112581018A (en) Process task management method, system, device and storage medium
CN111538659B (en) Interface testing method, system, electronic equipment and storage medium of business scene
CN111104158A (en) Software packaging method and device, computer equipment and storage medium
CN110928777A (en) Test case processing method, device, equipment and storage medium
CN113448862A (en) Software version testing method and device and computer equipment
CN115757172A (en) Test execution method and device, storage medium and computer equipment
US11347533B2 (en) Enhanced virtual machine image management system
CN110688430B (en) Method and device for obtaining data bypass and electronic equipment
CN114791865A (en) Method, system and medium for detecting self-consistency of configuration items based on relational graph
CN109240906B (en) Database configuration information adaptation method and device, computer equipment and storage medium
CN112783775A (en) Special character input testing method and device
CN112948188A (en) Log file screening method, system and medium
CN112181831A (en) Script performance verification method, device and equipment based on keywords and storage medium
CN114595159B (en) Test data generation method, device, equipment and storage medium
CN110177006B (en) Node testing method and device based on interface prediction model
US20220207438A1 (en) Automatic creation and execution of a test harness for workflows
CN110990475B (en) Batch task inserting method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination