发明名称 Test framework extension for testing logic on a modeled user interface
摘要 A testing framework extension may be provided. An application comprising a form may be created within a modeling framework. A variable associated with the form may be defined and an application programming interface (API) may be created according to the form. A test case may be efficiently executed without rendering a physical UI using the variable by making at least one call to the API thus exercising (at least one part of) the form logic and a result of executing the test case may be reported to a user.
申请公布号 US9563543(B2) 申请公布日期 2017.02.07
申请号 US201113173104 申请日期 2011.06.30
申请人 Microsoft Technology Licensing, LLC 发明人 Kristoffersen Esben Nyhuus;Hammer Lars
分类号 G06F11/28;G06F11/36 主分类号 G06F11/28
代理机构 代理人 Marquis Thomas R.;Drakos Kate;Minhas Micky
主权项 1. A computer-implemented method for testing a user interface, the method comprising: storing a definition associated with a form of the user interface; identifying, based on the definition, a plurality of control elements and logic functions associated with the form; translating the plurality of control elements into a first logical representation; creating a logical form comprising an instance of the logic functions and the first logical representation of the plurality of control elements, wherein the logical form is an agnostic version of the form of the user interface; receiving a test case associated with a variable of the form; creating an application programming interface (API) for the logic functions, the creating including generating a 1:1 reflection of each element of the plurality of control elements; creating a non-visual test form comprising the instance of the logical form, the non-visual test form having access to the plurality of control elements and the logic functions through the logical form; making at least one call to the API based on the test case, wherein the at least one call corresponds to an abstraction level of the definition; evaluating the at least one call to the API using the non-visual test form, the evaluating of the at least one call to the API including: evaluating an effect of providing input from the test case into the first logical representation of the plurality of control elements associated with the form, and evaluating an effect of providing the input to the first logical representation on a second logical representation of the form; and reporting a result of the evaluation of the at least one call to the API.
地址 Redmond WA US