User interface for testing and asserting UI elements with natural language instructions
First Claim
Patent Images
1. A method for testing comprising the following machine-implemented steps:
- receiving a plurality of natural language instructions, each of the plurality of natural language instructions including a natural language statement, such that each of the plurality of natural language instructions identifies, via natural language, a user interface element and particular text in the user interface element within a user interface,parsing the plurality of natural language instructions, wherein the parsing of the natural language instructions includes;
identifying a target element specified by the natural language instructions;
identifying properties identifying the target element;
evaluating the natural language instructions to true or false based on accessing a document object model of a web page with information that includes a state and condition of the target element;
modifying a plurality of user interface elements by executing a plurality of natural language modification statements;
wherein the plurality of natural language instructions make an assertion as to existence of one of the plurality of modified user interface elements in the user interface and to existence of a property of the one of the plurality of modified user interface elements,wherein at least one property of the one of the plurality of modified user interface elements includes an assertion of being greater than a value of a variable during execution of an application, andwherein the user interface is included in a web browser and includes a first section that displays a scripting system including the natural language instructions and a second section that displays the web page including the user interface elements,wherein the first section and the second section are completely displayed simultaneously side by side, and wherein the scripting system refers to elements on the web page, andwherein both the one of the plurality of modified user interface elements and the natural language instructions are highlighted with a specified color based upon an existence of the one of the plurality of modified user interface elements;
wherein the plurality of natural language instructions are displayed as a list,wherein the scripting system is configured to include buttons to record the plurality of natural language instructions, step to a listed one of the plurality of natural language instructions, and save one of the plurality of natural language instructions, andwherein the first section is divided into three separately bordered parts, with a first part including the buttons to record, step to, and save the natural language instructions, a second part includes a natural language description of the second section, and a third part includes a list of previously entered natural language instructions.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, a system, and a computer medium for testing may be provided. An instruction including a natural language assertion statement may be received. The instruction may be parsed. The natural language assertion statement may be evaluated to true or false.
22 Citations
19 Claims
-
1. A method for testing comprising the following machine-implemented steps:
-
receiving a plurality of natural language instructions, each of the plurality of natural language instructions including a natural language statement, such that each of the plurality of natural language instructions identifies, via natural language, a user interface element and particular text in the user interface element within a user interface, parsing the plurality of natural language instructions, wherein the parsing of the natural language instructions includes; identifying a target element specified by the natural language instructions; identifying properties identifying the target element; evaluating the natural language instructions to true or false based on accessing a document object model of a web page with information that includes a state and condition of the target element; modifying a plurality of user interface elements by executing a plurality of natural language modification statements; wherein the plurality of natural language instructions make an assertion as to existence of one of the plurality of modified user interface elements in the user interface and to existence of a property of the one of the plurality of modified user interface elements, wherein at least one property of the one of the plurality of modified user interface elements includes an assertion of being greater than a value of a variable during execution of an application, and wherein the user interface is included in a web browser and includes a first section that displays a scripting system including the natural language instructions and a second section that displays the web page including the user interface elements, wherein the first section and the second section are completely displayed simultaneously side by side, and wherein the scripting system refers to elements on the web page, and wherein both the one of the plurality of modified user interface elements and the natural language instructions are highlighted with a specified color based upon an existence of the one of the plurality of modified user interface elements; wherein the plurality of natural language instructions are displayed as a list, wherein the scripting system is configured to include buttons to record the plurality of natural language instructions, step to a listed one of the plurality of natural language instructions, and save one of the plurality of natural language instructions, and wherein the first section is divided into three separately bordered parts, with a first part including the buttons to record, step to, and save the natural language instructions, a second part includes a natural language description of the second section, and a third part includes a list of previously entered natural language instructions. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A natural language scripting computer-implemented system comprising:
-
a hardware computer processor configured to parse a first script that includes a plurality of natural language statements that specify a particular text within a graphical user interface for testing; the computer processor configured to analyze a model describing a plurality of user interface elements in the graphical user interface, wherein the model is a document object model of a web page; the computer processor configured to modify the plurality of user interface elements in the graphical user interface by executing one of the plurality of natural language statements; and the computer processor configured to evaluate one of the plurality of natural language statements to true or false based on analysis of the model, wherein the plurality of natural language statements make an assertion as to existence of one of the plurality of modified user interface elements in the graphical user interface and to existence of a property of the one of the plurality of modified user interface elements, wherein the one of the plurality of modified user interface elements is highlighted or not highlighted based on the existence of the one of the plurality of modified user interface elements, and the plurality of natural language statements are highlighted with a specified color based upon the existence of the one of the plurality of user interface elements, wherein the plurality of natural language statements are displayed as a scrollable list, and wherein the system is configured to include buttons to record the plurality of natural language statements, step to a listed assert statement in the list, and save one of the plurality of natural language statements, and cancel a current operation to record or step into the one of the plurality of natural language statements, wherein the graphical user interface is included in a web browser and includes a first section that displays a scripting system including the plurality of natural language statements and a second section that displays the web page including the plurality of user interface elements, wherein the first section and the second section are completely displayed simultaneously side by side, and wherein the scripting system refers to elements on the web page, wherein both the one of the plurality of modified user interface elements and the plurality of natural language statements are highlighted with a specified color based upon an existence of the one of the plurality of modified user interface elements, and wherein the first section is divided into three separately bordered parts, with a first part including the buttons to record, step to, and save the plurality of natural language statements, a second part includes a natural language description of the second section, and a third part includes a list of previously entered natural language statements. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. A non-transitory computer readable storage medium having computer readable code embodied therewith, the computer readable code being configured to:
-
receive a first natural language instruction including a condition and an identification of particular text within a first user interface element within a user interface of a computer application; receive a second natural language instruction including identification of a lack of a second element within the user interface of the computer application; receive a third natural language instruction including identification of a particular view; parse the first natural language instruction to determine the first user interface element; parse the second natural language instruction to determine the second user interface element; parse the third natural language instruction to determine the particular view; determine whether the particular view is displayed on the user interface of the computer application; determine whether the first user interface element meets the condition; and determine whether the second user interface element is absent from the user interface of the computer application, and highlighting the second natural language instruction in response to the second user interface element being absent from the user interface of the computer application; wherein the user interface is part of a web browser and includes a first section that displays a scripting system including the first, second, and third natural language instructions and a second section that displays a web page including the first and second user interface elements, wherein the first section and the second section are completely displayed simultaneously side by side, and wherein the scripting system refers to elements on the web page, wherein the first, second, and third natural language instructions are displayed as a list, and wherein the scripting system is configured to include buttons to record the first, second and third natural language instructions, step to a listed one of the first, second, and third natural language instructions, and save one of the first, second, or third natural language instructions, wherein the first section is divided into three separately bordered parts, with a first part including the buttons to record, step to, and save the natural language instructions, a second part includes a natural language description of the second section, and a third part includes a list of previously entered natural language instructions. - View Dependent Claims (19)
-
Specification