7. A non-transitory computer-readable storage medium storing instructions which when executed by a particular machine cause the machine to perform a method for automatically generating addressing queries for objects rendered on a GUI, the method comprising: receiving a request to generate an object-addressing query for a target GUI object in an application under test; identifying an application context for the application under test; retrieving a rule document describing GUI object-addressing query rules based at least on the identified application context; parsing the rule document to obtain an applicable query rule set for the application, wherein parsing the rule document comprises: retrieving a rule-identification query defined in the rule entry of a respective rule, executing 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, verifying whether the query result is true, and adding the rule to the applicable rule set when the query result is true; generating a set of query candidates for the target GUI object based at least on the applicable rule set; and determining a unique object-addressing query for the target GUI object.
7. A non-transitory computer-readable storage medium storing instructions which when executed by a particular machine cause the machine to perform a method for automatically generating addressing queries for objects rendered on a GUI, the method comprising: receiving a request to generate an object-addressing query for a target GUI object in an application under test; identifying an application context for the application under test; retrieving a rule document describing GUI object-addressing query rules based at least on the identified application context; parsing the rule document to obtain an applicable query rule set for the application, wherein parsing the rule document comprises: retrieving a rule-identification query defined in the rule entry of a respective rule, executing 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, verifying whether the query result is true, and adding the rule to the applicable rule set when the query result is true; generating a set of query candidates for the target GUI object based at least on the applicable rule set; and determining a unique object-addressing query for the target GUI object. 12. The non-transitory computer-readable storage medium of claim 7 , wherein determining the unique object-addressing query for a GUI object comprises: ranking each query candidate using a predetermined ranking method; and choosing the highest ranked query as the unique object-addressing query for the GUI object.