question

dclaar avatar image
dclaar Suspended asked dclaar Suspended posted

Analysis Rule Wizard bug?

In the Wizard, in "Select an XPath query", I put:

//testCase/procedures/item[@name='dbopen']/arguments/item[@name='DB']/defaultValue

When I hit Next/Next, it converts it to:

 

mapped/Xml/testCase/procedures/item[2]/arguments/item[1]/defaultValue

This is NOT what I said! (Yeah, I know that it produces the same output...) There's no warning that it is ignoring what you typed.

 

iTestbug
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
koelze avatar image
koelze answered koelze posted
Odd.  I assume that the actual analysis rule that gets created uses the one it substituted instead of what you created?
mapped/Xml/testCase/procedures/item[2]/arguments/item[1]/defaultValue
4 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dclaar avatar image dclaar commented ·
Yeah. In fact, you can't cut-and-paste the dialog box right before it inserts the rule, so I actually cut-and-pasted from the test case after clicking finish.
0 Likes 0 ·
YujieL avatar image YujieL commented ·
If there is a node selected in the structure data tree, the wizard will build an xpath query based on the selection. Even though you typed in your own xpath query, iTest found a matching node in the structure data tree as you were typing your query in. If you really want the wizard to use the query you type, you can workaround it by unselecting the node in the structure data tree before you go to to the next page.
0 Likes 0 ·
dclaar avatar image dclaar YujieL commented ·

And how exactly do you do that? If you click on the selected value, it replaces the query I typed in with the default. If I click reset, it also goes away.

 

I "really" want to use the Wizard, because it is the easiest (maybe only) way to interactively change the XPath and see if it works.

0 Likes 0 ·
YujieL avatar image YujieL dclaar commented ·
press ctrl key while clicking on the mouse key will unselect it.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.