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

Similar Messages

  • Trouble with the pass/fail test

    I started having this trouble just recently and I can't figure out the problem. Just all of a sudden (without me changing anything anywhere apparently), whenever I call a pass/fail test and if the test fails, the sequence execution immediately goes to the <End Group> step. I want the execution to proceed with the next step regardless of a pass or a fail. I have rechecked the run options repeatedly and there's nothing in there that might be causing this. Also, if a pass/fail step fails and I am running on single pass, even the report does not get generated.
    I know it can be really hard for someone out there to tell me what the problem is. I am posting this message here just to see if people have any general comments/suggestions on what might be going on (perhaps this is a common problem which someone has run into before). The comments/suggestions might help me debug the problem.
    Thanks
    Anuj

    Hi Anuj,
    Do you have other step type in the same sequence or just Pass/Fail type?
    What adapter type are you using, LabVIEW, CVI, etc...
    Does it happen in the just one sequence or any sequence?
    What versions are you using?
    Posting an example would help.
    Regard
    Ray Farmer
    Regards
    Ray Farmer

  • I want to display the number of Passed / failed tests in Testtand xml report , please help me

    Hi, I want to display the number of Passed / failed tests in Testtand xml report , please help me.
    My requirement is later i should be able to display these number of passed/failed test in report header too.
    Solved!
    Go to Solution.

    I have attached a sequence to give you an idea of how to get the Result count (I didn't check it's working ), I have used "SequenceFilePostResultListEntry" callback to calculate the Result Count,
    and the Result Count is passed to the "ModifyReportHeader" through File Globals,  where you can edit the XML file to show it in the Repot (follow the link in my previous post).
    Hope this helps
    AshwiN,
    Attachments:
    Get Result Count.seq ‏8 KB

  • How can assign a PASS/FAIL test to each element of a cluster?

    I would like to pass a cluster from Labview 8.6  to TestStand 4.1.1 and apply a pass/fail test to each boolean element of the cluster.  For elements of the cluster that are string values, I would like to apply a string value test.  For elements of the cluster that are numeric values, I would like to apply numeric value or limit tests.  How can I do this? 

    Hi epsilon-delta,
    The best way to do this would be to create a custom data type from that cluster and store the output of your vi to a local variable. You can then add Pass/Fail Test, Numeric Limit Test and String Value Test steps (using the None adapter) after the Action step to test each element of the cluster.
    Eric B.
    National Instruments

  • Lire la valeur retournée par une fonction (DLL) dans Pass/Fail test

    Bonjour,
    comme le titre l'indique je charche à tester une fonction en l'appelant d'une DLL (en C) en utilisant le Pass/Fail test. La fonction retourne la somme entre deux entier x et y.
    Quel sont les étapes à suivre et surtout comment je peux récupérer la valeur retournée et faire un teste sur elle!!
    Que dois-je écrire dans la rubrique "Data Source"...
    Vous trouvez ci-joint une idée de ce que j'ai fait..
    merci pour votre réponse
    Pièces jointes :
    PassFail.JPG ‏94 KB

    La question n'est pas très claire...
    Disons que si le but est de vérifier si la valeur est entre certaines bornes ex: 10<x<15 ou x<20 par exemple, alors il faut utiliser un "numericlimit test" 
    Pour réutiliser une valeur (variable) dans TestStand, le plus simple est de l'assigner à une variable locale dans TestStand. (Même méthode qu'en haut mais remplacer l'expression par Locals.MaVariable )
    Rodéric L
    Certified LabVIEW Architect

  • How to make scheduled jobs Fail if the return partial results?

    How to make scheduled jobs Fail if the return partial results?
    Does anyone know if there is a way to do this?
    We have a number of reports that we schedule to various locations in Excel and PDF. We are frequently getting problems which are manifesting themselves as empty data providers and if we run them as Web Intelligence reports it says Partial Results. Re running the reports normally fixes the problem and returns the data correctly but the problem is that the scheduler reports them as successful and the emails or files get distributed (causing our customers to complain!!!).
    Currently using XIr2 +SAP integration Kit migrating to XI 3.1 in July 2009
    Any ideas/suggestion would be appreciated...
    I did find reference to the adapt case ADAPT01122128 which may help but when and if are unkowns so not much help.
    Ta
    Nick

    This may be helpful to some people:
    http://blogs.sun.com/milan/entry/using_web_service_to_send

  • Web Service Call with XI fails at SOAP Adapter

    Hi,
    I am currently trying to call a web service that is located in the Internet via XI using the SOAP Receiver Adapter. In the ABAP Monitoring (SXMB_MONI) the call is successfull. But when I check the Message Monitoring in the Runtime Workench I see the message failed in the SOAP Adapter. It stays in status 'wait' for some time and the shows a system error. I was able to call the Web Service via a SOAP Test Tool, i.e. the service is available and working.
    Any ideas why the message fails in the SOAP Adapter? What are the steps to find the root cause?
    Thanks and regards.

    Hi,
    >>>I was able to call the Web Service via a SOAP Test Tool, i.e. the service is available and working.
    but does XI have access to internet?
    as you used SOAP Test Tool from your computer and not from XI machine
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Waveform Pass/Fail Testing

    Hello list...
    I'm kind of new to Labview, and don't want to reinvent the wheel here
    (or re-write something that's already been written)
    In my applications, I acquire waveforms from a Tek 3014B scope &
    transfer them into Labview.
    I want to compare the measured waveforms with a previously acquired,
    known-good waveforms that I saved in the form of a csv files using the
    scope's FDD.
    Because I've got to do this in numerous, ongowing applications, I don't
    want to spend the time drawing the limits in the "Mask & Limit Testing.vi".
    I'm looking for a vi that can take my known-good waveform and
    programmatically generate the upper and lower limits given simply the
    amount the amplitude and time. I would then use these as the limit mask
    inputs
    to the "Mask and Limit Testing.vi" to compare the acquired
    waveform to.
    Thanks to all,
    Mike

    Here is a vi that I created to read multiple historical binary string traces and create limit profiles. The binary string is an array of data. I take all the historical data for each string trace and create a max/min array for the overall data set. The max/min array is then reduced by a factor of ten ot have less datapoints for the limit clusters. It would be real nice if you could pass a waveform or another set of array data into the limit vi's instead of a cluster.
    Attachments:
    create_limit_profile_from_historical_data.llb ‏3568 KB

  • When I "Get Album Artwork", iTunes always returns a result that artwork for one song could not be found; but the song is not in my library.

    When I "Get Album Artwork" in  iTunes 10.4.0.80 running under Windows 7, iTunes can find the missing artwork requested.  But it also returns the same result, "Artwork for "Aught 7 - Mother Chorizo" could not be found.  The problem is I do not have the song or any song from Aught 7 in my music library.  I'm guessing this is an issue with a corrupted iTunes database.  Can someone tell me how to correct this issue?
    Thanks in advance.

    1. delete this songs from your liblary
    2. go File -> Add File to Liblary... (Ctrl+O) or File -> Add Folder to Liblary

  • Calling WSAGetLastError() from an IOCP thread return incorrect result

    I have called WSARecv() which returned WSA_IO_PENDING. I have then sent an RST packet from the other end. The GetQueuedCompletionStatus() function which exists in another thread has returned FALSE as expected, but when I called WSAGetLastError() I got
    64 instead of WSAECONNRESET.
    So why WSAGetLastError() did not return WSAECONNRESET?

    Hi Tom_912,
    Thanks for posting in MSDN forum.
    Where do you call WSAGetLastError and get 64? From your description, It seems that you call WSAGetLastError after GetQueuedCompletionStatus() function.
    Read the document:
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa364986(v=vs.85).aspx
    We should call GetLastError to get extended error information instead of WSAGetLastError function. For the error code 64
    ERROR_NETNAME_DELETED, It means that the specified network name is no longer available.
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx it's likely that your connection has gone away since GetQueuedCompletionStatus return false.  Is that as your expect? If not, please provide more details about what
    you do, and it would be better if you could share us some code.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sending a return value without pass/fail message

    Hi,
    I'm using the COM adapter to talk TestComplete application.
    I have a string value test step to evaluate a return value and determine if it's pass or fail (e.g. return 0 = pass, return 1 = fail).  This works perfectly.
    However, I have added another return value (e.g. return 2), the code executed fine, but it keeps displaying that step as "Failed", which is annoying.  Is there a way to suppress this failed message?
    Basically, here's what I need to do, return 0= display pass, return 1 = display fail, return 2 = display no message or just display done.
    Thanks so much!
    Solved!
    Go to Solution.

    The String Value Test step type only evaluates to Passed or Failed.  It does not do a tristate.  In fact any of the step types in the Tests (Pass/Fail Test, Numeric Limit Test, Multiple Numeric Limit Test, String Value Test) will always be pass or fail.  They never evaluate to just done.
    The Status Expression is what makes a step Pass or Fail.  Unfortunately with the default steps you cannot change the Status Expression.  You have to create a custom step type to do that.
    What are you setting your Step.Result.String to?  Or did you change the Data Source?
    Here are 3 options:
    1- Create a custom step based on the String Value Limit test and change the Status Expression such that you get your desired behavior
    2- Use and Action step and change the Status Expression such that you get your desired behavior.
    3- Continue using the step you are using but in the Post-Expression place some logic which turns off the Step.StepFailCausesSequenceFail if you are in return 2 state
    http://zone.ni.com/devzone/cda/tut/p/id/4302
    Hope this helps
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Count the Pass/ Fail in a DAQ reading testing ?

    I want to write the while loop to read the DAQ signal. Each time, the DAQ input signal is compared with the spec. limit. The signal that is within the limit will be recorded as " Pass " while the signal out of spec. will be recorded as " Fail ". At the end of the testing ( I break the program), the testing result will be displayed on the testing panel.
    I believe my question is similar to the programming of " A=A+1 ". Can anybody help me to resolve the problem ?

    Tian,
    Are you looking for just the number of passed and number failed measurements or a record of each individual test. If you are only concerned with the number of passed/failed tests then use a shift register. Right-click on the border of the loop and choose Add Shift Register. Then use a case structure. If it passed the test (true case) then increment the value. If it did not pass the test (false case) then just wire the value straight through the case structure. To get the number that failed simply subtract the number that passed from the iteration count.

  • In LV, using TS API, how do I specify the VI module for a Pass/Fail step?

    I am writing a LabView VI which will let a user write a TestStand sequence. Each step in the seq is the same type, a Pass/Fail test. I need to specify for each step the LabView VI module location, and an input buffer. I am having difficulty finding out how to specify the module for the step using the TestStand API in LabView. How to do this????

    Hi Drew,
    I think Dennis might have come at this from the wrong angle.
    Have a look at the example that ships with TestStand under
    \Examples\SequenceBuilderTool\LabVIEW
    This might give some clues, but I'd suggest posting this question over to the TestStand discussion Forum as suggested by Dennis.
    There'll be a few more people there who can help a bit more in-depth
    My personal suggestion is to create a custom step type that calls the .vi's and then you can create the steps in a new sequence file using your tool easily. This could be cumbersome for you if you already have a lot of steps setup.
    Better then to create a resource to get the steps out of to clone them by creating a sequence file which is full of your steps. When you have a handl
    e to a cloned step, you can change properties about it in memory, before putting it into the sequence (i.e. change it's name and stuff)
    Otherwise you need to get the type and create a new step of this type.
    If all you're stugling with is the module to call, then for the step you have a handle to, change the
    you can either change the "Step.TS.SData.ViPath" as a string (TestStand set property value String with a reference to the sequence_context) or if you wanted to bring up the specify module dialog, if you have a handle to the step itself, call the method SpecifyModule.
    Hope that helps
    Sacha.
    // it takes almost no time to rate an answer

  • ServletAuthentication.weak() makes isUserInRole() always return false

    I have a problem with SSO and authentification. If I authenticate with the weak()
    method(have tried alle of them) authentication works fine and it seem to be single
    signed-on, but
    if we call the isUserInRole() method it always return false.
    If I try to "call" pages from the client the declerativ security-constraints also
    works fine preventing the user from accessing the pages. It is only when we use
    the forward() method that we also use isUserInRole() to check if the user is permitted
    to be forwarded(). WLS 6.1 sp2 tells us that the user is never in Role, no matter
    what, if we use the weak() method to authenticate.
    If I switch to using a j_sec_check form to authenticate the isUserInRole() works
    fine. I can't use j_sec_check as a permanent solution though, because I need to
    do a lot of pre- and post- processing in the login/authenication process.
    Have any of you figured out a solution to this problem? Shouldn't isUserInRole()
    work the same way regardless of if you logged in using SA.weak() or a j_security_check
    form?

    Hi ,
    If I switch to using a j_sec_check form to authenticate the isUserInRole()works
    fine. I can't use j_sec_check as a permanent solution though, because Ineed to
    do a lot of pre- and post- processing in the login/authenication process.You can use the j_security_check and still do the pre and post processing as
    you want.
    You have to following code,
    package examples.servlets;
    import java.io.PrintStream;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import weblogic.servlet.security.AuthFilter;
    public class AuthFilterImpl extends AuthFilter
    public AuthFilterImpl()
    System.out.println("New AuthFilterImpl has been created.");
    public void doPreAuth(ServletRequest servletrequest, ServletResponse
    servletresponse)
    System.out.println("AuthFilterImpl.doPreAuth has been called.");
    System.out.println("Password is " +
    servletrequest.getParameter("j_password"));
    public boolean doSuccessAuth(ServletRequest servletrequest,
    ServletResponse servletresponse)
    System.out.println("AuthFilterImpl.doSuccessAuth has been called.");
    return true;
    public void doFailAuth(ServletRequest servletrequest, ServletResponse
    servletresponse)
    System.out.println("AuthFilterImpl.doFailAuth has been called.");
    In your weblogic.xml have this entry,
    <weblogic-web-app>
    <auth-filter>
    examples.servlets.AuthFilterImpl
    </auth-filter>
    </weblogic-web-app>
    I am not sure about problem with SA.weak().
    -utpal
    "Morten" <[email protected]> wrote in message
    news:[email protected]...
    >
    I have a problem with SSO and authentification. If I authenticate with theweak()
    method(have tried alle of them) authentication works fine and it seem tobe single
    signed-on, but
    if we call the isUserInRole() method it always return false.
    If I try to "call" pages from the client the declerativsecurity-constraints also
    works fine preventing the user from accessing the pages. It is only whenwe use
    the forward() method that we also use isUserInRole() to check if the useris permitted
    to be forwarded(). WLS 6.1 sp2 tells us that the user is never in Role, nomatter
    what, if we use the weak() method to authenticate.
    If I switch to using a j_sec_check form to authenticate the isUserInRole()works
    fine. I can't use j_sec_check as a permanent solution though, because Ineed to
    do a lot of pre- and post- processing in the login/authenication process.
    Have any of you figured out a solution to this problem? Shouldn'tisUserInRole()
    work the same way regardless of if you logged in using SA.weak() or aj_security_check
    form?

  • Dynamically specify TestStand pass/fail string

    I am performing tests utilizing multiple instruments. Each instrumemt may independently be in 'live' or 'simulated' mode. If any one instrument is in 'sim' mode, the test is considered in 'sim' mode. When in 'sim' mode the tests pass.
    My goal is to be able to look at the test report and determine if a specific test ran in 'sim' mode or live mode. My solution is to append the suffix '-sim' to the test status produced by TestStand. Thus the 'passed', 'failed' strings would become 'passed-sim', 'failed-sim' in 'sim' mode. These strings would have to be given to TestStand at the same time as the measurement value but before the test exited.
    Any thoughts or ideas on how I might accomplish the dynamic setting of the pass/fail string? I don't want this to be a permanent change, I want TestStand to revert back to the original pass/fail strings for the next sequential step.
    Hurst C.

    Hi Believer,
    What you seem to be trying to do is modify the results or a property of the results from the previous step. But unfortunately modify this property will only be affective if you were to re-run that step again eg step back one step. What you need to be modifying is the property that is in the Locals.ResultList. i.e Locals.ResultList[0].ReportText for the first step to be recorded in the sequence, Locals.ResultList[nth].ReportText for the nth step in the sequence to be recorded.
    By modifying 'RunState.Sequence.Main["Clock test (4.0V)"].Result.ReportText="FLAG"' you are actually modifying the runtime version of the step before its executed. Therefore, providing you do not over write the contents of ReportText within you step, this initial value will be seen in the result.
    You can check this by stepping into you step and checking the value of ReportText within the step.
    Hope this clarifies things
    Regards
    Ray Farmer
    Regards
    Ray Farmer

Maybe you are looking for

  • Power Mac G4 - corrupted disk problem?

    The G4 will turn on, but I unable to log in. Tried rebooting. Lost Disk 1 and 2. Neighbor's friend repairs Macs and he suggested that I purchase Tiger and new hard drive. I purchased Tiger, but not a new hard drive yet (don' know what to buy!) Insert

  • Baseline date

    Hello SAPians, There is an issue from user relating to Baseline date:is as follows User is trying to change the payment blocking in FBL1N, in doing so, the baseline date is being changed automatically. I checked the Payment terms for that vendor ,the

  • Can I Stop These Timeouts?

    Hi, I'm new to Automater. Actually I've just created my first successful workflow. Well, kinda successful. Here it is: 1) Get Selected Finder Items 2) Remane Finder Items 3) Open (PSCS2) 4) Change Resolution 5) Render (Simple Save) Well, I'm executin

  • Problem connecting a 6310i to a CARK-112 car kit

    Hi, I'm trying to connect a 6310i to my CARK-112 car kit. The Nokia phone detects the car kit as "Carkit 112" but when I hit select to pair with it I do not get the option to enter a passcode, instead it displays "device not available" The car is sec

  • How to include assets with Flash Builder?

    with the flash IDE i can add additional assets in the iPhone OS Settings under "Included File" how do I do the same with the Flash Builder?