NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Display pass or fail in Report based on return value

Solved!
Go to solution

Hi,

 

I'm trying to integrate TestStand with TestComplete using the ActiveX/COM server adapter.  I have the COM setup so that TestStand can call a test in TestComplete and have TestComplete return a string value (true|false) to TestStand.

 

Now I need to get the TestStand report to display "pass" or "fail" text for this sequence call,  based on the return string from TestComplete.

Is there someplace in Expressions or Post Actions that I can state and how:

 

return value "True" = pass

return value "false" = fail

 

Thanks.

0 Kudos
Message 1 of 3
(3,368 Views)
Solution
Accepted by topic author ph2

Hi,

 

Option 1.) Use a String Value Test.   The Limits.String would be 'True'.  This would be the easiest because you already returning strings from your ActiveX call.   You could make your ActiveX calls a String Value Test.

 

Option 2.) Use a Pass/Fail Step.   You could set the returned string to a local variable and then create another Pass/Fail step that would have the Pass/Fail criteria as Locals.StringReturned == 'True'

 

These are two options that hopefully can get you started....

 

Thanks,


PH

0 Kudos
Message 2 of 3
(3,362 Views)

Thank you so much.  It works now.

0 Kudos
Message 3 of 3
(3,351 Views)