question

gretztx avatar image
gretztx asked ericnute edited

Can an argument name have a dash in the middle?

I had an argument in a quick call that i named "snr-up-min". I realize this isn't a best practice, but I made a mistake. When I used that name I got this error: Error processing procedure call arguments: Invalid query.' Only simple XPath expressions of the form node1/node2/.../nodeN that identify a single node are supported. The query "snr_up-min" contains unrecognized or unsupported syntax.' 3.2.2 2 setProfile_base exec TA1108VP.fftc When i changed the name to "snr_up_min" all was well. Should we get that error?
iTestquickcall (qc)argument
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

·
bhavani.geepalem avatar image
bhavani.geepalem answered sandeepreddynv commented
Hi gretztx, We should not use the symbol (-) for naming the argument, because the symbol(-) is used while calling the arguments. Below screenshot is from iTest user guide for your reference. ![alt text][1] [1]: /storage/temp/4164-arguments.jpg

arguments.jpg (64.4 KiB)
2 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.

gretztx avatar image gretztx commented ·
I agree that we SHOULD not do that. However if you did on accident i think iTest should allow it OR show it as an error.
0 Likes 0 ·
sandeepreddynv avatar image sandeepreddynv ♦ commented ·
Hello, If we are using any unsupported syntax for arguments iTest will throw the error which you have mentioned earlier. In the above example "The query "snr_up-min" contains unrecognized or unsupported syntax" describes that the given argument is wrong. Regards, Venkat
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.