Debugging method and device for test flow, electronic device and storage medium
By acquiring debugging information from semiconductor automated test equipment and using a preset pause entry function for unified judgment, the problem of low debugging efficiency and accuracy under multiple pause conditions is solved, and a more efficient and accurate test process debugging is achieved.
Patent Information
- Application Number
- CN202611664242.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-27
AI Technical Summary
In the debugging of the test process of semiconductor automated test equipment, when multiple pause conditions are triggered simultaneously, the debugging efficiency and accuracy are low, and there is uncertainty.
By obtaining debugging information of the target test process, the pause conditions are determined, and a preset pause entry function is called for unified judgment. This ensures that each test item is judged for hit status through this function before execution, and all pause conditions are handled by a single judgment entry function.
It improves the efficiency and accuracy of test process debugging, reduces confusion and uncertainty under multiple pause conditions, and enhances the applicability of debugging.
Smart Images

Figure CN123176633A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to semiconductor testing technology, and in particular to a method and apparatus for debugging a test process, electronic devices, and storage media. Background Technology
[0002] During the development and verification phase of automated test equipment (ATE), in order to improve the accuracy of the test process in the ATE, it is usually necessary to perform partial debugging of the test process to confirm the accuracy of the test logic of a certain test process.
[0003] In related technologies, when debugging the test process of ATE equipment, the test process is usually debugged on a test item basis. For example, test items referenced by opcodes such as test, call, for loop, loop, and if statement can be debugged. During the debugging of test items, multiple pause conditions are usually involved. When multiple pause conditions are met simultaneously, pause processing depends on the call stack order or random judgment. The pause processing has uncertainty, resulting in low debugging efficiency and accuracy. Summary of the Invention
[0004] This disclosure provides a debugging method and apparatus, electronic device and storage medium for a test process, to improve the efficiency and accuracy of debugging.
[0005] One aspect of this disclosure provides a debugging method for a test process, comprising: acquiring first debugging information and / or second debugging information for a test item in a target test process; wherein the first debugging information is used to indicate a pause position for debugging the test item, and the second debugging information is used to indicate a pause rule for debugging the test item; determining a first pause condition based on the first debugging information and / or the second debugging information; and debugging the test item based on the first pause condition using a preset pause entry function; wherein the preset pause entry function is a unique determination entry function used to determine the pause of any test item in the target test process before execution.
[0006] In one example, the step of debugging the item to be tested based on the first pause condition by means of a preset pause entry function includes: calling the hit status detection function corresponding to at least one pause condition included in the first pause condition through the preset pause entry function to perform hit status detection on the corresponding pause condition; in response to the hit status detection result of the at least one pause condition being a miss, the preset pause entry function returns and the item to be tested is executed.
[0007] In one example, the step of debugging the item to be tested based on the first pause condition using a preset pause entry function includes: calling the hit status detection function corresponding to at least one pause condition included in the first pause condition through the preset pause entry function to perform hit status detection on the corresponding pause condition; responding to the presence of a pause condition with a hit status detection result among the at least one pause condition, determining a target pause condition based on the hit status detection result of the pause condition through the preset pause entry function; and debugging the item to be tested based on the target pause condition through the preset pause entry function.
[0008] In one example, determining the target pause condition based on the pause condition that has been hit by the hit status detection result includes: in response to the number of pause conditions that have been hit by the hit status detection result being one, determining the pause condition that has been hit by the hit status detection result as the target pause condition; in response to the number of pause conditions that have been hit by the hit status detection result being multiple, filtering the target pause condition from the multiple pause conditions that have been hit by the hit status detection result through the preset pause entry function; wherein, the filtering method may include a priority filtering method or a filtering method of looking up a rule table.
[0009] In one example, the step of selecting a target pause condition from multiple pause conditions with hit status detection results includes: comparing the priorities of the multiple pause conditions with hit status detection results; and determining the pause condition with the highest priority among the multiple pause conditions with hit status detection results as the target pause condition.
[0010] In one example, comparing the priority of the multiple hit status detection results for pause conditions includes: in response to the multiple hit status detection results for pause conditions including a single-step debugging pause condition, determining that the single-step debugging pause condition has the highest priority; wherein the single-step debugging pause condition is used to indicate that when debugging the item to be tested, the process should pause after executing the item to be tested.
[0011] In one example, comparing the priority of the multiple hit state detection results for pause conditions includes: in response to the multiple hit state detection results for pause conditions not including single-step debugging pause conditions but including breakpoint pause conditions, determining that the breakpoint pause condition has the highest priority; wherein the breakpoint pause condition is used to indicate that when debugging the item to be tested, pause at the breakpoint.
[0012] In one example, the step of debugging the item to be tested based on the first pause condition through a preset pause entry function includes: debugging the item to be tested based on the first pause condition and a second pause condition through the preset pause entry function; wherein, the second pause condition includes a pause condition pre-configured by the system and a pause condition determined based on the debugging of other test items besides the item to be tested in the target test process.
[0013] In one example, debugging the item to be tested based on the target pause condition through the preset pause entry function includes: generating and storing a pause reason based on the target pause condition through the preset pause entry function; wherein the pause reason describes the reason for pausing when debugging the item to be tested; refreshing the user interface through the preset pause entry function to highlight the item to be tested on the user interface; calling a pause function through the preset pause entry function to pause the execution of the item to be tested; and waking up the pause function in response to receiving a user confirmation operation to end the pause state and execute the item to be tested through the preset pause entry function.
[0014] Another aspect of this disclosure provides a debugging apparatus for a test process, comprising: an acquisition module, configured to acquire first debugging information and / or second debugging information of a test item in a target test process; wherein the first debugging information is used to indicate a pause position for debugging the test item, and the second debugging information is used to indicate a pause rule for debugging the test item; a determination module, configured to determine a first pause condition based on the first debugging information and / or the second debugging information; and a debugging module, configured to debug the test item based on the first pause condition using a preset pause entry function; wherein the preset pause entry function is a unique determination entry function used to determine the pause of any test item in the target test process before execution.
[0015] In another aspect of this disclosure, an electronic device is provided, comprising: a memory for storing a computer program; and a processor for executing the computer program stored in the memory, wherein when the computer program is executed, it implements a debugging method for a test process provided in any embodiment of this disclosure.
[0016] In another aspect, this disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a debugging method for a test process provided in any embodiment of this disclosure.
[0017] In another aspect of this disclosure, a computer program is provided, including computer program instructions that, when executed by a processor, implement a debugging method for a test process provided in any embodiment of this disclosure.
[0018] Based on the embodiments of this disclosure, first debugging information can be obtained to indicate the pause position for debugging the item under test; or, second debugging information can be obtained to indicate the pause rules for debugging the item under test; or, first debugging information and second debugging information can also be obtained; then, based on the first debugging information and / or the second debugging information, a first pause condition for debugging the item under test can be determined; subsequently, a pre-set preset pause entry function can be called, and the item under test can be debugged based on the first pause condition through the preset pause entry function; wherein, the preset pause entry function refers to the unique determination entry function used to determine the pause of any test item in the target test process before its execution.
[0019] In other words, when debugging any test item in the target test process, a preset pause entry function must be forcibly called before the test item is executed. The pause determination of the test item is made through the preset pause entry function, and the preset pause entry function is the only entry function for determining the pause of the test item. When debugging the test item, the hit status of all pause conditions of the test item can only be determined through the preset pause entry function.
[0020] As can be seen, when debugging the test item according to the debugging method provided in this disclosure, a preset pause entry function must be called before the test item is executed to determine the hit status of all pause conditions of the test item. Moreover, the hit status of all hit conditions of the test item can only be determined through this preset pause entry function. This can bring the pause determination of scattered and conflicting multiple pause conditions into a centralized and definite unified decision. When multiple pause conditions are hit, a unified decision can be made according to the clear rules of the preset pause entry function, eliminating confusion and uncertainty. This can greatly improve the efficiency and accuracy of debugging and has better applicability.
[0021] The technical solutions of this disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0022] The accompanying drawings, which form part of this specification, illustrate embodiments of this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0023] This disclosure will become clearer with reference to the accompanying drawings and the following detailed description, wherein: Figure 1 This is a schematic diagram of the structure of one embodiment of the debugging system disclosed herein.
[0024] Figure 2 This is a schematic diagram of the structure of one embodiment of the unified pause entry point of this disclosure.
[0025] Figure 3 This is a flowchart of one embodiment of the debugging method for the test process disclosed herein.
[0026] Figure 4 This is a flowchart of an embodiment of the method disclosed herein for debugging an item to be tested based on a first pause condition by using a preset pause entry function.
[0027] Figure 5 This is a flowchart of another embodiment of the method for debugging the item to be tested by pre-setting a pause entry function based on a first pause condition.
[0028] Figure 6 This is a flowchart of an embodiment of a method for selecting a target pause condition from multiple pause conditions whose hit status detection results are hits.
[0029] Figure 7 This is a flowchart of an embodiment of the method disclosed herein for debugging an item to be tested based on a target pause condition by using a preset pause entry function.
[0030] Figure 8 This is a flowchart of another embodiment of the debugging method for the test process disclosed herein.
[0031] Figure 9 This is a flowchart of another embodiment of the debugging method for the test process disclosed herein.
[0032] Figure 10 This is a schematic diagram of the structure of a debugging apparatus for the test process of this disclosure.
[0033] Figure 11 This is a schematic diagram of the structure of an application embodiment of the electronic device disclosed herein. Detailed Implementation
[0034] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.
[0035] Those skilled in the art will understand that the terms "first," "second," etc., in the embodiments of this disclosure are only used to distinguish different steps, devices, or modules, and do not represent any specific technical meaning, nor do they indicate a necessary logical order between them.
[0036] It should also be understood that in the embodiments disclosed herein, "a plurality of" may refer to two or more, and "at least one" may refer to one, two or more.
[0037] It should also be understood that any component, data or structure mentioned in the embodiments of this disclosure can generally be understood as one or more unless expressly defined or given to the contrary in the context.
[0038] Furthermore, the term "and / or" in this disclosure is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this disclosure generally indicates that the preceding and following related objects have an "or" relationship.
[0039] It should also be understood that the description of the various embodiments in this disclosure emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.
[0040] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.
[0041] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use.
[0042] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0043] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0044] This disclosure can be applied to electronic devices such as terminal devices, computer systems, and servers, and can operate with a wide range of other general-purpose or special-purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments, and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, and servers include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments including any of the above systems, etc.
[0045] Electronic devices such as terminal devices, computer systems, and servers can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in distributed cloud computing environments, where tasks are executed by remote processing devices linked through communication networks. In distributed cloud computing environments, program modules can reside on local or remote computing system storage media, including storage devices.
[0046] During the development and verification phase of automated test equipment (ATE), in order to improve the accuracy of the test process in the ATE, it is usually necessary to perform partial debugging of the test process to confirm the accuracy of the test logic of a certain test process.
[0047] In related technologies, when debugging the test process of ATE equipment, the test process is usually debugged on a test item basis. For example, test items referenced by opcodes such as test, call, for loop, loop, and if condition judgment can be debugged. During the debugging of test items, multiple pause conditions are usually involved. When multiple pause conditions are met simultaneously, pause processing depends on the call stack order or random judgment. The pause processing has uncertainty, resulting in low debugging efficiency and accuracy.
[0048] To address the uncertainty in pause handling caused by multiple pause conditions being met, thereby improving the efficiency and accuracy of test process debugging, embodiments of this disclosure provide a test process debugging method, apparatus, electronic device, and storage medium. In this debugging method, first debugging information can be acquired to indicate the pause position for debugging the item under test; or, second debugging information can be acquired to indicate the pause rules for debugging the item under test; or, both first and second debugging information can be acquired. Then, based on the first and / or second debugging information, a first pause condition for debugging the item under test can be determined. Afterward, a pre-set preset pause entry function can be invoked to debug the item under test based on the first pause condition. The preset pause entry function is the unique entry function used to determine the pause of any test item in the target test process before its execution.
[0049] In other words, when debugging any test item in the target test process, a preset pause entry function must be forcibly called before the test item is executed. The pause determination of the test item is made through the preset pause entry function, and the preset pause entry function is the only entry function for determining the pause of the test item. When debugging the test item, the hit status of all pause conditions of the test item can only be determined through the preset pause entry function.
[0050] As can be seen, when debugging the test item according to the debugging method provided in this disclosure, a preset pause entry function must be called before the test item is executed to determine the hit status of all pause conditions of the test item. Moreover, the hit status of all hit conditions of the test item can only be determined through this preset pause entry function. This can bring the pause determination of scattered and conflicting multiple pause conditions into a centralized and definite unified decision. When multiple pause conditions are hit, a unified decision can be made according to the clear rules of the preset pause entry function, eliminating confusion and uncertainty. This can greatly improve the efficiency and accuracy of debugging and has better applicability.
[0051] See Figure 1 , Figure 1 This is a schematic diagram of one embodiment of the debugging system provided in this disclosure. The debugging method for the test process provided in this disclosure can be applied to this debugging system. Figure 1 As shown, the debugging system 10 may include: an instruction receiving unit 11, a status detection unit 12, a unified pause entry point 13, and an execution scheduling unit 14. It should be understood that the debugging system 10 may also include... Figure 1 This disclosure does not limit the number of more or fewer parts or devices shown.
[0052] For example, the instruction receiving unit 11 can be used to receive the user's debugging operation and obtain debugging information based on the user's debugging operation.
[0053] In one example, the instruction receiving unit 11 can be used to receive a user's first debugging operation and obtain first debugging information based on the first debugging operation, wherein the first debugging information is used to indicate the pause position for debugging the item to be tested.
[0054] For example, the debugging system 10 may also include a user interface, which may display multiple pause position controls. These pause position controls may include breakpoint controls, one-click breakpoint cancellation controls, etc. It should be understood that pause position controls may also include other controls, which will not be listed here.
[0055] When debugging a test item, the user can select at least one pause position control on the user interface. After receiving the user's operation of selecting at least one pause position control on the user interface, the instruction receiving unit 11 can be considered to have received the first debugging operation, and then the instruction receiving unit 11 can obtain the first debugging information indicating the pause position corresponding to the selected at least one pause position control.
[0056] In one example, the instruction receiving unit 11 can be used to receive a second debugging operation from a user, and based on the second debugging operation, obtain second debugging information, wherein the second debugging information is used to indicate the pause rules for debugging the item to be tested.
[0057] For example, the user interface can also display multiple pause rule controls (also known as debug command controls). These pause rule controls may include Step controls, Continue controls, Run toCursor controls, etc. It should be understood that pause rule controls may also include other controls, which will not be listed here.
[0058] When debugging a test item, the user can select a pause rule control on the user interface. After receiving the user's operation of selecting a pause rule control on the user interface, the instruction receiving unit 11 can be considered to have received a second debugging operation. Then, the instruction receiving unit 11 can obtain second debugging information indicating the pause rule corresponding to the aforementioned selected pause rule control.
[0059] In one example, the instruction receiving unit 11 can be used to receive a third debugging operation from a user, and based on the third debugging operation, obtain first debugging information for indicating the pause position for debugging the item under test, and second debugging information for indicating the pause rule for debugging the item under test.
[0060] For example, the user interface can display multiple pause position controls and multiple pause rule controls. When debugging the item to be tested, the user can select at least one pause position control and one pause rule control required for debugging on the user interface. After the instruction receiving unit 11 receives the user's operation of selecting at least one pause position control and one pause rule control required for debugging on the user interface, it can be considered that a third debugging operation has been received. Then the instruction receiving unit 11 can obtain first debugging information for indicating the pause position corresponding to the selected at least one pause position control, and second debugging information for indicating the pause rule corresponding to the selected pause rule control.
[0061] For example, after the instruction receiving unit 11 obtains the first debugging information and / or the second debugging information, it can trigger the status detection unit 12 to determine the first pause condition based on the first debugging information and / or the second debugging information. That is, if the instruction receiving unit 11 only obtains the first debugging information, it can trigger the status detection unit 12 to determine the first pause condition based on the first debugging information. If the instruction receiving unit 11 only obtains the second debugging information, it can trigger the status detection unit 12 to determine the first pause condition based on the second debugging information. If the instruction receiving unit 11 obtains both the first and second debugging information, it can trigger the status detection unit 12 to determine the first pause condition based on both the first and second debugging information.
[0062] For example, the unified pause entry 13 can determine a pause decision (or target pause condition) for debugging the item under test based on a first pause condition through a preset pause entry function, and then debug the item under test based on the pause decision. For example, the unified pause entry 13 can trigger the execution scheduling unit 14 to pause or continue the execution of the item under test based on the pause decision of the unified pause entry 13.
[0063] It should be noted that each unit in the debugging system 10 may also have other functions or roles, which will not be listed here. Furthermore, the functions or roles of each unit in the debugging system 10 can be found in subsequent embodiments.
[0064] See Figure 2 , Figure 2 A schematic diagram of the structure of one embodiment of the unified pause entry provided in this disclosure is shown. Figure 2 As shown. The unified pause entry point 13 may include: a unified pause entry function 131, a multi-event synchronization determination module 132, a priority decision module 133, and a pause / continue branch module 134.
[0065] For example, the unified pause entry function (or preset pause entry function) 131 is the debugging pause entry point. Each executable node (or test item) in the target test process, such as the test item referenced by various opcodes such as test, call, for loop, loop, and if, must forcibly call the unified pause entry function 131 before execution. Moreover, the unified pause entry function 131 is the only blocking point. That is, if any test item in the target test process is paused during debugging, it must be a pause triggered by the unified pause entry function 131.
[0066] After the unified pause entry function 131 is called, the multi-event synchronization judgment module 132 can be triggered to obtain at least one pause condition included in the first pause condition from the unified pause entry function 131, use the hit status detection function corresponding to each pause condition to perform hit status detection on the corresponding pause condition, and output the judgment result (or hit status detection result).
[0067] The priority decision module 133 can select a target pause condition from at least one hit pause condition based on the judgment result output by the multi-event synchronization judgment module 132, and output a decision instruction based on the target pause condition to instruct the pause / continue branch module 134 to output a pause or continue execution instruction. The pause instruction can trigger the execution scheduling unit 14 to pause the execution of the item to be tested. The continue execution instruction can trigger the execution scheduling unit 14 to execute the item to be tested.
[0068] See Figure 3 , Figure 3 A flowchart illustrating an embodiment of the debugging method for the test process provided in this disclosure is shown. This method can be applied to terminal devices, servers, or other devices with debugging capabilities; for example, it can be applied to… Figure 1 In the debugging system 10 shown below. The following will be... Figure 1 The debugging system 10 shown is used as an example for illustration. Figure 3 As shown, the method may include the following steps: Step S101: Obtain the first debugging information and / or the second debugging information of the item to be tested in the target test process.
[0069] The target test process refers to the test process to be debugged. The test item refers to a segment (or test item) within the target test process that needs to be debugged. For example, the target test process can be the test process for ATE equipment, and the test item can be a segment within the ATE equipment's test process that needs to be debugged.
[0070] In one example, to improve debugging flexibility and resource utilization, the target test flow can be divided into two layers: a test flow layer, which is composed of opcodes and is used to indicate the execution logic of the target test flow, referred to as the flow layer; and a program instruction layer, which is the program instruction of the target test flow.
[0071] In this scenario, the target test flow can be debugged based on the Flow layer. Furthermore, each opcode in the Flow layer can reference a program instruction fragment as a test item. The test item to be tested can be one of these test items that needs to be debugged.
[0072] For example, the item to be tested can be a test item referenced by opcodes such as test, call, for, loop, or if.
[0073] The first debugging information indicates the pause position for debugging the item under test. The second debugging information indicates the pause rule for debugging the item under test. For example, the pause position is a candidate position for pausing debugging when debugging the item under test. The pause rule is a candidate rule for pausing debugging when debugging the item under test.
[0074] For example, the pause position may include at least one of the following: a position where a breakpoint is set and enabled, a position where a breakpoint is set but not enabled, or a position where the cursor is set. The pause rule may include stepping or running to a cursor. Stepping refers to executing program instructions that control the target test flow according to the test item. Running to a cursor means pausing at the position where the cursor is set. It should be understood that both the pause position and the pause rule may include other content, which will not be listed here.
[0075] Step S102: Determine the first pause condition based on the first debugging information and / or the second debugging information.
[0076] The first pause condition serves as the input for pausing the test item during debugging, or it can be considered as the basis for pausing the test item during debugging. It should be noted that the first pause condition may include one or more pause conditions, each of which can serve as either a pause input or a pause basis.
[0077] Step S103: Debug the item to be tested based on the first pause condition by using the preset pause entry function.
[0078] The preset pause entry function is a pre-defined, unique function used to determine the pause of any test item in the target test flow before its execution. In other words, when debugging any test item (or test flow segment) in the target test flow, the preset pause entry function must be forcibly called before the test item is executed. This function is the sole entry point for determining the pause of the test item, and during debugging, all pause conditions for the test item can only be determined through this preset pause entry function.
[0079] In the debugging method of the test process provided in this embodiment, first debugging information can be obtained to indicate the pause position for debugging the item to be tested; or, second debugging information can be obtained to indicate the pause rule for debugging the item to be tested; or, first debugging information and second debugging information can also be obtained; then, based on the first debugging information and / or the second debugging information, a first pause condition for debugging the item to be tested can be determined; after that, a pre-set preset pause entry function can be called, and the item to be tested can be debugged based on the first pause condition through the preset pause entry function; wherein, the preset pause entry function refers to the unique determination entry function used to determine the pause of any test item in the target test process before its execution.
[0080] In other words, when debugging any test item in the target test process, a preset pause entry function must be forcibly called before the test item is executed. The pause determination of the test item is made through the preset pause entry function, and the preset pause entry function is the only entry function for determining the pause of the test item. When debugging the test item, the hit status of all pause conditions of the test item can only be determined through the preset pause entry function.
[0081] As can be seen, when debugging the test item according to the debugging method provided in this disclosure, a preset pause entry function must be called before the test item is executed to determine the hit status of all pause conditions of the test item. Moreover, the hit status of all hit conditions of the test item can only be determined through this preset pause entry function. This can bring the pause determination of scattered and conflicting multiple pause conditions into a centralized and definite unified decision. When multiple pause conditions are hit, a unified decision can be made according to the clear rules of the preset pause entry function, eliminating confusion and uncertainty. This can greatly improve the efficiency and accuracy of debugging and has better applicability.
[0082] The implementation of step S101 is illustrated below by way of example. There may be multiple ways to implement step S101, and it should be understood that the implementation of step S101 is not limited to the implementation methods described below.
[0083] In one example, when performing step S101, the debugging system may only obtain the first debugging information of the item to be tested.
[0084] For example, the debugging system can obtain first debugging information based on the user's first debugging operation. The first debugging operation refers to determining the pause position for debugging the item under test. That is, in response to receiving the user's first debugging operation, the debugging system can obtain first debugging information indicating the pause position based on the pause position determined by the first debugging operation.
[0085] For example, multiple pause position controls can be displayed on the user interface of the debugging system. When debugging an item to be tested, the user can select at least one pause position control required for debugging on the user interface. In response to receiving the user's operation of selecting at least one pause position control on the user interface, the debugging system can determine that a first debugging operation has been received. Then, the debugging system can obtain first debugging information indicating each pause position based on the pause position corresponding to the at least one pause position control selected in the first debugging operation.
[0086] According to the above implementation method, the first debugging information can be determined based on the user's operation, and the test items can be debugged according to the user's needs, resulting in a better user experience.
[0087] For example, for each test item in the target test process, corresponding preset pause position information can be preset. When executing step S101, the preset pause position information corresponding to the test item can be obtained, and the preset pause position information can be determined as the first debugging information. The preset pause position information includes information on at least one pause position.
[0088] According to the above implementation method, the test item can be debugged directly according to the pre-set rules, which can simplify the debugging steps, shorten the debugging time, and further improve the debugging efficiency.
[0089] In one example, when performing step S101, the debugging system may only obtain the second debugging information of the item to be tested.
[0090] For example, the debugging system can obtain second debugging information based on the user's second debugging operation. The second debugging operation refers to the operation of determining a pause rule for debugging the item to be tested. That is, in response to receiving the user's second debugging operation, the debugging system can obtain second debugging information indicating the pause rule based on the pause rule determined by the second debugging operation.
[0091] For example, multiple pause rule controls can be displayed on the user interface of the debugging system. When debugging an item to be tested, the user can select a pause rule control on the user interface. In response to receiving the user's selection of a pause rule control on the user interface, the debugging system can determine that a second debugging operation has been received. Then, based on the pause rule corresponding to the pause rule control selected in the second debugging operation, the debugging system can obtain second debugging information to indicate that pause rule.
[0092] According to the above implementation method, the first debugging information can be determined based on the user's operation, and the test items can be debugged according to the user's needs, resulting in a better user experience.
[0093] For example, corresponding preset pause rule information can be pre-set for each test item in the target test process. When executing step S101, the preset pause rule information corresponding to the test item can be obtained, and the preset pause rule information can be determined as the second debugging information. The preset pause rule information includes information about the pause rule.
[0094] According to the above implementation method, the test item can be debugged directly according to the pre-set rules, which can simplify the debugging steps, shorten the debugging time, and further improve the debugging efficiency.
[0095] In one example, when performing step S101, the debugging system can obtain the first debugging information and the second debugging information of the item to be tested.
[0096] For example, the debugging system can obtain first debugging information and second debugging information based on the user's third debugging operation. The third debugging operation refers to the operation of determining the pause position and pause rule for debugging the item under test. That is, in response to receiving the user's third debugging operation, the debugging system can obtain first debugging information indicating the pause position and second debugging information indicating the pause rule, respectively, based on the pause position and pause rule determined by the third debugging operation.
[0097] For example, multiple pause position controls and multiple pause rule controls can be displayed on the user interface of the debugging system. When debugging an item to be tested, the user can select at least one pause position control and one pause rule control on the user interface. In response to receiving the user's selection of at least one pause position control and one pause rule control on the user interface, the debugging system can determine that a third debugging operation has been received. Then, based on the pause position corresponding to the at least one pause position control selected by the third debugging operation, the debugging system can obtain first debugging information indicating each pause position, and based on the pause rule corresponding to the pause rule control selected by the third debugging operation, it can obtain second debugging information indicating the pause rule.
[0098] According to the above implementation method, the first debugging information can be determined based on the user's operation, and the test items can be debugged according to the user's needs, resulting in a better user experience.
[0099] For example, for each test item in the target test process, corresponding preset pause position information and preset pause rule information can be pre-set. When executing step S101, the preset pause position information and preset pause rule information corresponding to the test item can be obtained. Then, the preset pause position information is determined as the first debugging information, and the preset pause rule information is determined as the second debugging information. The preset pause position information includes information about at least one pause position. The preset pause rule information includes information about pause rules.
[0100] According to the above implementation method, the test item can be debugged directly according to the pre-set rules, which can simplify the debugging steps, shorten the debugging time, and further improve the debugging efficiency.
[0101] In one example, when multiple pause position controls and multiple pause rule controls are displayed simultaneously on the user interface, the user can select only at least one pause position control. In this case, the debugging system only obtains the first debugging information when executing step S101. Similarly, when multiple pause position controls and multiple pause rule controls are displayed simultaneously on the user interface, the user can also select only one pause rule control. In this case, the debugging system only obtains the second debugging information when executing step S101.
[0102] It should be understood that step S101 can also be implemented in other ways, which will not be listed here.
[0103] The implementation of step S102 is described below by way of example. There may be multiple implementations of step S102, and it should be understood that the implementation of step S102 is not limited to the implementations described below.
[0104] In one example, if the debugging system only obtains the first debugging information, the first pause condition can be determined based on the first debugging information.
[0105] For example, a first mapping relationship between pause positions and first preset pause conditions can be pre-constructed. After the debugging system obtains the first debugging information, it can obtain the first preset pause conditions corresponding to each pause position indicated by the first debugging information based on the first mapping relationship, and determine the first pause condition based on each first preset pause condition.
[0106] For example, when the pause position is a location where breakpoints are set and enabled, the corresponding first preset pause condition can be a breakpoint pause condition. This breakpoint pause condition is whether the current test item has a breakpoint set and enabled. Based on the first mapping relationship, the determined first pause condition can be whether the test item has a breakpoint set and enabled, i.e., whether a breakpoint is set and enabled when debugging the test item. When the pause position is a location where breakpoints are set but not enabled, the corresponding first preset pause condition can also be a breakpoint pause condition. Based on the first mapping relationship, the determined first pause condition can be whether the test item has a breakpoint set and enabled. When the pause position is the location of the cursor, the corresponding first preset pause condition can be a target position pause condition. This target position pause condition can be whether the current test item is the test item where the cursor is located. Based on the first mapping relationship, the determined first pause condition can be whether the test item is the test item where the cursor is located. It should be understood that when the pause position indicated by the first debugging information includes multiple pause positions as described above, the first pause condition can include multiple first pause conditions as described above.
[0107] In one example, if the debugging system only obtains the second debugging information, the first pause condition can be determined based on the second debugging information.
[0108] For example, a second mapping relationship between pause rules and second preset pause conditions can be pre-constructed. After the debugging system obtains the second debugging information, it can obtain the second preset pause condition corresponding to the pause rule indicated by the second debugging information based on the second mapping relationship, and determine the first pause condition based on the second preset pause condition.
[0109] For example, when the pause rule is single-step, the corresponding second preset pause condition can be a single-step debugging pause condition. This single-step debugging pause condition can be whether the current test item is in the process of single-step execution. Therefore, based on the second mapping relationship, the determined first pause condition can be whether the item to be tested is in the process of single-step execution. As another example, when the pause rule is target jump, the corresponding second preset pause condition can be a target jump pause condition. This target jump pause condition can be whether the current test item is in the process of target jump execution. Therefore, based on the second mapping relationship, the determined first pause condition can be whether the item to be tested is in the process of target jump execution.
[0110] In one example, when the debugging system obtains first debugging information and second debugging information, the first pause condition can be determined based on the first debugging information and the second debugging information.
[0111] For example, in this case, the first pause condition can be determined based on the first mapping relationship, and simultaneously, the first pause condition can be determined based on the second mapping relationship. The specific implementation method can be referred to the content of the foregoing embodiments, and will not be repeated here. Furthermore, a third mapping relationship between the pause position and pause rule and the third preset pause condition can be pre-constructed. After the debugging system obtains the first debugging information and the second debugging information, in addition to determining the corresponding first pause conditions based on the first and second mapping relationships respectively, it can also determine whether there exists a third preset pause condition corresponding to both the pause position indicated by the first debugging information and the pause rule indicated by the second debugging information, based on the third mapping relationship. If such a condition exists, the first pause condition is determined based on the third preset pause condition corresponding to both the pause position indicated by the first debugging information and the pause rule indicated by the second debugging information. The implementation method can be referred to the content of the foregoing embodiments, and will not be detailed here.
[0112] The implementation of step S103 is illustrated below. There are multiple possible implementations of step S103, and it should be understood that the implementation of step S103 is not limited to the implementations described below.
[0113] In one example, see Figure 4 , Figure 4 A flowchart illustrating an embodiment of the method provided in this disclosure for debugging an item to be tested based on a first pause condition using a preset pause entry function. Figure 4 As shown, the method may include the following steps: Step S1031: Call the hit status detection function corresponding to at least one of the first pause conditions through the preset pause entry function to perform hit status detection on the corresponding pause conditions.
[0114] The hit status detection function is pre-set in the debugging system to detect whether the corresponding pause condition has been met; that is, it is used to detect whether the current running state meets the corresponding pause condition. It should be understood that different hit status detection functions correspond to different pause conditions. As can be seen from the foregoing embodiments, the number of first pause conditions can be one or more; that is, the first pause condition can include one or more pause conditions.
[0115] Based on this, when the debugging system executes step S1031, it needs to call the hit status detection function corresponding to each pause condition in the first pause condition through the preset pause entry function to perform hit status detection on the corresponding pause condition and detect whether the corresponding pause condition has been hit. The hit status detection function corresponding to each pause condition is preset in the debugging system to detect whether the corresponding pause condition has been hit.
[0116] For example, the hit status detection function corresponding to each pause condition can determine whether the pause condition has been hit based on the corresponding pause position and / or pause rule. For instance, if the pause condition is determined based on the first debugging information, then the hit status can be determined based on the corresponding pause position. As another example, if the pause condition is determined based on the second debugging information, then the hit status can be determined based on the corresponding pause rule. And again, if the pause condition is determined based on both the first and second debugging information, then the hit status can be determined based on the corresponding pause position and / or pause rule.
[0117] Step S1032: In response to the fact that the status detection results of at least one of the first pause conditions are all unsuccessful, the preset pause entry function returns and the test item is executed.
[0118] If the hit status detection result of each of the first pause conditions is a miss, it can be considered that no pause is needed for this debugging. In this case, the preset pause entry function returns, that is, the debugging system ends the call to the preset pause entry function and directly executes the test item, that is, executes the program instructions of the test item itself.
[0119] In one example, see Figure 5 , Figure 5 A flowchart of another embodiment of the method provided in this disclosure for debugging an item to be tested based on a first pause condition using a preset pause entry function is shown. Figure 5 As shown, the method may include the following steps: Step S1033: Call the hit status detection function corresponding to at least one of the first pause conditions through the preset pause entry function to perform hit status detection on the corresponding pause conditions.
[0120] The implementation method of step S1033 can be referred to the implementation method of step S1031, and will not be repeated here.
[0121] Step S1034: In response to the existence of a hit status detection result of at least one of the first pause conditions, the target pause condition is determined based on the hit status detection result of the pause condition through a preset pause entry function.
[0122] If one or more of the at least one pause condition included in the first pause condition are met, the target pause condition for debugging the item to be tested can be selected from the one or more pause conditions that are met by a preset pause entry function.
[0123] Step S1035: Debug the item to be tested based on the target pause condition by using a preset pause entry function.
[0124] In one example, when executing step S1034, the target pause condition is determined based on the pause condition where the hit status detection result is a hit, using a preset pause entry function. This can be implemented as follows: If there is only one pause condition with a hit status detection result, that pause condition is determined as the target pause condition; if there are multiple pause conditions with hit status detection results, the target pause condition is selected from these multiple conditions using the preset pause entry function. The methods for selecting the target pause condition can include various approaches, such as priority filtering or filtering by consulting a rule table.
[0125] In one example, see Figure 6 , Figure 6 A flowchart illustrating an embodiment of the method provided in this disclosure for selecting a target pause condition from multiple pause conditions whose hit status detection results are correct is shown. Figure 6 As shown, the method may include the following steps: Step S10341: Compare the priority of pause conditions that are hits among multiple hit status detection results.
[0126] The pause conditions for responding to multiple hit status detection results include the single-step debugging pause condition, which has the highest priority. The single-step debugging pause condition is used to indicate that when debugging the item under test, the process should pause after executing the item under test.
[0127] In response to multiple hit status detection results indicating a hit, excluding single-step debugging pause conditions but including breakpoint pause conditions, the breakpoint pause condition is determined to have the highest priority. The breakpoint pause condition instructs that debugging of the item under test should pause at the breakpoint. For example, if the breakpoint is set before the first line of the program instruction of the item under test and is enabled, execution of the item under test will pause before execution. For example, if the breakpoint is set after the last line of the program instruction of the item under test and is enabled, execution of the item under test will pause after execution.
[0128] Step S10342: Determine the highest priority pause condition among the multiple pause conditions with a hit status detection result as the target pause condition.
[0129] In one example, a rule table can be pre-set to filter target pause conditions, and then the target pause condition can be filtered out from multiple pause conditions whose hit status detection results are hit based on the rule table.
[0130] For example, if multiple hit status detection results indicate that the pause condition includes the single-step debugging pause condition, the single-step debugging pause condition can be identified as the target pause condition by consulting the rule table. As another example, if multiple hit status detection results indicate that the pause condition does not include the single-step debugging pause condition but does include the breakpoint pause condition, the breakpoint pause condition can be identified as the target pause condition by consulting the rule table.
[0131] It should be understood that there are other ways to filter target pause conditions, which will not be listed here.
[0132] In one example, when performing step S1035, see [link to relevant documentation]. Figure 7 , Figure 7 A flowchart illustrating an embodiment of the method provided in this disclosure for debugging an item to be tested based on target pause conditions using a preset pause entry function. Figure 7 As shown, the method may include the following steps: Step S10351: Generate and store the pause reason based on the target pause condition through the preset pause entry function.
[0133] The pause reason describes why debugging the item under test is paused. For example, if the target pause condition is a breakpoint pause condition, the pause reason can be an indication containing the breakpoint identifier. As another example, if the target pause condition is a single-step debugging pause condition, the pause reason can be an indication containing the single-step identifier. Pause reasons for other target pause conditions can be referenced and will not be listed here. Storing the pause reasons facilitates subsequent user query and analysis, improving applicability.
[0134] Step S10352: Refresh the user interface by using the preset pause entry function to highlight the item to be tested on the user interface.
[0135] Highlighting the item to be tested on the user interface makes it easier for users to analyze the execution logic (or test logic) of the item to be tested based on the debugging results, thereby improving the accuracy of the test logic of the item to be tested.
[0136] Step S10353: Call the pause function through the preset pause entry function to pause the execution of the item to be tested.
[0137] The pause function is pre-set in the debugging system and can be used to pause the execution of the item to be tested.
[0138] Step S10354: In response to receiving the user's confirmation operation, wake up the pause function to end the pause state through the preset pause entry function and execute the test item.
[0139] After pausing the execution of the item to be tested, if a user's confirmation is received, the pause function can be woken up. The pause function can then trigger a preset pause entry function to end the paused state of the item to be tested and return, and then the item to be tested can be executed.
[0140] Debugging the test items in the above manner can provide users with intuitive pause location and context, eliminating the need for users to manually search for pause locations and test items that have paused, thus further improving debugging efficiency and user debugging experience.
[0141] In one example, the debugging system can pre-set multiple pause conditions. When debugging any test item in any test process, it is necessary to check the hit status of the multiple pause conditions pre-set in the debugging system.
[0142] Furthermore, when debugging the test items in the target test process, the debugging of other test items in the target test process may generate pause conditions that affect the debugging of the test items.
[0143] In this embodiment of the disclosure, other pause conditions that affect the debugging of the item to be tested, besides the first pause condition, are referred to as the second pause condition. The second pause condition may include pause conditions pre-set in the debugging system and pause conditions generated during the debugging of other test items in the target test process that affect the debugging of the item to be tested.
[0144] Based on this, when executing step S103, it can also be implemented as follows: The test item is debugged based on a first pause condition and a second pause condition using a preset pause entry function. The second pause condition includes a system-pre-configured pause condition and a pause condition determined based on debugging other test items besides the test item in the target test process. Further implementation methods can be found in the foregoing embodiments and will not be repeated here.
[0145] See Figure 8 , Figure 8 A flowchart illustrating another embodiment of the debugging method for the test process provided in this disclosure is shown. Figure 8 As shown, the method may include the following steps: Step S201: Obtain the first debugging information and / or the second debugging information of the item to be tested in the target test process.
[0146] Step S202: Determine the first pause condition based on the first debugging information and / or the second debugging information.
[0147] Step S203: Call the hit status detection function corresponding to at least one of the first pause conditions through the preset pause entry function to perform hit status detection on the corresponding pause conditions.
[0148] Step S204: In response to the fact that the hit status detection result of at least one of the first pause conditions is not hit, the preset pause entry function returns and the test item is executed.
[0149] Step S205: In response to the existence of a hit status detection result of at least one of the first pause conditions, the target pause condition is determined based on the hit status detection result of the pause condition by using a preset pause entry function.
[0150] Step S206: In response to the fact that the number of pause conditions with a hit status detection result is one, the pause condition with a hit status detection result is determined as the target pause condition, and then step S211 is executed.
[0151] Step S207: In response to the fact that there are multiple pause conditions with hit status detection results, the priority of multiple pause conditions with hit status detection results is compared through a preset pause entry function.
[0152] Step S208: In response to multiple hit status detection results indicating a hit, including the single-step debugging pause condition, determine that the single-step debugging pause condition has the highest priority, and then execute step S210.
[0153] Step S209: In response to multiple hit status detection results, the pause conditions do not include single-step debugging pause conditions but include breakpoint pause conditions. The breakpoint pause condition is determined to have the highest priority.
[0154] Step S210: Determine the highest priority pause condition among the multiple pause conditions with a hit status detection result as the target pause condition.
[0155] Step S211: Debug the item to be tested based on the target pause condition by using a preset pause entry function.
[0156] It should be noted that, Figure 8 The implementation methods of each step can be referred to the content of the foregoing embodiments, and will not be repeated here.
[0157] according to Figure 8 The method shown allows for debugging of test items by using a priority strategy pre-set in the preset pause entry function. This strategy determines the hit status of all hit conditions for the test item and filters out the final target pause condition for debugging. This not only avoids the uncertainty when multiple pause conditions are hit, but also allows setting the priority of pause conditions according to the actual application scenario requirements. This results in debugging test items in a way that best meets the debugging needs, leading to a better user experience.
[0158] See Figure 9, Figure 9 A flowchart illustrating another embodiment of the debugging method for the test process provided in this disclosure is shown. Figure 9 As shown, the method may include the following steps: Step S301: Begin debugging the items to be tested in the target test process.
[0159] Step S302: In response to the pre-set pause conditions in the debugging system, debug the item to be tested based on the pre-set pause conditions in the debugging system.
[0160] Step S303: In response to the absence of a pre-set pause condition in the debugging system, but the generation of a pause condition related to the test item during the debugging of other test items in the target test process, the test item is debugged based on the pause condition related to the test item.
[0161] Step S304: In response to the absence of a pre-set pause condition in the debugging system and the absence of a pause condition related to the test item generated during the debugging of other test items in the target test process, obtain the first debugging information and / or the second debugging information of the test item.
[0162] Step S305: Determine the first pause condition based on the first debugging information and / or the second debugging information.
[0163] Step S306: Call the hit status detection function corresponding to at least one of the first pause conditions through the preset pause entry function to perform hit status detection on the corresponding pause conditions.
[0164] Step S307: In response to the fact that the hit status detection result of at least one of the first pause conditions is not hit, the preset pause entry function returns and the test item is executed.
[0165] Step S308: In response to the existence of a hit status detection result of at least one of the first pause conditions, a target pause condition is determined based on the hit status detection result of the pause condition through a preset pause entry function.
[0166] Step S309: In response to the fact that the number of pause conditions with a hit status detection result is one, determine the pause condition with a hit status detection result as the target pause condition, and then execute step S314.
[0167] Step S310: In response to the fact that there are multiple pause conditions with hit status detection results, the priority of multiple pause conditions with hit status detection results is compared through a preset pause entry function.
[0168] Step S311: In response to multiple hit status detection results indicating a hit, including the single-step debugging pause condition, determine that the single-step debugging pause condition has the highest priority, and then execute step S313.
[0169] Step S312: In response to multiple hit status detection results, the pause conditions that do not include single-step debugging pause conditions but include breakpoint pause conditions are determined to have the highest priority.
[0170] Step S313: Determine the highest priority pause condition among the multiple pause conditions with a hit status detection result as the target pause condition.
[0171] Step S314: Debug the item to be tested based on the target pause condition by using the preset pause entry function.
[0172] Figure 9 The implementation methods of each step can be referred to the content of the foregoing embodiments, and will not be repeated here.
[0173] according to Figure 9 The method shown, when debugging the test item, if there is no pre-set pause condition in the debugging system and no pause condition related to the test item is generated in the debugging of other test items in the target test process, debugs the test item according to the first pause condition determined by the first debugging information and / or the second debugging information of the test item. This further clarifies the rules for pause adjudication or pause processing when multiple types of pause conditions coexist, improving the efficiency and accuracy of debugging while further enhancing its applicability.
[0174] Based on the same inventive concept, embodiments of this disclosure also provide a debugging apparatus for a test process, an electronic device, a computer-readable storage medium, and a computer program.
[0175] See Figure 10 , Figure 10 A schematic diagram of the structure of an embodiment of the debugging apparatus for the test process provided in this disclosure is shown. Figure 10 As shown, the debugging device 1000 for this testing process may include: an acquisition module 1001, a determination module 1002, and a debugging module 1003. Among them, The acquisition module 1001 can be used to acquire first debugging information and / or second debugging information of the item to be tested in the target test process; wherein, the first debugging information is used to indicate the pause position for debugging the item to be tested, and the second debugging information is used to indicate the pause rule for debugging the item to be tested; The determination module 1002 can be used to determine a first pause condition based on the first debugging information and / or the second debugging information; The debugging module 1003 can be used to debug the test item based on the first pause condition through a preset pause entry function; wherein, the preset pause entry function is the only judgment entry function used to determine the pause of any test item in the target test process before execution.
[0176] In one example, the debugging module may include a first debugging unit, configured to: call the hit status detection function corresponding to at least one of the first pause conditions through the preset pause entry function, and perform hit status detection on the corresponding pause conditions; in response to the hit status detection results of the at least one pause condition being all unsuccessful, the preset pause entry function returns and the item to be tested is executed.
[0177] In one example, the debugging module may include a second debugging unit, configured to: call the hit status detection function corresponding to at least one of the first pause conditions through the preset pause entry function to perform hit status detection on the corresponding pause conditions; in response to the presence of a pause condition among the at least one pause conditions with a hit status detection result of hit, determine a target pause condition based on the pause condition with a hit status detection result of hit through the preset pause entry function; and debug the item to be tested based on the target pause condition through the preset pause entry function.
[0178] In one example, the second debugging unit determines the target pause condition based on the pause condition where the hit status detection result is a hit. Specifically, it is used to: determine the pause condition where the hit status detection result is a hit as the target pause condition when the number of pause conditions where the hit status detection result is a hit is one; and filter out the target pause condition from the multiple pause conditions where the hit status detection result is a hit through the preset pause entry function. The filtering method may include a priority filtering method or a filtering method based on a rule table.
[0179] In one example, the second debugging unit selects a target pause condition from multiple pause conditions whose hit status detection results are hit, specifically by: comparing the priorities of the multiple pause conditions whose hit status detection results are hit; and determining the pause condition with the highest priority among the multiple pause conditions whose hit status detection results are hit as the target pause condition.
[0180] In one example, the second debugging unit compares the priorities of the multiple hit status detection results of the pause conditions, specifically: in response to the multiple hit status detection results of the pause conditions including the single-step debugging pause condition, it determines that the single-step debugging pause condition has the highest priority; wherein, the single-step debugging pause condition is used to indicate that when debugging the item to be tested, the process should pause after executing the item to be tested.
[0181] In one example, the second debugging unit compares the priorities of the multiple hit status detection results of the pause conditions, specifically: in response to the multiple hit status detection results of the pause conditions not including single-step debugging pause conditions but including breakpoint pause conditions, the breakpoint pause condition is determined to have the highest priority; wherein, the breakpoint pause condition is used to indicate that when debugging the item to be tested, the process is paused at the breakpoint.
[0182] In one example, the debugging module further includes a third debugging unit, used to: debug the item to be tested based on the first pause condition and the second pause condition through the preset pause entry function; wherein, the second pause condition includes a pause condition pre-configured by the system and a pause condition determined based on the debugging of other test items besides the item to be tested in the target test process.
[0183] In one example, the second debugging unit debugs the item to be tested based on the target pause condition through the preset pause entry function. Specifically, it is used to: generate and store a pause reason based on the target pause condition through the preset pause entry function; wherein the pause reason describes the reason for pausing when debugging the item to be tested; refresh the user interface through the preset pause entry function to highlight the item to be tested on the user interface; call the pause function through the preset pause entry function to pause the execution of the item to be tested; and wake up the pause function in response to receiving a user confirmation operation to end the pause state and execute the item to be tested through the preset pause entry function.
[0184] The exemplary embodiments of the apparatus disclosed herein correspond to each other in implementation. Different embodiments can be referenced, combined, and cited in their corresponding content, and will not be repeated here. The beneficial technical effects corresponding to the exemplary embodiments of the apparatus disclosed herein can be found in the corresponding beneficial technical effects in the exemplary method section of this disclosure, and will not be repeated here.
[0185] In addition, embodiments of this disclosure also provide an electronic device, including: Memory, used to store computer programs; A processor is configured to execute a computer program stored in the memory, and when the computer program is executed, to implement the debugging method of the test process described in any of the above embodiments of this disclosure.
[0186] Figure 11 This is a schematic diagram illustrating the structure of an application embodiment of the electronic device disclosed herein. Below, reference is made to… Figure 11 This describes an electronic device according to embodiments of the present disclosure. The electronic device may be either or both of a first device and a second device, or a standalone device independent of them, which may communicate with the first device and the second device to receive acquired input signals from them.
[0187] like Figure 11 As shown, the electronic device includes one or more processors and memory.
[0188] A processor can be a central processing unit (CPU) or other form of processing unit with data processing and / or instruction execution capabilities, and can control other components in an electronic device to perform desired functions.
[0189] The memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor may execute the program instructions to implement the debugging methods of the test procedures of the various embodiments of this disclosure described above, and / or other desired functions.
[0190] In one example, the electronic device may also include input devices and output devices, which are interconnected via a bus system and / or other forms of connection mechanism (not shown).
[0191] In addition, the input device may include, for example, a keyboard, a mouse, etc.
[0192] This output device can output various information to the outside, including determined distance information, direction information, etc. The output device may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.
[0193] Of course, for the sake of simplicity, Figure 11Only some of the components of the electronic device relevant to this disclosure are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device may include any other suitable components depending on the specific application.
[0194] In addition to the methods and apparatus described above, embodiments of this disclosure may also be computer program products, including computer program instructions that, when executed by a processor, cause the processor to perform the steps of the debugging methods of the test flow according to various embodiments of this disclosure as described in the foregoing portion of this specification.
[0195] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this disclosure. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on a user's computing device, partially on a user's computing device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0196] Furthermore, embodiments of this disclosure may also be computer-readable storage media storing computer program instructions that, when executed by a processor, cause the processor to perform the steps of the debugging methods of the test flow according to various embodiments of this disclosure as described in the foregoing portion of this specification.
[0197] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.
[0198] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as ROM, RAM, magnetic disk, or optical disk.
[0199] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.
[0200] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For system embodiments, since they largely correspond to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0201] The block diagrams of devices, apparatuses, devices, and systems disclosed herein are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0202] The methods and apparatus of this disclosure may be implemented in many ways. For example, they may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps for the methods is for illustrative purposes only, and the steps of the methods of this disclosure are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, this disclosure may also be implemented as a program recorded on a recording medium, the program including machine-readable instructions for implementing the methods according to this disclosure. Thus, this disclosure also covers recording media storing programs for performing the methods according to this disclosure.
[0203] It should also be noted that in the apparatus, devices, and methods of this disclosure, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions to this disclosure.
[0204] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.
[0205] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.
Claims
1. A debugging method for a test process, characterized in that, include: Obtain first debugging information and / or second debugging information of the item to be tested in the target test process; wherein, the first debugging information is used to indicate the pause position for debugging the item to be tested, and the second debugging information is used to indicate the pause rule for debugging the item to be tested; Based on the first debugging information and / or the second debugging information, a first pause condition is determined; The test item is debugged based on the first pause condition by using a preset pause entry function; wherein, the preset pause entry function is the only decision entry function used to determine the pause of any test item in the target test process before its execution.
2. The method according to claim 1, characterized in that, The step of debugging the item to be tested based on the first pause condition through a preset pause entry function includes: The hit status detection function corresponding to at least one of the first pause conditions is called through the preset pause entry function to perform hit status detection on the corresponding pause conditions. If the hit status detection result of the at least one pause condition is a miss, the preset pause entry function returns and the item to be tested is executed.
3. The method according to claim 1, characterized in that, The step of debugging the item to be tested based on the first pause condition through a preset pause entry function includes: The hit status detection function corresponding to at least one of the first pause conditions is called through the preset pause entry function to perform hit status detection on the corresponding pause conditions. In response to the existence of a pause condition with a hit status detection result among the at least one pause condition, a target pause condition is determined based on the pause condition with a hit status detection result through the preset pause entry function; and, The item to be tested is debugged using the preset pause entry function based on the target pause condition.
4. The method according to claim 3, characterized in that, The step of determining the target pause condition based on the hit status detection result as a hit pause condition includes: In response to the fact that the number of pause conditions with a hit status detection result is one, the pause condition with a hit status detection result is determined as the target pause condition; In response to the fact that there are multiple pause conditions with hit status detection results, the target pause condition is selected from the multiple pause conditions with hit status detection results through the preset pause entry function; wherein, the selection method includes priority selection method or selection method by looking up the rule table.
5. The method according to claim 4, characterized in that, The step of selecting the target pause condition from multiple pause conditions that have been detected as hits includes: The priority of the multiple hit status detection results being hit pause conditions is compared; The pause condition with the highest priority among the multiple pause conditions that have been hit is determined as the target pause condition.
6. The method according to claim 5, characterized in that, The priority of comparing the multiple hit state detection results for the pause condition includes: In response to the multiple hit status detection results being hit, the pause conditions include a single-step debugging pause condition, and the single-step debugging pause condition is determined to have the highest priority; wherein, the single-step debugging pause condition is used to indicate that when debugging the item to be tested, the process should pause after executing the item to be tested.
7. The method according to claim 5, characterized in that, The priority of comparing the multiple hit state detection results for the pause condition includes: In response to the fact that the multiple hit status detection results are hit, the pause conditions do not include single-step debugging pause conditions but include breakpoint pause conditions, and the breakpoint pause condition is determined to have the highest priority; wherein, the breakpoint pause condition is used to indicate that when debugging the item to be tested, the process should be paused at the breakpoint.
8. The method according to claim 1, characterized in that, The step of debugging the item to be tested based on the first pause condition through a preset pause entry function includes: The test item is debugged using the preset pause entry function based on the first pause condition and the second pause condition; wherein, the second pause condition includes a pause condition pre-configured by the system and a pause condition determined based on the debugging of other test items besides the test item in the target test process.
9. The method according to any one of claims 3-7, characterized in that, The step of debugging the item to be tested through the preset pause entry function based on the target pause condition includes: The preset pause entry function generates and stores a pause reason based on the target pause condition; wherein, the pause reason is used to describe the reason for the pause when debugging the item to be tested; The user interface is refreshed by the preset pause entry function to highlight the item to be tested on the user interface. The execution of the item to be tested is paused by calling the pause function through the preset pause entry function; In response to receiving a confirmation operation from the user, the pause function is activated to end the pause state through the preset pause entry function and execute the item to be tested.
10. A debugging device for a test process, characterized in that, include: The acquisition module is used to acquire first debugging information and / or second debugging information of the item to be tested in the target test process; wherein, the first debugging information is used to indicate the pause position for debugging the item to be tested, and the second debugging information is used to indicate the pause rule for debugging the item to be tested; The determination module is used to determine a first pause condition based on the first debugging information and / or the second debugging information; The debugging module is used to debug the test item based on the first pause condition by using a preset pause entry function; wherein, the preset pause entry function is the only judgment entry function used to determine the pause of any test item in the target test process before its execution.
11. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing a computer program stored in the memory, wherein when the computer program is executed, it implements the method described in any one of claims 1-9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-9.
13. A computer program, comprising computer program instructions, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1-9.
