Count/Compare/Iterate in Table [message #799833] |
Thu, 16 February 2012 06:12  |
Eclipse User |
|
|
|
I have a Process-Table like:
N SM DATE (N=Name, SM=Starting mode, DATE=Starting timestamp)
A I 11:11
B IR 12:32
C
D IR 13:23
And it's finally loaded (changes) when all values that have a set SM have a set DATE.
The number of processes is not fixed, the names aren't too.
In a scripting-language i'd simply run something like
bool x=false;
foreach row in tablerows
x = x OR !(isset(SM) == isset(Date))
return x
or count the set cells in column 2 and 3 and compare them
How can i do this in Jubula? (The loaded-check, the retry-till-loaded-check-returns-true-thing is clear)
|
|
|
Re: Count/Compare/Iterate in Table [message #800540 is a reply to message #799833] |
Fri, 17 February 2012 02:42  |
Eclipse User |
|
|
|
Hi,
There isn't a "for" in Jubula - you do have to know how many datasets / loops you will need. Your point about counting the cells could be possible with the upcoming version though - we have a new action to store a property value (e.g. the amount of rows in a table). You could use this as a comparison or as a dataset (but not as a "execute this check $ many times) - perhaps this will help in this case. Otherwise it could be a case of choosing a certain subset of data that will be representative, or using other cues in the GUI (progress bars, re-enablement of save buttons etc) to help you synchronize.
Best regards,
Alex
|
|
|
Powered by
FUDForum. Page generated in 0.06773 seconds