01-14-2011, 05:56 PM
(This post was last modified: 01-14-2011, 06:05 PM by paulwesterman.)
Hi, and thanks
Yes I could get the value from the table but I wanted to avoid doing this.
OK, I'll go into why:
My test team run say 1000 cases and then find that maybe 10% of them have no values. It seems values are calculated but they don't make it into the grid. So I've had to write routines that check they've been written, and if not, do it again.
So you see, I can't get the value from the grid as that is what I'm testing, whether it's there or not.
Here's my sub:
On the 'text region' outputs I can only check for the table value being > vbnullstring.
Is there really no way to get the value in code? It seems bizarre!
Cheers
Yes I could get the value from the table but I wanted to avoid doing this.
OK, I'll go into why:
My test team run say 1000 cases and then find that maybe 10% of them have no values. It seems values are calculated but they don't make it into the grid. So I've had to write routines that check they've been written, and if not, do it again.
So you see, I can't get the value from the grid as that is what I'm testing, whether it's there or not.
Here's my sub:
Code:
Sub WriteResult(objWebEdit, objCheckPoint, ColName)
checkValue = objWebEdit.GetROProperty("value")
Do
objWebEdit.Output objCheckPoint
Wait 0,100
Loop Until DataTable(ColName,dtGlobalSheet) = checkValue
End Sub
On the 'text region' outputs I can only check for the table value being > vbnullstring.
Is there really no way to get the value in code? It seems bizarre!
Cheers