NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Code

Hello All,
 
I should like to testing one unit whit over test and reply last result.
 
Problem by first test Failed secont test Passed result Failed.    
 
How can I building one callsequnce whit last valid Status? 
 
Thanks you very much
 
Edu
0 Kudos
Message 1 of 7
(3,617 Views)
Hi Eduard,

I don't know if I understood your question correct so far, is it that you want your Test Report to Pass in the case that some selected steps in the sequence fail?

If so, you can deselect the option "Step Failure Causes Sequence Failure" in the "Run Option" Tab of any Steptype.

I attached a screenshot to that setting, let me knoe if that helps.

Nikolai
0 Kudos
Message 2 of 7
(3,595 Views)
Hi Nikolai,
 
Testing from Sequence 2 to repeat except for result Passed. 
 
Example:
Sequence1 running three time  
 
Firstime sequence 2  Pass/Fail Test result Fail
Secondtime sequence 2 Pass/Fail Test result Passed
Threetime sequence 2 Pass/Fail Test result Passed
 
Problem for my Colective result from sequence 2 = Fail. (Staus)
 
Edu
 
 
 
 
Download All
0 Kudos
Message 3 of 7
(3,580 Views)
Hi,

I attached an example sequence that fits to your description. The Main Sequence calls a Subsequence with a pass/fail test and logs the status for each UUT.

=> In the case that the subsequence fails, the UUT Result for the Mainsequence also fails. If you want your MainSequence to pass in case of the subsequence will fail, then deselect the option "Set Failure Causes Sequence Failure" like in my last post.

Another possibillity is to run the Subsequence in a loop (for example 3 times) and set the number of runs that need to be passed or failed for the test to be passes/failed.

Please describe the result you want to get out of this a little bit more detailed and what result fits best to your needs,

regards,

Nikolai
0 Kudos
Message 4 of 7
(3,536 Views)

Nikolai,

I want to execute the subsequence n times and the result of this subsequence has to be always the result of the last execution. This result feeds to a the result of the mainsequence.

Example with result faulty:

1st time subsequence
-> failure
-> user initiate, to repeat this subsequence
2nd time subsequence
-> failure
-> user initiate no repeat this subsequence
mainsequence gets the last status of subsequence, here faulty

Example with result passed:

1st time subsequence
-> failure
-> user initiate, to repeat this subsequence
2nd time subsequence
-> passed
-> subsequence was terminated with passed
mainsequence gets the last status of subsequence, here passed

Actually I gets always the status failure inside the mainsequence, if one of the executed subsequence was faulty, even though the last execution of the subsequence was passed.

regards,

Edu

 

0 Kudos
Message 5 of 7
(3,513 Views)
Hi Eduard,

with the following example you should come along with your application.

It calls a subsequence with two steps and returns the status result of the last run. If the result of the last subsequence execution fails, the result for the main sequence also fails. If it passes, the result of the main sequence passes also. You can select the number of subsequence runs.

Take care of the LocalResultList index in the "Loop Status Expression" of the sequence call. I made a screenshot of that setting, if you try to implement that in your application you have to set the index according to Step.Result.List of your calling sequence.

Hope that helps,

regards Nikolai
0 Kudos
Message 6 of 7
(3,507 Views)

Hi Nikolai,

will you accept my thanks for help!

regards Eduard

 

0 Kudos
Message 7 of 7
(3,457 Views)