Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Count/Compare/Iterate in Table
Count/Compare/Iterate in Table [message #799833] Thu, 16 February 2012 06:12 Go to next message
Johann Vogel is currently offline Johann Vogel
Messages: 20
Registered: February 2012
Junior Member
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 Go to previous message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1092
Registered: July 2009
Senior Member
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
Previous Topic:Profiling (memory leak verification)
Next Topic:Suitability of Jubula for web apps?
Goto Forum:
  


Current Time: Fri Aug 01 01:58:54 EDT 2014

Powered by FUDForum. Page generated in 0.01619 seconds