IP Library Granted Patent US 9,183,115
Granted Patent B2
US 9,183,115 · App. 13/689,900 · Granted Nov 10, 2015

Testing method and testing apparatus for testing function of electronic apparatus

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,183,115
App. No.
13/689,900
Granted
Nov 10, 2015
Kind
B2
Abstract

A method for testing a function of an electronic apparatus is provided. The method includes steps of: searching for a location corresponding to the function to be tested, sending a command according to the location to perform the function to be tested, and determining whether an error occurs in the function according to a response from the function in response to the command.

Claims (39)

1. A testing method, for testing a function of a program in an electronic apparatus, the program associating the function to an icon on an user interface, the method comprising:

a) searching for a location of the function in the program, detecting a hardware status corresponding to the function, stopping testing the function when an error occurs in the hardware status, and not displaying a corresponding icon when the error occurs in the hardware status, wherein the location comprises a position of the icon on the user interface;

b) sending a command according to the location to perform the function; and

c) determining whether an error occurs in the function according to a response of the function in response to the command;

wherein, the command comprises a sub-command representing a user behavior of moving to the icon on the user interface;

wherein, step (a) further comprises:

a1) determining whether the function corresponds to a dynamic command to generate a determination result;

a2) obtaining index information of all functions in the user interface from the electronic apparatus when the determination result is affirmative, and obtaining the location of the function according to the index information; and

a3) obtaining the location of the function according to the program to be tested when the determination result is negative; and

wherein, step (b) further comprises determining a function corresponding to the user interface, and stopping sending the command when the function is not a function of the user interface.

2. The method according to claim 1 , comprising:

not displaying an icon corresponding to a hardware device when the error condition shows the hardware device corresponding to the function is not in the electronic apparatus.

3. The method according to claim 1 , comprising:

displaying an icon corresponding to a hardware device with a different format when the error condition shows the hardware device corresponding to the function is not in the electronic apparatus.

4. The method according to claim 1 , wherein the program is an extensible markup language (XML) file.

5. The method according to claim 1 , wherein the index information is provided by a storage device associated with the electronic apparatus.

6. The method according to claim 1 , wherein step (a2) comprises:

d1) obtaining a number of a plurality of items in the user interface;

d2) analyzing a plurality of sets of information associated with the items; and

d3) obtaining the location of the function according to the number and the associated information.

7. A testing apparatus, for testing a function of a program in an electronic apparatus, the program associating the function to an icon on a user interface, the testing apparatus comprising:

a storage device, storing a test program;

a control unit, for executing the program to perform steps of:

a) searching for a location of the function in the program, wherein the location comprises a position of the icon on the user interface;

b) sending a command according to the location to perform the function; and

c) determining whether an error occurs in the function according to a response of the function in response to the command;

wherein, the command comprises a sub-command representing a user behavior of moving to the icon on the user interface; and

wherein, step (b) further comprises determining a function corresponding to the user interface, and stopping sending the command when the function is not a function of the user interface.

8. The apparatus according to claim 7 , wherein the control unit further detects a hardware status corresponding to the function, and stops testing the function when an error occurs in the hardware status.

9. The apparatus according to claim 8 , wherein the icon is displayed on the electronic apparatus when the program is executed, and the control unit further stops displaying the corresponding icon when the error occurs in the hardware status.

10. The apparatus according to claim 8 , wherein the control unit controls to display an icon corresponding to a hardware device with a different format when the error condition shows the hardware device corresponding to the function is not in the electronic apparatus.

11. The apparatus according to claim 7 , wherein when the control unit searches for the location of the function in the program, the control unit performs steps of:

a1) determining whether the function corresponds to a dynamic command to generate a determination result;

a2) obtaining index information of all functions in the user interface from the electronic apparatus when the determination result is affirmative, and obtaining the location of the function according to the index information; and

a3) obtaining the location of the function according to the program to be tested when the determination result is negative.

12. The apparatus according to claim 11 , wherein step (a2) comprises:

d1) obtaining a number of a plurality of items in the user interface;

d2) analyzing a plurality of sets of information associated with the items; and

d3) obtaining the location of the function according to the number and the associated information.

Assignments (1)
MERGER Recorded Jun 8, 2020
From: MSTAR SEMICONDUCTOR, INC.
To: MEDIATEK INC.
Reel/Frame 052871/0833 →