Step post actions runtime modify?

Hello,
My SequenceCalls has Goto step -> cleanup in Post Actions as a default setting. Is it possible to modify this condition what TestStand does when Fail happens? I would like to have user decide at the beginning of the test what to do. Either keep current settings (On fail Goto CleanUp) or On Fail goto next step. It could be some kind of popup message or something like that. Or do I have to do completely new sequence for On Fail goto next step case?
BR,
Jick

I have attached one of the approach.
But here the default is go to next step instead of go to cleanup.
On failure and based on a user set variable it skips all further tests ( i.e. goes to cleanup) if opted for.
Hope this helps.
Attachments:
Execution conditional jump to cleanup or next step on fail.seq ‏51 KB

Similar Messages

  • 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

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

  • 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 depending on variable

    Hi,
    my sequence has several subsequences with pass/fail decisions for different substeps. To save testing time my sequence does not perform the following substeps if one substep returned a FAIL as result and hence I set the Post Action On Fail: Goto cleanup.
    However there are situations when I want to run all substeps also if one substep before returned a FAIL. I think a good solution would to set the Post Action differently depending on a Variable (Local, Parameter, FileGlobal, StationGlobal). For example: If the Variable is TRUE I would go to Cleanup on fail, if it is FALSE I would go to the next step on fail. I could put this into all my substeps and to change the behaviour only the variable value must be changed.
    Is this possible or is there another solution for my problem?
    Thanks
      TT
    Solved!
    Go to Solution.

    Ok, this is more tricky....
    The problem you are facing is that the setting for the post action is defined in the step instance. You can modify that during runtime using *any* expression, but if you fail to follow the correct format there, you will produce a run-time error.
    Use the Step.TS.FailActTarget to jump as you like. The Step.TS.FailAct has to be "Goto" in order for this to work.
    The next keypoint is to find the correct place for that expression. Never tested that, but it should be possible to induce it into the custom condition itself.....
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • 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

  • 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

  • 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

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

  • 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

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

  • 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

  • Viewing a slide "post-action"

    Suppose I have a small image sitting in the corner of my slide, and at a certain point I'd like it to move to the center and get larger, and then I'd like labels to appear over/around the image. (This doesn't seem like a particularly unusual thing to want to do.)
    As far as I can tell, the only way to edit the slide is with the image in its smaller, in-the-corner position -- there isn't any way to actually see how the image is going to look at the end of this action, when it's front and center. Which is a problem, because then the only way to place the labels I want on the post-action image is to do a lot of tedious trial and error.
    Does anybody have any bright ideas? Thanks!

    "Template" may be overselling this technique -- the suggestion is simply to create an end-state object, and then use that as the goal for the move and resize actions. For the move this will work well, as you can use the alignment guides to show you when the end state is aligned with the template. For the resize, this is more problematic, especially since the scale action works on percentages, but the Metrics Inspector only allows sizing in pixels. What I'd suggest is setting you final state to some easily calculated percentage of the beginning state, and then using that to first set the template size in pixels, then use the percentage to set the resize action.
    This process is still far more cumbersome than ideal, but once set up it will allow you to add further animations with a visible final state of the original action. (It would be far better if, when editing, one could "step through" the animations on the main slide, and edit at each point in the builds, but that will have to wait for a future update.)

Maybe you are looking for