|
Re: Getting a subset of a tree or table [message #1667512 is a reply to message #1667495] |
Thu, 12 March 2015 04:43 |
|
Hello,
You can use the key -index:
get-item "Infos.*" | get-item ".*duplicated.*" -index 0 | length
get-item "Infos.*" | get-item ".*duplicated.*" -index 1 | length
Please try and let me know if it is suitable for you.
Yours sincerely,
Olga.
|
|
|
|
|
|
Re: Getting a subset of a tree or table [message #1681425 is a reply to message #1667970] |
Tue, 17 March 2015 09:59 |
|
Hello,
What kind of problem do you have with getting table object from Problems view?
In order to get it, switch to assertion mode, click on item in table and use "up" and "down" keyboard navigation key as it is described here.
Use the following construction to get number of items:
log [get-view "Error Log" | get-tree | get-table-data | select-rows -column "Message" -value "duplicated" -match regexp | get rows | length ]
Please try, and let me know if it is suitable for you!
Yours sincerely,
Olga.
|
|
|
Powered by
FUDForum. Page generated in 0.03605 seconds