Test task pause method, device and equipment and computer storage medium

By obtaining the identification information of the system under test, the test result error problem caused by the system under test is solved, which improves the test efficiency and reduces the time for retesting.

CN118939543APending Publication Date: 2024-11-12CHINA MOBILE COMM CORP GUANGXI CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410986344.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

During the software development process, the test system may perform re-release or underlying change operations without notifying the test system, resulting in errors in the test result, and the entire test process needs to be re-executed, which consumes a lot of time and reduces the test efficiency.

Method used

By obtaining the identification information sent by the system under test, pause the target test task, add it to the queue to be started, pause the tasks in the queue to be started, and send the pause completion information after all pauses to avoid errors in the test result and reduce the retest time .

Benefits of technology

It effectively avoids errors in test results, reduces the time for retesting, improves testing efficiency, and ensures the accuracy of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939543A_ABST
    Figure CN118939543A_ABST
Patent Text Reader

Abstract

The invention discloses a test task pause method and device, equipment and a computer storage medium. And obtaining identification information sent by the tested system based on preset time, and adding the target test task into the to-be-started queue under the condition that the identification information represents pause of the target test task. And pausing the test tasks in the to-be-started queue in sequence, and sending pause completion information to the tested system under the condition that all the test tasks in the to-be-started queue are paused. According to the method, the identification information sent by the tested system is obtained, the current test task can be paused according to the identification information, errors of the test result are avoided, the retest time is shortened, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a method, device, equipment, computer storage medium and computer program product for pausing a test task. Background Art

[0002] In the process of software development, as the relationship between businesses becomes more and more complex, the number of system requirements going online continues to increase. In order to ensure the quality of testing, automated testing is usually used in related technologies to test the system under test.

[0003] However, during the testing process of the system under test, the system under test may perform operations such as re-release or underlying changes, while the test system continues to perform test tasks on the system under test according to the original plan, resulting in incorrect test results. Therefore, the test system needs to re-execute the entire test process to obtain accurate test results, which consumes a lot of test time and leads to low test efficiency. Summary of the invention

[0004] The embodiments of the present disclosure provide a method, apparatus, device, computer storage medium, and computer program product for pausing a test task, which can improve test efficiency.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for pausing a test task, the method comprising:

[0006] Obtain identification information sent by the system under test based on a preset time;

[0007] When the identification information indicates that the target test task is suspended, the target test task is added to the queue to be started;

[0008] Pause the test tasks in the queue to be started one by one;

[0009] When all test tasks in the queue to be started are paused, a pause completion message is sent to the system under test.

[0010] In an achievable implementation, after acquiring the identification information sent by the system under test based on the preset time, the method further includes:

[0011] When the identification information indicates that the target test task is suspended, the suspension information of the target test task is saved, and the suspension information includes the run ID information, the task ID information, the case name information, the scenario name information and the tester number information;

[0012] When the identification information indicates that the target test task is suspended, the target test task is added to the queue to be started, including:

[0013] When the identification information indicates that the target test task is suspended, the target test task is added to the queue to be started in sequence according to the running ID information corresponding to the test worker number information.

[0014] In an achievable implementation, the method for pausing a test task further includes:

[0015] In the case where the identification information represents the running test task, detecting whether to save the pause record information;

[0016] While saving the pause record information, start the test tasks in the queue to be started according to the first-in-first-out rule.

[0017] In an achievable implementation, in the case of saving the pause record information, starting the test tasks in the queue to be started according to the first-in-first-out rule includes:

[0018] In the case of saving the pause record information, detecting whether the test task is in the first position in the queue to be started;

[0019] If the test task is in the first position in the queue to be started, restart the test task;

[0020] Delete the pause information of the test task and remove the test task from the queue to be started.

[0021] In one practicable implementation, after detecting whether the test task is in the first position in the queue to be started, the method further includes:

[0022] When the test task is not in the first position in the queue to be started, the identification information sent by the system under test is obtained based on the preset time.

[0023] In an achievable implementation, after deleting the pause information of the test task and removing the test task from the queue to be started, the method further includes:

[0024] Check the number of test tasks in the queue to be started;

[0025] When the number of test tasks in the queue to be started is zero, a restart completion message is sent to the system under test.

[0026] In one practicable implementation, after detecting the number of test tasks in the queue to be started, the method further includes:

[0027] When the number of test tasks in the queue to be started is not zero, obtaining a first test task located at a first position from the queue to be started;

[0028] Restart the first test task;

[0029] The pause information of the first test task is deleted and the first test task is removed from the queue to be started.

[0030] In a second aspect, an embodiment of the present disclosure provides a device for pausing a test task, the device comprising:

[0031] An acquisition module, used to acquire identification information sent by the system under test based on a preset time;

[0032] An adding module is used to add the target test task to the queue to be started when the identification information indicates that the target test task is suspended;

[0033] The pause module is used to pause the test tasks in the queue to be started one by one;

[0034] The sending module is used to send a pause completion message to the system under test when all the test tasks in the queue to be started are paused.

[0035] In a third aspect, an embodiment of the present disclosure provides a device for pausing a test task, the device comprising a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement a method for pausing a test task as described in any one of the first aspects.

[0036] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implements a method for pausing a test task as described in any one of the first aspects.

[0037] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method for pausing a test task as described in any one of the first aspects.

[0038] The embodiments of the present disclosure provide a method, apparatus, device, computer storage medium, and computer program product for pausing a test task. Based on a preset time, identification information sent by a system under test is obtained, and when the identification information indicates that the target test task is suspended, the target test task is added to a queue to be started. The test tasks in the queue to be started are paused in sequence, and when all the test tasks in the queue to be started are paused, a pause completion message is sent to the system under test. By obtaining the identification information sent by the system under test, the embodiments of the present disclosure can pause the current test task according to the identification information, avoid errors in the test results, reduce the time for retesting, and improve the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following is a brief introduction to the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 It is a flowchart of a method for pausing a test task provided by an embodiment of the present disclosure;

[0041] Figure 2 is a flowchart of a method for starting a test task provided by an embodiment of the present disclosure;

[0042] Figure 3 is a flowchart of another method for starting a test task provided by an embodiment of the present disclosure;

[0043] Figure 4 is a flowchart of another method for pausing a test task provided by an embodiment of the present disclosure;

[0044] Figure 5 is a structural schematic diagram of a device for pausing a test task provided by an embodiment of the present disclosure;

[0045] Figure 6 It is a structural diagram of a device for pausing a test task provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0046] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present invention, rather than to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.

[0047] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0048] Before describing the technical solutions provided by the embodiments of the present disclosure, in order to facilitate understanding of the embodiments of the present disclosure, the present disclosure specifically describes the problems existing in the related technologies:

[0049] In the process of software development, as the relationship between businesses becomes more and more complex, the number of system requirements going online continues to increase. In order to ensure the quality of testing, automated testing is usually used in related technologies to test the system under test.

[0050] However, during the testing of the system under test, the system under test may perform operations such as re-release or underlying changes. The system under test will not notify the test system during the execution of these operations. Without receiving the new operation performed by the system under test, the test system will continue to perform the test tasks on the system under test according to the original plan, resulting in incorrect test results. Therefore, the test system needs to re-execute the entire test process to obtain accurate test results, which consumes a lot of test time and leads to low test efficiency.

[0051] The embodiments of the present disclosure provide a method, apparatus, device, computer storage medium and computer program product for pausing a test task, which can solve the above-mentioned technical problems existing in the related technologies.

[0052] The disclosed embodiment obtains identification information sent by the system under test based on a preset time, and adds the target test task to the queue to be started when the identification information indicates that the target test task is paused. The test tasks in the queue to be started are paused in sequence, and when all the test tasks in the queue to be started are paused, a pause completion message is sent to the system under test. By obtaining the identification information sent by the system under test, the disclosed embodiment can pause the current test task according to the identification information, avoid errors in the test results, reduce the time for retesting, and improve test efficiency.

[0053] The following is an introduction to the method for pausing a test task provided by an embodiment of the present disclosure.

[0054] Figure 1 FIG. 1 is a flow chart showing a method for pausing a test task provided by an embodiment of the present disclosure. Figure 1 The method may include the following steps S110-S140.

[0055] S110: Acquire identification information sent by the system under test based on a preset time.

[0056] Communicate with the system under test within a preset time and obtain identification information sent by the system under test, wherein the identification information is status information of the system under test.

[0057] In one example, the process flow of the tested system testing the test system includes a plan access phase, a case access phase, and a scenario access phase. In the scenario access phase, the tested system obtains the identification information sent by the tested system, and determines whether the scenario in the scenario access phase can be tested according to the category of the identification information.

[0058] In one embodiment, the system under test can modify identification information according to its own status.

[0059] In one embodiment, the test system communicates with the system under test and obtains identification information sent by the system under test within a preset hour.

[0060] S120: When the identification information indicates that the target test task is suspended, the target test task is added to a queue to be started.

[0061] After the test system obtains the identification information sent by the system under test and indicating the suspended target test task, the test system adds the multiple target test tasks to the queue to be started.

[0062] In one example, the system under test needs to perform a re-release or underlying change operation and set the pause flag Run_Config to "Red". After the test system establishes communication with the system under test, the test system obtains the identification information about the "Red" pause flag sent by the system under test, and adds the multiple target test tasks currently being executed to the queue to be started according to the identification information.

[0063] S130: Pause the test tasks in the queue to be started one by one.

[0064] After adding the target test task to the queue to be started, the system under test suspends the test tasks in the queue to be started in sequence.

[0065] In one example, the system under test pauses the test tasks in the queue to be started by calling the Stop() function.

[0066] S140: When all the test tasks in the queue to be started are paused, a pause completion message is sent to the system under test.

[0067] The system under test suspends the test tasks in the queue to be started in turn, and sends a suspension completion message to the system under test when all the test tasks in the queue to be started are suspended.

[0068] In one example, after obtaining the pause completion information sent by the test system, the system under test performs a re-release or underlying change operation, and sets the pause flag Run_Config to "Green" after the above operation is completed.

[0069] The disclosed embodiment obtains identification information sent by the system under test and can pause the current test task according to the identification information, thereby avoiding errors in the test results, reducing the time for retesting, and improving the test efficiency.

[0070] In one embodiment, after obtaining the identification information sent by the system under test based on the preset time, the method for pausing the test task further includes S150. When the identification information indicates that the target test task is to be suspended, adding the target test task to the queue to be started may include step S121.

[0071] S150: When the identification information indicates that the target test task is suspended, save the suspension information of the target test task.

[0072] After the test system obtains the identification information sent by the system under test indicating the target test task to be paused, the test system saves the pause information of the target test task to be paused, wherein the pause information includes the run ID information, the task ID information, the case name information, the scenario name information and the tester number information.

[0073] S121: When the identification information indicates that the target test task is suspended, the target test task is sequentially added to the queue to be started according to the running ID information corresponding to the test worker number information.

[0074] After the test system obtains the identification information sent by the system under test indicating the paused target test task, the test system saves the pause information of the target test task to be paused, and adds the target test task to the queue to be started in sequence according to the test worker number information and run ID information in the pause information.

[0075] In one example, the test system needs to suspend three test tasks. Among them, the test worker number information of test task A is "z1", and the running id information is "01". The test worker number information of test task B is "z1", and the running id information is "02". The test worker number information of test task C is "z1", and the running id information is "03". Then the test system adds the target test tasks to the queue to be started in sequence according to the running ID information corresponding to the test worker number information, so that the order of the test tasks in the queue to be started is "A", "B", and "C".

[0076] After obtaining the identification information, the disclosed embodiment saves the suspension information of the target test task. According to the suspension information, the target test task is sequentially added to the queue to be started, ensuring that all test tasks under the same work number are executed in sequence according to the predetermined order, avoiding the work number login conflict problem caused by executing multiple test tasks at the same time.

[0077] In one embodiment, Figure 2 As shown, the method for pausing a test task includes step S160 and step S170.

[0078] S160: When the identification information indicates that the test task is running, detecting whether to save the pause record information.

[0079] After the test system obtains the identification information sent by the system under test that represents the running test task, the system under test detects whether the storage space stores the pause record information, wherein the pause record information includes the pause information of the test task.

[0080] In one example, after the test system obtains the identification information about the "Green" pause identification sent by the system under test, it confirms that the test task can be run, and detects whether the storage space stores the pause record information corresponding to the test task.

[0081] S170: while saving the pause record information, start the test tasks in the queue to be started according to the first-in-first-out rule.

[0082] If the storage space of the system under test stores the pause record information, the system under test starts the test task that is first in the queue to be started in sequence according to the first-in-first-out rule.

[0083] In one example, the system under test determines that the test task is paused in test scenario H according to the pause information in the pause record information, calls the Start() function to start the test task, and starts the test from test scenario H.

[0084] The disclosed embodiment detects the pause record information and starts the test tasks in the queue to be started according to the first-in-first-out rule, thereby realizing flexible start and stop of the test tasks, reducing the probability of executing erroneous test cases and improving the test efficiency.

[0085] In one embodiment, Figure 3 As shown, in the case of saving the pause record information, starting the test tasks in the queue to be started according to the first-in-first-out rule may include steps S171-S173.

[0086] S171: When saving the pause record information, check whether the test task is in the first position in the queue to be started.

[0087] In one example, if the system under test detects that the storage space stores the pause record information, it indicates that there is a paused test task. After determining to restart the paused test task, it is determined whether the test task is located at the first position in the queue to be started.

[0088] S172: When the test task is in the first position in the queue to be started, restart the test task.

[0089] In one example, if the test task is located at the first position in the queue to be started, the test system calls the Start() function to restart the test task.

[0090] S173: Delete the pause information of the test task and remove the test task from the queue to be started.

[0091] After the test task at the first position in the queue to be started is started, the pause information related to the test task is deleted and the test task is removed from the queue to be started.

[0092] The disclosed embodiment determines whether to restart the test task by detecting whether the test task is in the first position in the queue to be started, thereby reducing the probability of conflict caused by restarting multiple test tasks at the same time and improving test efficiency.

[0093] In one embodiment, after detecting whether the test task is in the first position in the queue to be started, the method for pausing the test task further includes step S174.

[0094] S174: When the test task is not in the first position in the queue to be started, obtain identification information sent by the system under test based on a preset time.

[0095] In one example, if the test task is not located at the first position in the queue to be started, the identification information sent by the system under test is cyclically obtained within a preset time until the test task is located at the first position in the queue to be started.

[0096] The disclosed embodiment determines whether to restart the test task by detecting whether the test task is in the first position in the queue to be started, thereby reducing the probability of conflict caused by restarting multiple test tasks at the same time and improving test efficiency.

[0097] In one embodiment, after deleting the suspension information of the test task and removing the test task from the queue to be started, the method for suspending the test task further includes step S175 and step S176.

[0098] S175: Detect the number of test tasks in the queue to be started.

[0099] After the test task at the first position in the queue to be started is removed, the number of test tasks in the queue to be started is detected.

[0100] S176: When the number of test tasks in the queue to be started is zero, a restart completion message is sent to the system under test.

[0101] In one embodiment, if it is detected that the number of test tasks in the queue to be started is zero, the test system sends a restart completion message to the system under test. After obtaining the restart completion message, the system under test changes the pause flag to "Green".

[0102] The disclosed embodiment detects the number of test tasks in the queue to be started and sends restart completion information to the system under test, so as to facilitate subsequent modification of identification information.

[0103] In one embodiment, after detecting the number of test tasks in the queue to be started, the method for pausing the test task further includes steps S210 - S230 .

[0104] S210: When the number of test tasks in the queue to be started is not zero, obtain a first test task located at a first position from the queue to be started.

[0105] S220: Restart the first test task.

[0106] S230: Delete the pause information of the first test task and remove the first test task from the queue to be started.

[0107] In one embodiment, if it is detected that the number of test tasks in the queue to be started is not zero, the first test task at the first position is obtained from the queue to be started, and the Start() function is called to restart the first test task. After the first test task is started, the pause information related to the first test task is deleted and the first test task is removed from the queue to be started.

[0108] In one example, the steps of the method for testing task suspension are as follows: Figure 4 As shown:

[0109] In step Q1, the plan execution operation is implemented to determine the number of test tasks. In step P1, the plan access operation is performed to prepare the test environment and pull the relevant files of the test tasks. In step S1, the case access operation is performed to connect the test system to the log database for recording the operation log. In step T1, the scenario access operation is performed to test the specific scenario in the case. After the identification information of the system under test is modified in step F1, step T1_1 is performed to obtain the identification information.

[0110] If the identification information indicates that the test task is suspended, step T1_1.1.2 is executed to save the suspension information of the test task and then add the test task to the queue to be started. After the test tasks in the queue to be started are started in sequence, step T1_1.1.3 is executed to detect the number of test tasks in the queue to be started. If the number of test tasks in the queue to be started is not 0, the test tasks in the queue to be started are continued to be started. If the number of test tasks in the queue to be started is 0, a suspension completion message is sent to the system under test.

[0111] If the identification information represents the running test task, execute step T1_1.2 to detect the pause record information. If it is detected that the pause record information is saved, execute step T1_1.2.1 to detect the position of the test task. If the test task is not in the first position in the queue to be started, re-execute step T1_1 to obtain the identification information. If the test task is in the first position in the queue to be started, execute step T1_1.2.2 to restart the test task, then execute step T1_1.2.3 to delete the pause information, and then execute step T1_1.2.4 to remove the test task from the queue to be started. After all the test tasks to be started are restarted, send the restart completion information to the system under test.

[0112] If it is detected that the pause record information is not saved, execute step T1_2 to perform the software initialization operation. After executing step T1_2, execute step T1_3. In step T1_3, perform scenario testing according to the specific use case step set. After step T1_3 is executed, determine whether the scenario is the last scenario in the case. If the scenario is not the last scenario in the case, continue to execute step T1. If the scenario is the last scenario in the case, execute step T2 to exit the scene. After step T2 is executed, execute step S2 to complete the case exit operation and disconnect the log database from the test system. In step P2, execute the planned exit operation to end all test tasks.

[0113] In the embodiment of the present disclosure, when the number of test tasks in the queue to be started is not zero, restarting the first test task located at the first position can restart all the test tasks in the queue to be started, thereby achieving flexible start and stop of test tasks and improving test efficiency.

[0114] like Figure 5 As shown, the embodiment of the present disclosure further provides a device 500 for pausing a test task, and the device 500 for pausing a test task includes:

[0115] The acquisition module 501 is used to acquire the identification information sent by the system under test based on a preset time;

[0116] An adding module 502 is used to add the target test task to a queue to be started when the identification information indicates that the target test task is suspended;

[0117] The pause module 503 is used to sequentially pause the test tasks in the queue to be started;

[0118] The sending module 504 is used to send a pause completion message to the system under test when all the test tasks in the queue to be started are paused.

[0119] In some embodiments, the device for pausing a test task may include a saving module, the saving module being used to save the suspension information of the target test task when the identification information indicates that the target test task is suspended, the suspension information including the run ID information, the task ID information, the case name information, the scenario name information and the test worker number information;

[0120] When the identification information indicates that the target test task is suspended, the target test task is added to the queue to be started, including:

[0121] When the identification information indicates that the target test task is suspended, the target test task is added to the queue to be started in sequence according to the running ID information corresponding to the test worker number information.

[0122] In some embodiments, the apparatus for pausing a test task may include a detection module, the detection module being used to detect whether to save the suspension record information when the identification information indicates that the test task is running;

[0123] While saving the pause record information, start the test tasks in the queue to be started according to the first-in-first-out rule.

[0124] In some embodiments, the apparatus for pausing a test task may include a detection module, the detection module being used to detect whether the test task is in the first position in the queue to be started while saving the suspension record information;

[0125] If the test task is in the first position in the queue to be started, restart the test task;

[0126] Delete the pause information of the test task and remove the test task from the queue to be started.

[0127] In some embodiments, the acquisition module 501 is specifically used to:

[0128] When the test task is not in the first position in the queue to be started, the identification information sent by the system under test is obtained based on the preset time.

[0129] In some embodiments, the apparatus for pausing a test task may include a detection module, the detection module being used to detect the number of test tasks in the queue to be started;

[0130] When the number of test tasks in the queue to be started is zero, a restart completion message is sent to the system under test.

[0131] In some embodiments, the acquisition module 501 is specifically used to:

[0132] When the number of test tasks in the queue to be started is not zero, obtaining a first test task located at a first position from the queue to be started;

[0133] Restart the first test task;

[0134] The pause information of the first test task is deleted and the first test task is removed from the queue to be started.

[0135] Figure 5 Each module / unit in the device shown has the function of realizing Figures 1 to 3 The functions of each step executed by the application system in the present invention can achieve the corresponding technical effects. For the sake of brevity, they will not be repeated here.

[0136] Figure 6 A schematic diagram of the hardware structure of the test task suspension provided by an embodiment of the present disclosure is shown.

[0137] The device during the test task suspension may include a processor 601 and a memory 602 storing computer program instructions.

[0138] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0139] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.

[0140] The memory 602 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0141] The processor 601 implements any one of the test task pausing methods in the above embodiments by reading and executing computer program instructions stored in the memory 602 .

[0142] In one example, the device for pausing the test task may further include a communication interface 603 and a bus 604. Figure 6 As shown, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 604 and communicate with each other.

[0143] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0144] Bus 604 includes hardware, software or both, and couples the components of online data flow billing equipment to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 604 may include one or more buses. Although the embodiment of the present invention describes and illustrates a specific bus, the present invention considers any suitable bus or interconnection. In addition, in conjunction with the method for suspending the test task in the above-mentioned embodiment, the embodiment of the present application also provides a computer storage medium to realize. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the test task pausing methods in the above embodiments is implemented.

[0145] An embodiment of the present application also provides a computer program product, including a computer program, which implements any one of the test task pausing methods in the above embodiments when the computer program is executed by a processor.

[0146] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0147] The functional blocks shown in the above structural block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0148] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0149] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0150] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A method for pausing a test task, characterized in that: include: Obtain identification information sent by the system under test based on a preset time; In the case where the identification information indicates that the target test task is suspended, adding the target test task to a queue to be started; Suspending the test tasks in the queue to be started in sequence; When all the test tasks in the to-be-started queue are paused, a pause completion message is sent to the system under test.

2. The method according to claim 1, characterized in that After acquiring the identification information sent by the system under test based on the preset time, the method further includes: In the case where the identification information indicates that the target test task is suspended, the suspension information of the target test task is saved, where the suspension information includes operation ID information, task ID information, case name information, scenario name information, and tester number information; When the identification information indicates that the target test task is suspended, adding the target test task to a queue to be started includes: In the case where the identification information indicates that the target test task is suspended, the target test task is sequentially added to the queue to be started according to the running ID information corresponding to the test worker number information.

3. The method according to claim 1, characterized in that The method further comprises: In the case where the identification information represents the running of the test task, detecting whether to save the pause record information; In the case of saving the pause record information, the test tasks in the queue to be started are started according to the first-in-first-out rule.

4. The method according to claim 3, characterized in that In the case of saving the pause record information, starting the test tasks in the queue to be started according to the first-in-first-out rule, including: In the case of saving the pause record information, detecting whether the test task is in the first position of the queue to be started; When the test task is in the first position in the queue to be started, restart the test task; The pause information of the test task is deleted and the test task is removed from the queue to be started.

5. The method according to claim 4, characterized in that After detecting whether the test task is in the first position of the queue to be started, the method further includes: When the test task is not in the first position of the queue to be started, the identification information sent by the system under test is obtained based on the preset time.

6. The method according to claim 4, characterized in that After deleting the pause information of the test task and removing the test task from the queue to be started, the method further includes: Detecting the number of test tasks in the queue to be started; When the number of test tasks in the queue to be started is zero, restart completion information is sent to the system under test.

7. The method according to claim 6, characterized in that After detecting the number of test tasks in the queue to be started, the method further includes: When the number of test tasks in the queue to be started is not zero, obtaining a first test task located at the first position from the queue to be started; Restart the first test task; The pause information of the first test task is deleted and the first test task is removed from the queue to be started.

8. A device for pausing a test task, characterized in that: The device comprises: An acquisition module, the acquisition module is used to acquire identification information sent by the system under test based on a preset time; An adding module, the adding module is used to add the target test task to the queue to be started when the identification information indicates that the target test task is suspended; A pause module, the pause module is used to sequentially pause the test tasks in the queue to be started; A sending module is used to send pause completion information to the system under test when all test tasks in the queue to be started are paused.

9. A device for pausing a test task, characterized in that: The device comprises: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method for pausing a test task as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for pausing a test task as described in any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the method for pausing a test task as described in any one of claims 1 to 7.