05-10-2010 11:11 AM
Is this a valid TS expression, seems out of order to me?
Step.DataSource != "Step.Result.PassFail" ? Step.Result.PassFail = Evaluate(Step.DataSource) : False, Step.Result.PassFail ? "Passed" : "Failed"
thanks,
jvh
05-10-2010 11:39 PM - edited 05-10-2010 11:40 PM
if Step.DataSource != "Step.Result.PassFail" is TRUE
then
Step.Result.PassFail = Evaluate(Step.DataSource) is evaluated
else
False
The second expression being evaluated is Step.Result.PassFail ? "Passed" : "Failed"
In other words, this expression checks if step.datasource is not set to step.result.passfail. If so it evaluates step.result.passfail from the step.datasource expression
else nothing is done
In the second expression the status is evaluated from step.result.passfail
Hope this helps
Thanks,
Sathish