question

dclaar avatar image
dclaar Suspended asked dclaar Suspended posted

Finding something that isn't there?

I'm trying to find all the test cases that don't have Owner set, but I'm having a hard time figuring out how to do that. So far, all I can come up with is to search for Owner and list all the files that match into a file, and then loop through all the files to see what is missing.

 

This isn't really a specific iTest question, although it would be nice to have a way to report which files don't have owners.

iTestfeature request
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

·
KumarS avatar image
KumarS answered KumarS posted

If you can recursively go through the file system using "tcl" APIs, you can write an iTest testcase which does "readFile" on the testcases and then uses XPATH query count(//owner) to see if the node exists.

 

We are adding commands to recursively go through the file system in a future version of iTest.

1 comment
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 ·

Didn't do that exactly, but that gave me an idea to get a count of owner, and check that.

 

It would be nice if there were an owner field in response maps, session profiles, etc.

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.