CN117056206A - Intelligent test method, device, equipment and storage medium - Google Patents

Intelligent test method, device, equipment and storage medium Download PDF

Info

Publication number
CN117056206A
CN117056206A CN202310904539.9A CN202310904539A CN117056206A CN 117056206 A CN117056206 A CN 117056206A CN 202310904539 A CN202310904539 A CN 202310904539A CN 117056206 A CN117056206 A CN 117056206A
Authority
CN
China
Prior art keywords
event
test
feedback information
single operation
generating
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
CN202310904539.9A
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 Sanqi Jimeng Network Technology Co ltd
Original Assignee
Guangzhou Sanqi Jimeng Network Technology 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 Sanqi Jimeng Network Technology Co ltd filed Critical Guangzhou Sanqi Jimeng Network Technology Co ltd
Priority to CN202310904539.9A priority Critical patent/CN117056206A/en
Publication of CN117056206A publication Critical patent/CN117056206A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

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

Abstract

The embodiment of the application provides an intelligent testing method, device, equipment and storage medium, wherein the method comprises the following steps: under the condition of test recording, recording each operation event and acquiring corresponding feedback information, wherein the operation event comprises a click event, an interface operation event and a protocol transceiving event; generating a single operation unit based on the single operation event and the corresponding feedback information; and generating a test flow in response to setting operation of a plurality of the single operation units, and performing functional test based on the test flow. The scheme reduces the workload of the test process and the time consumption of design, has stronger flexibility, and can meet various different test requirements.

Description

Intelligent test method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an intelligent testing method, device, equipment and storage medium.
Background
The intelligent automatic test can make certain test tasks be executed more efficiently than manual test, and is more suitable for using an automatic test tool especially when complex and mechanized test tasks are repeated. The game industry is also important for testing products, and various testing contents have large workload caused by changes of playing methods, increase of internal angles of games, numerous skills of roles, probability triggering of bug and the like, for example, performance of the games changes after a certain period of operation of a simulated player is simulated, or performance of a single module is repeatedly executed for N times, and particularly, certain low-probability triggering problems are difficult to reproduce, so that testers encounter a large bottleneck in the process of project development.
In the related art, when the function test is performed, because the software design is frequently changed, such as planning and playing methods, art typesetting and the like, the design of the test flow becomes repeated frequently, the workload is large, and the time consumption is serious. Meanwhile, in the existing test process, the setting of the test flow is relatively fixed, the flexibility is low, and improvement is needed.
Disclosure of Invention
The embodiment of the application provides an intelligent testing method, device, equipment and storage medium, which reduce the workload and design time consumption of a testing process, have higher flexibility and can meet various different testing requirements.
In a first aspect, an embodiment of the present application provides an intelligent testing method, where the method includes:
under the condition of test recording, recording each operation event and acquiring corresponding feedback information, wherein the operation event comprises a click event, an interface operation event and a protocol transceiving event;
generating a single operation unit based on the single operation event and the corresponding feedback information;
and generating a test flow in response to setting operation of a plurality of the single operation units, and performing functional test based on the test flow.
Optionally, in the case that the operation event is a click event, the recorded parameters include a click object and a corresponding interface depth; in the case that the operation event is an interface operation event, the recorded parameters include an interface name; in the case that the operation event is a protocol transceiving event, the recorded parameter includes a protocol name or a protocol id.
Optionally, the generating a single operation unit based on the single operation event and the corresponding feedback information includes:
binding the single operation event with corresponding feedback information to generate a single operation unit, wherein the feedback information comprises a response result of the corresponding operation event.
Optionally, the generating a test procedure in response to the setting operation of the plurality of the single operation units includes:
in response to a selection operation of a plurality of the single operation units, a serial test flow including each of the single operation units is generated.
Optionally, the setting operation includes at least one of a priority setting operation, a cycle number setting operation, a timeout period setting operation, and a fault tolerance setting operation.
Optionally, in the case that the setting operation is a priority setting operation, the generating a test flow includes:
and generating a parallel test flow based on the priority setting operation.
Optionally, the fault tolerance setting operation includes setting different fault tolerance degrees for the operation units, and when the fault tolerance degree is set to be the first fault tolerance degree and the corresponding operation unit fails to test, the test flow is suspended; and when the fault tolerance is set to be the second fault tolerance and the corresponding operation unit fails to be tested, continuing the test flow.
In a second aspect, an embodiment of the present application further provides an intelligent testing apparatus, including:
the operation recording module is configured to record each operation event and acquire corresponding feedback information under the condition of test recording, wherein the operation event comprises a click event, an interface operation event and a protocol transceiving event;
a unit generation module configured to generate a single operation unit based on the single operation event and the corresponding feedback information;
and the flow generating module is configured to respond to the setting operation of a plurality of the single operation units, generate a test flow and perform functional test based on the test flow.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the intelligent test method according to the embodiments of the present application.
In a fourth aspect, embodiments of the present application also provide a non-volatile storage medium storing computer-executable instructions that, when executed by a computer processor, are used to perform the intelligent test method of embodiments of the present application.
In a fifth aspect, the present embodiment further provides a computer program product, where the computer program product includes a computer program, where the computer program is stored in a computer readable storage medium, and where at least one processor of the device reads from the computer readable storage medium and executes the computer program, so that the device performs the intelligent test method according to the embodiment of the present application.
In the embodiment of the application, under the condition of test recording, each operation event is recorded and corresponding feedback information is acquired, wherein the operation event comprises a clicking event, an interface operation event and a protocol transceiving event, a single operation unit is generated based on the single operation event and the corresponding feedback information, a test flow is generated in response to setting operation of a plurality of single operation units, and functional test is performed based on the test flow. In the scheme, each operation event is recorded in a recording mode, corresponding feedback information is recorded at the same time, a single operation unit is generated aiming at the operation event and the corresponding feedback information, a test flow is generated based on the setting operation of a plurality of single operation units, the mode of generating the test is more flexible, the granularity is finer, the adjustment is convenient, the workload and the design time consumption of the test process are reduced, the flexibility is stronger, and various different test requirements can be met.
Drawings
FIG. 1 is a flow chart of an intelligent test method according to an embodiment of the present application;
FIG. 2 is a flow chart of another intelligent testing method according to an embodiment of the present application;
FIG. 3 is a flowchart of another intelligent testing method according to an embodiment of the present application;
FIG. 4 is a flowchart of another intelligent testing method according to an embodiment of the present application;
FIG. 5 is a block diagram of an intelligent testing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in further detail below with reference to the drawings and examples. It should be understood that the particular embodiments described herein are illustrative only and are not limiting of embodiments of the application. It should be further noted that, for convenience of description, only some, but not all of the structures related to the embodiments of the present application are shown in the drawings.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The intelligent test method provided by the embodiment of the application can be executed by computing equipment such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a server and the like. The method can be applied to the test of programs, such as the test of the functions of game software programs.
Fig. 1 is a flowchart of an intelligent testing method according to an embodiment of the present application, as shown in fig. 1, specifically including the following steps:
step S101, under the condition of testing and recording, each operation event is recorded and corresponding feedback information is acquired, wherein the operation event comprises a click event, an interface operation event and a protocol receiving and transmitting event.
In one embodiment, when the test script file is generated, a set operation recording module, such as a recording module, is used to record the current user operation, and optionally, when the recording function is started, that is, when the test recording is performed, each operation event is recorded and corresponding feedback information is obtained. The operation event may be an event triggered by a user or a tester clicking on a screen manually or by controlling a mouse, and optionally may include a clicking event, an interface operation event, a protocol transceiving event, and the like.
It should be noted that, according to the test function and the different items, other operation events may be further included, and the present solution is not limited, and the click event, the interface operation event, and the protocol transceiving event are only exemplary.
The clicking event can be an event recorded by a user or a tester when the user or the tester clicks the display interface through controlling the mouse, the interface operation event can be an event triggered when the interface is opened or closed, and the protocol receiving and transmitting event can be an event triggered when the user or the tester clicks a certain button to perform data interaction with a server or other terminals. If a user clicks a button in a current client to perform a certain game action, at this time, the client sends a request and parameters corresponding to the game action to the server through a network packet according to some rules agreed with the server, the server analyzes the request content after receiving the request to determine what game action the client performs and acquire the corresponding request parameters, and then the server processes the data according to code logic and returns the processing result to the client in a packet form, and after receiving the packet, the client analyzes according to the agreed rules and displays the analyzed result to the player.
Alternatively, in performing the above-mentioned recording of the operation event, the recorded parameter conditions may be exemplified by: when the operation event is a click event, the recorded parameters comprise a click object and a corresponding interface depth; in the case that the operation event is an interface operation event, the recorded parameters include an interface name; in the case where the operation event is a protocol transceiving event, the recorded parameter includes a protocol name or a protocol id.
In one embodiment, when the test recording is performed, the feedback information corresponding to each operation event is recorded, where the feedback information includes a response result of the corresponding operation event. Taking an operation event as a click event as an example, the corresponding feedback information comprises corresponding response conditions after the click event is triggered, such as action change, numerical value change and the like of a game object; taking an operation event as an interface operation event as an example, the corresponding feedback information comprises whether the interface is closed or opened; taking the operation event as a protocol receiving and transmitting event as an example, the corresponding feedback information comprises feedback content sent by the received server.
Step S102, generating a single operation unit based on the single operation event and the corresponding feedback information.
In one embodiment, after the single operation event is recorded, the single operation event and the corresponding feedback information are bound to generate a single operation unit. Optionally, each operation event corresponds to a specific operation of the user, for example, after recording is started, the user performs 10 operations, which are respectively recorded as user operation 1, user operation 2, user operation 3, user operation 4, user operation 5, user operation 6, user operation 7, user operation 8, user operation 9 and user operation 10, and the 10 operations are sequentially recorded. And correspondingly collecting corresponding feedback information, and forming an operation unit with the corresponding operation event.
Step S103, responding to the setting operation of a plurality of single operation units, generating a test flow, and performing functional test based on the test flow.
In one embodiment, after the multiple operation units are generated, they may be set accordingly to generate a test flow. Optionally, a plurality of operation units may be displayed in the display interface for the tester to perform corresponding settings. Optionally, the setting operation includes a selection operation that may select the operation unit to compose a test flow. Alternatively, taking the foregoing 10 user operations, i.e., 10 total operation units as an example, the operation unit 1, the operation unit 2, the operation unit 3, the operation unit 4, the operation unit 5, the operation unit 6, the operation unit 7, the operation unit 8, the operation unit 9, and the operation unit 10 are exemplarily denoted as the operation unit 7, the operation unit 8, the operation unit 9, and the operation unit 10, when the operation unit 1, the operation unit 2, the operation unit 5, the operation unit 8, and the operation unit 10 are selected to form the test procedure, the operation unit 1, the operation unit 2, the operation unit 5, the operation unit 8, and the operation unit 10 are sequentially clicked to generate the serial test procedure. Each operation unit in the serial test flow is sequentially executed in series according to the selection sequence. When the other operation unit meeting the test requirement is the operation unit 9, the operation unit 3, the operation unit 2, the operation unit 6 and the operation unit 7, the operation unit 9, the operation unit 3, the operation unit 2, the operation unit 6 and the operation unit 7 are correspondingly selected in sequence to form a serial test flow.
After the test flow script is generated, the script is correspondingly run to execute the corresponding functional test. During the test, whether the operation event in each operation unit is correctly responded or not can be found, and the exception is thrown when the error response or no response is obtained. For the serial test flow, the test of each operation unit must be executed, and the next operation unit is executed after one operation unit is completed. After any error, the whole flow may be interrupted. The procedures typically used are relatively fixed and are all linear execution scenarios. For example: and automatically and circularly playing the arena. Alternatively, the testing process may be that the single serial testing process is completed after the testing process is sequentially completed by automatically clicking the slit button under the main interface, automatically clicking the slit interface arena button, automatically clicking the arena interface challenge button, automatically clicking to start combat, automatically clicking the settlement panel to return, automatically clicking the return button of the arena interface, and automatically clicking the fight button under the main interface. Optionally, the number of execution cycles of the serial test procedure may be further set.
In the above-mentioned case, each operation event is recorded and corresponding feedback information is obtained under the condition of performing test recording, wherein the operation event comprises a clicking event, an interface operation event and a protocol transceiving event, a single operation unit is generated based on the single operation event and the corresponding feedback information, a test flow is generated in response to setting operations on a plurality of single operation units, and a functional test is performed based on the test flow. In the scheme, each operation event is recorded in a recording mode, corresponding feedback information is recorded at the same time, a single operation unit is generated aiming at the operation event and the corresponding feedback information, a test flow is generated based on the setting operation of a plurality of single operation units, the mode of generating the test is more flexible, the granularity is finer, the adjustment is convenient, the workload and the design time consumption of the test process are reduced, the flexibility is stronger, and various different test requirements can be met.
Fig. 2 is a flowchart of another intelligent testing method provided in an embodiment of the present application, which provides a process of generating a parallel testing flow, as shown in fig. 2, and specifically includes:
step 201, under the condition of performing test recording, recording each operation event and obtaining corresponding feedback information, wherein the operation event comprises a click event, an interface operation event and a protocol transceiving event.
Step S202, generating a single operation unit based on the single operation event and the corresponding feedback information.
Step S203, generating a parallel test flow in response to the selection operation and the priority setting operation for the plurality of single operation units, and performing a functional test based on the parallel test flow.
In one embodiment, the setting operation of the operation unit further includes a priority setting operation, that is, the priority of the operation unit may be set, and then when the test flow is generated, the parallel test flow is generated based on the priority of the operation unit. Under the parallel test flow, a plurality of executable test units meeting the conditions can be arranged at the same time, and the test unit with the highest priority is selected. Typically for a scene where the operational steps are uncertain and nonlinear. Such as testing novice guides in game testing, when any guide is available, the guide is automatically started. When a test novice is started, the automatic clicking of a new hero interface closing button, the automatic clicking of a settlement interface challenge button, the automatic clicking of an epoch-level interface closing button, the automatic clicking of a fight preparation interface fight button, the automatic clicking of a boss display interface fight button, the automatic clicking of a new article interface closing button and the automatic clicking of a main line task interface closing button can be performed in parallel, and after the parallel execution of the operation events is completed, the test is completed. When the above-mentioned "automatic click new hero interface close button", "automatic click settlement interface challenge button", "automatic click time level interface close button", "automatic click fight preparation interface fight button", "automatic click boss display interface fight button", "automatic click new article interface close button", "automatic click main line task interface close button" are executed in parallel, the above-mentioned "automatic click fight preparation interface fight button", "automatic click boss display interface fight button" with high priority may be executed based on various set priorities, for example, the "automatic click fight preparation interface fight button", "automatic click boss display interface fight button" with high priority is executed in priority, after two parallel tests with high priority are completed, the operation event with non-high priority is executed in parallel test.
In the above-mentioned case, each operation event is recorded and corresponding feedback information is obtained under the condition of performing test recording, wherein the operation event comprises a clicking event, an interface operation event and a protocol transceiving event, a single operation unit is generated based on the single operation event and the corresponding feedback information, a test flow is generated in response to setting operations on a plurality of single operation units, and a functional test is performed based on the test flow. In the scheme, each operation event is recorded in a recording mode, corresponding feedback information is recorded at the same time, a single operation unit is generated aiming at the operation event and the corresponding feedback information, a test flow is generated based on the setting operation of a plurality of single operation units, the mode of generating the test is more flexible, the granularity is finer, the adjustment is convenient, the workload and the design time consumption of the test process are reduced, the flexibility is stronger, and various different test requirements can be met.
Fig. 3 is a flowchart of another intelligent testing method provided in the embodiment of the present application, which provides a process for setting fault tolerance of an operation unit, and as shown in fig. 3, specifically includes:
step S301, under the condition of performing test recording, recording each operation event and obtaining corresponding feedback information, where the operation event includes a click event, an interface operation event and a protocol transceiving event.
Step S302, generating a single operation unit based on the single operation event and the corresponding feedback information.
Step S303, responding to the selection operation and fault tolerance setting operation of a plurality of single operation units, generating a test flow, and performing functional test based on the parallel test flow.
Step S304, in the process of performing functional test on the test flow, when the test of the operation unit set to the first fault tolerance fails, the test flow is suspended, and when the test of the operation unit set to the second fault tolerance fails, the test flow is continued.
In one embodiment, the fault tolerance of the operation unit may be divided into a first fault tolerance and a second fault tolerance, where the fault tolerance of the second fault tolerance is higher than the first fault tolerance, that is, when the operation unit set to the second fault tolerance fails to test, the test flow continues, and when the operation unit set to the first fault tolerance fails to test, the test flow pauses. Of course, the above is merely exemplary of the two fault tolerance arrangements, and more levels may be provided.
In the above-mentioned case, each operation event is recorded and corresponding feedback information is obtained under the condition of performing test recording, wherein the operation event comprises a clicking event, an interface operation event and a protocol transceiving event, a single operation unit is generated based on the single operation event and the corresponding feedback information, a test flow is generated in response to setting operations on a plurality of single operation units, and a functional test is performed based on the test flow. In the scheme, each operation event is recorded in a recording mode, corresponding feedback information is recorded at the same time, a single operation unit is generated aiming at the operation event and the corresponding feedback information, a test flow is generated based on the setting operation of a plurality of single operation units, the mode of generating the test is more flexible, the granularity is finer, the adjustment is convenient, the workload and the design time consumption of the test process are reduced, the flexibility is stronger, and various different test requirements can be met.
Fig. 4 is a flowchart of another intelligent testing method provided in the embodiment of the present application, which provides a process of setting the number of cycles and the timeout period when generating a testing procedure, as shown in fig. 4, and specifically includes:
in step S401, under the condition of performing test recording, each operation event is recorded and corresponding feedback information is obtained, where the operation event includes a click event, an interface operation event and a protocol transceiving event.
Step S402, generating a single operation unit based on the single operation event and the corresponding feedback information.
Step S403, generating a test procedure in response to the selection operation, the cycle number setting operation, and the timeout period setting operation for the plurality of single operation units, and performing a functional test based on the parallel test procedure.
In one embodiment, when generating the test procedure, for each selected operation event, the cycle number setting and the timeout period setting may be performed, that is, the test of the next operation unit may be performed after the test may be performed for a single operation event, the flexible setting of different operation units may be performed pertinently, and at the same time, the corresponding timeout period setting may be performed, so that when the operation unit test is performed, the error reporting is performed after the timeout period set in the test is exceeded, or otherwise, the error reporting is not performed and the waiting is continued.
In the above-mentioned case, each operation event is recorded and corresponding feedback information is obtained under the condition of performing test recording, wherein the operation event comprises a clicking event, an interface operation event and a protocol transceiving event, a single operation unit is generated based on the single operation event and the corresponding feedback information, a test flow is generated in response to setting operations on a plurality of single operation units, and a functional test is performed based on the test flow. In the scheme, each operation event is recorded in a recording mode, corresponding feedback information is recorded at the same time, a single operation unit is generated aiming at the operation event and the corresponding feedback information, a test flow is generated based on the setting operation of a plurality of single operation units, the mode of generating the test is more flexible, the granularity is finer, the adjustment is convenient, the workload and the design time consumption of the test process are reduced, the flexibility is stronger, and various different test requirements can be met.
Fig. 5 is a block diagram of an intelligent testing apparatus according to an embodiment of the present application, and as shown in fig. 5, the apparatus is configured to execute the intelligent testing method according to the foregoing embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 5, the apparatus specifically includes: an operation recording module 101, a unit generation module 102, and a flow generation module 103, wherein,
the operation recording module 101 is configured to record each operation event and obtain corresponding feedback information under the condition of test recording, wherein the operation event comprises a click event, an interface operation event and a protocol transceiving event;
a unit generation module 102 configured to generate a single operation unit based on a single operation event and corresponding feedback information;
the flow generating module 103 is configured to generate a test flow in response to a setting operation on a plurality of the single operation units, and perform a functional test based on the test flow.
In the above-mentioned case, each operation event is recorded and corresponding feedback information is obtained under the condition of performing test recording, wherein the operation event comprises a clicking event, an interface operation event and a protocol transceiving event, a single operation unit is generated based on the single operation event and the corresponding feedback information, a test flow is generated in response to setting operations on a plurality of single operation units, and a functional test is performed based on the test flow. In the scheme, each operation event is recorded in a recording mode, corresponding feedback information is recorded at the same time, a single operation unit is generated aiming at the operation event and the corresponding feedback information, a test flow is generated based on the setting operation of a plurality of single operation units, the mode of generating the test is more flexible, the granularity is finer, the adjustment is convenient, the workload and the design time consumption of the test process are reduced, the flexibility is stronger, and various different test requirements can be met.
In a possible embodiment, in a case that the operation event is a click event, the recorded parameters include a click object and a corresponding interface depth; in the case that the operation event is an interface operation event, the recorded parameters include an interface name; in the case that the operation event is a protocol transceiving event, the recorded parameter includes a protocol name or a protocol id.
In one possible embodiment, the unit generation module 102 is specifically configured to:
binding the single operation event with corresponding feedback information to generate a single operation unit, wherein the feedback information comprises a response result of the corresponding operation event.
In one possible embodiment, the flow generating module 103 is specifically configured to:
in response to a selection operation of a plurality of the single operation units, a serial test flow including each of the single operation units is generated.
In one possible embodiment, the setting operation includes at least one of a priority setting operation, a number of cycles setting operation, a timeout period setting operation, and a fault tolerance setting operation.
In a possible embodiment, in the case that the setting operation is a priority setting operation, the flow generating module 103 is specifically configured to:
and generating a parallel test flow based on the priority setting operation.
In one possible embodiment, the fault tolerance setting operation includes setting different fault tolerance degrees for the operation units, and when the fault tolerance degree is set to be a first fault tolerance degree, the corresponding operation unit fails to test, the test flow pauses; and when the fault tolerance is set to be the second fault tolerance and the corresponding operation unit fails to be tested, continuing the test flow.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 6, the device includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of processors 201 in the device may be one or more, one processor 201 being taken as an example in fig. 6; the processor 201, memory 202, input devices 203, and output devices 204 in the apparatus may be connected by a bus or other means, for example in fig. 6. The memory 202 is used as a computer readable storage medium for storing software programs, computer executable programs and modules, such as program instructions/modules corresponding to the intelligent test method in the embodiment of the present application. The processor 201 executes various functional applications of the device and data processing by running software programs, instructions and modules stored in the memory 202, i.e., implements the intelligent test method described above. The input device 703 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the apparatus. The output device 204 may include a display device such as a display screen.
Embodiments of the present application also provide a non-volatile storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a smart test method as described in the above embodiments, comprising:
under the condition of test recording, recording each operation event and acquiring corresponding feedback information, wherein the operation event comprises a click event, an interface operation event and a protocol transceiving event;
generating a single operation unit based on the single operation event and the corresponding feedback information;
and generating a test flow in response to setting operation of a plurality of the single operation units, and performing functional test based on the test flow.
It should be noted that, in the embodiment of the intelligent test apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present application.
In some possible embodiments, the aspects of the method provided by the present application may also be implemented in the form of a program product, which includes a program code for causing a computer device to perform the steps of the method according to the various exemplary embodiments of the application described in the present specification, when the program product is run on the computer device, for example, the computer device may perform the intelligent test method described in the embodiments of the present application. The program product may be implemented using any combination of one or more readable media.

Claims (10)

1. The intelligent test method is characterized by comprising the following steps:
under the condition of test recording, recording each operation event and acquiring corresponding feedback information, wherein the operation event comprises a click event, an interface operation event and a protocol transceiving event;
generating a single operation unit based on the single operation event and the corresponding feedback information;
and generating a test flow in response to setting operation of a plurality of the single operation units, and performing functional test based on the test flow.
2. The intelligent test method according to claim 1, wherein, in the case that the operation event is a click event, the recorded parameters include a click object and a corresponding interface depth; in the case that the operation event is an interface operation event, the recorded parameters include an interface name; in the case that the operation event is a protocol transceiving event, the recorded parameter includes a protocol name or a protocol id.
3. The intelligent test method of claim 1, wherein the generating a single operation unit based on a single operation event and corresponding feedback information comprises:
binding the single operation event with corresponding feedback information to generate a single operation unit, wherein the feedback information comprises a response result of the corresponding operation event.
4. A smart test method as claimed in any one of claims 1 to 3, wherein said generating a test flow in response to a set operation on a plurality of said individual operation units comprises:
in response to a selection operation of a plurality of the single operation units, a serial test flow including each of the single operation units is generated.
5. The intelligent test method of any of claims 1-3, wherein the set-up operation comprises at least one of a priority set-up operation, a cycle number set-up operation, a timeout period set-up operation, and a fault tolerance set-up operation.
6. The intelligent test method according to claim 5, wherein in the case where the setting operation is a priority setting operation, the generating a test flow includes:
and generating a parallel test flow based on the priority setting operation.
7. The intelligent test method according to claim 5, wherein the fault tolerance setting operation includes setting different fault tolerance levels for the operation units, and when the fault tolerance level is set to be a first fault tolerance level, the test flow is suspended in case the corresponding operation unit fails to be tested; and when the fault tolerance is set to be the second fault tolerance and the corresponding operation unit fails to be tested, continuing the test flow.
8. Intelligent test device, its characterized in that includes:
the operation recording module is configured to record each operation event and acquire corresponding feedback information under the condition of test recording, wherein the operation event comprises a click event, an interface operation event and a protocol transceiving event;
a unit generation module configured to generate a single operation unit based on the single operation event and the corresponding feedback information;
and the flow generating module is configured to respond to the setting operation of a plurality of the single operation units, generate a test flow and perform functional test based on the test flow.
9. An electronic device, the device comprising: one or more processors; storage means for storing one or more programs that when executed by the one or more processors cause the one or more processors to implement the intelligent test method of any of claims 1-7.
10. A non-transitory storage medium storing computer executable instructions which, when executed by a computer processor, are for performing the intelligent test method of any of claims 1-7.
CN202310904539.9A 2023-07-21 2023-07-21 Intelligent test method, device, equipment and storage medium Pending CN117056206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310904539.9A CN117056206A (en) 2023-07-21 2023-07-21 Intelligent test method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310904539.9A CN117056206A (en) 2023-07-21 2023-07-21 Intelligent test method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117056206A true CN117056206A (en) 2023-11-14

Family

ID=88659877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310904539.9A Pending CN117056206A (en) 2023-07-21 2023-07-21 Intelligent test method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117056206A (en)

Similar Documents

Publication Publication Date Title
US12086051B2 (en) Automated application testing system
CN102402481B (en) The fuzz testing of asynchronous routine code
US8584083B2 (en) Software application recreation
Alimadadi et al. Understanding asynchronous interactions in full-stack JavaScript
CN108647141A (en) Automatic test approach, device, computer-readable medium and electronic equipment
CN109815119B (en) APP link channel testing method and device
KR101904436B1 (en) Machine learning based identification of broken network connections
Wojciak et al. System level combinatorial testing in practice--the concurrent maintenance case study
CN108898229B (en) Method and system for constructing machine learning modeling process
CN114546738A (en) Server general test method, system, terminal and storage medium
CN111934908A (en) Internet of things simulation method, device and system and storage medium
CN111414309A (en) Automatic test method of application program, computer equipment and storage medium
CN111475412B (en) Software testing method, device, electronic equipment and computer readable storage medium
CN108984380A (en) A kind of server test method, device and medium based on linux system
CN110750453A (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN117056206A (en) Intelligent test method, device, equipment and storage medium
CN115733741B (en) Abnormal scene test method and device for system to be tested
CN111062681B (en) Course selection tour inspection method and device, server and storage medium
CN113268421A (en) Service call processing method, device, server and storage medium
CN108960433B (en) Method and system for running machine learning modeling process
CN113973060A (en) Internet of things simulation method, device and system and storage medium
CN112445711A (en) Test method for generating simulation test scene based on visual dragging of Web page
Attariyan et al. Automating configuration troubleshooting with confaid
Ferme et al. IT-Centric Process Automation: Study About the Performance of BPMN 2.0 Engines
US20080243732A1 (en) Form-Based User Interface Tool for Specifying Time-Based, Distributed Algorithms for Distributed Systems

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