发明名称 User interface area coverage
摘要 A method for user interface (UI) automation area coverage is presented. The method extracts document information from a unit test class, the unit test class being code used to test a user interface (UI). The method searches for a keyword within the extracted document information to find a keyword match. The method receives a weight factor from a user the weight factor giving more importance to certain keywords over the other keywords. The method weights specified keywords based on a weight factor, the weight factor increasing or decreasing an importance to the specified keywords. The method assigns a weight score to each keyword match based on the number of keyword matches and the weight factor. Furthermore the method generates a user interface report, the UI report comprising the weight score.
申请公布号 US9535822(B1) 申请公布日期 2017.01.03
申请号 US201615041074 申请日期 2016.02.11
申请人 International Business Machines Corporation 发明人 Chau Kwan Yin Andrew;Lal Smitha;Pham Stephen
分类号 G06F9/44;G06F9/45;G06F11/36;G06F17/30 主分类号 G06F9/44
代理机构 代理人 Bunker Robert C.
主权项 1. A computer-implemented method for user interface (UI) automation area coverage, comprising: receiving, by a server, a source code from a user, the source code comprising two unit test classes, the two unit test classes being code used to test a user interface (UI); extracting, by a computer, document information from each of the two unit test classes, the document information comprising package name, class name, and document code, for each of the two unit test classes; receiving, by the computer, a keyword from a user; searching, by the computer, for the keyword within the extracted document information in order to find keyword matches within each of the two unit test classes; determining a number of keyword matches for each of the two unit test classes, the number of keyword matches comprising a number of time the keyword has occurred within each of the two extracted document information; receiving, by the computer, a weight factor from a user, wherein the weight factor is defined by increasing or decreasing an importance to the keywords from a user for each of the two unit test classes; assigning, by the computer, a weight score to each keyword match based on the number of keyword matches and the weight factor wherein the weight score is calculated based on the number of matches of the searched keywords multiplied by the weight factor received from the user for each of the two unit test classes; determining, by the computer, a total match and a total weight score for the unit test for each of the two unit test classes; ranking, by the computer, each of the two unit test classes based on the respective weight scores; and generating, by the computer, a UI coverage report, the UI coverage report comprising the weight score and their respective ranks for each of the two unit test classes.
地址 Armonk NY US