Embedded device testing method using host virtualization and computing device executing the same
The present invention relates to an embedded device testing method. Preferably, the present invention relates to a function testing method for an embedded device designed to execute a specific function. The embedded device testing method having a hierarchical host structure executed on a computing device according to the present invention includes: receiving, by a main host, setting information for an execution environment of a target device; constructing a virtualized execution environment on a sub host according to the setting information; executing specific software or a specific test case in the constructed execution environment; and monitoring a result of the execution. According to the present invention, resources may be utilized efficiently because there is no need to newly configure and prepare physical hardware resources every time during the development and testing of an embedded device.
1 . An embedded device testing method having a hierarchical host structure, the embedded device testing method comprising:
receiving, by a main host, setting information for an execution environment of a target device;
determining, by the main host, a schedule of a test request of a user;
allocating a sub host when the target device and the execution environment become available according to the determined schedule;
constructing a virtualized execution environment on a sub host according to the setting information;
executing specific software or a specific test case in the constructed execution environment; and
monitoring a result of the execution via a log manager,
wherein the allocating of the sub host comprises determining a type of the virtualized execution environment based on a first threshold defining an isolation level and a second threshold defining a distribution level, which are set for the test case, and
wherein the method further comprises:
updating the isolation level and the distribution level of the virtualized execution environment through the log manager to be applied when the virtualized execution environment is reused; and
performing the reuse of the virtualized execution environment by at least one of: (i) utilizing an image uploaded to a registry for multi-user access, (ii) utilizing a script code defining environment settings for version management, or (iii) storing data external to a container for data persistence.
2 . The embedded device testing method of claim 1 , further comprising storing the constructed execution environment,
wherein in the constructing of the virtualized execution environment on the sub host, a pre-constructed execution environment is reused according to a history of the setting information.
3 . The embedded device testing method of claim 1 ,
wherein in the constructing of the virtualized execution environment on the sub host, the execution environment is constructed on the allocated sub host.
4 . The embedded device testing method of claim 1 , further comprising storing, by the main host, the test case and a revision history of the test case.
5 . The embedded device testing method of claim 1 , further comprising authenticating, by the main host, the user,
wherein in the receiving of the setting information for the execution environment, the setting information corresponding to an access right of the user is received.
6 . A computing device comprising:
a processor; and
a memory communicating with the processor,
wherein the memory stores commands for causing the processor to perform operations, and
the operations include;
an operation of receiving, by a main host, setting information for an execution environment of a target device,
an operation of determining, by the main host, a schedule of a test request of a user,
an operation of allocating a sub host when the target device and the execution environment become available according to the determined schedule,
an operation of constructing a virtualized execution environment on a sub host according to the setting information,
an operation of executing specific software or a specific test case in the constructed execution environment, and
an operation of monitoring a result of the execution via a log manager,
wherein the operation of allocating of the sub host comprises determining a type of the virtualized execution environment based on a first threshold defining an isolation level and a second threshold defining a distribution level, which are set for the test case, and
wherein the operation further comprises:
updating the isolation level and the distribution level of the virtualized execution environment through the log manager to be applied when the virtualized execution environment is reused; and
performing the reuse of the virtualized execution environment by at least one of: (i) utilizing an image uploaded to a registry for multi-user access, (ii) utilizing a script code defining environment settings for version management, or (iii) storing data external to a container for data persistence.
7 . The computing device of claim 6 , wherein the operations further include an operation of storing the constructed execution environment, and
in the operation of constructing the virtualized execution environment on the sub host, a pre-constructed execution environment is reused according to a history of the setting information.
8 . The computing device of claim 6 , wherein
in the operation of constructing the virtualized execution environment on the sub host, the execution environment is constructed on the allocated sub host.
9 . The computing device of claim 6 , wherein the operations further include an operation of storing, by the main host, the test case and a revision history of the test case.
10 . The computing device of claim 6 , wherein the operations further include an operation of authenticating, by the main host, the user, and
in the operation of receiving the setting information for the execution environment, the setting information corresponding to an access right of the user is received.