Detect "terminated" status of sequence call

Hello,
I am using TestStand 2012 and one of my sequences is a bunch of sequence calls to other sequences.
Each call is being made using the "Use New Execution", and waiting for the execution to finish before the next step.
I am using this option because I like having different reports for each sequence.
However, I still would like to capture which call succeeded or failed in my main sequence.
For this, after each call, I have a statement whose status expression is:
( Find( RunState.PreviousStep.ResultStatus, "Passed", 0, True, False ) >= 0 ) ) ? "Passed" : "Failed".
The problem I'm finding is that when one of the sequences I'm calling is terminated in the middle due to an error in the UUT which doesn't allow me to continue testing, the main sequence gets the status as "Passed".
So, when I see "Passed" in my main sequence report, I still have to open the individual reports to make sure it really passed.
Would anyone know a way around this?
I tried changing the status expression of the sequence call step but it's a read only field.
Thank you in advance,
Leandro
Solved!
Go to Solution.

Hello,
Sorry for the confusion... let me try to be more clear...
So, my test campaign for a specific UUT is composed of about a dozen sequences, which can be run independently. But I created another sequence, to work as a "batch", calling all these dozen sequences.
Pretty much what it does is:
1) Call first sequence in new execution
2) Wait for execution to finish
3) Check results of execution
4) Add results to report
5) Wait 10 seconds
6) Call second sequence in new execution
7) So on...
So, for each new execution, I have a dedicated report, which is exaclty what I want. But for my "batch" sequence, I would like to be able to get a report saying which executions passed or failed, so I don't have to open the reports for each execution individually.
The way I'm doing this (in step 3 above) is with the following expression:
( Find( RunState.PreviousStep.ResultStatus, "Passed", 0, True, False ) >= 0 ) ) ? "Passed" : "Failed"
This way, anything different than "Passed" would give me a "Failed" result for that execution, and that's fine. The problem is that when one of the executions is terminated before it's finished, the PreviousStep.ResultStatus is giving me "Passed".
I didn't know about the GetStates() method... Looks promissing! I'll give it a try.

Similar Messages

  • Troubleshooting "Terminated" Status

    Greetings,
    I am trying to troubleshoot a DQXI 11_7 installation that I inherited.  Specifically, after a recent reboot MOST attempts to run an address cleanse via webservices results in the following:
    <FL_RESPONSE>
      <DATAFLOW_ID>D20111028_212557577</DATAFLOW_ID>
      <STATUS>TERMINATED</STATUS>
      </FL_RESPONSE>
    In some cases (5% of the time), the same address is cleansed successfully.
    Nothing in the Event Logs indicates a problem.  Subsequent restarts of the DQXI server don't resolve the issue.  Subsequent reboots don't resolve the issue.  I have also tested the Test_Install_USA blueprint and it works fine.
    We are looking to upgrade to 3.2 or 4 in the near future, however need to get this specific server up and running.  Repointing the web services (.net) to our production server and testing renders positive results, so it is definitely an issue with this specific test server.
    Any suggestions or thoughts?

    Capt. Jack -
    I think I can shed some light on the change of behavior. Specifically, in 3.0 and earlier, if a user suspends on a step that caused an error because on the run-time error dialog box, and the user terminated the execution because of the error, TestStand was incorrectly changing the Error status to Terminated for that step. We feel that the Error status should not be altered, so there was a change made in 3.1 to ensure that if a termination does not affect the status of a step that has already executed and set its status. In addition, if the termination occurs while a step is executing and the status has not yet been set, the termination status is given to the executing step upon completion, independent of whether the step is monitoring for a termination status change.
    When you say that "This Step Terminates on Failures", I assume that the step calls termination but the step is also directly setting the status. One option is to modify the step to either not set the status on termination or explicitly set the status to "Terminated". For example, if your step type is using the Status Expression like the NI Pass/Fail step type, you could set the status to Terminated as shown below:
    Step.DataSource != "Step.Result.PassFail" ? Step.Result.PassFail = Evaluate(Step.DataSource) : False; Step.Result.PassFail ? "Passed" : "Terminated")
    Hope this helps...
    Scott Richardson
    National Instruments

  • Sequence call with Pass/Fail Test always returns Passed result

    In TestStand 2.0, I use Sequence Adapter with Pass/Fail Test step to call a subsequence, I always receive a Passed result, even as I force fail a step in the subsequence and enabled the Step Failure Causes Sequence Failure option.
    Attachments:
    Example1.seq ‏17 KB

    Tan -
    The status expression for the Pass/Fail step type does not look to see if the status has been previously set by the code module in this case the sequence call.
    Step.DataSource != "Step.Result.PassFail" ?
    Step.Result.PassFail = Evaluate(Step.DataSource) :
    False, Step.Result.PassFail ? "Passed" : "Failed"
    It just set it to Passed or Failed even if the status is already "Failed".
    You could either,
    1) Change the Pass/Fail expression to the following for the step,
    Step.Result.Status == "Done"? Step.Result.PassFail : False
    or
    2) Use two steps, a Sequence Call and a Pass/Fail that uses the None Adapter. The Pass/Fail could operate on the previous step if necessary.
    Scott Richardson - NI"
    Scott Richardson
    National Instruments

  • Set Sequence Call Trace Setting for a SequenceCall Step

    Hi there.  I need to edit a sequence file automatically with a LabVIEW program.  We have a program the is successful in editing and saving a sequence file automatically which goes in and does a few things.  However I also need to be able to go in and change a setting in Run Options for the top level SequenceCall steps in Main of MainSequence.  I want to be able to change the Sequence Call Trace Setting for the steps from Disable Tracing in Sequence to Enable Tracing in Sequence.  However I do not seem to be able to find this in the API call chin anywhere.  At this point I am certain that it IS in there somewhere, but probably hidden under an option mask for something.  Anyone know where I might find it?
    This is NOT something I want to do at execution time.  This is something I want to do by launching TestStand in edit mode from LabVIEW to automatically edit and save a new version of the sequence file.
    Thanks!
    Greg
    Gregory Osenbach, CLA
    Fluke
    Solved!
    Go to Solution.

    Not sure if this will work.  I'm kinda bummed the To More Specific Class function wouldn't work.
    The Automation Refnum going into the top of the TypeCast is using the NI TestStand Adapter API 4.1.1 Version 1.0 as the type library and SequenceCallModule as the Object.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to eliminate an instance of "entering a sequence call" from the teststand report

    I am using TestStand 4.2 and I am using a long sequence with several sub-sequences.  In these subsequences I am getting test results that I would like to place in the TestStand report.  Currently, in order to do this I have to check the "Record Result" option in the "Run Options" of the sequence call properties which displays an "Entering sequence call" mark on the report.  Is there any way that I can get rid of this marker and still record information from the sub sequence?
    Solved!
    Go to Solution.

    Hello,
    You should have a look a these documents:
    http://digital.ni.com/manuals.nsf/websearch/2B14FB​1CD4FF25CA862577AE00554FC7
    http://zone.ni.com/devzone/cda/tut/p/id/7958
    Regards,
    Rodéric L
    Certified LabVIEW Architect

  • How to add results to report from sequence call disabled in report options ?

    Hello,
    I need to add text to report from a sequence called by a sequence call. The record results option for the sequence call is disabled because the sequence call is normally done thousands of times. Therefore, I don't want to fill in useless text in the report. But, if a certain condition in called sequence fulfills, I would put a text into the report. (Yes, this is related to a sporadic communication problem with the instrument which I want to record into the report.) Which options I have ?
    I have attached an example which doesn't add the text from the sequence to the report.
    Regards,
    Petri
    Attachments:
    report test.seq ‏45 KB

    Hello Ray,
    I encounter same behaviour with NONE adapter action step with post-expression as with a statement step as in my first example. With other words, if record results in sequence call in mainsequence is disabled, I cannot get any records into the report.
    Attached a modified sequence using NONE adapter action.
    Regards,
    Petri
    Attachments:
    report test.seq ‏53 KB

  • Step - "Sequence Call Name" usage

    I wrote a program that uses teststand API calls to delete specific DLL calls and replace these with a VI call, unfortunately this method does not copy step settings (preconditions etc. ) Right hand file shown in attachment.
    I later found that it was better to just change the adapter type (since the step settings will be kept)  Left hand file in attachment.
    When I compared the output of these two methods I noticed that I seem to have accidentally set the "Sequence Call Name" as shown in the right hand file in attachment. (no doubt a bug in my first program)
    Can anyone tell me what the "Sequence Call Name" field is used for in the example shown and what effect that accidentally setting it may cause?
    I opened the right hand file in Teststand but I can not find that property in any of the step settings.
    Thanks in advance for your replies.
    Solved!
    Go to Solution.
    Attachments:
    FileDiff.jpg ‏347 KB

    Hey 4watt,
    The Wait step has the ability to wait until a thread or execution is complete, and one way to specify the thread or execution is to choose a Sequence Call step from the sequence. This sets the Sequence Call Name property in the step.
    One of the other properties of the Wait step is the "Wait for" property (WaitForTarget in TestStand 2013). This property will be a numeric value between 0 and 3 indicating which of the four settings in the Wait step is being used (Time Interval, Time Multiple, Thread, or Execution). Therefore, you shouldn't have a problem with the Sequence Call Name property set as long as the Wait For property is set to 0 or 1.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Know steps names of called sequence file using sequence call step type in TestStand

    Hi,
        I have a problem in accessing step names in called sequence file using "Sequence call"step type in TestStand 4.0.
    I would list out all step names of called sequence file. Is it possible to do through C#.NET? If, yes, Please explain to me in detail with possible example.
    Thank you,
    regards
    RKK

    Hey RKK,
    I want to first set your expectations for the forums.  This is not a place for people to review and rewrite your code for you; this is a place for specific and general questions.  I am not saying your question in this thread is inappropriate, because it is a good questions.  We should just not post code and ask others to fix it here.  If you are looking for this type of service we have alliance members that can help you write your TestStand Operator Interface (www.ni.com/alliance).
    As for you question about getting the sequence names for a sequence file that is not the currently running sequence file, you will need to open a reference to that sequence files and then use the API calls that I mentioned in my previous posts.  You can use the Enigine.GetSequenceFileEx function to open a reference to sequence file, and you will need to close the reference with the Engine.ReleaseSequenceFile function when you are done using it.  After you have a reference to this external Sequence File, you can use the example dll and sequence I previously sent you.  I also attach a new sequence file (SeqFile2.seq) plus an updated GetNames.seq to illustrate how to use the above mentioned functions.  I hope this helps.  Have a great day!
    Best Regards,
    Software Engineer
    Jett R
    Attachments:
    GetNamesOfSequencesInFile.zip ‏52 KB

  • How to specify the File PathName from a Sequence Call in C++?

    Hi!
    I've written a C++ program that creates a new sequence file.
    I insert a new step (Sequence Call) and I also want to specify the module.
    I want to add the File PathName. How can I make it?
    I get a new property:
    TS:ropertyObject *property = stepObj->AsPropertyObject();
    I put a comment:
    property->PutComment("comment");
    And now I want to add "TS.SData.SFPath"
    How can I make it? With 'property->NewSubProperty(..)'or 'property->SetValString(..)'
    Who can help me?
    Thanks in advance!!

    I found a solution.

  • Add or edit Sequence Call step(s) dynamically in a sequence

    Hello I have looked at the TestStand Example: SequenceBuilderTool
    In the <TestStand>\Examples\SequenceBuilderTool Folder
    It works great, but I cannot seem to be able to use this for a Sequence Call Step.
    Any Solutions?
    Thanks
    BRI NI

    Hi Brian,
    I found some of my old code for my example, but unfortunately I haven't found the custom step types.
    Anyway, had a look at your example posted.
    I am I right in thinking you want the built sequence file to contain SequenceCall step which is linked to an internal sequence?
    Assuming this is your requirement. I took the supplied SequenceBuilderTool example and modified it as such:
    1. Added a SequenceCall step in MainSequence of the Template sequence file with its sub-sequence.
    2. Added the sequence call step in the ini file.
    3. Modified the "Build New Sequence" to insert the sub-sequence into the New Sequence File before inserting the steps into MainSequence.
    Because I was only inserting one sequence, I kept it very simple.
    First thing to do is get a reference to the Sequence from the Template Sequence File. Because I only had one sequence I used SequenceFile.GetSequenceByName. but if you have more than one you can get the number of sequences and use this as the max count and then use the GetSequenceByIndex, not using 0 as this will be MainSequence which will already be in your New Sequence File.
    Next get a Clone of that Sequence using your new reference using PropertyObject.Clone.
    Then finally, Insert the sequence into the new sequence file using Parameters.NewSequenceFileRef as the ActiveX Reference and call SequenceFile.InsertSequence (or SequenceFile.InsertSequenceByIndex).
    Then I released the reference to the sub-sequence by setting the local variable used to Nothing.
    The actual inserting of the SequenceCall step into MainSequence is handle by the existing code.
    This produced a sequence file which contained the sub-sequence and the Step in MainSequence which called the sub-sequence.
    I hope this helps.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Reporting of Steptypes realized as Sequence Calls?

    Hi,
    I realized some steptypes as sequence calls and managed to set the reporttext property of the calling
    step inside these sequences. The SeqeunceFailed flag is used to report an failure to the calling step.
    Problem:
    I disabled the record result option for the whole sequence, but looking to the report shows the sequence
    call (of the steptype) without any content.
    Is there any way to avoid this entry in report too ?
    Regards,
    Sunny

    Hi Sunny,
    Looks like I misunderstood your problem at the begining.
    However, the Scott ideea is good, but what you have to do in the PostSubstep is to delete the "TS.SequenceCall" from the "Locals.ResultList" entry. This can be achieved by setting the lookupString of the DeleteSubproperty method to the following expression:
    Str(Evaluate(" GetNumElements(RunState.Sequence.Locals.ResultList) - 1"),"RunState.Sequence.Locals.ResultList[%d].TS.SequenceCall" )
    An example of the step type can be found in the attached SequenceFile. The type is defined in the SequenceFile Types section and is named "MySeqCall"
    Hope this helps,
    Silvius
    Silvius Iancu
    Attachments:
    Example.seq ‏29 KB

  • Getting Sequence object from pre-step substep of Sequence Call based step type

    How to obtain reference to Sequence object from within pre-step substep of Sequence Call based custom step type?
    Given: new custom step type which based on NI Sequence Call step type. There is Pre-Step substep exist for this step type.
    How to get reference to Sequence object representing Sequence which will run?
    Although there is possible to examine SequenceAdapter and SequenceCallModule properties, it seems redundant since module (Sequence) is already loaded by TestStand ("NI TestStand Reference Manual. Table 3-4. Order of Actions that a Step Performs"   Action #6, while my code is running as Action #13).
    Thanks.
    Misha

    Could you explain what you want to do ?
    Why do you want to get the sequence object within a pre-step substep ?
    I give you some informations but I don't know if it's the better way to do what you want (because I don't know what you want to do with the sequence object).
    If the substep uses the ActiveX adapter :
    You can get the sequence object but you should save the object reference in a StationGlobals variable.
    And you should release the object reference within your sequence when you don't need it any more.
    If the substep uses another module adapter: 
    Get the step module, then the sequence name (module property).
    Then get the sequence object by the sequence name from the sequence file.
    Here are the paths to use for both methods :
    Sequence Name property path : Step.Module.SeqName
    Sequence Object path : RunState.SequenceFile.GetSequenceByName (seqname)

  • How to get the Runstate variable of an external sequence called from the Client Sequence through Sequencecall?

    Hi,
               I need to change the runtime high and lo limit values of all the tests of the client sequence file before running it. My sequence file is having a SequenceCall which calls an external sequence. Can anyone tell me how to change/access the High and lo limit values of the external sequence test steps?
    Thanks,
    Jeyan

    Doug,
              I used the property loader method but I could not load the limits of any sub sequence call calling an external sequence file.
    I took the FlowRate_test.seq example from the NI Example folder "C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2.1\Examples\PropertyLoader\LoadingLimits\LimitsFromExcelFile\UsingCVI". I created a sequence called PumpTest.seq in the same folder path. I then moved the Pump Test step from the FlowRate_test.seq to the PumpTest.seq. Now created a sequence call in the FlowRate_test.seq and called the PumpTest.Seq as the module path. When I execute the FlowRate_test.seq , I get the error as shown below:
    Attached is the Flowrate_Test.seq and the PumpTest.seq which should be there in the folder path "C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2.1\Examples\PropertyLoader\LoadingLimits\LimitsFromExcelFile\UsingCVI".
    Let me know whether I am doing something wrong in this method. 
    My idea is to alter the runstate variable High and Low of Pump Test in the PumpTest.seq and then run the Flowrate_Test.seq.
    Attachments:
    PumpTest.seq ‏6 KB
    FlowRate_test.seq ‏11 KB

  • [SOLVED] xfce4-terminal opened unfocused when called by exo-open

    xfce4-terminal opened unfocused when called by
    exo-open --launch TerminalEmulator
    Last edited by D101101 (2015-03-22 19:30:49)

    Thank you, this was driving me crazy.  When I went to open a xfce-terminal (not xterm), it would not "focus" on it.. it was driving me nuts.
    Needless to say, I checked, and rechecked, and rechecked my settings for focus.. probably messing something up in the process, all because exo was bugged (!!!??).
    (bump me, but now they got to fix Thunar.  Thunar is not updating files in folders.)
    Please see https://bbs.archlinux.org/viewtopic.php?id=194955
    Last edited by Kilzool (2015-03-23 04:42:48)

  • Record Results from sequence call inside of SequenceFilePostStepFailure Callback

    Test Stand 3.1
    When a step fails I use SequenceFilePostStepFailure Callback.
    In there I have prompt:
    1. Continue
    2. Terminate
    3. Terminate (thus calling a power down sequence file)
    Problem is that when Option 3 is used. There are no results recorded from that sequence call because it was invoked from the Callback.
    How do I force record results when that sequence file is called?
    Attachments:
    RecordResultsProblem1.zip ‏10 KB

    Hello Jaws8you,
    After looking into this issue further, it appears as if the link I posted has some great information but is not an exact fit for your particular situation.
    Because results from sequence callbacks will not populate in the report, we need to make sure and have any results we would like included in the main sequence.
    In your case we are just going to put the sequence call in the "Clean Up" tab, which will report the data, and is good programming practice.
    So to fix this problem, let's go ahead and try this:
    1.) Change the variable "Locals.ButtonPressed" to FileGlobals.ButtonPressed in the locations that you have it so far
    2.) "Cut" the "Call Main Power Down" sequence call from the "SequenceFilePostStepFailure" step, and copy it to the "CleanUp Tab" of "Main Sequence"
    Basically, that should be it. What this will do now is run the "Call Main Power Down" sequence when button 3 is pressed and skip this step whenever button 1 or 2 is pressed. The result is then published in the report.
    This should work out the best for you, thanks for posting and have an awesome day!
    With warm regards,
    David D.

Maybe you are looking for

  • Techs belittle requests for support

    having speed issues with fios on my 10/2 plan speedtest.net shows slowdowns in Mbps to 9, 8, 6, 4, 1, and sometimes it just stops. speedtest.verizon.net shows similar results, in the 9's mostly, but often 3's, 4's.  Techs say this is 'normal' and 'no

  • Payment medium workbench vs. payment media program.

    Dear Friends, Anybody have idea about the Pro's and Con's for "Payment medium workbench" vs. "payment media program". Regards Rupesh

  • FileFormat Plugin Access/Store selections

    Hi everybody, I'm developing a file format plugin which reads/writes layered image data. The file format also contains selections. My question: How can I store these selections in the document so the user could load them via Selections->Load Selectio

  • 1310 Wireless Bridge Poor performance

    Hello I am getting really bad performance on a bridge i am trying to get up, Laptop - Switch - AIR-BR1310G-E-K9-R attena-ed  ----------------   attena-ed AIR-BR1310G-E-K9-R switch laptop. When doing an FTP Transfer i get a poor 1MB, these are current

  • Is 3g Mobile Hotspot free or not?

    I received the update to froyo 2.2 this morning and I saw the new funtionality Hotspot, someone knows if there is and extra charge to us this funtionality? Regards