发明名称 Method and apparatus of testing a computer program
摘要 Embodiments of the disclosure may provide a method and apparatus of testing a computer program. The method may include acquiring first display data of a character region in a Graphical User Interface (GUI) of the computer program. The method may also include reducing display size setting of an original character string associated with the character region. The method may also include acquiring second display data of the character region in refreshed GUI. The method may further include generating a message indicating character truncation when there is a difference other than actual display size of character between the first display data and the second display data. With the technical solution provided by embodiments of the disclosure, character truncation existing in a GUI may be automatically detected.
申请公布号 US9529489(B2) 申请公布日期 2016.12.27
申请号 US201313949366 申请日期 2013.07.24
申请人 International Business Machines Corporation 发明人 Chiang Micky Wei-Te;Huang Chao Yuan;Song Qiang
分类号 G06F3/048;G06F3/0481;G06F11/36 主分类号 G06F3/048
代理机构 Holland & Knight LLP 代理人 Colandreo, Esq. Brian J.;Placker, Esq. Jeffrey T.;Holland & Knight LLP
主权项 1. A method of testing a computer program, the method comprising: acquiring, by one or more processors, first display data of a character region in a Graphical User Interface (GUI) of the computer program by printing screen of the displayed GUI; reducing, by the one or more processors, a display size setting of an original character string associated with the character region; acquiring, by the one or more processors, second display data of the character region in a refreshed GUI; acquiring first character display data according to the first display data; acquiring second character display data according to the second display data; generating, by the one or more processors, a message indicating character truncation when a character portion in the first character display data and a character portion in the second character display data have a different aspect ratio; identifying a first displayed character string in the character region according to the first display data; identifying a second displayed character string in the character region according to the second display data; and generating the message indicating character truncation when a number of characters of the first displayed; when the number of characters of the first displayed character string and that of the second displayed character string are the same, further judging whether the first displayed character string is the same as the second displayed character string, and if not, generating the message indicating text truncation.
地址 Armonk NY US