"Continue" post action

I have a step in a For loop whose post-action I want to Continue (i.e., jump to the End step of the For block and continue looping [as in the "Continue" step type]) or to Break (i.e., break out of the loop by jumping to the End step and then executing the next step [as in the "Break" step type, not as in breaking execution]).  Is this possible?
I tried to put a Continue or a Break step in a subsequence that gets called as a post-action, but that doesn't work because the behavior of the Continue and Break step types is scoped to the sequence in which they reside.  Is there any other way to do this?  To achieve the behavior of a Continue step, I can have a post-action destination of the End step (I can't think of anything equivalent to achieve the behavior of a Break step), but the steps I am trying to configure will be predefined as templates that are dynamically built into a sequence, and the end destination will not be known at edit time.

I agree with Doug that the best way to do this is probably with two steps. I set up a For loop with a Sequence Call step and a Break step directly after it. For the Sequence Call, I have the post actions set so that if the subsequence passes, it jumps to the step after the Break, so the loop can continue. If the subsequence fails, it goes to the next step (Break step) and exits the loop.
This isn't as simple as having everything in one step, but it does seem to work for me at least. If you'd like to see this function added to the API, please feel free to post it as an idea on the TestStand Idea Exchange so that it can be considered for future versions of TestStand.
I hope that helps, and let us know if you have any further questions about it!
Daniel E.
TestStand Product Support Engineer
National Instruments

Similar Messages

  • Pass parameters with Step-Post Actions-'C​all Sequence' option

    I have a sub-sequence which accepts a single parameter.
    Ideally I would like to call this sub-sequence from several Steps, using their Post Actions property , using a Custom Condition Expression and the On Condition False: Call Sequence option.
    The Call Sequence option, when selected, offers a list of sub-sequences including the one which I wish to execute, if the conditions are correct, but I see no way of passing an argument to the sub-sequence's parameter.
    Is there a simple way of passing the parameter ?
    Is there a syntax I could apply to the sub-sequence selected string ? 

    From the TestStand Help:
    Call sequence—TestStand calls a sequence before continuing to the next step. You can select any sequence in the sequence file. TestStand does not pass any arguments to the sequence. If the sequence has parameters, TestStand uses their default values.
    So I don't think this particular method is going to work for you.  However, there are lots of ways to do this, here are a few I can think of off the top of my head (I'm sure there are more, and possibly better ones):
    1.  Just insert a sequence call after every applicable step with an apropriate pre-condition.  This is the easiest method, but kind of messy and requires repeating the call everywhere.
    2.  Change the parameter to a sequence file global... ylch, I hate globals... Terrible programming practice, but it's easy .
    3.  Override the SequenceFilePostStep Engine Callback and put a sequence call with an appropriate pre-condition in there.  This keeps you from having to repeat the code, but it will check the condition after every step executes, not just the ones you are interested in, so you may need some additional conditions.
    4.  Define a custom step type for these steps and use a substep to call the sequence.
    Hope that helps,
    Ryan K.

  • How do I return to Main Sequence cleanup using Post Actions?

    Since I am quite new to this I have a question that I hope you can help me with. When a subsequence fails I want to return to Main Sequence cleanup immediately and not continue to the next step. Do you know of a way to do this using Post Actions?

    Set the On Fail post action of the subsequence to Goto destination and set the destination to Cleanup.

  • Retest Panel - Call by Post Actions

    Hi
    I am hoping to get some advice about adding retest functionality to our existing test sequences. What I am trying to do is when a step fails I want to jumps to the retest step which calls the retest.vi (contains debug info and report printing functionality). Once the retest vi has executed I want to either jump back to the failed step (retest) or continue with the sequence (next step). The difficulty am having is I wish to use the retest step when any of the step fails therefore the Post action "goto step X" must be dynamic based on the step that failed.  
    I was wondering if anyone knows of a method of storing current step index to a variable, then using the step index after the retest has been executed to select which step to jump back to?
    Any help would be great
    Dave

    Had success after lunch, used RunState.Step.Name to get the name of the failed step and RunState.NextStep.Name to get the name of the step that should be excuted next. Both of the names are then saved to local varibles. On failure i call then call the retest step (Post Action - goto).  After the retest step has executed i use the local varibles to determine which step to jump back to (Post action > Goto step > Specify By Expression).
    Dave

  • Post Action Not Working

    I have given a post action to a step and it does'nt work. Please se the attached sequence.
    Attachments:
    Testing.seq ‏7 KB

    Hi,
    There is nothing wrong with your sequence. The reason the Post Action doesn't jump to Cleanup as you expect is because the Status of first step is "Done" not "Passed".
    Regards
    Ray Farmer

  • Step post action works only in 'Test UUts' mode

    Hi,
    My main sequence file has a list of  steps, all sequence type.  I specify a post action on each one to jump to end if the seq fails and if a flag is set:
    FileGlobals.StopOnFail == True && RunState.SequenceFailed == True 
    I found out that it only works if I run my test in 'Test UUTs' mode.  If I select 'Run Selected tests using Single Pass', then, it igonre this.
    Is this how it supposed to be?
    How can i fix it?
    Thanks
    Rafi
    TS4.1
    Solved!
    Go to Solution.

    Rafi2003 wrote:
    [...]Why do you need a previous step?[...]
    Rafi,
    you are correct that you do not need a previous step; it is sufficient if the step itself fails and sets the RunState.SequenceFailed flag.
    On my machine, this test also works as expected so i asume that either your step itself does not set the RunState.SequenceFailed flag or you have another issue in your Run Selected Steps using Single Pass execution....
    Norbert 
    [EDIT] Added small example sequence 
    Message Edited by Norbert B on 05-13-2009 06:26 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.
    Attachments:
    PostAction.seq ‏5 KB

  • Display test result before post action

    Hi,
    I have a test sequence file that is constructed as when test failed, in Post Action, it will jump to a sub-sequence.  And, what I found out is that the result status for that test step in the executation pane was not displayed until after the sub-sequence finished executing (the test steps for sub-sequence was not hided from the operator).  I want to know if there is a way that I can modify the TestStand so that the test step result can be displayed in the execution pane before test step go into Post Action?
    Thanks.
    Peggy

    Hi Peggy,
    I wonder if performing an Engine.PostUIMessage using UIMsg_RefreshWindows to force a refresh of the UI windows would do the trick.
    Regards
    Ray Farmer

  • How to create a Post String in HTTP Post Action - 11.5 SR3

    Hi Guys,
    I am trying to post a string to a servlet using HTTP Post. The servlet excepts a Parameter with name b2mml. I am trying to send the Post String in the HTTP Post actions as a name value pair b2mml=xmlencode("my xml here"). Is this the way that I am supposed to send the HTTP Post. In Java, I url encode the key and value and send it to the servlet in a Post.
    What should be my post string in this case? does a simple name value pair suffice, which I think is not working in the test. I put the debugger on the servlet and I have seen that no data is coming in the request.
    Thanks,
    Ravi.

    Thanks Sam. But that doesnot seem to solve the problem.
    The transaction has the input 'b2mml' with is a xml. In  the http post action, I configured the 'PostData' property using the link editor as
    "b2mml="&Transaction.b2mml
    The servlet is trying to read parameter b2mml but it is not there in the request object.
    Ravi.

  • HTTP Post Action Block

    Greetings all,
    I am using a HTTP Post Action in BLS - Vs 11.5. 
    The objective is to return a HTTP string from a jsp page, so I can scrap the page. 
    The URL:  http://mospublic.ercot.com/ercot/jsp/balancing_services_mcp.jsp?marketdate=2008-06-16   (obviously you might have to change the date to Yesterdays Date)
    I have set up the HTTP Post Action with
    URL Address of:   http://mospublic.ercot.com/ercot/jsp/balancing_services_mcp.jsp
    Post Document:   marketdate=2008-06-16
    Encoding: UTF-8
    ID and Password are provided
    Content Type:   application/x-www-form-urlencoded
    Post_0.ReturnAsString comes back with typical HTML content for Today's Date.
    Testing has shown that on a fresh IE window.  Using the above url will show today's data. 
    Hitting this url again the second time will get the browser to yesterday's data.
    So any suggestions on how to make this happen. 
    (btw, I have no control over the external public ERCOT website so changing thier jsp page isn't an option.)
    Anyway we could emulate that action in BLS - v11.5?
    Thanks
    Dennis

    It's not working for me???
    Did that work for you?
    I have attached my sample... It's a repeater, a http Post and a tracer. 
    <?xml version="1.0" encoding="UTF-8"?>
    <Transaction xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <TransactionAttributes>
              <ContextItem>
                   <Name>Description</Name>
                   <Description>Transaction Description</Description>
                   <MinRange>0</MinRange>
                   <MaxRange>0</MaxRange>
                   <Value xsi:type="xsd:string"/>
                   <ReadOnly>true</ReadOnly>
              </ContextItem>
         </TransactionAttributes>
         <Name>west_test/html Post Question</Name>
         <Version>1</Version>
         <WriterRoles/>
         <ReaderRoles/>
         <Context/>
         <Local/>
         <Layout>
              <GUILayoutItem>
                   <Name>Sequence</Name>
                   <X>8</X>
                   <Y>8</Y>
                   <Width>120</Width>
                   <SpacingWidth>120</SpacingWidth>
                   <DescendantWidth>120</DescendantWidth>
                   <Height>96</Height>
              </GUILayoutItem>
              <GUILayoutItem>
                   <Name>Post_0</Name>
                   <X>16</X>
                   <Y>24</Y>
                   <Width>104</Width>
                   <SpacingWidth>0</SpacingWidth>
                   <DescendantWidth>0</DescendantWidth>
                   <Height>72</Height>
              </GUILayoutItem>
              <GUILayoutItem>
                   <Name>Sequence_0</Name>
                   <X>8</X>
                   <Y>136</Y>
                   <Width>120</Width>
                   <SpacingWidth>120</SpacingWidth>
                   <DescendantWidth>0</DescendantWidth>
                   <Height>96</Height>
              </GUILayoutItem>
              <GUILayoutItem>
                   <Name>Tracer_0</Name>
                   <X>16</X>
                   <Y>152</Y>
                   <Width>104</Width>
                   <SpacingWidth>0</SpacingWidth>
                   <DescendantWidth>0</DescendantWidth>
                   <Height>72</Height>
              </GUILayoutItem>
         </Layout>
         <Actions>
              <ContextItem>
                   <Name>Post_0</Name>
                   <Description/>
                   <MinRange>0</MinRange>
                   <MaxRange>0</MaxRange>
                   <Value xsi:type="Post">
                        <URL>http://mospublic.ercot.com/ercot/jsp/balancing_services_mcp.jsp?marketdate=2008-06-18</URL>
                        <Encoding>UTF-8</Encoding>
                        <ContentType>text/html</ContentType>
                        <Timeout>60</Timeout>
                        <UserName>YOUSUPPLY</UserName>
                        <PostData/>
                        <UserPassword>YOUROWN</UserPassword>
                        <ReturnAsString/>
                        <ReturnAsXML>
                             <ReferenceDocumentSource/>
                        </ReturnAsXML>
                   </Value>
                   <ReadOnly>false</ReadOnly>
              </ContextItem>
              <ContextItem>
                   <Name>Tracer_0</Name>
                   <Description/>
                   <MinRange>0</MinRange>
                   <MaxRange>0</MaxRange>
                   <Value xsi:type="Tracer">
                        <Level>INFO</Level>
                        <Message/>
                   </Value>
                   <ReadOnly>false</ReadOnly>
              </ContextItem>
         </Actions>
         <Steps>
              <Step xsi:type="ActionSequence">
                   <Name>Sequence</Name>
                   <Description/>
                   <Steps>
                        <Step xsi:type="ActionSequence">
                             <Name>Sequence_0</Name>
                             <Description/>
                             <Steps/>
                             <Actions>
                                  <Action>
                                       <Name>Tracer_0</Name>
                                       <Description/>
                                       <IncomingLinks>
                                            <Assign xsi:type="Assign">
                                                 <Name/>
                                                 <Description/>
                                                 <To>Tracer_0.Message</To>
                                                 <From>Post_0.ReturnAsString</From>
                                            </Assign>
                                       </IncomingLinks>
                                       <OutgoingLinks/>
                                  </Action>
                             </Actions>
                        </Step>
                   </Steps>
                   <Actions>
                        <Action>
                             <Name>Post_0</Name>
                             <Description/>
                             <IncomingLinks>
                                  <Assign xsi:type="Assign">
                                       <Name/>
                                       <Description/>
                                       <To>Post_0.URL</To>
                                       <From>"http://mospublic.ercot.com/ercot/jsp/balancing_services_mcp.jsp?marketdate=" &amp; datefromxmlformat( datenow, "yyyy-MM-dd")"</From>
                                  </Assign>
                             </IncomingLinks>
                             <OutgoingLinks/>
                        </Action>
                   </Actions>
              </Step>
         </Steps>
    </Transaction>

  • Post-actions for Kpro-Content Server after Sap DB Copy

    We have a Sap system based on Web As 6x connected to a Sap Content Server to store originals.
    We copied back this Sap system to the quality system.
    Now the Sap quality environment refers to the same Content Repository of the production, and we want to modify this.
    From this environment it should not be possible to access or to modify the originals of the production.
    More in general, wich post-actions can be done on the Sap target system after a DB copy where the source system is connected to a Content Server ?
    For example, which tables can be cleaned up ?
    regards

    Hi,
    Pls see the below link if this can help you.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8d/3e704c462a11d189000000e8323d3a/content.htm
    Anil

  • Change teststand post actions from labview

    Hi,
    Is there a way to change the post action of a test in teststand from Labview.
    At the moment, if one of the tests fail out of limits then the post action is set to 'ON FAIL - GO TO NEXT STEP' but if the unit does not run then a diagnostics labview routine runs and at the end of that I would like to change the teststand post actions to 'ON FAIL - GO TO CLEANUP'
    Can you tell me if this is possible
    Thanks
    Chris

    Hi
    Yes it should possible.
     Step step = m_SequenceContext.Step; if(nValue == 0) {
    step.FailAction = "Next";step.FailActionTarget = ""; }
    else{step.FailAction = "Goto"; step.FailActionTarget = "<End>";
    Regards
    Juergen
    EDIT: This example Goto Endgroup --Sorry!
    Message Edited by j_dodek on 04-21-2010 01:51 PM
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    DotNet.zip ‏17 KB

  • Post action execution

    In post action of a pass/fail step, how can I go to a step in another sequence file?

    To hss -
    A post action can only call a sequence in the existing file and it cannot pass parameters either.
    To call into a different sequence file, you must use a separate Sequence Call step that uses a precondition that references the pass/fail status of the previous step.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • Html POST action unable to locate servlet

    <p>I am getting error "for host 127.0.0.1 trying to POST /fileReceiverServlet, send-file reports: HTTP4142: can't find C:/Sun/AppServer7/domains/domain1/server1/docroot/fileReceiverServlet (File not found)" when trying to invoke servlet from html client using POST action method.
    <p>
    war file distribution and validation gets done without any error, also
    have servlet deployed on the SunOne 7 appserver
    <p>
    web.xml servlet decalration looks like -
    <web-app>
    <display-name>Web Application - TGCWA file upload</display-name>
    <description>WebApplication for TGCWA file upload</description>
    <context-param>
    <param-name>file.root</param-name>
    <param-value>/loader</param-value>
    </context-param>
    <servlet>
    <servlet-name>FileReceiverServlet</servlet-name>
    <display-name>File Receiver Servlet</display-name>
    <description>Servlet for receiving docs </description>
    <servlet-class>mmm.abcd.tomm.cca.fileUpload.FileReceiverServlet</servlet-class>
    <!--<init-param>
         <param-name>mmm.abcd.tomm.cca.fileUpload.host</param-name>
         <param-value>127.0.0.1</param-value>
    </init-param>
    <init-param>
         <param-name>mmm.abcd.tomm.cca.fileUpload.port</param-name>
         <param-value>3781</param-value>
    </init-param> -->
    </servlet>
    <servlet-mapping>
    <servlet-name>FileReceiverServlet</servlet-name>
    <url-pattern>/fileReceiverServlet</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>20</session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>FileLoad.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    <p>
    Please let me know, what am I missing or area I shld look into.
    <p>
    TIA

    I think you are posting to "/FileReceiverServlet", remove the front slash.

  • Getting error while using HTTP connector and calling POST action to a Web API which is deployed as website on Azure

    I have create Logic App under Azure App Services, I am getting
    error while using HTTP connector and calling POST action to a Web API which is deployed as website on Azure.
    Following are the screen shots:
    Login App Connector Diagram:
    hema

    Marking as answered since no response on request for more information - assuming that you found what was wrong in the inputs. Let us know if you're still having trouble.
    http://twitter.com/joshtwist

  • Post actions of PI installation

    Hello All,
    I have installed PI 700 (NW 2004s SR2)
    Now I want to do the post actions of the same .
    Can any body tell me what all the post actions I need to perform.
    And also where can I get the documentation of the same.
    Thanks,
    Sekhar.

    Hello Sekhar,
    Now I want to do the post actions of the same .
    Can any body tell me what all the post actions I need to perform.
    And also where can I get the documentation of the same?
    Hope these info is very useful to you.
    Check these Experts Discussions..
    Post installation steps for PI 7.0
    Re: PI Post Configuration BASIS issue - Urgent
    SAP Exchange Infrastructure (XI) : Installation & CONFIGURATION GUIDE
    http://help.sap.com/saphelp_nw04/helpdata/en/d7/f01a403233dd5fe10000000a155106/frameset.htm
    Personal Settings
    http://help.sap.com/saphelp_erp2004/helpdata/en/e9/c4cc9b03a422428603643ad3e8a5aa/content.htm
    Thanks,
    satya

Maybe you are looking for