发明名称 Methods and apparatus for automatic testing of a graphical user interface
摘要 Methods and apparatus in a computer for automatically testing computer programs involve opening a predefined graphical user interface (GUI) on a screen of the computer; loading a set of program script instructions from a script database in communication with the computer that is associated with the predefined GUI; reading a loaded set of program script instructions; retrieving, based on the loaded set, data and at least one image object corresponding to the predefined GUI from a data and image object database in communication with the computer; taking a screenshot of the predefined GUI that includes at least one image object of the predefined GUI; determining whether an image object in the screen shot matches an image object retrieved from the data and object image database; and if a target position on the screen of the matching image object based on data retrieved from the data and image object database, and activating a control function adapted to control the predefined GUI based on the loaded set of program script instructions and the target position.
申请公布号 US8990774(B2) 申请公布日期 2015.03.24
申请号 US201013513461 申请日期 2010.11.30
申请人 Cinnober Financial Technology AB 发明人 Amintafreshi Mehrvarz
分类号 G06F9/44;G06F3/00;G06F11/36 主分类号 G06F9/44
代理机构 Piedmont Intellectual Property 代理人 Piedmont Intellectual Property
主权项 1. A method in a computer of automatically repetitively testing a computer program, comprising: opening a predefined graphical user interface (GUI) on a screen of the computer; loading a set of program script instructions from a script database in communication with the computer, wherein the set is associated with the predefined GUI; reading a loaded set of program script instructions; retrieving, based on the loaded set, data and at least one image object corresponding to the predefined GUI from a data and image object database in communication with the computer; taking a screenshot of the predefined GUI, wherein the screenshot includes at least one image object of the predefined GUI; determining whether an image object in the screen shot matches an image object retrieved from the data and object image database; if a screen shot image object matches a retrieved image object: determining a target position on the screen of the matching image object based on data retrieved from the data and image object database; and activating a control function adapted to control the predefined GUI based on the loaded set of program script instructions and the target position; wherein either at least one program script instruction in the loaded set is a relation between a respective data and image object and a respective plurality of predefined GUIs, or at least one image object retrieved is generated programmatically based on stored data in response to a respective program script instruction in the loaded set, or both; the data and at least one image object corresponding to the predefined GUI retrieved are used a plurality of times in determining whether an image object matches a retrieved image object and determining a target position based on data retrieved; and data retrieved comprises position history data and target position data of the matching image object.
地址 Stockholm SE