Test device and test method
The test device enhances test efficiency by using a test scenario list and abnormality management to skip redundant tests, addressing inefficiencies and power waste in multiple test scenarios.
Patent Information
- Application Number
- JP2023057085
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-15
AI Technical Summary
Inefficient test methods that perform multiple test scenarios result in unnecessary tests due to repeated detection of similar abnormalities, leading to poor efficiency and increased power consumption.
A test device with a test scenario list, scenario configuration information, and abnormality management information that skips redundant tests based on detected abnormalities, using a processing unit to determine related test scenarios to be skipped.
Improves the efficiency of test methods by reducing unnecessary tests and power consumption by skipping tests where similar abnormalities are likely to occur.
Smart Images

Figure 2024144910000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a test apparatus and a test method for successively executing a plurality of test scenarios. [Background technology]
[0002] In many cases, communication devices or communication systems are tested to check their operation before shipment. However, in recent years, the functions of communication devices have become more complex, and the number of test items to be performed has increased. In order to perform tests efficiently under such circumstances, an automatic test method for automatically testing network communication devices has been proposed (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2008-234232 A Summary of the Invention [Problem to be solved by the invention]
[0004] As described above, when the number of test items increases, the same or similar tests may be repeatedly performed in a series of test procedures. In such a case, when an abnormality is detected in one test, an abnormality may also be detected in other subsequent tests for the same reason. In this case, unnecessary tests are performed, resulting in poor test efficiency. In addition, unnecessary power is consumed. This problem does not only occur when testing communication devices or communication systems, but may occur when testing any device or system.
[0005] It is an object of one aspect of the present invention to improve the efficiency of a testing methodology that performs multiple test scenarios in succession. [Means for solving the problem]
[0006] A test device according to one aspect of the present invention includes a storage unit that stores a test scenario list in which a plurality of test scenarios are registered, scenario configuration information representing test processes included in each test scenario, and abnormality management information representing types of abnormalities that may occur when each test process is executed on a test target, a test execution unit that executes a test on the test target according to the test scenarios registered in the test scenario list, and a processing unit that, when a first abnormality occurs in a test based on a first test scenario among the plurality of test scenarios, identifies a related test process representing a test process in which an abnormality of the same type as the first abnormality occurs based on the abnormality management information, and identifies a test scenario including the related test process based on the scenario configuration information. The test execution unit skips the test scenario identified by the processing unit from among the test scenarios registered in the test scenario list. Effect of the Invention
[0007] According to the above-mentioned aspect, the efficiency of a test method in which a plurality of test scenarios are executed in succession is improved. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram showing an example of a test device according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a diagram illustrating an example of a test scenario. [Diagram 3] FIG. 13 is a diagram illustrating an example of a test scenario list. [Figure 4] FIG. 2 is a diagram showing an example of scenario configuration information. [Diagram 5] FIG. 13 illustrates an example of an abnormality code table. [Figure 6] 13 is a flowchart showing an example of a process performed by a test device. [Figure 7] 10 is a flowchart showing an example of a process of an abnormality code processing unit. [Figure 8] FIG. 13 illustrates an example of a procedure for updating a test scenario list in response to an abnormal termination. [Figure 9]FIG. 11 is a diagram (part 1) showing another example of a procedure for updating a test scenario list in response to an abnormal termination. [Figure 10] FIG. 2 is a diagram (part 2) showing another example of the procedure for updating the test scenario list in response to an abnormal termination. [Figure 11] FIG. 11 is a diagram illustrating an example of a procedure for updating a test scenario list in response to an abnormality caused by a temporary factor. [Figure 12] 13 is a flowchart showing an example of processing of a test result processing unit. [Figure 13] FIG. 11 is a diagram illustrating an example of a procedure for updating a test scenario list according to a test result. [Figure 14] FIG. 2 illustrates an example of a hardware configuration of a test device and a test target system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] FIG. 1 shows an example of a test device according to an embodiment of the present invention. In this example, a test target system 2 is a radio unit (RU) and a distributed unit (DU) constituting a radio base station conforming to the O-RAN specifications. The RU has one or more antennas, and receives radio signals from a user terminal and transmits radio signals to the user terminal. The DU demodulates received signals, modulates transmitted signals, and controls communication in the media access control (MAC) layer. That is, in this example, a fronthaul interface is tested.
[0010] However, in the test target system 2, a pseudo DU (P-DU) is implemented instead of a DU. The P-DU has an interface for communicating with the test equipment in addition to the functions of the DU that is actually used. That is, the P-DU can perform test communication with the RU according to instructions given by the test equipment. The P-DU can also notify the test equipment of the test results. It should be noted that the P-DU includes a DU that has the function of performing tests related to the embodiment of the present invention.
[0011] The test device 1 includes a test execution unit 11, an error code processing unit 12, and a test result processing unit 13. The test device 1 also includes a storage unit (not shown). This storage unit stores a test scenario list 14, scenario configuration information 15, and an error code table 16 shown in Fig. 1. The test device 1 may further include other functions not shown in Fig. 1.
[0012] The test execution unit 11 executes a test of the test target system 2 according to the test scenario. In this embodiment, a plurality of test scenarios are provided to the test device 1. Then, the test execution unit 11 executes a test of the test target system 2 according to the plurality of test scenarios. At this time, a plurality of tests corresponding to the plurality of test scenarios are executed consecutively in a predetermined order.
[0013] FIG. 2 shows an example of a test scenario. The test scenario describes the contents of a test to be executed in the system 2 under test. Specifically, the test scenario describes one or more test processes to be executed in the system 2 under test. Each test scenario is identified by a scenario ID. That is, a scenario ID is assigned to each test scenario. In this case, it is preferable that each test scenario describes its own scenario ID. In the following description, a test scenario with a scenario ID of "P" may be referred to as a "test scenario P". Also, each test process is identified by a process ID. That is, a process ID is assigned to each test process. In this case, it is preferable that each test scenario describes its process ID. In the following description, a test process with a process ID of "Q" may be referred to as a "test process Q".
[0014] In the example shown in FIG. 2, the test scenario 001 includes a test process 0001, a test process 0002, and a test process 0003. The test scenario 002 includes a test process 0001, a test process 0002, and a test process 0004. Assume that the test scenario 001 and the test scenario 002 are provided to the test device 1. Then, the test execution unit 11 executes the test process 0001, the test process 0002, and the test process 0003 according to the test scenario 001, and executes the test process 0001, the test process 0002, and the test process 0004 according to the test scenario 002. In this case, the test process 0001 and the test process 0002 are each executed twice. Note that one test process corresponds to, for example, one function. However, one test process may correspond to a series of multiple functions.
[0015] 3 shows an example of the test scenario list 14. The test scenarios provided to the test device 1 are registered in the test scenario list 14. The test scenario list 14 also records an execution flag for each test scenario. The execution flag indicates the state of each test scenario. Specifically, the execution flag indicates the following states: "Not performed" indicates that the test has not been performed. "Pass" means that the test was conducted and the result was a pass. "Fail" means that the test was performed and the result was a failure. "Completed (abnormal: code)" indicates that a test was performed and an abnormality was detected in the test. In this case, a code indicating the type of abnormality is also recorded. "Feasible" means that the test has not yet been performed, but the test can be performed. "Skip" means that the test will not be performed. "Reconfirm" means to conduct the test at a later time.
[0016] In the initial state of the test scenario list 14, all test scenarios are set to "not performed." After that, when a test is performed according to a test scenario, the execution flag corresponding to each test scenario is updated. The test execution unit 11 sequentially executes test scenarios registered in the test scenario list 14, one by one, whose execution flag is "not performed" or "available."
[0017] FIG. 4 shows an example of the scenario configuration information 15. The scenario configuration information 15 indicates, for each test scenario, the test processes included in the test scenario. In this embodiment, for example, it indicates that the test scenario 001 includes test processes 0001, 0002, and 0003. The scenario configuration information 15 is manually created by referring to the test scenario provided to the test device 1. Alternatively, the scenario configuration information 15 may be generated based on data (output of a trace function, a log, etc.) executed in a software integration test or the like for the test scenario provided to the test device 1. Alternatively, the scenario configuration information 15 may be generated by collecting scenario IDs and process IDs described in each test scenario.
[0018] FIG. 5 shows an example of the fault code table 16. The fault code table 16 is an example of fault management information that indicates the type of fault that may occur when each test process is executed in the test target system 2. The "◯" mark in FIG. 5 indicates that a fault that cannot be recovered from may occur. For example, a fault that cannot be recovered from may be a case where the device in the test target system 2 is incorrectly configured, or where the device in the test target system 2 has insufficient memory capacity. The "△" mark indicates that a fault may occur due to a temporary factor. For example, a fault that can be caused by a temporary factor may be a case where the communication environment temporarily deteriorates and a communication error occurs. The "-" mark indicates that no fault occurs. The "*" mark indicates that there is a conditional branch. In the following description, a fault with fault code "R" may be referred to as "Fault R".
[0019] In this way, the fault code table 16 indicates the types of faults that may occur when each test process is executed in the test target system 2. For example, the fault code table 16 shown in Fig. 5 indicates that fault 001 may occur when test process 0002 is executed in the test target system 2.
[0020] However, the same anomaly may occur for one test process due to different factors. In the example shown in FIG. 5, for example, when test process 0001 is executed, anomaly 001 may occur due to three factors. Each factor corresponds to, for example, a position in the source code describing the test process (or the order in which the processes are executed). The anomaly factors are represented by an array. In this embodiment, it is represented that anomaly 001 may occur in array [1] and array [3].
[0021] Furthermore, whether or not an abnormality occurs for one test process may depend on the operating conditions. In the abnormality code table 16, this situation is represented by a secondary array as a branching condition for the primary array. For example, secondary arrays [1] to [3] are set for the primary array [2]. In the following description, if the primary array is "i" and the secondary array is "j", this two-dimensional array may be written as [i]-[j].
[0022] For example, when the test process 0001 is executed, if the condition corresponding to the array [2]-[1] is satisfied, the error 001 may occur, but if the condition corresponding to the array [2]-[2] or the array [2]-[3] is satisfied, the error 001 does not occur. As an example, it is assumed that the first to third encryption methods are supported between the DU and the RU. It is also assumed that the first encryption method, the second encryption method, and the third encryption method correspond to the array [2]-[1], the array [2]-[2], and the array [2]-[3], respectively. In this case, the error code table 16 shown in FIG. 5 indicates that the error 001 occurs when the communication is performed using the first encryption method, and the error 001 does not occur when the communication is performed using the second encryption method or the third encryption method.
[0023] The fault code table 16 is manually created, for example, by referring to source code describing the test process. Alternatively, the test process may be actually executed in the test target system 2 according to the test scenario, and the fault code table 16 may be generated using the test results. Alternatively, when checking the operation of the test scenario in advance, the fault code table 16 may be generated by linking the process ID of the test process with an abnormal state that may occur in the test process from the function traced when each test process in the test scenario is executed.
[0024] Returning to the description of FIG. 1, the fault code processing unit 12 updates the test scenario list 14 when an abnormality occurs in the test target system 2. Here, when the test ends abnormally, the P-DU transmits an abnormality code indicating the type of the abnormality to the test device 1. Therefore, the fault code processing unit 12 updates the execution flag of the test scenario in which the abnormality is detected based on the abnormality code received from the P-DU. Also, the fault code processing unit 12 judges whether or not to skip other test scenarios based on the type of the abnormality (i.e., the fault code) that occurred in the test target system 2. At this time, the fault code processing unit 12 refers to the scenario configuration information 15 and the fault code table 16 to judge whether or not there is a test scenario to be skipped. Then, when a test scenario to be skipped is found, the fault code processing unit 12 updates the execution flag of the test scenario in the test scenario list 14.
[0025] The test result processing unit 13 acquires a test log from the test target system 2. The test log records the results of tests performed according to the test scenarios. For example, data such as the signal error rate is recorded as the test results. The test result processing unit 13 then uses test judgment criteria prepared in advance to determine whether the test result is pass or fail. The test judgment criteria are created based on, for example, specifications related to standardization. Furthermore, the test result processing unit 13 updates the execution flag of the corresponding test scenario in the test scenario list 14 based on the test results.
[0026] In this way, the test scenario list 14 is updated by the fault code processing unit 12 and the test result processing unit 13. Then, the test execution unit 11 executes the test according to the updated test scenario list 14. At this time, the test execution unit 11 determines whether or not to execute a test corresponding to a test scenario based on the execution flag of each test scenario. For example, the test execution unit 11 executes a test scenario whose execution flag is "not executed" or "possible". Also, the test execution unit 11 does not execute a test scenario whose execution flag is "done" or "skip".
[0027] 6 is a flowchart showing an example of the processing of the test device 1. Note that the test scenario list 14 registers one or more test scenarios to be provided to the test device 1. Also, the initial state of the execution flag for each test scenario is “not yet executed.”
[0028] In S1, the test execution unit 11 judges whether or not there are any test scenarios remaining to be executed in the test scenario list 14. Whether or not a test scenario should be executed is judged based on the execution flag. For example, a test scenario whose execution flag is "Done" is not a test scenario that should be executed. Also, a test scenario whose execution flag is "Skip" is not a test scenario that should be executed.
[0029] In S2, the test execution unit 11 selects one test scenario from the test scenario list 14. In S3, the test execution unit 11 checks whether the execution flag of the selected test scenario is "skip". If the execution flag of the selected test scenario is "skip", the test execution unit 11 does not execute a test based on that test scenario. In this case, the processing of the test device 1 returns to S1.
[0030] If the execution flag of the selected test scenario is not "skip", in S4, the test execution unit 11 checks whether the execution flag of the selected test scenario is "recheck". In addition, if the execution flag of the selected test scenario is "recheck", it checks whether the cause of the need for recheck has been resolved. For example, if a temporary communication error occurs due to a poor communication environment around the test target system 2, it is confirmed whether the communication environment has improved. If the execution flag is not "recheck" or the cause of the need for recheck has been resolved, the processing of the test device 1 proceeds to S5. On the other hand, if the execution flag of the selected test scenario is "recheck" and the cause of the need for recheck has not been resolved, the processing of the test device 1 returns to S1.
[0031] In S5, the test execution unit 11 executes a test of the test target system 2 according to the selected test scenario. For example, when executing the test scenario 001 shown in Fig. 2 or 4, the test execution unit 11 executes test processes 0001 to 0003.
[0032] In S6, the fault code processing unit 12 checks whether or not an abnormality occurred during the test. Then, when the test is completed without any abnormality occurring during the test, in S7, the test result processing unit 13 judges the test result. That is, the test result processing unit 13 judges whether the test result is pass or fail based on the test log. At this time, the test judgment criteria are referenced. Then, the test result processing unit 13 updates the test scenario list 14 according to the test result.
[0033] If an abnormality occurs during the above-mentioned test, in S8, the abnormality code processing unit 12 updates the execution flag of the test scenario selected in S2 to "Completed (abnormal: code)" in the test scenario list 14. The abnormality code indicates the type of abnormality detected in S6, and is notified from the P-DU.
[0034] In S9, the fault code processing unit 12 identifies a test scenario to be skipped from among the test scenarios registered in the test scenario list 14 based on the type of fault detected in S6. If a test scenario to be skipped is found, the fault code processing unit 12 updates the execution flag of that test scenario to "skip". After this, the process of the test device 1 returns to S1.
[0035] In this way, the test device 1 executes tests corresponding to the test scenarios registered in the test scenario list 14. At this time, the execution flags of the test scenarios are updated according to the test results. Furthermore, when an abnormality occurs in a test corresponding to a certain test scenario, the execution flags of one or more test scenarios related to that test scenario may be updated to "skip." Then, when the execution flags of all test scenarios become "completed" or "skip," the test device 1 ends the test.
[0036] Fig. 7 is a flowchart showing an example of the processing of the abnormality code processing unit 12. The processing of this flowchart is an example of the skip determination processing of S9 shown in Fig. 6. Therefore, the processing of this flowchart is executed when an abnormality occurs in the test target system 2. In the following description, the test scenario in which an abnormality occurs may be referred to as an "abnormal test scenario."
[0037] In S11, the fault code processing unit 12 determines whether or not there is a test scenario whose execution flag is "not performed", "possible", or "recheck" remaining in the test scenario list 14. Then, if there is a test scenario whose execution flag is "not performed", "possible", or "recheck" remaining, the processing of the fault code processing unit 12 proceeds to S12.
[0038] In S12, the fault code processing unit 12 selects one test scenario whose execution flag is "not executed", "possible", or "recheck" in the test scenario list 14. In the following description, the test scenario selected in S12 may be referred to as "test scenario N".
[0039] In S13, the fault code processing unit 12 judges whether or not the same fault as that which occurred in the fault test scenario may occur when the test scenario N is executed. The method of this judgment will be described later with reference to an embodiment.
[0040] When the same abnormality as that which occurred in the abnormality test scenario does not occur, the abnormality code processing unit 12 updates the execution flag of the test scenario N to "possible" in S14. On the other hand, when the same abnormality as that which occurred in the abnormality test scenario may occur, the abnormality code processing unit 12 updates the execution flag of the test scenario N to "skip" in S15.
[0041] Fig. 8 shows an example of a procedure for updating the test scenario list 14 in response to an abnormal termination. In this embodiment, it is assumed that the scenario configuration information 15 shown in Fig. 8(a) and the abnormality code table 16 shown in Fig. 8(b) have been created in advance. The scenario configuration information 15 indicates that the test scenario 001 includes the test process 0001 and the test process 0002, the test scenario 002 includes the test process 0002 and the test process 0004, and the test scenario 005 includes the test process 0003 and the test process 0004. The abnormality code table 16 indicates that the abnormality 001 occurs when the test process 0001 is executed, and that the abnormality 001 also occurs when the test process 0002 is executed.
[0042] 8(c), test scenario 001, test scenario 002, and test scenario 005 are registered in the test scenario list 14. That is, in this embodiment, test scenario 001, test scenario 002, and test scenario 005 are provided to the test device 1. In addition, in the initial state, the execution flags of all test scenarios registered in the test scenario list 14 are "not executed."
[0043] The test execution unit 11 selects and executes the test scenarios registered in the test scenario list 14 one by one in order. In this embodiment, a test is first performed according to test scenario 001 registered in the first record. Then, it is assumed that an abnormality identified by abnormality code 001 (i.e., abnormality 001) occurs during this test.
[0044] In this case, the test device 1 executes S8 shown in Fig. 6. Specifically, the fault code processing unit 12 updates the execution flag of test scenario 001 in the test scenario list 14 from "not executed" to "executed (fault: 001)" as shown in Fig. 8(c). After that, the test device 1 executes the process of S9 shown in Fig. 6 (i.e., the flowchart shown in Fig. 7). That is, the test device 1 selects test scenarios other than test scenario 001 in order, and executes the processes of S13 to S15 for each selected test scenario.
[0045] First, the test device 1 selects the test scenario 002 from the test scenario list 14. Then, the test device 1 judges whether or not the same abnormality as that which occurred in the test scenario 001 may occur when the test scenario 002 is executed. Here, the abnormality 001 occurs in the test scenario 001. According to the abnormality code table 16 shown in FIG. 8(b), the abnormality 001 occurs in the test process 0001 and the test process 0002. Therefore, the test device 1 judges that the abnormality 001 may occur not only when the test scenario including the test process 0001 is executed, but also when the test scenario including the test process 0002 is executed. Then, the test scenario 002 includes the test process 0002. Therefore, the test device 1 judges that the same abnormality (i.e., the abnormality 001) as that which occurred in the test scenario 001 may occur when the test scenario 002 is executed. Therefore, the test device 1 updates the execution flag of the test scenario 002 from "not executed" to "skip" as shown in FIG. 8(c).
[0046] Next, the test device 1 selects test scenario 005 from the test scenario list 14. Here, test scenario 005 does not include either test process 0001 or test process 0002, as shown in FIG. 8(a). Therefore, the test device 1 determines that when test scenario 005 is executed, the same abnormality (i.e., abnormality 001) as that which occurred in test scenario 001 will not occur. In this case, the test device 1 updates the execution flag of test scenario 005 from "not executed" to "possible", as shown in FIG. 8(c).
[0047] After this, the test execution unit 11 continues the test according to the updated test scenario list 14. Here, the execution flag of test scenario 002 has been updated to "skip", so the test execution unit 11 does not execute the test corresponding to test scenario 002. On the other hand, the execution flag of test scenario 005 is "enabled", so the test execution unit 11 executes the test corresponding to test scenario 005.
[0048] In this manner, in the embodiment of the present invention, when an abnormality is detected in a certain test scenario, execution of a test scenario in which the same abnormality may occur is skipped, thereby saving time for performing unnecessary tests and reducing power consumption for such unnecessary tests.
[0049] 9 and 10 show another example of a procedure for updating the test scenario list 14 in response to an abnormal termination. In this embodiment, the encryption algorithm used in O-RAN is defined as a branching condition. For example, as shown in FIG. 9(a), in a test scenario 001, processing for three encryption algorithms (AES128-CTR, 3DES-CBC, and HMAC-SHA-256) is described as a test process 0001. Note that up to O-RAN SPEC version 4, it is specified that 3DES-CBC should be used. In contrast, O-RAN SPEC version 5 specifies that AES128-CTR should be used.
[0050] FIG. 9(b) shows an example of the abnormality code table 16 corresponding to the test scenario shown in FIG. 9(a). Here, the test process 0001 including the branch condition is expressed as a two-dimensional array. Specifically, the array [1]-[1] corresponds to the case where AES128-CTR is used, the array [1]-[2] corresponds to the case where 3DES-CBC is used, and the array [1]-[3] corresponds to the case where HMAC-SHA-256 is used. In this embodiment, a "◯" mark is set for the array [1]-[1]. That is, this abnormality code table 16 indicates that abnormality 001 and abnormality 002 can occur in the case where AES128-CTR is used in the test process 0001.
[0051] The scenario configuration information 15 is created in advance. In this embodiment, as shown in Fig. 10(a), the scenario configuration information 15 indicates that the test scenario 001 includes the test process 0001 and the test process 0002, the test scenario 002 includes the test process 0001 and the test process 0003, and the test scenario 005 includes the test process 0001 and the test process 0004. In the test scenario 002, AES128-CTR is used in the test process 0001, and in the test scenario 005, 3DES-CBC is used in the test process 0001.
[0052] The test execution unit 11 selects and executes the test scenarios registered in the test scenario list 14 one by one in order. In this embodiment, a test is performed according to test scenario 001 registered in the first record. In this test, an abnormality identified by abnormality code 001 (i.e., abnormality 001) occurs.
[0053] In this case, the test device 1 executes S8 shown in Fig. 6. Specifically, the fault code processing unit 12 updates the execution flag of test scenario 001 in the test scenario list 14 from "not executed" to "completed (fault: 001)" as shown in Fig. 10(b). After that, the test device 1 executes the process of the flowchart shown in Fig. 7. That is, the test device 1 selects test scenarios other than test scenario 001 in order and executes the processes of S13 to S15.
[0054] First, the test device 1 selects the test scenario 002 from the test scenario list 14. Then, the test device 1 judges whether or not the same abnormality as that which occurred in the test scenario 001 may occur when the test scenario 002 is executed. Here, the abnormality 001 occurs in the test scenario 001. According to the abnormality code table 16 shown in FIG. 9(b), the abnormality 001 occurs due to the cause represented by the array [1]-[1] corresponding to the test process 0001. That is, the abnormality 001 occurs when the test process 0001 is executed using AES128-CTR. In contrast, the test scenario 002 includes the test process 0001 and uses AES128-CTR. Therefore, the test device 1 judges that the same abnormality (that is, the abnormality 001) as that which occurred in the test scenario 001 will occur when the test scenario 002 is executed. In this case, the test device 1 updates the execution flag of the test scenario 002 from "not executed" to "skip" as shown in FIG. 10(b).
[0055] Next, the test device 1 selects test scenario 005 from the test scenario list 14. Here, test scenario 005 also includes test process 0001, as shown in FIG. 10(a). However, in test scenario 005, 3DES-CBC is used. That is, test scenario 005 does not use AES128-CTR. Therefore, when test scenario 005 is executed, the test device 1 determines that the same anomaly (i.e., anomaly 001) as occurred in test scenario 001 will not occur. In this case, the test device 1 updates the execution flag of test scenario 005 from "not executed" to "possible" as shown in FIG. 10(b).
[0056] After this, the test execution unit 11 continues the test according to the updated test scenario list 14. Here, the execution flag of test scenario 002 has been updated to "skip", so the test execution unit 11 does not execute the test corresponding to test scenario 002. On the other hand, the execution flag of test scenario 005 is "possible", so the test execution unit 11 executes the test corresponding to test scenario 005. Thus, in the embodiment shown in Figs. 9 and 10, a decision is made as to whether to execute or skip a test scenario depending on the branching condition in the test scenario.
[0057] FIG. 11 shows an example of a procedure for updating the test scenario list 14 in response to an anomaly caused by a temporary factor. In this embodiment, it is assumed that the scenario configuration information 15 shown in FIG. 11(a) and the anomaly code table 16 shown in FIG. 11(b) are created in advance. The scenario configuration information 15 indicates that the test scenario 001 includes the test process 0001 and the test process 0002, the test scenario 002 includes the test process 0002 and the test process 0004, and the test scenario 005 includes the test process 0003 and the test process 0004. The anomaly code table 16 indicates that an anomaly 002 occurs when the test process 0002 is executed. The anomaly 002 is an anomaly caused by a temporary factor. The temporary factor is, for example, deterioration of the communication environment around the test target system 2.
[0058] Fig. 11(c) shows an example of fault cause management information for managing the causes of temporary faults. Fault cause management information 17 indicates whether the cause of the temporary fault continues or has been resolved. For example, when an fault occurs due to deterioration of the communication environment, a flag for the cause corresponding to the communication environment is set to ON. When the communication environment improves, this flag is updated to OFF.
[0059] The test execution unit 11 selects and executes the test scenarios registered in the test scenario list 14 one by one in order. In this embodiment, a test is performed according to test scenario 001 registered in the first record. During this test, a temporary abnormality identified by abnormality code 002 (i.e., abnormality 002) occurs.
[0060] In this case, the test device 1 executes S8 shown in Fig. 6. Specifically, the fault code processing unit 12 updates the execution flag of the test scenario 001 in the test scenario list 14 from "not executed" to "executed (fault: 002)" as shown in Fig. 11(d). After that, the test device 1 executes the process of the flowchart shown in Fig. 7.
[0061] First, the test device 1 selects the test scenario 002 from the test scenario list 14. Then, the test device 1 judges whether or not the same abnormality as that which occurred in the test scenario 001 may occur when the test scenario 002 is executed. Here, the abnormality 002 occurs in the test scenario 001. According to the abnormality code table 16 shown in FIG. 11(b), the abnormality 002 occurs in the test process 0002. Then, the test scenario 002 includes the test process 0002. Therefore, the test device 1 judges that the same abnormality (i.e., the abnormality 002) as that which occurred in the test scenario 001 will occur when the test scenario 002 is executed. However, the abnormality 002 is a temporary abnormality. In this case, the test device 1 updates the execution flag of the test scenario 002 from "not executed" to "recheck" as shown in FIG. 11(d).
[0062] Next, the test device 1 selects test scenario 005 from the test scenario list 14. Here, test scenario 005 does not include test process 0002, as shown in FIG. 11(a). Therefore, the test device 1 determines that when test scenario 005 is executed, the same abnormality (i.e., abnormality 002) as the abnormality that occurred in test scenario 001 will not occur. In this case, the test device 1 updates the execution flag of test scenario 005 from "not executed" to "possible", as shown in FIG. 11(d).
[0063] After this, the test execution unit 11 continues the test according to the updated test scenario list 14. Here, since the execution flag of the test scenario 002 is "recheck", the test execution unit 11 refers to the fault cause management information 17. Here, each factor related to the fault cause management information 17 is constantly monitored, and the fault cause management information 17 is updated according to the monitoring results. Then, if the factor that caused the fault 002 has been resolved, the test device 1 executes the test corresponding to the test scenario 002. On the other hand, if the factor that caused the fault 002 has not been resolved, the test device 1 does not execute the test corresponding to the test scenario 002. Incidentally, since the execution flag of the test scenario 005 is "possible", the test execution unit 11 executes the test corresponding to the test scenario 005.
[0064] 12 is a flowchart showing an example of the processing of the test result processing unit 13. The processing of this flowchart corresponds to S7 shown in FIG. 6. That is, the processing of this flowchart is executed when the test corresponding to the test scenario selected in S2 shown in FIG. 6 is completed without abnormal termination. Therefore, the test device 1 receives the test result from the system under test 2. Alternatively, the test device 1 acquires the test log of the system under test 2.
[0065] In S21, the test result processing unit 13 refers to the test judgment criteria and judges whether the test result is pass or fail. Then, if the results of all the test processes in the test scenario selected in S2 are pass, the test result processing unit 13 updates the execution flag corresponding to the executed test scenario to "pass" in S22. On the other hand, if the results of one or more test processes are fail, the test result processing unit 13 updates the execution flag corresponding to the executed test scenario to "fail" in S23. After this, the processing of the test result processing unit 13 proceeds to S24.
[0066] In S24, the test result processing unit 13 determines whether or not there are any test scenarios whose execution flags are "not executed", "possible", or "recheck" remaining in the test scenario list 14. Then, if there are any test scenarios whose execution flags are "not executed", "possible", or "recheck" remaining, the process of the test result processing unit 13 proceeds to S25.
[0067] In S25, the test result processing unit 13 selects one test scenario whose execution flag is “not executed”, “possible”, or “recheck” in the test scenario list 14. In the following description, the test scenario selected in S25 may be referred to as “test scenario M”.
[0068] In S26 to S27, the test result processing unit 13 judges whether the test scenario M includes a test process that was determined to have failed in S21. The test result processing unit 13 also judges whether the operating conditions of the test process that was determined to have failed and the corresponding test process in the test scenario M are the same. Then, when the test scenario M includes a test process that was determined to have failed and the operating conditions of the two test processes are the same, the test result processing unit 13 updates the execution flag of the test scenario M to "skip" in S28. On the other hand, when the test scenario M does not include a test process that was determined to have failed or the operating conditions of the two test processes are different from each other, the test result processing unit 13 updates the execution flag of the test scenario M to "enabled" in S29.
[0069] Fig. 13 shows an example of a procedure for updating the test scenario list 14 according to the test results. In this embodiment, it is assumed that the scenario configuration information 15 shown in Fig. 13(a) has been created in advance. The scenario configuration information 15 indicates that test scenario 001 includes test process 0001, test process 0002, and test process 0003, test scenario 002 includes test process 0001, test process 0002, and test process 0004, and test scenario 005 includes test process 0001, test process 0002, and test process 0005.
[0070] 13(b), test scenario 001, test scenario 002, and test scenario 005 are registered in the test scenario list 14. In the initial state, the execution flags of all test scenarios registered in the test scenario list 14 are set to "not executed."
[0071] The test execution unit 11 selects and executes the test scenarios registered in the test scenario list 14 one by one in order. In this embodiment, a test is performed according to test scenario 001 registered in the first record. In this test, it is assumed that the result of test process 0002 is a failure.
[0072] In this case, the test device 1 executes S23 shown in Fig. 12. Specifically, the test result processing unit 13 updates the execution flag of test scenario 001 from "not executed" to "executed (fail)" in the test scenario list 14, as shown in Fig. 13(b). After that, the test device 1 executes S24 to S29 in Fig. 12.
[0073] First, the test device 1 selects the test scenario 002 from the test scenario list 14. Then, the test device 1 judges whether the test scenario 002 includes the test process that was determined to be failed. That is, it is judged whether the test scenario 002 includes the test process 0002. Here, according to the scenario configuration information shown in FIG. 13(a), the test scenario 002 includes the test process 0002. Therefore, the test device 1 judges that the result of the test process 0002 will be a failure when the test scenario 002 is executed. In this case, the test device 1 updates the execution flag of the test scenario 002 from "not executed" to "skip" as shown in FIG. 13(b). Similarly, since the test scenario 005 also includes the test process 0002, the execution flag of the test scenario 005 is also updated from "not executed" to "skip".
[0074] After this, the test execution unit 11 continues the test according to the updated test scenario list 14. Here, the execution flags of the test scenarios 002 and 005 have been updated to "skip." Therefore, the test execution unit 11 does not execute the tests corresponding to the test scenarios 002 and 005.
[0075] In this manner, in the embodiment of the present invention, when a test result in a certain test scenario is a failure, execution of a test scenario that can obtain the same result is skipped, thereby saving time for performing useless tests and reducing power consumption for such useless tests.
[0076] 14 shows an example of the hardware configuration of a test device and a test target system. The test device 100 corresponds to the test device 1 shown in FIG. 1. The P-DU 200 and the RU 300 correspond to the test target system 2 shown in FIG.
[0077] The test device 100 includes a processor 101, a memory 102, a storage device 103, and a communication interface 104, and is realized by, for example, an information processing device such as a personal computer. The processor 101 executes the test program stored in the storage device 103 to execute the processes of the flowcharts shown in Figs. 6, 7, and 12. That is, the processor 101 executes the test program to provide the functions of the test execution unit 11, the fault code processing unit 12, and the test result processing unit 13 shown in Fig. 1. The memory 102 is used as a working area for the processor 101. The storage device 103 stores the above-mentioned test program. The test scenario list 14, the scenario configuration information 15, and the fault code table 16 are stored in the memory 102 or the storage device 103. The communication interface 104 is, for example, a PCI (Peripheral Component Interconnect), and provides an interface for communicating with the P-DU 200.
[0078] The P-DU 200 includes a processor 201, a memory 202, a storage device 203, and a communication interface 204. The processor 201 provides the function of a DU by executing a communication program stored in the storage device 203. The processor 201 also performs a test instructed by the test equipment 100 by executing a test program stored in the storage device 203. The memory 202 is used as a working area for the processor 201. The storage device 203 stores the above-mentioned communication program and test program. Note that a test log is stored in the storage device 203. The communication interface 204 provides an interface for communicating with the test equipment 100 and a fronthaul interface for communicating with the RU 300.
[0079] The RU 300 includes a processor 301, a memory 302, a storage device 303, a communication interface 304, and a radio circuit 305. The processor 301 provides the functionality of the RU by executing a communication program stored in the storage device 303. The memory 302 is used as a working area for the processor 301. The storage device 303 stores the above-mentioned communication program. The communication interface 304 provides a fronthaul interface for communicating with the P-DU 200. The radio circuit 305 includes a radio transmitter, a radio receiver, an antenna, and the like. [Explanation of symbols]
[0080] 1 Test equipment 2. Test System 11 Test Execution Department 12 Abnormality code processing section 13 Test result processing section 14 Test scenario list 15 Scenario configuration information 16 Abnormality Code Table 17. Abnormality Cause Management Information
Claims
1. a storage unit for storing a test scenario list in which a plurality of test scenarios are registered, scenario configuration information representing test processes included in each test scenario, and abnormality management information representing types of abnormalities that may occur when each test process is executed on a test subject; a test execution unit that executes a test on the test subject in accordance with a test scenario registered in the test scenario list; a processing unit that, when a first abnormality occurs in a test based on a first test scenario among the plurality of test scenarios, identifies a related test process representing a test process in which an abnormality of the same type as the first abnormality occurs based on the abnormality management information, and identifies a test scenario including the related test process based on the scenario configuration information, The test execution unit skips the test scenario specified by the processing unit among the test scenarios registered in the test scenario list. A test device comprising:
2. The state of each test scenario is managed using an execution flag in the test scenario list; The states of the test scenarios represented by the execution flags include a first state representing that the test scenario has not yet been executed, a second state representing that the test related to the test scenario has been completed, a third state representing that an abnormality has occurred in the test related to the test scenario, and a fourth state representing that the test scenario is to be skipped; the processing unit updates an execution flag of the identified test scenario to the fourth state; The test execution unit skips a test scenario in the test scenario list whose execution flag indicates the fourth state.
2. The test device according to claim 1 .
3. the states of the test scenarios represented by the execution flags include a fifth state representing that an abnormality caused by a temporary factor has occurred in a test related to the test scenario; The test execution unit executes a test based on a test scenario in which the execution flag indicates the fifth state after the temporary cause is eliminated.
3. The test device according to claim 2.
4. the fault management information indicates a type of fault that may occur for a combination of a test process and a predetermined condition; When a second abnormality occurs in a test based on a second test scenario among the plurality of test scenarios, the processing unit identifies a related test process representing a test process in which an abnormality of the same type as the second abnormality occurs under the predetermined conditions, and identifies a test scenario including the related test process based on the scenario configuration information.
2. The test device according to claim 1 .
5. a second processing unit that, when a result of a test based on a first test process in a third test scenario among the plurality of test scenarios does not satisfy a predetermined test judgment criterion, identifies a test scenario including the first test process based on the scenario configuration information; The test execution unit skips the test scenario specified by the second processing unit among the test scenarios registered in the test scenario list.
2. The test device according to claim 1 .
6. A testing method for testing a test object by using a test scenario list in which a plurality of test scenarios are registered, scenario configuration information representing test processes included in each test scenario, and fault management information representing types of faults that may occur when each test process is executed on the test object, comprising: execute a test on the test subject according to the test scenario registered in the test scenario list; when a first abnormality occurs in a test based on a first test scenario among the plurality of test scenarios, identifying a related test process representing a test process in which an abnormality of the same type as the first abnormality occurs based on the abnormality management information; Identifying a test scenario including the associated test process based on the scenario configuration information; In the step of sequentially executing the test scenarios registered in the test scenario list one by one, a specified test scenario is skipped.
13. A test method comprising:
Citation Information
Patent Citations
Logical simulation system
JP1993101133A
Simulation device, test scenario file creation method, and test method using test scenario file
JP2017084082A
Communication system, communication processing device, and apparatus addition method
JP2023015695A
System and method for generation of integrated test scenarios
US20180204150A1
Automatic test system, automatic test device, automatic test method and program
JP2008234232A
