How to terminate on Sequence Failure?

HI,
I would like to terminate the test upon a sequence failure.  However ONLY from sequences called by the MainSequence!!
I tried to set in the PostAction --> Terminate on Fail, but it didn't stop?!
Can you recommend a way to accomplish it?
Also, I would like to see a Failure mark (red FAIL) on the failed sequence (if possilbe)
Thanks
Rafi

Rafi,
i tested your request and most of the things are working just as you request them:
- A failing step configured as Post-Action Terminate at Fail will terminate the execution.
- A sequence terminating by this action will get the result "Terminated"
What does not work as you (seem to) desire:
- The execution will never instantly stop, not with termination nor with abort.
- The result "Terminated" is displayed in a dark blue box within the Sequence Editor. There will not be the result Failed for the subsequence.
The execution will never instantly stop because TestStand always waits until possible active modules have finished. If you use the default SequentialModel, this method of temination should instantly initiate the termination procedure. Within this procedure though, all steps in the "Cleanup"-stepgroups are called going up the callstack. This is an important feature which cannot be changed.
Regarding your failure mark: do you use an UI other than the Sequence Editor?
hope this helps,
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • How to terminate the Sequence Test?

    Hi,
    Our production personnel complain that they can not terminate the test sequence when they spot some failures and wish to stop the test.  The only way I know how to do it is to put a stop on a step and then when TS does not run I can terminate the test.
    What is your recommendation for implementing a better way for termination?
    Thanks
    Rafi

    Hi Rafi,
    Here is some example code for using the execution termination monitor.  You will want to place this in your code periodically to look for possible termination requests.  This was an example written to demonstrate how you would exit out of an infinite loop with the termination monitor.
    CAObjHandle exec = 0 ;
        int error = 0;
        int i = 0;
        VBOOL term;   
        CAObjHandle MON = 0;
        //getting the execution object from the sequence context which was passed from TestStand
     TS_SeqContextGetExecution (seqContextCVI, NULL, &exec);
     //initializing the termination monitor and setting up  MON to be the monitor data
     TS_ExecutionInitTerminationMonitor (exec, NULL, &MON);
        //creating an infinite loop that will end if the termination monitor status is set to TRUE
        do
     TS_ExecutionGetTerminationMonitorStatus (exec, NULL, MON,
                CA_DEFAULT_VAL, &term);
        while( term == VFALSE);
    Error: 
        // FREE RESOURCES
        // if (lastUserName != NULL)
        //     CA_FreeMemory(lastUserName);
     CA_DiscardObjHandle(exec);
     CA_DiscardObjHandle(MON);
    I hope this helps.
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • How can I terminate my sequence when DI signal changed?

    Hello, I have a problem that  I want to stop my sequence by DI signal changed.
    How can I terminate my sequence when DI signal changed?
    Thanks
    Solved!
    Go to Solution.

    Hi, you can test the DI signal in vi using a while structure in another thread while main sequence is running. Then you can make use of an if statement to determine whether to get on running the sequence by the value of the vi.

  • How to monitor OSD TS failure and get alert or report?

    How to monitor OSD TS failure and get some alert or generate an report?
    We have SCCM 2012 R2 CU1 with MDT 2013.
    I have checked the OSD reports in SCCM and everyone is emty, where do SCCM get data to the what to activate?
    (I thinking of "Task Sequence - Deployment Status" reports)
    I am not sure people read report manually or lock at the MDT monitor view. So best I think that generate an email or incident in Service Manager when an TS fails.
    We do have SCOM, SCSM, SCO.
    Is there anyone that can point what way or what option I have?
    /SaiTech

    Specifically you could use this Status Message Query syntax to monitor your Task Sequences for errors:
    select stat.*, ins.*, att1.*, att1.AttributeTime from SMS_StatusMessage as stat left join SMS_StatMsgInsStrings as ins on stat.RecordID = ins.RecordID left join SMS_StatMsgAttributes as att1 on stat.RecordID = att1.RecordID inner join SMS_StatMsgAttributes
    as att2 on stat.RecordID = att2.RecordID where att2.AttributeID = 401 and att2.AttributeValue = "DOJ200A1" and stat.SiteCode = "DOJ" and att2.AttributeTime >= ##PRM:SMS_StatMsgAttributes.AttributeTime## order by att1.AttributeTime desc
    Just replace DOJ200A1 with the Deployment ID of your Task Sequence and DOJ with your SiteCode.
    If you want to generate an alert if the TS fails then you could run a script that calls a utility (or similar) which sends a pre-configured email to a specified address (as an alternative to Torten's response). This could be placed in the built in error
    logging section of the SCCM integrated MDT Task Sequence when it fails which I assume you are using (right at the bottom, called Gather Logs and StateStore on failure).
    There are heaps of ways of generating an email from a TS and controlling error logging just do a search - as you have Service Manager you could even use your instance of Orchestrator and call a run book in your TS which does the email?
    Cheers
    Damon

  • Reading Configure- Station Options- Immediately Goto Cleanup on Sequence Failure Checkbox Setting

    In TestStand 3.5, how do you programatically read the status of the Configure->Station Options->Immediately Goto Cleanup on Sequence Failure checkbox?  How would you programatically set this value?
    Solved!
    Go to Solution.

    Thanks for the reply, but I tried your suggestion and it cannot resolve the reference.  When I typed in Engine. it was immediately replaced by RunState.Engine. so I used RunState.Engine.StationOptions.AlwaysGotoCleanupOn Failure.  When the step was executed, there was an error stating "Unknown variable or property name RunState.Engine.StationOptions".  When I go to the context tab, I see the Engine object, but I cannot expand to see what elements it contains.  Any further suggestions?   How does one find out what "Engine" contains anyway?

  • Where is "Immediately Goto Cleanup on Sequence Failure" stored?

    1. When I set "Immediately Goto Cleanup on Sequence Failure" on the Station Options dialog, where is that property stored? I want to have the process model set it and not let operators set it.
    2. If I am running the Batch model, and one socket fails, what is a good way to terminate the other socket(s), or make the other socket(s) jump to their own cleanups?
    Thanks,
    cc

    Hello cc,
    For your first question, you can use the TestStand API to set the Engine.StationOptions.AlwaysGotoCleanupOnFailure property to True.  This has the same affect as setting the Station Options manually.
    You second question is more tricky.  One way that you can have the other TestSockets go to their clean up is by sharing a FileGlobal.  If one TestSocket fails, then it would set this variable to true.  Then all of the other TestSockets would check this variable before each step to see if there is an error; if so, then they would branch to clean-up of that sequence.  You will most likely want to use the ProcessModelPreStep and ProcessModelPostStepFailure Engine callbacks in your process model.  They will fire at the appropriate time in your client sequence file (not in the process model where you defined them).  I hope this helps.  Have a greay day!
    Best Regards,
    Software Engineer
    Jett R

  • How to get selected sequence in a file

    Hello,
        I can get the selected sequence file by accessing the RunState.InitialiSelection.SelectedFile property. However, if i want to get the name of the sequence that was selected in this sequence file, then how can i get that?
    Thanks,
    Regards,
    Aparna

    Hello,
       Sorry, i saw this thread a little late. My question is still the same. The solution that you gave actually gives me the display name of the sequence file. But i wanted the name of the sequence that was opened withtin the sequence file. Here is what i have.
    A sequence file named TestExport.seq has two sequences  - MainSequence and SecondSequence. I open up the sequence file and open the SecondSequence in that file. But i dont know how to get this information about the sequence that is selected within the file. I have an external dll, in which i am passing the sequence file name as RunState.InitialSelection.SelectedFile. But i do not know how to get the sequence name that was actually opened in that file. Because i actually want to get the sequence context of the sequence within the file. The code that i have looks like this:
    public ExportDlg(SequenceFile seqFile)
                InitializeComponent();
                SequenceContext seqContext = seqFile.NewEditContext();
                engine = seqContext.Engine;
                object outParam = System.Type.Missing;
                this.seqContext = engine.NewEditContext(seqFile.GetSequence(0).AsPropertyObject(),System.Type.Missing,out outParam);
    seqFile.GetSequence(0) - gives me the context of the first sequence which is MainSequence. But if i have opened the SecondSequence, i need the context for that. And to get this, i need the sequence name "SecondSequence" somehow.
    RunState.InitialState.SelectedSequences is an array of containers. Although i can see the sequence name during executing, i do not know how to get the name of the container my external dll .
    Please help,
    Thanks,
    Regards,
    Aparna

  • I'd like to know how to play a sequence of podcasts. Does anybody know?

    I'd like to know how to play a sequence of podcasts?
    Finishing to hear a podcast, it comes back to main menu! Why can it play all the contents in sequence, like music?

    Hold down the mute button on the steering wheel until you hear,"Ready" and then say "Voice". That will bring up Siri.

  • How to create a SEQUENCE in MSSQL2005

    Hi
    I am also having a similar problem which opened the thread
    Actually i am using a Repositery which is created in MSSQL2005.
    Now i want to create a SEQUENCE similar to Oracle and populate My surrogate Key Column.
    Can u tell me how to create a SEQUENCE in MSSQL2005?
    Does anyone is having the sql syntax?
    Thanks
    Gourisankar

    Hi Gourisankar,
    There is no sequence concept in MS SQL Server rather it has IDENTITY.
    In MS SQL Server if you declare a column type as a Identity it will be auto increment when a new record inserts.
    So in you underlying table create a column as ID and type as "Identity" and in your mapping leave that field un mapped.
    Have a look and google more on "identity in ms sql server" ;)
    http://www.sqlteam.com/article/autonumbering-identity-columns
    http://www.craigsmullins.com/ssu_0599.htm
    Thanks,
    G

  • How do i correct a failure of iTunes to download because of a failure with file MSVCR80.dll?

    How do i correct iTunes' failure to download because of a problem with file MSCVR80.dll?

    Hello there, RGGGGGG.
    The following Knowledge Base article provides some great in-depth troubleshooting steps for troubleshooting issues with installing iTunes:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How to terminate a java thread from c++ code?

    Hi,
    I made a screensaver which loads a jvm, forks a thread running a java class, wait until user's action(i.e. mouse move/click keyboard input), then terminate the java thread.
    However, I met a problem, How to terminate a running java thread from c++ code?
    Here is my code, but it does not work: (even after the terminate is called, jvm throws an error)
    JNIEnv* env;
    JavaVM* jvm;
    HANDLE hThread; //handle for the startThread
    unsigned __stdcall startThread(void *arg)
         jclass cls;
         jmethodID mainId;
         jint          res;
         int threadNum = (int)arg;
         res = jvm->AttachCurrentThread((void**)&env, NULL);
    cls = env->FindClass( MAIN_CLASS);
         mainId = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
         // setup the parameters to pass to main()
         jstring str;
         jobjectArray args;
         int i=0;
         args = env->NewObjectArray(1, env->FindClass("java/lang/String"), 0); //only one input parameters
         str = env->NewStringUTF("localhost");
         env->SetObjectArrayElement(args, 0, str);
         env->CallStaticVoidMethod(cls, mainId, args); // call main()      
         if (env->ExceptionOccurred()) {
                   env->ExceptionDescribe();
         return TRUE;
    Here is the main method:
    First create the jvm and load the thread. then tries to terminate the thread, but failed here
    switch (msg)
    { case WM_CREATE:
              JavaVMOption options[NUMBEROFOPTIONS];
              JavaVMInitArgs vmargs;     
              jint rc;
              vmargs.version = JNI_VERSION_1_4; /* version 1.4 */
              vmargs.options = options;
              vmargs.nOptions = NUMBEROFOPTIONS;
              vmargs.ignoreUnrecognized = JNI_FALSE;          
              rc=JNI_CreateJavaVM( &jvm, (void **)&env, &vmargs ); /* create JVM */
              /* We pass the thread number as the argument to the invoked thread */
              unsigned int threadId = -1;
              // to initialize a thread-safe C runtime library
              hThread = (HANDLE)_beginthreadex(NULL, 0, &startThread, NULL, 0, &threadId );
    } break;
    case (WM_DESTROY):
              CloseHandle( hThread );
              jvm->DestroyJavaVM(); /* kill JVM */
              Debug("Destroy Java Virtual Machine\n");
    }break;
    Note, after the thread "startThread" runs, it has an infinite loop and will not terminate, until the user clicks to terminate.(I didn't call jvm->DetachCurrentThread();_endthreadex(0); in the "startThread" because the java thread will not terminate by itself)
    Thus, the only way to terminate the thread is to call closehandle(hthread) in the main thread, which may cause jvm to throw an error.
    Do you know how to terminate a java thread safely???
    Thanks a lot

    Assuming that your java thread is in a loop of some kind. Such as
    int i=1; /* I tried using a boolean, I just could not get my C++ env, to change this value. So i decided to use an int */
    run {
    while(i)
    isdfjsdfj
    void seti()
    i=0
    So, B/4, i call destroyVM in my C++ code, i call this seti(). so the loop terminates, therefore my thread finishes executing and ends.
    Hope this helps
    tola.

  • How to display a sequence in item?

    hi! well, i don´t know how to display a sequence in item. i created a sequence in sqlworkshop. now i want what the sequence will display in item(for example :P8_COD_SERVICES). I HOPE ANSWER. BYE
    (AH! I TRYNG IN ITEM.DEFAULT VALUES BUT NOTHING)

    Alvaro,
    Maybe the item source type could be SQL Query and the query would be: select seq.nextval from dual. Or you could have a before-header page computation do the same thing for the item.
    scott

  • How to setup the sequence order's of PO's vision instance

    I need to create PO's in a sequential order in vision instance. How should I do that?
    Thanbks
    regards,

    Hi,
    We have already mentioned how to create PO sequence in earlier post in this thread...
    You need to follow below steps:
    1) Login to Purchasing Super user
    2) Open "Purchasing Options" form.. (Setup --> Organizations --> Purchasing Options)
    3) In Document numbering section, do mention the details of PO Number, like PO Entry (Manual/Automatic), PO Number type (Numberic/Alphanumeric), Next number (e.g. 10000)
    For your case use Next Number : 100000 (6 digits)
    4) Save
    5) Return to PO creation page and start creating POs.
    Hope this will help.
    Kind Regards,
    S.P DASH

  • How to Create Test Sequence Document in HTML using command line

    How to Create Test Sequence Document  in HTML using command line
    I have lot of sequences and I want to create Test Sequence Documentation in HTML format using Command Line automatically, is there a way to automate this task using .bat file or using   C#  .Net

    If you aren't able to figure out how to call a C++ DLL in .net then there may be another option.  Unfortunately I don't know how to do this off the top of my head and I don't have an example.
    The other option would be to change docgen.seq a little bit to the dialog doesn't display and you just hardcode the options.  Then you can use a command line to call testexec.exe: http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/startup_opt/
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to create a Sequence;

    Hi All,
    I have a master block and child block;
    I need to create sequence number in child block like 1 2 3 4
    Line #
    1....date1.....12......
    2....date2.....xxx....
    3....xxx........xxx....
    4..........
    When i create new customer and its detail it should start with new sequence
    and some one query the records and open it then this should continue the sequence.
    Thx.
    Message was edited by:
    J.Harsha

    Jan, I have created the multi records it is fine,
    This is about how to get the sequence numbers,
    Lets say some one open one record and it have 5 detail records.
    if he is in second detail record and try to insert a new record i want to show
    Line id 6
    I was trying with
    SELECT nvl(MAX(LINE_PERIOD)+1,0) INTO l_LINE_PERIOD FROM XX_RATE_LINE RL
    WHERE RL.CUSTOMER_ID=:MSF_V.CUSTOMER_ID;
    if l_line_period>4 then -- we gave default 4 records
    bk_id := Find_Block('MSF_LINE');
    --last_record;
    :line_period := Get_Block_Property( bk_id, MAX_RECORDS_FETCHED)+1;
    --CURRENT_RECORD);
    --MAX_RECORDS_FETCHED
    end if;
    CURRENT_RECORD is good if some one navigating properly always into the last record.
    Message was edited by:
    J.Harsha

Maybe you are looking for

  • Windows Vista 64 Bit VPN Client

    I navigated the Cisco Website (http://www.cisco.com/cgi-bin/tablebuild.pl/windows) to find a 64 bit version of the Cisco VPN client and was unable to identify if there was one. What software can be used to connect on a Windows Vista client to obtain

  • Status tool in the basis layer

    Hello, We are in the process of developing a small tool in the Basis layer of ABAP. But in our tool we would need to do status management. Eg: the object would go from Ready->In process-> Active->Transport etc... baseed on different scenarios and sit

  • Dbmgui access for SAP WAS on Linux TestDrive (2004s)

    I'm having trouble connecting to MaxDB from either dbmcli or dbmgui. To be precise, I can use dbmcli, but only with reference to XUSER.62, e.g. "dbmcli -U c -d N4S db_connect" works, but none of the other default passwords work any of the standard us

  • ITunes application error. 13014!!!!!

    Hey im running a pc with XP and trying to get itunes up and running so I'll be able to get my iphone update. Well that is harder than i thought i keep getting this "The iTunes application could not be opened. an unknown error occurred. (13014). I've

  • Anybody recieve error message 1603 while restoring?

    My iPhone has become frozen during the restore process... all I get is a yellow caution sign telling me connect to iTunes. When I do, following the restore application, i get the unknown error message 1603, and that the phone can't be restored. Anyon