02-04-2010 08:34 AM
Hello All,
I need a little advice I have two strings that need to be evaluated as a pass criteria for a single test test step (Numeric String limit test). What would be the best approach to this?
The strings are "00000000 00000010" and "00000000 00000000"
02-04-2010 09:31 AM
02-05-2010 11:41 AM
A couple of ideas:
1) Concatenate the strings. Both when storing them in the data source and in your limits for the values you expect.
2) Use arrays for both the data source and limit and loop on the step requiring all iterations to pass and using the loop index variable in your expressions for your string limit test. For example, for the limit expression you would have:
Locals.expectedValues[RunState.LoopIndex]
and for the data source expression you would have:
Locals.stringMeasurements[RunState.LoopIndex]
Then you would set the loop options on the step to loop the required number of times. You can even use the expression function GetNumElements(Locals.expectedValue) in your loop while expression to set the number of iterations dynamically.
Hope this helps,
-Doug