10-12-2010, 03:17 PM
I am creating a QTP test script on a .Net application.
When recording similiar to the below is recorded:
This window is a work queue, which means the "Tasks(8);My Tasks(3)" values in brackets could change from 8/3 to any number depending upon the work items in the queue.
I am unable to open the list to do a count of rows, since I first need to select the required value
Is their anyway to may the number in the brackets as a regular expression? - even though this is the actual data, rather than the object.
The only other solution I can come up with is to do a loop and search if each value exists, but this seems very crude, so would prefer a better solution if it's available.
Thanks in advance for any help in coming up with a solution for this.
When recording similiar to the below is recorded:
Code:
SwfWindow("My Application".SwfWindow("Work Queue").SwfTreeView("WorkType").Select "Tasks(8);My Tasks(3)"
This window is a work queue, which means the "Tasks(8);My Tasks(3)" values in brackets could change from 8/3 to any number depending upon the work items in the queue.
I am unable to open the list to do a count of rows, since I first need to select the required value
Is their anyway to may the number in the brackets as a regular expression? - even though this is the actual data, rather than the object.
The only other solution I can come up with is to do a loop and search if each value exists, but this seems very crude, so would prefer a better solution if it's available.
Thanks in advance for any help in coming up with a solution for this.