Patent ID: 8196104

Claim:
A method for testing an application having source code for accessibility, the method being executed by a computer system and comprising: providing a set of accessibility rules to test accessibility of the application for a user with a disability; analyzing, by using a processor of the computer system, the source code of the application; generating an object model representing the application based on the source code analysis, the object model including a control object, semantic information defining a function of an object in the object model, and relationship information describing a static relationship and a dynamic relationship existing between the object and at least one additional object included in the object model; testing the object by using the semantic information to determine compliance of the object and the corresponding function with the set of accessibility rules, the testing being performed independent of use of a HyperText Markup Language model of the application to determine whether the function of the object at run-time is in compliance with the set of accessibility rules, wherein testing the object and the corresponding function includes using the semantic information to navigate a function call from the control object to the object; determining based on the object model whether a screen element is a table element or a non-table element; testing the screen element based on a first rule selected from the set of accessibility rules when the screen element is determined to be a table element, wherein the screen element is tested based on a second rule selected from the set of accessibility rules when the screen element is determined to be a non-table element, the second rule being different from the first rule; determining whether a condition is present based on the result of the testing of the object; and performing additional testing of the object when the condition is present, wherein the additional testing includes determining whether the object corresponds to a graphic and whether description text corresponding to the graphic is to be displayed at run-time of the application.