Apparatus for testing an interworking function between multimedia devices and method thereof
An apparatus for testing a multimedia device includes a database log tracking device that transmits a log of a first terminal and a processor that monitors the log to detect a predetermined event, obtains event execution information at a timing when the event occurs from the first terminal and a second terminal interworking with the first terminal in response to that the event is detected, and compares the event execution information with predetermined reference information to determine operation states of the first and second terminals.
1 . An apparatus for testing a multimedia device, the apparatus comprising:
a memory storing program instructions; and
a processor configured to execute the program instructions, the program instructions, when executed, configured to:
receive a log of a first terminal,
when a keyword is detected among predetermined keywords in the log of the first terminal, detect a predetermined event matching the detected keyword, wherein the predetermined keywords are each associated with a predetermined function of the first terminal and a predetermined function of a second terminal,
execute the predetermined function of the first terminal at an event timing to obtain a first event execution information indicating an operation state of the first terminal,
execute the predetermined function of the second terminal at the event timing to obtain a second event execution information indicating an operation state of the second terminal, wherein the second terminal interworks with the first terminal at the event timing,
compare the first event execution information with a first reference information matching the predetermined event among a plurality of predetermined reference information to determine whether the operation state of the first terminal is abnormal,
compare the second event execution information with a second reference information matching the predetermined event among the plurality of predetermined reference information to determine whether the operation state of the second terminal is abnormal, and
report on a result of determining whether the operation states of the first terminal and the second terminal are abnormal,
wherein the event timing is a timing when the predetermined event occurs from the first terminal and the second terminal.
2 . The apparatus of claim 1 , wherein the processor is further configured to execute the program instructions configured to:
detect the keyword from a payload of the log of the first terminal, and
determine a timing when the keyword is detected as the event timing.
3 . The apparatus of claim 1 , wherein the processor is further configured to execute the program instructions configured to:
operate the first terminal to perform route guidance, and
receive the log of the first terminal from the first terminal while the first terminal performs the route guidance.
4 . The apparatus of claim 3 , wherein the processor is further configured to execute the program instructions configured to transmit virtual location information to the first terminal.
5 . The apparatus of claim 3 , wherein the processor is further configured to execute the program instructions configured to transmit a virtual user input to the first terminal at intervals of a certain time.
6 . The apparatus of claim 5 , wherein the processor is further configured to execute the program instructions configured to:
identify a virtual input timing when the virtual user input is transmitted, wherein the virtual input timing corresponds to the event timing when the predetermined event occurs from the first terminal, and
extract the first reference information corresponding to the virtual input timing.
7 . The apparatus of claim 1 , wherein the processor is further configured to execute the program instructions configured to:
receive first image information including information of a screen displayed by the first terminal at the event timing when the predetermined event occurs from the first terminal, and
receive second image information including information of a screen displayed by the second terminal at the event timing when the predetermined event occurs from the second terminal.
8 . The apparatus of claim 7 , wherein the processor is further configured to execute the program instructions configured to:
extract a partial image from the first image information, and
extract a partial image from the second image information.
9 . The apparatus of claim 1 , wherein the processor is further configured to execute the program instructions configured to receive state information in a naming-based data format from the first terminal.
10 . A method for testing a multimedia device, the method comprising:
receiving, by a processor, a log of a first terminal;
when a keyword is detected among predetermined keywords in the log of the first terminal, detecting, by the processor, a predetermined event matching the detected keyword, wherein the predetermined keywords are each associated with a predetermined function of the first terminal and a predetermined function of a second terminal;
executing, by the processor, the predetermined function of the first terminal at an event timing to obtain a first event execution information indicating an operation state of the first terminal;
executing, by the processor, the predetermined function of the second terminal at the event timing to obtain a second event execution information indicating an operation state of the second terminal, wherein the second terminal interworks with the first terminal at the event timing;
comparing, by the processor, the first event execution information with a first reference information matching the predetermined event among a plurality of predetermined reference information to determine whether the operation state of the first terminal is abnormal;
comparing, by the processor, the second event execution information with a second reference information matching the predetermined event among the plurality of predetermined reference information to determine whether the operation state of the second terminal is abnormal; and
reporting, by the processor, on a result of determining whether the operation states of the first terminal and the second terminal are abnormal,
wherein the event timing is a timing when the predetermined event occurs from the first terminal and the second terminal.
11 . The method of claim 10 , wherein the detecting of the predetermined event matching the detected keyword includes:
detecting, by the processor, the keyword from a payload of the log of the first terminal; and
determining, by the processor, a timing when the keyword is detected as the event timing.
12 . The method of claim 10 , wherein the detecting of the predetermined event matching the detected keyword includes:
operating, by the processor, the first terminal to perform route guidance; and
receiving, by the processor, the log of the first terminal from the first terminal while the first terminal performs the route guidance.
13 . The method of claim 12 , wherein the operating of the first terminal to perform the route guidance includes:
transmitting, by the processor, virtual location information to the first terminal.
14 . The method of claim 12 , wherein the operating of the first terminal to perform the route guidance includes:
transmitting, by the processor, a virtual user input to the first terminal at intervals of a certain time.
15 . The method of claim 14 , wherein the comparing of the first event execution information with the first reference information matching the predetermined event among the plurality of predetermined reference information to determine whether the operation state of the first terminal is abnormal includes:
identifying, by the processor, a virtual input timing when the virtual user input is transmitted, wherein the virtual input timing corresponds to the event timing when the predetermined event occurs from the first terminal; and
extracting, by the processor, the first reference information corresponding to the virtual input timing.
16 . The method of claim 10 ,
wherein the obtaining of the first event execution information indicating the operation state of the first terminal includes:
receiving, by the processor, first image information including information of a screen displayed by the first terminal at the event timing when the predetermined event occurs from the first terminal, and
wherein the obtaining of the second event execution information indicating the operation state of the second terminal includes:
receiving, by the processor, second image information including information of a screen displayed by the second terminal at the event timing when the predetermined event occurs from the second terminal.
17 . The method of claim 16 ,
wherein the obtaining of the first event execution information indicating the operation state of the first terminal at the event timing includes:
extracting, by the processor, a partial image from the first image information, and
wherein the obtaining of the second event execution information indicating the operation state of the second terminal includes:
extracting, by the processor, a partial image from the second image information.
18 . The method of claim 10 , wherein the obtaining of the first event execution information indicating the operation state of the first terminal at the event timing includes:
receiving, by the processor, state information in a naming-based data format from the first terminal.