18. The computer system of claim 13 , wherein the determination mechanism further comprises: a ranking mechanism configured to rank each query candidate using a predetermined ranking method; and a choice making mechanism configured to choose the highest ranked query as the unique object-addressing query for the GUI object.
13. A computer system for automatically generating addressing queries for GUI objects, the system comprising: a processor; a memory; a receiving mechanism configured to receive a request to generate an object-addressing query for an application to under test; an identification mechanism configured to identify an application context for the application under test; a retrieving mechanism configured to retrieve a rule document describing GUI object-addressing query rules based at least on the identified application context; a parsing mechanism configured to parse the rule document to obtain an applicable query rule set for the application, wherein the parsing mechanism further comprises: a retrieving mechanism configured to retrieve a rule-identification query defined in the rule entry of a respective rule, an execution mechanism configured to execute the rule-identification query against the target GUI object in the context of a markup language document in which the object is represented as a node, a verification mechanism configured to verify whether the query result is true, and an organizing mechanism configured to add the rule to the applicable rule set if the query result is true; a generating mechanism configured to generate a set of query candidates for the target GUI object based at least on the applicable rule set; and a determination mechanism configured to determine a unique object-addressing query for the target GUI object.