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

Similar Messages

  • How to run the Hardware test on a Mac mini 2015 ?

    how to run the Hardware test on a Mac mini 2015 ?

    Welcome to Apple Support Communities
    New Macs come with Apple Diagnostics instead of Apple Hardware Test, but their purpose is the same: check that your Mac's hardware is working properly. See -> https://support.apple.com/kb/PH18765?locale=en_US
    To run it, you only have to hold down the D key while your Mac is starting up, and follow the steps.

  • How to control the sequence of a map?

    Hello
    we are using a send email with attachment (map) in our process design, the email body has a few pdf documents, does anyone know how to control the sequence of attachment in the email body?
    thanks,

    Values in a map are ordered randomly, you can't predict the order.

  • How to change the sequence number in the test packages?

    Hello,
    I need to change the sequence number in the test packages. Currently I use "move test case." However you can only move one item at a time.
    There is another option to make this change?
    Best regards,
    Elisabete

    Hi Elisabete,
    Sorry, I've to acknowledge the reply from Fabricius.
    That's poor in release 7.0. A former version provided a solution where it was possible to move a testcase even over pages at once.  May be SAP changed this functionality because of other problems caused by the former solution.
    Therefore I am looking for a business blueprint structure meeting the logical and operational process for little need of changes in sequences.  And I create E2E-scenarios / E2E-processes as an additional structure in a project to have an easier approach in the Test Workbench.  An other option is to divide test packages into smaller ones.
    I hope we can look foreward to a better and more comfortable solution in release 7.1.
    Best regards,
    Adelbert

  • How to find the sequence for a table.

    Hi Everyone,
    I've got plenty of sequences. How can I identify that what are the sequences acting on a table?
    Regards,
    BS2012.

    Greg.Spall wrote:
    In my last job, we used the table/column comments to point to the sequence.
    so:
    CREATE SEQUENCE seq_test1;
    CREATE TABLE my_table
    (id   number);
    COMMENT ON TABLE my_table IS 'Test table for demonstration purposes on OTN';
    COMMENT ON COLUMN my_table.id IS 'Primary Key, sequence populated: seq_test1';... or something like that :P
    But yeah, outside of that, good luck if you have no documentation!Of course, ALL of the 'code search' solutions put forth are assuming the references will be found in PL/SQL packages. That ignores the potential that the code could be located somewhere else, like application code that exists OUTSIDE of the database .... Bottom line is that there is no 100% one-size-fits-all method for automating the discovery of relationships between tables and sequences.

  • How to terminate the jsp execution

    Hi, I've an problem to terminate the jsp execution.
    I've tried to use the following code: out.close();
    but the jsp (I use the servlet engine version 2.0) page continue the execution.
    How I can terminate this execution?
    Thanks

    Hello,
    i haven't this tried out yet, and i even do not have Time to test it,
    but if you use a Custom Jsp Tag, then you can set the return Type of
    the doEndTag() Method to SKIP_PAGE.
    This should stop the Evaluation of the Rest of Page.
    Good Luck !
    Best regards
    jherunter

  • 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.

  • How to fix the sequence of conditions in PO?

    Hi,
    I am using calculation schema RM0000, whose part of the condition sequence is like below:
    Step     Counter      Condition Type
    10     1     RB00
    10     2     RC00
    10     3     RA00
    10     4     RA01
    10     5     HB00
    10     6     ZB00
    10     7     ZC00
    10     8     ZA00
    10     9     ZA01
    10     10     HB01
    In my case I have to use ZA01,RA00,ZA00 in my PO. As per the schema above, the sequence should always be RA00 -> ZA00 -> ZA01. But in fact, the sequence is based on the when I enterred the condition.
    For example, if I enter ZA01 before RA00, then in PO the sequence is ZA01 -> RA00; if I delete ZA01 and enter ZA01 again, the sequence change to RA00 -> ZA01...
    How can I fix the sequence of conditions in PO? Is there anything I forgot to configure?
    BTW, it seems that header condtions always lie after item conditions in item condition tab. Is it the standard logic of SAP?
    Thanks!
    Wesley

    Hello,
    The sequence of condition types cannot be changed dynamically, it will be picked from what maintained in the pricing procedure in M/08.
    The fields, Step - Counter , decides the sequence of the condition types.
    Condition counter is Access number of the conditions within a step in the pricing procedure.
    Use
    During automatic pricing, the system takes into account the sequence specified by the counter.
    Regards
    Gregory Mathews

  • 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 maintain the sequence in the custom table

    Hi,
    We have custom table where we will store the standard text name based on different flags and it will be fetched the value according to the condition.
    Example code
    SELECT SINGLE field1
                      field2
                 INTO  ( vaiable1 variable2 )
                 FROM custom table
                WHERE tdobject = iv_signature
                  AND bukrs    = vbdkr-bukrs
                  AND vkorg    = iv_vkorg
                  AND vkbur    = iv_vkbur
                  AND lland    = vbdkr-land1
                  AND fkart    = vbdkr-fkart
                  AND kschl    = iv_kschl.
      CHECK sy-subrc <> 0.
      SELECT SINGLE field1
                      field2
                 INTO  ( vaiable1 variable2 )
                 FROM custom table
                WHERE tdobject = iv_signature
                  AND vkorg    = iv_vkorg
                  AND vkbur    = space
                  AND fkart    = vbdkr-fkart
                  AND kschl    = iv_kschl.
      CHECK sy-subrc <> 0.
    SELECT SINGLE field1
                      field2
                 INTO  ( vaiable1 variable2 )
                 FROM custom table           
                WHERE tdobject = iv_signature
                  AND vkorg    = iv_vkorg
                  AND vkbur    = space
                  AND fkart    = vbdkr-fkart
                  AND kschl    = space.
    The solution I created to avoid the select is, i have created the FM with all parameter. Addition to the FM, I have created a Table as well to maintain the flag.
    New table                                                                               
    TDOBJECT   TDID BUKRS VKORG VKBUR KUNNR      MWSKZ AUART VGBEL_AUART KTGRM LLAND FKART WERKS KSCHL STNAME                                                                               
    FOOTER                                                                           X     X           ZNET_DICI_FTR_FI  
    FOOTER                                                                           X     X           ZNET_DICI_FTR_NL  
    FOOTER                X     X                                                    X                                   
    i.e. say example if we maintain the value in the custom table based on the first select query. Then we need to maintain the flag in the table which was created newly.
    Note In the both field the key fields are same.
    The problem now is we have plenty of select query for different condition, i though of maintain the sequences of the entries. But my worry is how many sequence number will be maintained and in what bases it will be maintained.
    Could you please help me to resolve this problem?
    Regards,
    Vijay

    Hi,
    I got your requirement as,
    whenever a new entry is made in the table, one sequence has to be maintained somethign like serial number and everytime it has to be incremented. If it is so, then you can go for an additional field as serial number. Then get the max serial number from the following select query:
    select max(serial) from cust_table
    into v_serial.
    Now, when you make a new entry, just give (v_serial + 1) to serial number...
    Please let me know if i understood wrongly... or what you want...

  • How to get the sequence value from the database

    Hi
    I created one sequence in the database.
    Then I want to take the current value or nextvalue of the sequence in a java program.
    How can i do this?
    can anybody please explain me?
    Thank you so much.

    Here you go ...
    Connection conn = null;
    PreparedStatement prepStmt = null;
    ResultSet rs  = null;
    int seqNo = 0;
    try {
         conn = dbConn.getConnection(); //manage your connection here
         String strSQL = "SELECT SEQ_NAME.NEXTVAL FROM DUAL";
         prepStmt = conn.prepareStatement(strSQL);
         rs = prepStmt.executeQuery();
         if(rs.next())
              seqNo = rs.getInt(1);
    catch (SQLException e)
    ...-Rohit

  • How we run the sequence of mapping in owb?

    I have warehouse building mapping which is developed by some one. Now i wanted to run from beginging to end. I am able to run individual mapping manually.
    But i want to run all mapping(not like running one by one). Since i am not sure the sequences of the mapping.
    I want to start the first mapping and it should run all the dependent mapping automatically until end. Any help is highly appreciated.
    I tried to create process flow and process flow package.. But i am not sure, how i can connect all the developed mapping...

    Thanks for the input. based on your input, i found that, OWB workflow manager is not configured.
    I went to this folder and execute wfinstall.csh file.
    /ora/app/oracle/product/11.1.0/db_1/owb/wf/install
    Installation did not go successful. Here is the error message. Any help is highly appreciated.
    WorkflowCA: Deploy WF Applications: Linux
    WorkflowCA: Workflow component container deployed in OC4J: /ora/app/oracle/product/11.1.0/db_1/jdk/bin/java -Doracle.security.jazn.config=/ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/OC4J_Workflow_Component_Container/config/jazn.xml -Djava.security.properties=/ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/home/config/jazn.security.props -jar /ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/home/oc4j.jar -userThreads -config /ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/OC4J_Workflow_Component_Container/config/server.xml
    WorkflowCA: Executing :/ora/app/oracle/product/11.1.0/db_1/jdk/bin/java -jar /ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/home/admin.jar ormi://oracleserver:6041 oc4jadmin welcome -application WFALSNRSVCApp -testDataSource -location jdbc/WorkflowDS -username OWF_MGR
    WorkflowCA: :null for app:WFALSNRSVCApp
    WorkflowCA: Executing: /ora/app/oracle/product/11.1.0/db_1/jdk/bin/java -jar /ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/home/admin.jar ormi://oracleserver:6041 oc4jadmin welcome -application WFALSNRSVCApp -installDataSource -url jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracleserver)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl))) -username OWF_MGR -password ->pwForOwfMgr -className com.evermind.sql.DriverManagerDataSource -location jdbc/WorkflowDS -xaLocation jdbc/xa/WorkflowDS -ejbLocation jdbc/WorkflowDS -connectionDriver oracle.jdbc.driver.OracleDriver
    WFCA OUT: Error: Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect: Connection refused
    WorkflowCA: Exit Val: 2
    WorkflowCA: Created a redirected data source with application WFALSNRSVCApp :
    WorkflowCA: Executing :/ora/app/oracle/product/11.1.0/db_1/jdk/bin/java -jar /ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/home/admin.jar ormi://oracleserver:6041 oc4jadmin welcome -application WFMLRSVCApp -testDataSource -location jdbc/WorkflowDS -username OWF_MGR
    WorkflowCA: :null for app:WFMLRSVCApp
    WorkflowCA: Executing: /ora/app/oracle/product/11.1.0/db_1/jdk/bin/java -jar /ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/home/admin.jar ormi://oracleserver:6041 oc4jadmin welcome -application WFMLRSVCApp -installDataSource -url jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracleserver)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl))) -username OWF_MGR -password ->pwForOwfMgr -className com.evermind.sql.DriverManagerDataSource -location jdbc/WorkflowDS -xaLocation jdbc/xa/WorkflowDS -ejbLocation jdbc/WorkflowDS -connectionDriver oracle.jdbc.driver.OracleDriver
    WFCA OUT: Error: Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect: Connection refused
    WorkflowCA: Exit Val: 2
    WorkflowCA: Created a redirected data source with application WFMLRSVCApp :
    WorkflowCA: Executing: /ora/app/oracle/product/11.1.0/db_1/jdk/bin/java -Djava.security.properties=/ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/home/config/jazn.security.props -Doracle.security.jazn.config=/ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/OC4J_Workflow_Component_Container/config/jazn.xml -jar /ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/home/jazn.jar -user oc4jadmin -password welcome -adduser jazn.com pwForOwfMgr <WFCA WF PASSWORD>
    The specified user already exists in the system.
    WorkflowCA: Created obfusticated password for redirect datasource:
    WorkflowCA: Executing: /ora/app/oracle/product/11.1.0/db_1/jdk/bin/java -jar /ora/app/oracle/product/11.1.0/db_1/oc4j/j2ee/home/admin.jar ormi://oracleserver:6041 oc4jadmin welcome -shutdown
    WFCA OUT: Error: Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect: Connection refused
    WorkflowCA: Exit Val: 2
    WorkflowCA: Executed OC4J Admin script to shut down the OC4J instance :
    WorkflowCA: Tue Jun 01 15:27:02 CDT 2010
    WorkflowCA: Workflow Configuration has completed with error.
    WorkflowCA: Terminating...

  • How to terminate the next job step in Background job?

    Hi,
    I have the requirement from the user that want to terminate the next job step in the background job that currently running (Status Active).
    For example, Background Job A, contains 5 job step, once the background is running, we would like Job A not run thru job step 4 and 5, just run up to job step 3. 
    Anyone have any idea how can I do that?
    Thanks
    Nattawat S.

    Hi,
              Try to delete instead of cancel in SM37.
    To cancel and active job, select the job from SM37 and Click on STOP button in application toolbar. You can refer to your other thread for more info.
    Regards

  • How to prepare the UNIT test plan

    Hi ALL
    can any body tell me how to prepare a unit test plan

    Use the following colums in preparing unit Test data.
    1. Sr.No.
    2.Test Condition.
    3.Expected Results
    4.Description/Instruction for the test execution.
    5.TestData used for the test.
    6.Actual Result.
    7.Pass/Fail.
    For a login Screen. Unit Test plan wud b.
    1.  1
    2.   User Presses Login Button.
    3.   Data shud be validated.
    4.  As soon as the user enter the fields in the login screen,the data shud be validated and If entered data is correct proceed to the next screen, else popup an error.
    5. User:kiran, Pwd:***
    6. Entered incorrect data,but proceeded to the new screen.
    7. FAIL.

  • How to load the sequence file from the process model?

    Does anyone have an example process model that loads a sequence file? The out-of-the-box process models assume the sequence file is already loaded. I want the process model to identify the UUT type and load the appropriate sequence file based on that.

    Mark,
    A better solution to your question can be accomplised if you have TestStand 2.0.
    Within the entry point of a process modle you can set the client sequence using Execution.ClientFile(). This is a new method of TestStand 2.0. It was specifically designed so that you could dynamically set the client sequence within the process model.
    Currently the entry points in the default process models (i.e. Test UUTs and Single Pass) are configured to Show Entry Point When Client File Window is Active. This means that you must open and have active a client sequence file before you can execute one of the entry point. You probably do not want this implementation if you are going to set the client file during the entry point execution. To change this you will need to go the sequence properties of your entry point (while the sequence is open select Edit>>Sequence Properties), switch to the Model tab of the entry point's property dialog box, and enable Show Entry Point For All Windows. The entry point will then appear whether or not you have an open sequence file active.
    You will need to add at least 3 steps to your entry point sequence that all use the ActiveX Automation Adapter. Remember that MUST disable Record Results for any step you add to the process model. The 3 steps will perform the following tasks:
    1) Obtains a sequence file reference of the file that you want to be the client sequence file. You will need to use the Engine.GetSequenceFileEx method. You will need a local variable (ActiveX data type) in which to store the sequence file reference.
    2) Set the client sequence file using the Execution.ClientFile property.
    3) Close the reference to the client sequence file in the Cleanup step group of your entry point sequence using Engine.ReleaseSequenceFileEx
    I am attaching a SequenceModel.seq file (the default process model in TestStand 2.0) in which we have modified the TestUUTs entry point as described above.
    Note that you'll be prompted to enter the path to your client sequence file. This is a message popup that you can delete and it was added for your review only.
    Good luck in your project,
    Azucena Perez
    National Instruments
    Attachments:
    sequentialmodel.seq ‏164 KB

Maybe you are looking for

  • A major black eye for Apple and Steve Jobs - an update on activation issues

    I am at 30 hours and still waiting for activation! I have spent over 7 hours on the phone between yesterday and today trying to get my phone activated. I have been talking to AT&T and Apple and I have wasted my day on hold. No one seems to know what

  • What is the use of Marker Interfaces?

    What is the use of marker interfaces? As it is not having any methods or fileds what is the benefit I will get by implementing those interfaces? Servlet implements SingleThread What it will do behind the scenes exactly as singleThread model is marker

  • How does FileVault 2 work for external hard disk?

    Hello users, I've activeted FileVault 2 for my computer and it works without slowing down! But now, I really want to try the new feature about FireVault 2, how can I use it for an external hd? I tryed to search from Google more information, without s

  • PRE 7 Error: Adobe Premiere Elements.exe stopped working

    Today I started getting Adobe Premiere Elements.exe has stopped working and than the program closes. Does anyone know how I can fix this? I un-installed and re-installed it and still get the same thing.

  • Cannot launch many application after 10.8.5 upgrade

    Hi, I have to report I cannot launch many application on my MacBook Pro (2011) after I upgraded to 10.8.5 and 10.8.5.1 When I execute the application I receive the spinning ball, and all I have to do is to force and quit the application. For example