Test device and test method

The test device and method enhance testing efficiency by identifying and skipping redundant scenarios based on abnormality management, addressing inefficiencies in complex communication equipment testing and reducing unnecessary tests and power consumption.

WO2024202993A1PCT designated stage expired Publication Date: 2024-10-03FUJITSU LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/008115
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-04
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

As communication equipment and systems become increasingly complex, the number of test items grows, leading to inefficient testing due to repeated tests for similar reasons, resulting in unnecessary tests and power consumption, affecting test efficiency across various equipment and systems.

Method used

A test device and method that utilize a test scenario list, abnormality management information, and processing units to identify and skip redundant test scenarios based on detected abnormalities, optimizing the execution of test scenarios and reducing unnecessary testing.

Benefits of technology

Improves test efficiency by skipping redundant tests, thereby saving time and reducing power consumption, ensuring that only necessary tests are performed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024008115_03102024_PF_FP_ABST
    Figure JP2024008115_03102024_PF_FP_ABST
Patent Text Reader

Abstract

[Problem] To improve the efficiency of a test method for implementing a plurality of test scenarios in succession. [Solution] This test device is provided with a storage unit, a test execution unit, and a processing unit. The storage unit 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 the types of abnormalities that can occur when each test process is executed on a test subject. The test execution unit executes a test on the test subject according to test scenarios registered in the test scenario list. When a first abnormality occurs in a test based on a first test scenario, the processing unit identifies related test processes representing test processes in which the same type of abnormality as the first abnormality will occur on the basis of the abnormality management information, and identifies test scenarios that include the related test processes on the basis of the scenario configuration information. The test execution unit skips the test scenarios identified by the processing unit.
Need to check novelty before this filing date? Find Prior Art

Description

Testing equipment and testing method

[0001] The present invention relates to a testing device and a testing method.

[0002] In many cases, communication devices or communication systems are tested to confirm their operation before shipping. 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 these circumstances, an automatic test method for automatically testing network communication devices has been proposed (for example, see Patent Document 1).

[0003] Japanese Patent Application Laid-Open No. 2008-234232

[0004] As described above, as the number of test items increases, the same or similar tests may be repeatedly performed in a series of test procedures. In such cases, when an abnormality is detected in one test, an abnormality may also be detected in subsequent tests for the same reason. This results in inefficient testing because unnecessary tests are performed. In addition, unnecessary power consumption occurs. Note that this problem does not only occur when testing communication equipment or communication systems, but can occur when testing any equipment or system.

[0005] An object of one aspect of the present invention is to improve the efficiency of a testing method that performs multiple test scenarios in succession.

[0006] A test apparatus 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 that indicates test processes included in each test scenario, and fault management information that indicates types of faults 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 in accordance with the test scenarios registered in the test scenario list, and a processing unit that, when a first fault occurs in a test based on a first test scenario among the plurality of test scenarios, identifies, based on the fault management information, a related test process that indicates a test process in which an fault of the same type as the first fault occurs, and identifies a test scenario that includes 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.

[0007] According to the above-described aspect, the efficiency of a test method in which a plurality of test scenarios are executed in succession is improved.

[0008] 1 is a diagram showing an example of a test device according to an embodiment of the present invention. FIG. 2 is a diagram showing an example of a test scenario. FIG. 3 is a diagram showing an example of a test scenario list. FIG. 4 is a diagram showing an example of scenario configuration information. FIG. 5 is a diagram showing an example of an abnormality code table. FIG. 6 is a flowchart showing an example of processing by a test device. FIG. 7 is a flowchart showing an example of processing by an abnormality code processing unit. FIG. 8 is a diagram showing an example of a procedure for updating a test scenario list in response to an abnormal termination. FIG. 9 is a diagram showing another example of a procedure for updating a test scenario list in response to an abnormal termination (part 1). FIG. 10 is a diagram showing another example of a procedure for updating a test scenario list in response to an abnormal termination (part 2). FIG. 11 is a diagram showing an example of a procedure for updating a test scenario list in response to an abnormality caused by a temporary factor. FIG. 12 is a flowchart showing an example of processing by a test result processing unit. FIG. 13 is a diagram showing an example of a procedure for updating a test scenario list in response to test results. FIG. 14 is a diagram showing an example of the hardware configuration of a test device and a test target system.

[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) that constitute a radio base station conforming to the O-RAN specifications. The RU is equipped with one or more antennas and receives radio signals from user terminals and transmits radio signals to the user terminals. 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 the functions of the DU that are actually used, as well as an interface for communicating with the test equipment. 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 test results. Note that the P-DU includes a DU that has the function of performing tests according 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 in accordance with the test scenario. In this embodiment, a plurality of test scenarios is provided to the test apparatus 1. The test execution unit 11 then executes a test of the test target system 2 in accordance with 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 content of a test to be performed in the system under test 2. Specifically, the test scenario describes one or more test processes to be performed in the system under test 2. 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." Furthermore, 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 the process ID of each test process be described in each test scenario. 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 , test scenario 001 includes test process 0001, test process 0002, and test process 0003. Furthermore, test scenario 002 includes test process 0001, test process 0002, and test process 0004. Assume here that test scenario 001 and test scenario 002 are provided to the test device 1. Then, the test execution unit 11 executes test process 0001, test process 0002, and test process 0003 according to test scenario 001, and executes test process 0001, test process 0002, and test process 0004 according to test scenario 002. In this case, test process 0001 and test process 0002 are each executed twice. Note that one test process corresponds to, for example, one function. However, one test process may also correspond to a series of multiple functions.

[0015] FIG. 3 shows an example of the test scenario list 14. The test scenario list 14 registers test scenarios to be provided to the test device 1. The test scenario list 14 also records an execution flag for each test scenario. The execution flag indicates the status of each test scenario. Specifically, the execution flag indicates the following states: "Not performed" indicates that the test has not been performed. "Completed (pass)" indicates that the test has been performed and the result is pass. "Completed (fail)" indicates that the test has been performed and the result is fail. "Completed (abnormal: code)" indicates that the test has been performed and an abnormality was detected in the test. In this case, a code indicating the type of abnormality is also recorded. "Feasible" indicates that the test has not yet been performed but can be performed. "Skip" indicates that the test will not be performed. "Reconfirm" indicates that the test will be performed later.

[0016] In the initial state of the test scenario list 14, all test scenarios are set to "Not Executed." After that, when a test is executed according to a test scenario, the execution flag corresponding to each test scenario is updated. The test execution unit 11 executes test scenarios registered in the test scenario list 14 one by one, with the execution flag set to "Not Executed" or "Possible."

[0017] 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 test scenario 001 includes test process 0001, test process 0002, and test process 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 (such as trace function output and logs) obtained by executing a software integration test or the like on the test scenario provided to the test device 1. Alternatively, the scenario configuration information 15 may be generated by collecting the 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 types of faults that can occur when each test process is executed in the test target system 2. The "o" symbol in FIG. 5 indicates that a fault from which recovery may not be possible may occur. Examples of faults from which recovery may not be possible include incorrect settings on a device in the test target system 2 or insufficient memory capacity on a device in the test target system 2. The "△" symbol indicates that a fault may be caused by a temporary factor. Examples of faults caused by temporary factors include a communication error due to a temporary degradation of the communication environment. The "-" symbol indicates that no fault will occur. The "*" symbol indicates that a conditional branch is present. In the following description, a fault with the 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, for example, to a position in the source code describing the test process (or the order in which the process is executed). The anomaly factors are represented by an array. In this example, it is shown that anomaly 001 may occur in array [1] and array [3].

[0021] Furthermore, whether or not an abnormality occurs for a single test process may depend on the operating conditions. This situation is represented in the abnormality code table 16 as a secondary array, which is a branching condition for the primary array. For example, secondary arrays [1] to [3] are set for 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 test process 0001 is executed, if the condition corresponding to array [2]-[1] is satisfied, fault 001 may occur, but if the condition corresponding to array [2]-[2] or array [2]-[3] is satisfied, fault 001 does not occur. As an example, assume that first, second, and third encryption methods are supported between the DU and RU. Also assume that the first encryption method, the second encryption method, and the third encryption method correspond to array [2]-[1], array [2]-[2], and array [2]-[3], respectively. In this case, fault code table 16 shown in FIG. 5 indicates that fault 001 occurs when communication is performed using the first encryption method, but that fault 001 does not occur when communication is performed using the second or third encryption method.

[0023] The fault code table 16 may be created manually, for example, by referencing the 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 the fault condition that may occur in that test process from the functions 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 a test ends abnormally, the P-DU transmits an abnormality code indicating the type of 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 was detected based on the abnormality code received from the P-DU. Furthermore, the fault code processing unit 12 determines whether to skip other test scenarios based on the type of abnormality (i.e., the abnormality 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 determine whether there are any test scenarios that should be skipped. Then, when a test scenario that should be skipped is found, the fault code processing unit 12 updates the execution flag of that 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 pre-prepared test judgment criteria to determine whether the test result is pass or fail. The test judgment criteria are created, for example, based on 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 a 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." In addition, the test execution unit 11 does not execute a test scenario whose execution flag is "executed" or "skip."

[0027] 6 is a flowchart showing an example of processing performed by the test device 1. The test scenario list 14 stores one or more test scenarios to be provided to the test device 1. The initial state of the execution flag for each test scenario is "not yet performed."

[0028] In S1, the test execution unit 11 determines 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 determined 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 perform a test using 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," the test execution unit 11 checks in S4 whether the execution flag of the selected test scenario is "recheck." In addition, if the execution flag of the selected test scenario is "recheck," the test execution unit 11 checks whether the cause of the recheck has been resolved. For example, if a temporary communication error occurs due to a poor communication environment around the test target system 2, the test execution unit 11 checks whether the communication environment has improved. If the execution flag is not "recheck," or if the cause of the recheck has been resolved, 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 recheck has not been resolved, the test device 1 returns to S1.

[0031] In S5, the test execution unit 11 executes a test of the test target system 2 in accordance with the selected test scenario. For example, when executing 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 a fault occurred during the test. If the test is completed without any faults 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. The test result processing unit 13 then 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 processing 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, the test device 1 ends the test when the execution flags of all test scenarios become "completed" or "skip."

[0036] 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 there are any test scenarios whose execution flags are "Not Executed," "Possible," or "Recheck" remaining in the test scenario list 14. If there are any test scenarios whose execution flags are "Not Executed," "Possible," or "Recheck," 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 "Reconfirm" 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 determines 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 determination will be described later with reference to an example.

[0040] If 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 test scenario N to "possible" in S14. On the other hand, if 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 test scenario N to "skip" in S15.

[0041] 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 test scenario 001 includes test process 0001 and test process 0002, test scenario 002 includes test process 0002 and test process 0004, and test scenario 005 includes test process 0003 and test process 0004. The abnormality code table 16 indicates that abnormality 001 occurs when test process 0001 is executed, and that abnormality 001 also occurs when 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 flag of each test scenario registered in the test scenario list 14 is "not executed."

[0043] The test execution unit 11 sequentially selects and executes the test scenarios registered in the test scenario list 14 one by one. In this example, 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 this, 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] The test apparatus 1 first selects test scenario 002 from the test scenario list 14. Then, the test apparatus 1 determines whether the same abnormality as the abnormality that occurred in test scenario 001 may occur when test scenario 002 is executed. Here, abnormality 001 occurs in test scenario 001. According to the abnormality code table 16 shown in FIG. 8B, abnormality 001 occurs in test process 0001 and test process 0002. Therefore, the test apparatus 1 determines that abnormality 001 may occur not only when a test scenario including test process 0001 is executed, but also when a test scenario including test process 0002 is executed. Furthermore, test scenario 002 includes test process 0002. Therefore, the test apparatus 1 determines that the same abnormality (i.e., abnormality 001) as the abnormality that occurred in test scenario 001 may occur when test scenario 002 is executed. Therefore, the test apparatus 1 updates the execution flag for test scenario 002 from "not executed" to "skip," as shown in FIG. 8C.

[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 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. 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 for 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 for 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 the procedure for updating the test scenario list 14 in response to an abnormal termination. In this embodiment, the encryption algorithm used in the O-RAN is defined as the branching condition. For example, as shown in FIG. 9( a), in test scenario 001, processing for three encryption algorithms (AES128-CTR, 3DES-CBC, and HMAC-SHA-256) is described as test process 0001. Note that O-RAN SPEC versions up to 4 specify the use of 3DES-CBC. In contrast, O-RAN SPEC version 5 specifies the use of AES128-CTR.

[0050] FIG. 9(b) shows an example of the fault code table 16 corresponding to the test scenario shown in FIG. 9(a). Here, test process 0001, which includes a branching condition, is represented as a two-dimensional array. Specifically, array [1]-[1] corresponds to the case where AES128-CTR is used, array [1]-[2] corresponds to the case where 3DES-CBC is used, and array [1]-[3] corresponds to the case where HMAC-SHA-256 is used. In this example, a "◯" mark is set for array [1]-[1]. In other words, this fault code table 16 indicates that faults 001 and 002 can occur when AES128-CTR is used in test process 0001.

[0051] Scenario configuration information 15 is created in advance. In this embodiment, as shown in Fig. 10(a), the scenario configuration information 15 indicates that test scenario 001 includes test processes 0001 and 0002, test scenario 002 includes test processes 0001 and 0003, and test scenario 005 includes test processes 0001 and 0004. In test scenario 002, AES128-CTR is used in test process 0001, and in test scenario 005, 3DES-CBC is used in test process 0001.

[0052] The test execution unit 11 sequentially selects and executes the test scenarios registered in the test scenario list 14 one by one. In this example, the test is performed according to test scenario 001 registered in the first record. During 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, as shown in Fig. 10(b), 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)." After this, the test device 1 executes the processing 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 processing of S13 to S15.

[0054] The test equipment 1 first selects test scenario 002 from the test scenario list 14. Then, the test equipment 1 determines whether the same anomaly that occurred in test scenario 001 could occur when test scenario 002 is executed. Here, anomaly 001 has occurred in test scenario 001. According to the anomaly code table 16 shown in FIG. 9B, anomaly 001 occurs due to the cause represented by the array [1]-[1] corresponding to test process 0001. That is, anomaly 001 occurs when test process 0001 is executed using AES128-CTR. In contrast, test scenario 002 includes test process 0001 and uses AES128-CTR. Therefore, the test equipment 1 determines that the same anomaly (i.e., anomaly 001) that occurred in test scenario 001 will occur when test scenario 002 is executed. In this case, the test equipment 1 updates the execution flag for test scenario 002 from "not executed" to "skip," as shown in FIG. 10B.

[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, test scenario 005 uses 3DES-CBC. In other words, test scenario 005 does not use AES128-CTR. Therefore, the test device 1 determines that when test scenario 005 is executed, the same abnormality (i.e., abnormality 001) 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. 10(b).

[0056] Thereafter, the test execution unit 11 continues the test according to the updated test scenario list 14. Here, the execution flag for 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 for test scenario 005 is "enabled," so the test execution unit 11 executes the test corresponding to test scenario 005. In this way, in the embodiment shown in Figures 9 and 10, a decision is made as to whether to execute or skip the 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 example, 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) have been created in advance. The scenario configuration information 15 indicates that test scenario 001 includes test process 0001 and test process 0002, test scenario 002 includes test process 0002 and test process 0004, and test scenario 005 includes test process 0003 and test process 0004. Furthermore, the anomaly code table 16 indicates that anomaly 002 occurs when test process 0002 is executed. Note that anomaly 002 is an anomaly caused by a temporary factor. A temporary factor could be, for example, degradation of the communication environment surrounding the test target system 2.

[0058] 11C shows an example of fault cause management information 17 for managing the causes of temporary faults. The fault cause management information 17 indicates whether the cause of the temporary fault continues or has been resolved. For example, when a fault occurs due to a deterioration in 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 sequentially selects and executes the test scenarios registered in the test scenario list 14 one by one. In this example, the 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, as shown in Fig. 11(d), 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: 002)." After this, the test device 1 executes the process of the flowchart shown in Fig. 7.

[0061] The test device 1 first selects test scenario 002 from the test scenario list 14. Then, the test device 1 determines whether or not the same abnormality as the abnormality that occurred in test scenario 001 may occur when test scenario 002 is executed. Here, abnormality 002 occurs in test scenario 001. Furthermore, according to the abnormality code table 16 shown in FIG. 11(b), abnormality 002 occurs in test process 0002. And test scenario 002 includes test process 0002. Therefore, the test device 1 determines that the same abnormality (i.e., abnormality 002) as the abnormality that occurred in test scenario 001 will occur when test scenario 002 is executed. However, abnormality 002 is a temporary abnormality. In this case, the test device 1 updates the execution flag of 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] Thereafter, the test execution unit 11 continues the test in accordance with the updated test scenario list 14. Here, since the execution flag for test scenario 002 is "reconfirm," 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 fault 002 has been resolved, the test equipment 1 executes the test corresponding to test scenario 002. On the other hand, if the factor that caused fault 002 has not been resolved, the test equipment 1 does not execute the test corresponding to test scenario 002. Note that, since the execution flag for test scenario 005 is "enabled," the test execution unit 11 executes the test corresponding to 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 any abnormal termination. Therefore, the test device 1 receives the test results from the test target system 2. Alternatively, the test device 1 acquires the test log of the test target system 2.

[0065] In S21, the test result processing unit 13 refers to the test judgment criteria and determines whether the test result is pass or fail. If the results of all 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 there are any test scenarios whose execution flags are "Not Executed," "Possible," or "Reconfirm" remaining in the test scenario list 14. If there are any test scenarios whose execution flags are "Not Executed," "Possible," or "Reconfirm," the processing 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 "Reconfirm" 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 and S27, the test result processing unit 13 determines whether test scenario M includes a test process that was determined to have failed in S21. The test result processing unit 13 also determines whether the operating conditions of the test process that was determined to have failed and the corresponding test process in test scenario M are the same. If 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 test scenario M to "skip" in S28. On the other hand, if test scenario M does not include a test process that was determined to have failed, or if the operating conditions of the two test processes are different, the test result processing unit 13 updates the execution flag of test scenario M to "enabled" in S29.

[0069] 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] 13B, the test scenario list 14 has registered therein test scenario 001, test scenario 002, and test scenario 005. In the initial state, the execution flag of each test scenario registered in the test scenario list 14 is "not executed."

[0071] The test execution unit 11 sequentially selects and executes the test scenarios registered in the test scenario list 14 one by one. In this example, the test is performed according to test scenario 001 registered in the first record. In this test, the result of test process 0002 is assumed to be 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 this, the test device 1 executes S24 to S29 in Fig. 12.

[0073] The test device 1 first selects test scenario 002 from the test scenario list 14. Then, the test device 1 determines whether test scenario 002 includes the test process determined to be failed. That is, the test device 1 determines whether test scenario 002 includes test process 0002. Here, according to the scenario configuration information shown in FIG. 13(a), test scenario 002 includes test process 0002. Therefore, the test device 1 determines that when test scenario 002 is executed, the result of test process 0002 will be failed. In this case, as shown in FIG. 13(b), the test device 1 updates the execution flag of test scenario 002 from "not executed" to "skip." Similarly, because test scenario 005 also includes test process 0002, the execution flag of 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 for test scenario 002 and test scenario 005 have been updated to "skip." Therefore, the test execution unit 11 does not execute the tests corresponding to test scenario 002 and test scenario 005.

[0075] In this manner, in the embodiment of the present invention, when a test result in a certain test scenario is failed, execution of a test scenario that achieves the same result is skipped, thereby saving time that would otherwise be spent on performing unnecessary tests and reducing power consumption for such unnecessary tests.

[0076] 14 shows an example of the hardware configuration of a test device and a test target system. Note that the test device 100 corresponds to the test device 1 shown in FIG. 1. The P-DU 200 and RU 300 correspond to the test target system 2 shown in FIG. 1.

[0077] The test apparatus 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 a test program stored in the storage device 103 to perform the processing of the flowcharts shown in FIGS. 6, 7, and 12. That is, when the processor 101 executes the test program, 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 are provided. The memory 102 is used as a work area for the processor 101. The storage device 103 stores the 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 functions of the DU by executing a communication program stored in the storage device 203. The processor 201 also performs tests instructed by the test apparatus 100 by executing a test program stored in the storage device 203. The memory 202 is used as a work 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 apparatus 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 functions 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, etc.

[0080] REFERENCE SIGNS LIST 1 Test device 2 Test target system 11 Test execution unit 12 Error code processing unit 13 Test result processing unit 14 Test scenario list 15 Scenario configuration information 16 Error code table 17 Error cause management information

Claims

1. A testing device comprising: a storage unit that stores a test scenario list in which a plurality of test scenarios are registered, scenario configuration information that represents test processing included in each test scenario, and abnormality management information that represents a type of abnormality that may occur when each test processing is executed on a test object; a test execution unit that executes a test on the test object in accordance with 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 processing that represents a test processing 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 processing based on the scenario configuration information; wherein the test execution unit skips the test scenario identified by the processing unit from among the test scenarios registered in the test scenario list.

2. The testing device according to claim 1, characterized in that the state of each test scenario is managed using an execution flag in the test scenario list, and the states of the test scenario represented by the execution flag include a first state indicating that the test scenario has not yet been performed, a second state indicating that the test related to the test scenario has been completed, a third state indicating that an abnormality has occurred in the test related to the test scenario, and a fourth state indicating that the test scenario is to be skipped, the processing unit updates the execution flag of the identified test scenario to the fourth state, and the test execution unit skips a test scenario in the test scenario list whose execution flag indicates the fourth state.

3. The test device according to claim 2, characterized in that the state of the test scenario represented by the execution flag includes a fifth state which represents that an abnormality caused by a temporary factor has occurred in a test related to the test scenario, and the test execution unit executes a test based on the test scenario for which the execution flag represents the fifth state after the temporary factor has been resolved.

4. The test device described in claim 1, characterized in that the abnormality management information represents a type of abnormality that can occur for a combination of a test process and specified conditions, and when a second abnormality occurs in a test based on a second test scenario among the multiple test scenarios, the processing unit identifies an associated test process representing a test process in which an abnormality of the same type as the second abnormality occurs under the specified conditions, and identifies a test scenario including the associated test process based on the scenario configuration information.

5. The test device described in claim 1, further comprising: a second processing unit that identifies a test scenario including a first test process based on the scenario configuration information 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; and wherein the test execution unit skips the test scenario identified by the second processing unit from among the test scenarios registered in the test scenario list.

6. A testing method for testing a test object by utilizing 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 object, the method comprising the steps of: executing a test on the test object according to the test scenarios 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 related test process based on the scenario configuration information; and skipping the identified test scenario in a process of executing the test scenarios registered in the test scenario list one by one in order.

7. The testing method according to claim 6, wherein the state of each test scenario is managed using an execution flag in the test scenario list, and the states of the test scenario represented by the execution flag include a first state indicating that the test scenario has not yet been performed, a second state indicating that the test related to the test scenario has been completed, a third state indicating that an abnormality has occurred in the test related to the test scenario, and a fourth state indicating that the test scenario is to be skipped, and the testing method includes updating the execution flag of the identified test scenario to the fourth state, and the skipping includes skipping a test scenario in the test scenario list whose execution flag indicates the fourth state.

8. The testing method according to claim 7, wherein the state of the test scenario represented by the execution flag includes a fifth state representing that an abnormality caused by a temporary factor has occurred in a test related to the test scenario, and executing the test includes executing a test based on the test scenario for which the execution flag represents the fifth state after the temporary factor has been resolved.

Citation Information

Patent Citations

  • Simulation device, test scenario file creation method, and test method using test scenario file

    JP2017084082A

  • System and method for generation of integrated test scenarios

    US20180204150A1