CN112685282A - Test method, test device, electronic equipment and computer readable storage medium - Google Patents
Test method, test device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN112685282A CN112685282A CN201910989889.3A CN201910989889A CN112685282A CN 112685282 A CN112685282 A CN 112685282A CN 201910989889 A CN201910989889 A CN 201910989889A CN 112685282 A CN112685282 A CN 112685282A
- Authority
- CN
- China
- Prior art keywords
- test
- instruction
- information
- test application
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 807
- 238000010998 test method Methods 0.000 title claims abstract description 13
- 230000004044 response Effects 0.000 claims abstract description 16
- 230000006399 behavior Effects 0.000 claims description 60
- 238000000034 method Methods 0.000 claims description 19
- 238000010586 diagram Methods 0.000 description 19
- 238000012545 processing Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000011218 segmentation Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000018109 developmental process Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000009467 reduction Effects 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 230000002708 enhancing effect Effects 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000013100 final test Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the disclosure discloses a test method, a test device, electronic equipment and a computer readable storage medium, wherein the test method comprises the following steps: in response to receiving a test request at least carrying test application description information sent by a test requester, splitting the test application description information to obtain test application descriptor information; determining a test instruction corresponding to the test application descriptor information according to the test application descriptor information; and combining the test instructions to obtain a test instruction set corresponding to the test request, and executing the test instruction set to obtain a test result. According to the technical scheme, the test workload of testers can be greatly saved, the execution efficiency of test work is improved, and meanwhile, the accuracy of the test can be effectively guaranteed.
Description
Technical Field
The present disclosure relates to the field of testing technologies, and in particular, to a testing method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of internet technology, more and more merchants or service providers provide services for users through internet applications, and in order to improve service quality, service contents provided by the internet applications need to be tested frequently, and possible problems in the internet applications need to be discovered in time, so that the problems can be solved in time, and the normal operation of the internet applications can be guaranteed. However, in the prior art, test codes are usually stored out of order, and names are abstract and difficult to understand, so that it is difficult for a tester to determine test contents that the test codes can execute in a short time, especially for a complicated test scenario, finding and combining the test codes takes much time for the tester, thereby resulting in waste of labor cost and reduction of test efficiency.
Disclosure of Invention
The embodiment of the disclosure provides a test method, a test device, electronic equipment and a computer-readable storage medium.
In a first aspect, a testing method is provided in an embodiment of the present disclosure.
Specifically, the test method comprises the following steps:
in response to receiving a test request at least carrying test application description information sent by a test requester, splitting the test application description information to obtain test application descriptor information;
determining a test instruction corresponding to the test application descriptor information according to the test application descriptor information;
and combining the test instructions to obtain a test instruction set corresponding to the test request, and executing the test instruction set to obtain a test result.
With reference to the first aspect, in a first implementation manner of the first aspect, the splitting the test application description information to obtain the test application descriptor information in response to receiving a test request that is sent by a test requester and carries at least the test application description information includes:
the method comprises the steps of responding to a received test request at least carrying test application description information sent by a test requester, obtaining the test application description information, and obtaining the behavior characteristics of a test subject object of a preset unit;
and splitting the test application description information according to the behavior characteristics of the test subject object of the preset unit to obtain test application descriptor information corresponding to the behavior characteristics of the test subject object of the preset unit.
With reference to the first aspect and the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the determining, according to the test application descriptor information, a test instruction corresponding to the test application descriptor information includes:
determining instruction index information of the test application descriptor information;
sending a test instruction acquisition request at least carrying the instruction index information to a test instruction database so that the test instruction database searches a test instruction corresponding to the instruction index information according to the instruction index information;
and receiving a test instruction which is sent by the test instruction database and corresponds to the instruction index information.
With reference to the first aspect, the first implementation manner of the first aspect, and the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the instruction index information of the test application descriptor information is a keyword corresponding to the test application descriptor information.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, and the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the combining the test instruction to obtain a test instruction set corresponding to the test request, and executing the test instruction set to obtain a test result includes:
determining an execution order of the test application descriptor information;
combining test instructions corresponding to the test application descriptor information according to the execution sequence of the test application descriptor information to obtain a test instruction set corresponding to the test request;
and executing the test instruction set to obtain a test result.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, and the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the present disclosure further includes:
and displaying the test result.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, the fourth implementation manner of the first aspect, and the fifth implementation manner of the first aspect, in a sixth implementation manner of the first aspect, the disclosure further includes:
and displaying a test prompt image corresponding to the test request, wherein the test prompt image is used for prompting a test result.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, the fourth implementation manner of the first aspect, the fifth implementation manner of the first aspect, and the sixth implementation manner of the first aspect, in a seventh implementation manner of the first aspect, the displaying a test prompt image corresponding to the test request includes:
acquiring prompt image information corresponding to the test instruction;
and combining the prompt image information according to the execution sequence of the test application descriptor information to obtain and display a test prompt image corresponding to the test request.
In a second aspect, a test apparatus is provided in an embodiment of the present disclosure.
Specifically, the test apparatus includes:
the splitting module is configured to split the test application description information to obtain test application descriptor information in response to receiving a test request which is sent by a test requester and at least carries the test application description information;
the determining module is configured to determine a corresponding test instruction according to the test application descriptor information;
and the execution module is configured to combine the test instructions to obtain a test instruction set corresponding to the test request, and execute the test instruction set to obtain a test result.
With reference to the second aspect, in a first implementation manner of the second aspect, the splitting module includes:
the first obtaining submodule is configured to respond to a received test request at least carrying test application description information and sent by a test requester, obtain the test application description information and obtain the behavior characteristics of a test subject object in a preset unit;
and the splitting submodule is configured to split the test application description information according to the test subject object behavior characteristics of the preset unit to obtain the test application description information corresponding to the test subject object behavior characteristics of the preset unit.
With reference to the second aspect and the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the determining module includes:
a first determination submodule configured to determine instruction index information of the test application descriptor information;
the sending submodule is configured to send a test instruction obtaining request at least carrying the instruction index information to a test instruction database so that the test instruction database searches a test instruction corresponding to the instruction index information according to the instruction index information;
and the receiving submodule is configured to receive the test instruction which is sent by the test instruction database and corresponds to the instruction index information.
With reference to the second aspect, the first implementation manner of the second aspect, and the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the instruction index information of the test application descriptor information is a keyword corresponding to the test application descriptor information.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, and the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the executing module includes:
a second determination submodule configured to determine an execution order of the test application descriptor information;
the combination submodule is configured to combine the test instructions corresponding to the test application descriptor information according to the execution sequence of the test application descriptor information to obtain a test instruction set corresponding to the test request;
and the execution submodule is configured to execute the test instruction set to obtain a test result.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, the third implementation manner of the second aspect, and the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect, the present disclosure further includes:
a first display module configured to display the test result.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, the third implementation manner of the second aspect, the fourth implementation manner of the second aspect, and the fifth implementation manner of the second aspect, in a sixth implementation manner of the second aspect, the disclosure further includes:
and the second display module is configured to display a test prompt image corresponding to the test request, wherein the test prompt image is used for prompting a test result.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, the third implementation manner of the second aspect, the fourth implementation manner of the second aspect, the fifth implementation manner of the second aspect, and the sixth implementation manner of the second aspect, in a seventh implementation manner of the second aspect, the second display module includes:
the second acquisition sub-module is configured to acquire prompt image information corresponding to the test instruction;
and the display sub-module is configured to combine the prompt image information according to the execution sequence of the test application descriptor information to obtain and display a test prompt image corresponding to the test request.
In a third aspect, the disclosed embodiments provide an electronic device, comprising a memory and at least one processor, wherein the memory is configured to store one or more computer instructions, and wherein the one or more computer instructions are executed by the at least one processor to implement the method steps of the test method in the first aspect.
In a fourth aspect, the disclosed embodiments provide a computer-readable storage medium for storing computer instructions for a testing apparatus, which contains computer instructions for executing the testing method in the first aspect described above as a testing apparatus.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the technical scheme, the test instructions are orderly stored, named by using a simple and understandable naming mode, and analyzed to obtain the test instructions corresponding to the test requests, so that the test work is completed. According to the technical scheme, the test workload of testers can be greatly saved, the execution efficiency of test work is improved, and meanwhile, the accuracy of the test can be effectively guaranteed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Other features, objects, and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments when taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 shows a flow diagram of a testing method according to an embodiment of the present disclosure;
FIG. 2 shows a flow chart of step S101 of a testing method according to the embodiment shown in FIG. 1;
FIG. 3 shows a flow chart of step S102 of a testing method according to the embodiment shown in FIG. 1;
FIG. 4 shows a flow chart of step S103 of the testing method according to the embodiment shown in FIG. 1;
FIG. 5 shows a flow diagram of a testing method according to another embodiment of the present disclosure;
FIG. 6 shows a flow diagram of a testing method according to yet another embodiment of the present disclosure;
FIG. 7 shows a flow chart of step S605 of a testing method according to the embodiment shown in FIG. 6;
FIG. 8 shows a block diagram of a test apparatus according to an embodiment of the present disclosure;
FIG. 9 shows a block diagram of the splitting module 801 of the testing apparatus according to the embodiment shown in FIG. 8;
FIG. 10 is a block diagram of the determining module 802 of the testing apparatus according to the embodiment shown in FIG. 8;
FIG. 11 is a block diagram illustrating the structure of an execution module 803 of the test apparatus according to the embodiment shown in FIG. 8;
FIG. 12 shows a block diagram of a test apparatus according to another embodiment of the present disclosure;
FIG. 13 is a block diagram of a test apparatus according to yet another embodiment of the present disclosure;
fig. 14 is a block diagram illustrating a second display module 1305 of the test apparatus according to the embodiment shown in fig. 13;
FIG. 15 shows a block diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 16 is a schematic block diagram of a computer system suitable for use in implementing a testing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. Also, for the sake of clarity, parts not relevant to the description of the exemplary embodiments are omitted in the drawings.
In the present disclosure, it is to be understood that terms such as "including" or "having," etc., are intended to indicate the presence of the disclosed features, numbers, steps, behaviors, components, parts, or combinations thereof, and are not intended to preclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or combinations thereof may be present or added.
It should be further noted that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
According to the technical scheme provided by the embodiment of the disclosure, the test instructions are orderly stored, named by using a simple and understandable naming mode, and the test request is analyzed to obtain the test instructions corresponding to the test request, so that the test work is completed. According to the technical scheme, the test workload of testers can be greatly saved, the execution efficiency of test work is improved, and meanwhile, the accuracy of the test can be effectively guaranteed.
Fig. 1 shows a flowchart of a testing method according to an embodiment of the present disclosure, which may be applied to a server side. As shown in fig. 1, the test method includes the following steps S101 to S103:
in step S101, in response to receiving a test request at least carrying test application description information sent by a test requester, splitting the test application description information to obtain test application descriptor information;
in step S102, determining a test instruction corresponding to the test application descriptor information according to the test application descriptor information;
in step S103, the test instructions are combined to obtain a test instruction set corresponding to the test request, and the test instruction set is executed to obtain a test result.
As mentioned above, with the development of internet technology, more and more merchants or service providers provide services for users through internet applications, and in order to improve service quality, service contents provided by internet applications need to be frequently tested, and possible problems in internet applications need to be discovered in time, so that the problems can be solved in time, and the normal operation of internet applications can be guaranteed. However, in the prior art, test codes are usually stored out of order, and names are abstract and difficult to understand, so that it is difficult for a tester to determine test contents that the test codes can execute in a short time, especially for a complicated test scenario, finding and combining the test codes takes much time for the tester, thereby resulting in waste of labor cost and reduction of test efficiency.
In view of the above drawbacks, in this embodiment, a test method is provided, in which test instructions are stored in order, named using a simple and easy naming method, and a test request is parsed to obtain a test instruction corresponding to the test request, so as to complete a test operation. According to the technical scheme, the test workload of testers can be greatly saved, the execution efficiency of test work is improved, and meanwhile, the accuracy of the test can be effectively guaranteed.
In an optional implementation manner of this embodiment, the test request at least carries test application description information, and may also carry information such as identification information of a test requester, test requirement information, and the like. The test application description information is used to describe test application information, such as test application scenario information, and the like, the test requester identification information is used to uniquely identify the test requester, and the test requirement information may be, for example, test time requirement information, test duration requirement information, test result return time requirement information, test condition requirement information, test result return format requirement information, and the like.
Generally, the test application description information includes a plurality of application segmentation information, for example, if the test application description information is test application scenario information, the test application scenario information may include a plurality of application scenario links that can form the test application scenario, for example, if the test application scenario information is a test application scenario in which a user places an order, the test application scenario includes a plurality of order processing links in which the user generates a new order, a merchant processes the order, delivers a resource delivery order, and the user receives an order and completes a commodity order. Therefore, in order to improve the application flexibility of the test instruction, in this implementation, a corresponding test instruction is configured for each application link, and at the same time, after the test application description information is received, the test application description information is split to obtain a plurality of pieces of application segmentation information included in the test application description information, that is, test application descriptor information, then a test instruction corresponding to the test application descriptor information is determined according to the test application descriptor information, finally, the test instructions corresponding to each piece of test application descriptor information are combined to obtain a test instruction set corresponding to the test request, and the test instruction set is executed to obtain a final test result.
In an optional implementation manner of this embodiment, the test instruction refers to an instruction that can be executed or executed and can obtain a certain test result after being executed or executed, for example, the test instruction may be a test code.
In an optional implementation manner of this embodiment, as shown in fig. 2, the step S101, that is, in response to receiving a test request that is sent by a test requester and carries at least test application description information, splitting the test application description information to obtain test application description sub-information includes the following steps S201 to S202:
in step S201, in response to receiving a test request at least carrying test application description information sent by a test requester, obtaining the test application description information, and obtaining a test subject object behavior characteristic of a preset unit;
in step S202, the test application description information is split according to the test subject object behavior characteristics of the preset unit, so as to obtain test application descriptor information corresponding to the test subject object behavior characteristics of the preset unit.
In order to obtain a more accurate test instruction, in this embodiment, the test application description information needs to be split first to obtain the test application descriptor information, and then the corresponding test instruction is obtained according to the split test application descriptor information. Specifically, after a test request at least carrying test application description information sent by a test requester is received, the test application description information is obtained, and behavior characteristics of a test subject object in a preset unit are obtained based on the test application description information; and then splitting the test application description information according to the behavior characteristics of the test subject object of the preset unit to obtain test application descriptor information corresponding to the behavior characteristics of the test subject object of the preset unit.
In an optional implementation manner of this embodiment, the test subject object behavior feature refers to feature information capable of representing a behavior feature of the test subject object, and the test subject object behavior feature of the preset unit refers to a minimum, non-detachable test subject object behavior feature. For example, for a test application scenario for a user to place an order, the test application scenario includes a plurality of order processing links such as a user generating a new order, a merchant processing an order, a delivery resource delivery order, and a user receiving an order and a commodity completion order, and correspondingly, test subject object behavior characteristics such as a user generating a new order, a merchant processing an order, a delivery resource delivery order, and a user receiving an order commodity exist correspondingly, and according to the test subject object behavior characteristic information, the test application scenario for the user to place an order can be split into a plurality of test application sub-scenarios corresponding to the test subject object behavior characteristic information, and the test application description information can also be split into test application description sub-information corresponding to the test subject object behavior characteristic information.
In an optional implementation manner of this embodiment, as shown in fig. 3, the step S102, namely determining the test instruction corresponding to the test application descriptor information according to the test application descriptor information, includes the following steps S301 to S303:
in step S301, determining instruction index information of the test application descriptor information;
in step S302, a test instruction obtaining request at least carrying the instruction index information is sent to a test instruction database, so that the test instruction database searches for a test instruction corresponding to the instruction index information according to the instruction index information;
in step S303, a test instruction corresponding to the instruction index information sent by the test instruction database is received.
In order to accurately obtain the test instruction corresponding to the test application descriptor information, in this embodiment, a simple and understandable naming mode is used for naming the test instruction corresponding to the behavior feature of the test subject object in the smallest unit, then the test instruction is stored in a test instruction database in order, then the instruction index information of the test application descriptor information is determined, and a test instruction obtaining request at least carrying the instruction index information is sent to a test instruction database, so that the test instruction database searches the test instruction corresponding to the instruction index information according to the instruction index information; and then receiving a test instruction which is sent by the test instruction database and corresponds to the instruction index information.
In an optional implementation manner of this embodiment, the test instruction is named by using a natural language capable of characterizing a test behavior, a test content, a test purpose, or a test effect of the test instruction, for example, for the test instruction capable of realizing a delivery resource delivery order, the name of the test instruction may be set to "order delivery", so that the test behavior, the test content, the test purpose, or the test effect of the test instruction can be directly known from the name of the test instruction, and meanwhile, a tester can conveniently search for a required test instruction according to the test purpose and the test application description information, so that under the condition of enhancing readability of the test instruction, the obtaining efficiency of the test instruction can be further improved, and the test efficiency is further improved.
In an optional implementation manner of this embodiment, the test instructions are sequentially stored in a test instruction database for storing the test instructions, for example, the test instructions may be stored according to the sequence of occurrence of the behavior features of the corresponding test subject object, so that when the test instructions are subsequently searched according to the test application descriptor information, because the test application descriptor information is also generated according to the sequence of occurrence of the behavior features of the corresponding test subject object, the test instructions corresponding to the test application descriptor information can be found more quickly, and the acquisition efficiency and the test efficiency of the test instructions are further improved.
Because the test instruction is named by using a natural language capable of representing the test behavior, the test content, the test purpose or the test effect of the test instruction and is stored according to the sequence of the behavior characteristics of the corresponding test subject object, in the implementation mode, when the test instruction corresponding to the test instruction needs to be determined according to the test application descriptor information, firstly, the instruction index information of the test application descriptor information is determined, and then, a test instruction acquisition request at least carrying the instruction index information is sent to a test instruction database storing the test instruction, so that the test instruction database searches the test instruction corresponding to the instruction index information according to the instruction index information; and then receiving a test instruction which is sent by the test instruction database and corresponds to the instruction index information.
In an optional implementation manner of this embodiment, the instruction index information of the test application descriptor information is a keyword corresponding to the test application descriptor information. For example, if the test application descriptor information is "delivery resource delivery order", the corresponding keyword may be set as "order delivery".
In order to improve the information amount of the keywords and enhance the matching degree between the test application descriptor information and the test instruction, the keyword information of the test application descriptor information can be extracted and obtained by using a keyword extraction tool.
In an optional implementation manner of this embodiment, as shown in fig. 4, the step S103 is to combine the test instructions to obtain a test instruction set corresponding to the test request, and execute the test instruction set to obtain a test result, including the following steps S401 to S403:
in step S401, determining an execution order of the test application descriptor information;
in step S402, combining the test instructions corresponding to the test application descriptor information according to the execution sequence of the test application descriptor information to obtain a test instruction set corresponding to the test request;
in step S403, the test instruction set is executed to obtain a test result.
After obtaining the test instruction corresponding to the test application descriptor information, in order to obtain a test instruction set accurately corresponding to the test request, in this embodiment, the test instructions corresponding to the test application descriptor information are correspondingly combined according to the execution sequence of the test application descriptor information, so as to obtain the test instruction set corresponding to the test request. For example, if the test application descriptor information is a distribution resource distribution order, a merchant processing order, a user generation new order, and a user receiving order and commodity completion order, respectively, and the execution order of the test subject object behavior feature related to the test application descriptor information is a user generation new order, a merchant processing order, a distribution resource distribution order, and a user receiving order and commodity completion order, the test instructions corresponding to the test application descriptor information are combined according to the execution order of the test subject object behavior feature.
In an optional implementation manner of this embodiment, the method further includes a step of displaying the test result, that is, as shown in fig. 5, the test method includes the following steps S501 to S504:
in step S501, in response to receiving a test request at least carrying test application description information sent by a test requester, splitting the test application description information to obtain test application descriptor information;
in step S502, determining a test instruction corresponding to the test application descriptor information according to the test application descriptor information;
in step S503, combining the test instructions to obtain a test instruction set corresponding to the test request, and executing the test instruction set to obtain a test result;
in step S504, the test result is displayed.
In order to enable the testing personnel to know the testing results in time, in the embodiment, the testing results are also displayed after being obtained.
In an optional implementation manner of this embodiment, the method further includes a step of displaying a test prompt image corresponding to the test request, where the test prompt image is used to prompt a test result, that is, as shown in fig. 6, the test method includes the following steps S601-S605:
in step S601, in response to receiving a test request at least carrying test application description information sent by a test requester, splitting the test application description information to obtain test application descriptor information;
in step S602, determining a test instruction corresponding to the test application descriptor information according to the test application descriptor information;
in step S603, combining the test instructions to obtain a test instruction set corresponding to the test request, and executing the test instruction set to obtain a test result;
in step S604, the test result is displayed;
in step S605, a test prompt image corresponding to the test request is displayed, where the test prompt image is used to prompt a test result.
In order to enable the tester to more intuitively know the test result, in this embodiment, in addition to displaying the test result or displaying the test result, a test prompt image corresponding to the test request is displayed, where the test prompt image is used for prompting the test result.
In an optional implementation manner of this embodiment, as shown in fig. 7, the step S605 of displaying the test prompt image corresponding to the test request includes the following steps S701 to S702:
in step S701, obtaining prompt image information corresponding to the test instruction;
in step S702, the prompt image information is combined according to the execution sequence of the test application descriptor information, and a test prompt image corresponding to the test request is obtained and displayed.
In this implementation, in order to obtain and display a test prompt image corresponding to the test request, first, prompt image information corresponding to the test instruction is obtained, where the prompt image information corresponding to the test instruction may be set or generated when the test instruction is generated, and is stored in the test instruction database together with the test instruction; and then combining the prompt image information according to the execution sequence of the test application descriptor information in the same way as the combination mode of the test instruction, and finally obtaining and displaying a test prompt image corresponding to the test request.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 8 shows a block diagram of a testing apparatus according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device, and may be implemented as a server side by software, hardware, or a combination of the two. As shown in fig. 8, the test apparatus includes:
the splitting module 801 is configured to split the test application description information to obtain test application descriptor information in response to receiving a test request at least carrying the test application description information and sent by a test requester;
a determining module 802 configured to determine a test instruction corresponding to the test application descriptor information according to the test application descriptor information;
the execution module 803 is configured to combine the test instructions to obtain a test instruction set corresponding to the test request, and execute the test instruction set to obtain a test result.
As mentioned above, with the development of internet technology, more and more merchants or service providers provide services for users through internet applications, and in order to improve service quality, service contents provided by internet applications need to be frequently tested, and possible problems in internet applications need to be discovered in time, so that the problems can be solved in time, and the normal operation of internet applications can be guaranteed. However, in the prior art, test codes are usually stored out of order, and names are abstract and difficult to understand, so that it is difficult for a tester to determine test contents that the test codes can execute in a short time, especially for a complicated test scenario, finding and combining the test codes takes much time for the tester, thereby resulting in waste of labor cost and reduction of test efficiency.
In view of the above drawbacks, in this embodiment, a testing apparatus is provided, which performs a test operation by storing test instructions in order, naming the test instructions by using a simple and easy naming method, and analyzing a test request to obtain a test instruction corresponding to the test request. According to the technical scheme, the test workload of testers can be greatly saved, the execution efficiency of test work is improved, and meanwhile, the accuracy of the test can be effectively guaranteed.
In an optional implementation manner of this embodiment, the test request at least carries test application description information, and may also carry information such as identification information of a test requester, test requirement information, and the like. The test application description information is used to describe test application information, such as test application scenario information, and the like, the test requester identification information is used to uniquely identify the test requester, and the test requirement information may be, for example, test time requirement information, test duration requirement information, test result return time requirement information, test condition requirement information, test result return format requirement information, and the like.
Generally, the test application description information includes a plurality of application segmentation information, for example, if the test application description information is test application scenario information, the test application scenario information may include a plurality of application scenario links that can form the test application scenario, for example, if the test application scenario information is a test application scenario in which a user places an order, the test application scenario includes a plurality of order processing links in which the user generates a new order, a merchant processes the order, delivers a resource delivery order, and the user receives an order and completes a commodity order. Therefore, in order to improve the application flexibility of the test instruction, in this implementation, a corresponding test instruction is configured for each application link, and at the same time, after the test application description information is received, the test application description information is split to obtain a plurality of pieces of application segmentation information included in the test application description information, that is, test application descriptor information, then a test instruction corresponding to the test application descriptor information is determined according to the test application descriptor information, finally, the test instructions corresponding to each piece of test application descriptor information are combined to obtain a test instruction set corresponding to the test request, and the test instruction set is executed to obtain a final test result.
In an optional implementation manner of this embodiment, the test instruction refers to an instruction that can be executed or executed and can obtain a certain test result after being executed or executed, for example, the test instruction may be a test code.
In an optional implementation manner of this embodiment, as shown in fig. 9, the splitting module 801 includes:
a first obtaining sub-module 901, configured to, in response to receiving a test request at least carrying test application description information sent by a test requester, obtain the test application description information, and obtain a test subject object behavior characteristic of a preset unit;
the splitting sub-module 902 is configured to split the test application description information according to the test subject object behavior characteristics of the preset unit, so as to obtain test application description sub-information corresponding to the test subject object behavior characteristics of the preset unit.
In order to obtain a more accurate test instruction, in this embodiment, the test application description information needs to be split first to obtain the test application descriptor information, and then the corresponding test instruction is obtained according to the split test application descriptor information. Specifically, after receiving a test request at least carrying test application description information sent by a test requester, the first obtaining sub-module 901 obtains the test application description information therein, and obtains a test subject object behavior characteristic of a preset unit therein based on the test application description information; the splitting sub-module 902 splits the test application description information according to the behavior characteristics of the test subject object in the preset unit, so as to obtain test application description sub-information corresponding to the behavior characteristics of the test subject object in the preset unit.
In an optional implementation manner of this embodiment, the test subject object behavior feature refers to feature information capable of representing a behavior feature of the test subject object, and the test subject object behavior feature of the preset unit refers to a minimum, non-detachable test subject object behavior feature. For example, for a test application scenario for a user to place an order, the test application scenario includes a plurality of order processing links such as a user generating a new order, a merchant processing an order, a delivery resource delivery order, and a user receiving an order and a commodity completion order, and correspondingly, test subject object behavior characteristics such as a user generating a new order, a merchant processing an order, a delivery resource delivery order, and a user receiving an order commodity exist correspondingly, and according to the test subject object behavior characteristic information, the test application scenario for the user to place an order can be split into a plurality of test application sub-scenarios corresponding to the test subject object behavior characteristic information, and the test application description information can also be split into test application description sub-information corresponding to the test subject object behavior characteristic information.
In an optional implementation manner of this embodiment, as shown in fig. 10, the determining module 802 includes:
a first determination submodule 1001 configured to determine instruction index information of the test application descriptor information;
the sending sub-module 1002 is configured to send a test instruction obtaining request at least carrying the instruction index information to a test instruction database, so that the test instruction database searches for a test instruction corresponding to the instruction index information according to the instruction index information;
the receiving submodule 1003 is configured to receive the test instruction corresponding to the instruction index information sent by the test instruction database.
In order to accurately obtain the test instruction corresponding to the test application descriptor information, in this embodiment, a simple and understandable naming mode is used for naming the test instruction corresponding to the behavior feature of the test subject object in the smallest unit, then the test instruction is stored in a test instruction database in order, then the instruction index information of the test application descriptor information is determined, and a test instruction obtaining request at least carrying the instruction index information is sent to a test instruction database, so that the test instruction database searches the test instruction corresponding to the instruction index information according to the instruction index information; and then receiving a test instruction which is sent by the test instruction database and corresponds to the instruction index information.
In an optional implementation manner of this embodiment, the test instruction is named by using a natural language capable of characterizing a test behavior, a test content, a test purpose, or a test effect of the test instruction, for example, for the test instruction capable of realizing a delivery resource delivery order, the name of the test instruction may be set to "order delivery", so that the test behavior, the test content, the test purpose, or the test effect of the test instruction can be directly known from the name of the test instruction, and meanwhile, a tester can conveniently search for a required test instruction according to the test purpose and the test application description information, so that under the condition of enhancing readability of the test instruction, the obtaining efficiency of the test instruction can be further improved, and the test efficiency is further improved.
In an optional implementation manner of this embodiment, the test instructions are sequentially stored in a test instruction database for storing the test instructions, for example, the test instructions may be stored according to the sequence of occurrence of the behavior features of the corresponding test subject object, so that when the test instructions are subsequently searched according to the test application descriptor information, because the test application descriptor information is also generated according to the sequence of occurrence of the behavior features of the corresponding test subject object, the test instructions corresponding to the test application descriptor information can be found more quickly, and the acquisition efficiency and the test efficiency of the test instructions are further improved.
Because the test instruction is named by using a natural language capable of representing the test behavior, the test content, the test purpose or the test effect of the test instruction and is stored according to the sequence of the behavior characteristics of the corresponding test subject object, in the implementation mode, when the test instruction corresponding to the test instruction needs to be determined according to the test application descriptor information, firstly, the instruction index information of the test application descriptor information is determined, and then, a test instruction acquisition request at least carrying the instruction index information is sent to a test instruction database storing the test instruction, so that the test instruction database searches the test instruction corresponding to the instruction index information according to the instruction index information; and then receiving a test instruction which is sent by the test instruction database and corresponds to the instruction index information.
In an optional implementation manner of this embodiment, the instruction index information of the test application descriptor information is a keyword corresponding to the test application descriptor information. For example, if the test application descriptor information is "delivery resource delivery order", the corresponding keyword may be set as "order delivery".
In order to improve the information amount of the keywords and enhance the matching degree between the test application descriptor information and the test instruction, the keyword information of the test application descriptor information can be extracted and obtained by using a keyword extraction tool.
In an optional implementation manner of this embodiment, as shown in fig. 11, the executing module 803 includes:
a second determining sub-module 1101 configured to determine an execution order of the test application descriptor information;
the combining submodule 1102 is configured to combine the test instructions corresponding to the test application descriptor information according to the execution sequence of the test application descriptor information to obtain a test instruction set corresponding to the test request;
an execution sub-module 1103 configured to execute the test instruction set to obtain a test result.
After obtaining the test instruction corresponding to the test application descriptor information, in order to obtain a test instruction set accurately corresponding to the test request, in this embodiment, the test instructions corresponding to the test application descriptor information are correspondingly combined according to the execution sequence of the test application descriptor information, so as to obtain the test instruction set corresponding to the test request. For example, if the test application descriptor information is a distribution resource distribution order, a merchant processing order, a user generation new order, and a user receiving order and commodity completion order, respectively, and the execution order of the test subject object behavior feature related to the test application descriptor information is a user generation new order, a merchant processing order, a distribution resource distribution order, and a user receiving order and commodity completion order, the test instructions corresponding to the test application descriptor information are combined according to the execution order of the test subject object behavior feature.
In an optional implementation manner of this embodiment, the apparatus further includes a portion for displaying the test result, that is, as shown in fig. 12, the test apparatus includes:
the splitting module 1201 is configured to split the test application description information to obtain test application descriptor information in response to receiving a test request at least carrying the test application description information and sent by a test requester;
a determining module 1202 configured to determine a test instruction corresponding to the test application descriptor information according to the test application descriptor information;
an executing module 1203, configured to combine the test instruction to obtain a test instruction set corresponding to the test request, and execute the test instruction set to obtain a test result;
a first display module 1204 configured to display the test result.
In order to enable the testing personnel to know the testing result in time, in this embodiment, after the testing result is obtained, a first display module 1204 is further provided to display the testing result.
In an optional implementation manner of this embodiment, the apparatus further includes a portion that displays a test prompt image corresponding to the test request, where the test prompt image is used to prompt a test result, that is, as shown in fig. 13, the test apparatus includes:
the splitting module 1301 is configured to split the test application description information to obtain test application descriptor information in response to receiving a test request at least carrying the test application description information and sent by a test requester;
a determining module 1302, configured to determine a test instruction corresponding to the test application descriptor information according to the test application descriptor information;
the execution module 1303 is configured to combine the test instructions to obtain a test instruction set corresponding to the test request, and execute the test instruction set to obtain a test result;
a first display module 1304 configured to display the test result;
the second display module 1305 is configured to display a test prompting image corresponding to the test request, where the test prompting image is used to prompt a test result.
In order to enable the tester to more intuitively know the test result, in this embodiment, in addition to the first display module 1304 displaying the test result or displaying the test result, the second display module 1305 is further configured to display a test prompt image corresponding to the test request, where the test prompt image is used for prompting the test result.
In an optional implementation manner of this embodiment, as shown in fig. 14, the second display module 1305 includes:
a second obtaining submodule 1401 configured to obtain prompt image information corresponding to the test instruction;
the display sub-module 1402 is configured to combine the prompt image information according to the execution sequence of the test application descriptor information, and obtain and display a test prompt image corresponding to the test request.
In this implementation manner, in order to obtain and display a test prompt image corresponding to the test request, the second obtaining sub-module 1401 obtains prompt image information corresponding to the test instruction, where the prompt image information corresponding to the test instruction may be set or generated when the test instruction is generated, and is stored in the test instruction database together with the test instruction; as with the combination of the test instructions, the display sub-module 1402 combines the prompt image information according to the execution sequence of the test application descriptor information, and finally obtains and displays a test prompt image corresponding to the test request.
The present disclosure also discloses an electronic device, fig. 15 shows a block diagram of an electronic device according to an embodiment of the present disclosure, as shown in fig. 15, the electronic device 1500 includes a memory 1501 and a processor 1502; wherein,
the memory 1501 is used to store one or more computer instructions that are executed by the processor 1502 to perform the above-described method steps.
FIG. 16 is a schematic block diagram of a computer system suitable for use in implementing a testing method according to an embodiment of the present disclosure.
As shown in fig. 16, the computer system 1600 includes a Central Processing Unit (CPU)1601 which can execute various processes in the above-described embodiments in accordance with a program stored in a Read Only Memory (ROM)1602 or a program loaded from a storage portion 1608 into a Random Access Memory (RAM) 1603. In the RAM1603, various programs and data necessary for the operation of the system 1600 are also stored. The CPU1601, ROM1602, and RAM1603 are connected to each other via a bus 1604. An input/output (I/O) interface 1605 is also connected to the bus 1604.
The following components are connected to the I/O interface 1605: an input portion 1606 including a keyboard, a mouse, and the like; an output portion 1607 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 1608 including a hard disk and the like; and a communication section 1609 including a network interface card such as a LAN card, a modem, or the like. The communication section 1609 performs communication processing via a network such as the internet. The driver 1610 is also connected to the I/O interface 1605 as needed. A removable medium 1611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1610 as necessary, so that a computer program read out therefrom is mounted in the storage portion 1608 as necessary.
In particular, the above described methods may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the above-described testing method. In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 1609, and/or installed from the removable media 1611.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software or hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus in the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Claims (10)
1. A method of testing, comprising:
in response to receiving a test request at least carrying test application description information sent by a test requester, splitting the test application description information to obtain test application descriptor information;
determining a test instruction corresponding to the test application descriptor information according to the test application descriptor information;
and combining the test instructions to obtain a test instruction set corresponding to the test request, and executing the test instruction set to obtain a test result.
2. The method according to claim 1, wherein the splitting the test application description information to obtain the test application descriptor information in response to receiving a test request at least carrying the test application description information and sent by a test requester comprises:
the method comprises the steps of responding to a received test request at least carrying test application description information sent by a test requester, obtaining the test application description information, and obtaining the behavior characteristics of a test subject object of a preset unit;
and splitting the test application description information according to the behavior characteristics of the test subject object of the preset unit to obtain test application descriptor information corresponding to the behavior characteristics of the test subject object of the preset unit.
3. The method according to claim 1 or 2, wherein the determining the corresponding test instruction according to the test application descriptor information comprises:
determining instruction index information of the test application descriptor information;
sending a test instruction acquisition request at least carrying the instruction index information to a test instruction database so that the test instruction database searches a test instruction corresponding to the instruction index information according to the instruction index information;
and receiving a test instruction which is sent by the test instruction database and corresponds to the instruction index information.
4. The test method according to claim 3, wherein the instruction index information of the test application descriptor information is a keyword corresponding to the test application descriptor information.
5. A test apparatus, comprising:
the splitting module is configured to split the test application description information to obtain test application descriptor information in response to receiving a test request which is sent by a test requester and at least carries the test application description information;
the determining module is configured to determine a corresponding test instruction according to the test application descriptor information;
and the execution module is configured to combine the test instructions to obtain a test instruction set corresponding to the test request, and execute the test instruction set to obtain a test result.
6. The testing device of claim 5, wherein the splitting module comprises:
the first obtaining submodule is configured to respond to a received test request at least carrying test application description information and sent by a test requester, obtain the test application description information and obtain the behavior characteristics of a test subject object in a preset unit;
and the splitting submodule is configured to split the test application description information according to the test subject object behavior characteristics of the preset unit to obtain the test application description information corresponding to the test subject object behavior characteristics of the preset unit.
7. The testing device of claim 5 or 6, wherein the determining module comprises:
a first determination submodule configured to determine instruction index information of the test application descriptor information;
the sending submodule is configured to send a test instruction obtaining request at least carrying the instruction index information to a test instruction database so that the test instruction database searches a test instruction corresponding to the instruction index information according to the instruction index information;
and the receiving submodule is configured to receive the test instruction which is sent by the test instruction database and corresponds to the instruction index information.
8. The testing apparatus according to claim 7, wherein the instruction index information of the test application descriptor information is a keyword corresponding to the test application descriptor information.
9. An electronic device comprising a memory and at least one processor; wherein the memory is to store one or more computer instructions, wherein the one or more computer instructions are to be executed by the at least one processor to implement the method steps of any one of claims 1-4.
10. A computer-readable storage medium having stored thereon computer instructions, characterized in that the computer instructions, when executed by a processor, carry out the method steps of any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910989889.3A CN112685282B (en) | 2019-10-17 | 2019-10-17 | Test method, test device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910989889.3A CN112685282B (en) | 2019-10-17 | 2019-10-17 | Test method, test device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112685282A true CN112685282A (en) | 2021-04-20 |
CN112685282B CN112685282B (en) | 2024-08-23 |
Family
ID=75444628
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910989889.3A Active CN112685282B (en) | 2019-10-17 | 2019-10-17 | Test method, test device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112685282B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113590491A (en) * | 2021-08-06 | 2021-11-02 | 深圳市共进电子股份有限公司 | Test platform and product test method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130097586A1 (en) * | 2011-10-17 | 2013-04-18 | International Business Machines Corporation | System and Method For Automating Test Automation |
CN103164328A (en) * | 2011-12-12 | 2013-06-19 | 中国移动通信集团陕西有限公司 | Method and device and system for regression testing of service function |
CN107526676A (en) * | 2016-06-20 | 2017-12-29 | 苏宁云商集团股份有限公司 | A kind of cross-system method of testing and device |
CN108255701A (en) * | 2017-06-27 | 2018-07-06 | 平安普惠企业管理有限公司 | Scrnario testing method and mobile terminal |
CN108427642A (en) * | 2018-03-05 | 2018-08-21 | 深圳市买买提信息科技有限公司 | The method and apparatus of components testing in a kind of interface |
-
2019
- 2019-10-17 CN CN201910989889.3A patent/CN112685282B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130097586A1 (en) * | 2011-10-17 | 2013-04-18 | International Business Machines Corporation | System and Method For Automating Test Automation |
CN103164328A (en) * | 2011-12-12 | 2013-06-19 | 中国移动通信集团陕西有限公司 | Method and device and system for regression testing of service function |
CN107526676A (en) * | 2016-06-20 | 2017-12-29 | 苏宁云商集团股份有限公司 | A kind of cross-system method of testing and device |
CN108255701A (en) * | 2017-06-27 | 2018-07-06 | 平安普惠企业管理有限公司 | Scrnario testing method and mobile terminal |
CN108427642A (en) * | 2018-03-05 | 2018-08-21 | 深圳市买买提信息科技有限公司 | The method and apparatus of components testing in a kind of interface |
Non-Patent Citations (1)
Title |
---|
赵欣;刘琳岚;罗海平;樊鑫;: "一种基于UML动态视图的测试场景生成方法", 计算机应用, no. 05, pages 1385 - 1388 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113590491A (en) * | 2021-08-06 | 2021-11-02 | 深圳市共进电子股份有限公司 | Test platform and product test method |
CN113590491B (en) * | 2021-08-06 | 2024-03-29 | 深圳市共进电子股份有限公司 | Test platform and product test method |
Also Published As
Publication number | Publication date |
---|---|
CN112685282B (en) | 2024-08-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109241141B (en) | Deep learning training data processing method and device | |
CN111125574B (en) | Method and device for generating information | |
CN108536867B (en) | Method and apparatus for generating information | |
CN109359194B (en) | Method and apparatus for predicting information categories | |
CN109685574A (en) | Data determination method and device, electronic equipment and computer readable storage medium | |
CN109388666A (en) | Service customization method and device, electronic equipment and storage medium | |
CN107229565B (en) | Test method and device | |
CN112685282B (en) | Test method, test device, electronic equipment and computer readable storage medium | |
CN111026849A (en) | Data processing method and device | |
CN110413165B (en) | Icon configuration method and device, electronic equipment and computer readable medium | |
CN110083540B (en) | Interface testing method and device | |
CN111753056A (en) | Information pushing method and device, computing equipment and computer readable storage medium | |
CN114218259B (en) | Multi-dimensional scientific information search method and system based on big data SaaS | |
CN110110197B (en) | Information acquisition method and device | |
CN111859985B (en) | AI customer service model test method and device, electronic equipment and storage medium | |
CN114240094A (en) | Data processing method and device based on information base | |
CN110955597B (en) | Object testing method and device, electronic equipment and computer readable storage medium | |
CN109857838B (en) | Method and apparatus for generating information | |
CN111723274B (en) | Method and device for processing information | |
CN111125501B (en) | Method and device for processing information | |
CN113626301A (en) | Method and device for generating test script | |
CN112308074A (en) | Method and device for generating thumbnail | |
CN110781191A (en) | Processing method of layout data and server | |
CN112883299A (en) | Object display method and device, electronic equipment and computer readable storage medium | |
CN112712328B (en) | Information processing method, information processing device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |