05-17-2017 02:12 AM
Hello:
Thanks for your reading!
I can use "RunState.ThisContext.Step.Result.Status" to get the string result of a "NI_MultipleNumericLimitTest" normally, but when i copy the same expression to a single "NumericLimitTest", it won't work.
My application is in the post expression of step ID:"ID#:kIiJ0iOn5kasNtO30mauaD" of the attached seq. the normal expression is in the post expression of step ID: "ID#:nbqVhE500ESiRPH/yMTSRB"
Thanks for your checking!
Solved! Go to Solution.
05-19-2017 09:05 AM
Hi,
During execution of your step the status is "running". And become passed or failed when the step finish processing.
Try to use a statement just after your step NumericLimitTest with "RunState.PreviousStep.Result.Status = ...".
ps: RunState.ThisContext.Step.Result.Status = Step.Result.Status
05-21-2017 09:59 PM
Thanks Alepar!
So the step status in post expression of "Numeric..." and "Multi..." is different.
In "Numeric..." is "running", in "Multi.." is "passed/failed/skipped"?
05-22-2017 02:35 AM
I tested a MultipleNumericTest, the status in post expression return the state of the test (even if all tests are passed execpt the last test which is failed).
I can't tell you why the status in post expression of a single NumericTest don't work like the status of a MultipleNumericTest.
But, if you use a statement just after your Numeric test "RunState.PreviousState.Result.Status == "Passed" ? ... : ...), it works well.
Maybe it is not the best solution, but it works ^^