TrUMP logs are for 4 purposes
1) Track what UI elements you recorded. The UI elements will be used
to build TrUMP internal tree. The UI elements can be used to for us to
analyze any problems related to the internal tree.
Take Google page as an example, the UI elements we record are as
follows,
Building Inner Tree -> add Element UID: input0 XPATH: /html/body/
center/form/table[1]/tbody/tr/td[2]/input[2] DomNode: INPUT
Building Inner Tree -> add Element UID: input1 XPATH: /html/body/
center/form/table[1]/tbody/tr/td[2]/input[3] DomNode: INPUT
Building Inner Tree -> add Element UID: input2 XPATH: /html/body/
center/form/table[1]/tbody/tr/td[2]/input[4] DomNode: INPUT
2) The generated UI module
ui model generated:
Container(uid: "root", clocator: [tag: "table"]){
InputBox(uid: "input0", clocator: [tag: "input", title: "Google
Search", name: "q"])
SubmitButton(uid: "input1", clocator: [tag: "input", type:
"submit", value: "Google Search", name: "btnG"])
SubmitButton(uid: "input2", clocator: [tag: "input", type:
"submit", value: "I'm Feeling Lucky", name: "btnI"])
}
3) Validation messages about the generated UI module
After the UI module is generated, TrUMP will check each UI in the UI
module to see if its xpath is uniquely defined in the DOM. If you see
the messages as follows,
The XPath for Node input0 //descendant-or-self::table/descendant-or-
self::inp...@title="Google Search" and @name="q"] returned 1 nodes,
passed validation
The XPath for Node input1 //descendant-or-self::table/descendant-or-
self::inp...@type="submit" and @value="Google Search" and
@name="btnG"] returned 1 nodes, passed validation
The XPath for Node input2 //descendant-or-self::table/descendant-or-
self::inp...@type="submit" and @value="I'm Feeling Lucky" and
@name="btnI"] returned 1 nodes, passed validation
The above message basically tell you that the generated one InputBox
and two SubmitButtons are uniquely located in the DOM, there is no
problem if you act on them, for example, you can use
type "root.input0", "test"
click "root.input1"
in Tellurium without any problem.
However, you may also see some message like the following one,
The XPath for Node root //descendant-or-self::table returned 2 nodes,
failed validation
This means the UI container "root" is not unique in the DOM, there are
two tables in the DOM. But it is fine if you do not need to act
directly on the "root" UI element. It will not affect the InputBox and
SubmitButtons. If you want to act on the "root", you can turn on the
Group Locating capability by specify:
group: "true"
in the UI module. Since its children are uniquely located, the "root"
can also be uniquely located. If the group locate cannot help, i.e.,
none of the "root" node's children can be uniquely located, then you
need to change the attributes of its child nodes and itself, which
will be addressed in the "customize" tab in the future, or you have to
manually change them.
4) Any other errors or exceptions thrown out by TrUMP.
They will be helpful for us to fix TrUMP bugs.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---