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~

Similar Messages

  • Handling the return values and passing values to a dialog

    Dear all,
    I am trying to return values from a dialog to a page.
    I am following a tutorial:
    http://www.oracle.com/technology/products/jdev/101/howtos/adfdialog/index.html
    its okey, but I couldnt understand the following code:
    public void handleReturn(ReturnEvent event)
    if (event.getReturnValue() != null)
    Customer cst;
    String name;
    String psw;
    cst = (Customer)event.getReturnValue();
    CustomerList.getCustomers().add(cst);
    name = cst.getFirstName();
    psw = cst.getPassword();
    inputText1.setSubmittedValue(null);
    inputText1.setValue(name);
    inputText2.setSubmittedValue(null);
    inputText2.setValue(psw);
    please help me what are these variables?
    that I could be able to map with me own.
    Regards:
    Muhammad Nadeem
    [email protected]

    If you look further down on the tutorial, you will notice that these values are set in the dialog done() and cancel() actionListeners. Similarly, you will return your own object(s) when calling returnFromProcess() - see the done() method.
    Regards,
    Nick

  • Display pass or fail in Report based on return value

    Hi,
    I'm trying to integrate TestStand with TestComplete using the ActiveX/COM server adapter.  I have the COM setup so that TestStand can call a test in TestComplete and have TestComplete return a string value (true|false) to TestStand.
    Now I need to get the TestStand report to display "pass" or "fail" text for this sequence call,  based on the return string from TestComplete.
    Is there someplace in Expressions or Post Actions that I can state and how:
    return value "True" = pass
    return value "false" = fail
    Thanks.
    Solved!
    Go to Solution.

    Hi,
    Option 1.) Use a String Value Test.   The Limits.String would be 'True'.  This would be the easiest because you already returning strings from your ActiveX call.   You could make your ActiveX calls a String Value Test.
    Option 2.) Use a Pass/Fail Step.   You could set the returned string to a local variable and then create another Pass/Fail step that would have the Pass/Fail criteria as Locals.StringReturned == 'True'
    These are two options that hopefully can get you started....
    Thanks,
    PH

  • Send Failed Message as Attachment (SMTP)

    Hi,
    I am trying to send an SMTP email with a failed message as an attachment.  I currently have a simple orchestration that contains a direct receive port that listens for failed messages coming from a particular receive port.  I have tested this by creating a simple send port with a pass through transmit pipeline to send out the failed message.  I then created a SMTP send port that sends a mutipart message.  The message contains 2 parts, and EmailBody and EmailAttachment.  The EmailAttachment is type System.Xml.XmlDocument.  I assign the FailedMessage to the EmailAttachment in my Message Assignment shape.  I also set the SMTP.MessagePartsAttachments to 2.  However, the email send does not contain the failed message as an attachment.  Could this be do to the fact that the failed message is a flat file?  Any ideas?
    Thanks,
    Jon

    Hi,
    1)Use SMTP.Attachments Property:
    MessageOut(SMTP.Attachments)="C:\\Attachments\File.pdf|C:\\Attachments\File1.pdf";
    You can send a list of file using "|" as a delimiter between the different files.IN the above we are attaching two files "File" and "File1" as attachment.
    In this we are not loading the file into biztalk
    2)The other method is to send a multipart message from BizTalk. Depending on context settings you can send all message parts as attachments, or use the first part as the message body.
    Creating a multipart message is a little involved so I won't go into it - generally you will need a helper class that adds parts to your message.
    The context properties (set in a message assignment shape) are:
    MessageOut(SMTP.MessagePartsAttachments) = n
    // Where n can be one of three values
    0 (same as not set) - Do not attach any biztalk message parts. This is a default setting.
    1 - Attach only biztalk body part
    2 - Attach all parts
    Regards, Aboorva Raja R Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Not able to get Oracle stored procedure return value passed to Powerbuilder

    I have an Oracle Stored Procedure that receives a string value and returns a string value..  When I call it from Powerbuilder, it executes but does not send the return value of a string back.  I am trying to encrypt a string in Powerbuilder, pass it to a .net web page and then decrypt so I can check the security tables for permissions to view the web page.  I have tried creating a simple stored procedure that takes a string and returns a string to Powerbuilder; but even that is not working.  Any suggesstions?
    Oracle Procedure:
    CREATE OR REPLACE
    PROCEDURE               TESTINOUT_VARCHAR
    ( P_STRING IN VARCHAR2, P_OUT OUT VARCHAR2)
    IS
       BEGIN  
          P_OUT := P_STRING || 'TESTING';
    END TESTINOUT_VARCHAR;
    Powerbuilder Call:
    string p_string ='                                 '
    Declare TestingString procedure for TESTINOUT_VARCHAR(:ls_group, :p_out) using SQLCA
    Execute TestingString;
    IF SQLCA.CODE = 0 THEN
    FETCH TestingString into:p_out;
    End If
    p_string = p_out;

    Hello John,
    I'm not sure if you already found a solution using an ODBC connection.
    Below the solution with an RPC call:
    Create a user object (uo_trans) of type transaction with the following local external function:
    subroutine TESTINOUT_VARCHAR(string P_STRING,ref string P_OUT) RPCFUNC
    Execute this script
    uo_trans l_transaction
    string ls_outparam
    l_transaction = CREATE uo_trans
    // Profile ODBC_ORA
    l_transaction.DBMS = "ODBC"
    l_transaction.AutoCommit = False
    l_transaction.DBParm = "ConnectString='DSN=ODBC_ORA;UID=system;PWD=<xxxxxx>'"
    connect using l_transaction;
    ls_outparam = space (30)
    l_transaction.testinout_varchar( sle_1.text, ls_outparam)
    messagebox("OUT parameter", ls_outparam)
    disconnect using l_transaction;
    DESTROY l_transaction

  • Logging a string as the 2nd return value from a VI

    I have a VI that returns a Boolean pass/fail which maps into step.result.passfail.  I return another hex value from the same VI that only needs to be logged on the datasheet, but has no pass/fail status. It comes back via a telnet connection as a string. If I convert it to a number I can use the null type adapter and call it a numeric limit test with a comparison type of none and it will get logged on the data sheet without any pass fail consequences. It would be simpler just to pass back the string and have it logged. In fact this is a general case, there may be  many times I just want something returned from a VI to be logged on the data sheet without any checking. What testStand tool/object/gizmo could one use?
    Thanks,
    jvh

    Tool/object/gizmo to use is an Action Step
    Action Step
    The Action step calls code modules that do not perform tests but,
    instead, perform actions necessary for testing, such as initializing an
    instrument. By default, Action steps do not pass or fail. The step type does not
    modify the step status. Thus, the status for an Action step is Done or Error unless the
    code module specifically sets another status for the step or the step calls a
    subsequence that fails.
    You can use the TestStand - Evaluate.vi code module template to create a VI that includes a ReportText indicator.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • How to send a Error mail without Orchestration

    Hi,
    I need to send an Error mail without using orchestration and without enabling Failed Message routing in the ports.
    Please help me in accomplishing this.
    Regards, Vignesh S

    Hi Vignesh,
    Have you considered using BAM and BAM alerts. For this create an activity, define view and Tracking profile to monitor the ports and then create an alert when a message fails on the port.
    Have a look at Business
    Activity Monitoring and BAM
    Alerts
    Also you can opt for monitoring tools like
    BizTalk 360, AIMS
    for BizTalk and Nevatech
    Sentinet
    Maheshkumar S Tiwari|User
    Page | http://tech-findings.blogspot.com/

  • Delivery Notification & Failed Message Routing At the same time

    Hi All,
    Here's our scenario.
    BizTalk Orchestration --> One Way Send Port --> SAP
    Now, we've enabled 'Delivery Notification' on the Logical Send Port, so if the message fails due to some connectivity issue, it's caught in Orchestration and persisted in another custom database from where it'll be automatically retried. Problem is although
    the Orchestration instance is terminated after catching the exception, Send Port instance remains suspended, we don't want that, to solve this we 'Enabled Failed Message routing' on the Send Port and had another Send Port to subscribe to those failed messages
    and terminate them. 
    But after that, failures are not really handled as expected, sometimes the message is not routed back to orchestration (delivery failure notification), sometimes the Failed Message routing port is not getting the message, it's intermittent and unexpected.
    Would you guys be able to help us here with.
    1. Do you see us doing something wrong?
    2. Any other solution to this problem rather than using 'Failed Message routing', may be programmatically terminating the Send Port instance? any examples of that?
    Thanks alot
    Syed

    Hi Sayed,
    In my view the issue is with your design of using Delivery Notification and Failed message routing together.
    Case 1 : The thing is that when you enable failed message routing on the send port it will not suspend the message and the message will be delivered successfully and since message will be delivered successfully your Delivery Notification exception will not
    get invoked. 
    Case 2 : Since the delivery notification works on the ACK NACK concept, sometimes it could happen that before failed message routing send port subscribes the message the NACK message may have been send to the Orchestration hence the message is routed back
    to the Orchestration.
    Hence you are getting the unexpected behavior. You could always create powershell or MSbuild scripts to remove the send port suspensions. Below links gives you the code to remove suspended and terminated instances :
    http://code.msdn.microsoft.com/windowsdesktop/Script-to-delete-biztalk-1cd312ac
    http://stackoverflow.com/questions/11795105/get-all-suspended-instances-for-specific-application-in-biztalk
    Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question
    Regards,
    Rahul Madaan
    biztalkvillage.blogspot.com

  • How to Send Emails for failed messages without using Alert

    Hi Experts,
    In our project, we need to trigger Emails for the failed messages in SXMB_MONI / Adapter Engine without using Alert Framewrok.
    Please let me know the below :
    1. Is this really possible to avoid Alert?
    2. If possible, then can we accomplish this by creating any PI Scenario? Please provide me some knowledge.
    3. Can we do it by writing any ABAP Code? If ABAP report can make it, then please provide me the code/ tables which will be needed. If any Blog/ Wiki is there, then please let me know the URLs. 
    Thanks,
    Nabendu.

    Hi Nabendu,
       If your customer asks for mails with specific text for message failure, tell that it is not possible. Because Message will go through several engines like Adapter Engine, Integration Engine, BPE. You can not generate mails for the message failures in all these areas with out standard alert mechanism. These are pure technical alerts which only PI people can understand, not business alerts.
    Example: assume your sender channel is unable to connect FTP Server, in this case you can not generate even though you will develop adapter module to generate alerts.
                            So for message validation only you can send mails not for message failures.
    thanks,
    madhu

  • Send Multiple field values to Single Target field in Message Mapping

    Hi,
    My  Requirement is to Map Multiple fields to Single field in Target side.I have to send all the values concatenated and pass the same to target Field in Message Mapping.
    We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
    Is there any way to simplify this requirement or we can use any UDF for this,kindly suggest.
    Regards,
    Madhu

    >>>We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
    I don't think it's complex but  just that it occupies more mapping area
    Just write a simple UDF - a one line code and pass all your input variables.
    return var1+var2+var3+var4+...+var15;

  • [svn:fx-trunk] 11523: Fix return values for ASyncListView/setItemAt(), removeItemAt(): return failed items if they exist.

    Revision: 11523
    Author:   [email protected]
    Date:     2009-11-06 11:58:50 -0800 (Fri, 06 Nov 2009)
    Log Message:
    Fix return values for ASyncListView/setItemAt(),removeItemAt(): return failed items if they exist.
    QE notes:
    Doc notes:
    Bugs: sdk-24078
    Reviewer: Evtim
    Tests run: AsyncListView Mustella tests pass
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-24078
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/AsyncListView.as

  • Extracting Value from Message Payload of the Failed Messages

    Hi Experts,
    We are working on PI 7.0. We have an asynchronous scenario from JMS to IDOC. Vehicle related data is being sent to SAP.
    We have a requirement where in we have to extract the vehicle commission number (a field in message payload) of all the failed messages in sxmb_moni(mapping failure).
    Is there a way we can achieve this? Can we write some OS level script to the same.
    If yes please help me out here.
    This is a critical issue.
    Kindly advice.
    Regards,
    Pooja

    Hi Pooja,
    We have done something similar, but instead of the Vehicle Comm Num, we just retrieved our Transaction ID. Please see the links below. These will send out an email if there was an issue with the message mapping.
    Customize E-Mail Body and Subject in Alerts in SAP PI 7.31 – Java Stack Only – Part 1 – ESR
    Trigger customized email on error in PI
    XI Alerts from UDF using file adapter.
    Trigger one alert per failed message
    How to send variable data through alert mail without BPM
    Raise Alert and also Execute the message
    Regards,
    Jannus

  • How to pass the return value?

    when i call another procedure in a different vi file(xxx.sql), how am i going to pass the return value that the end user key in?
    how to Promt the message and accept the value that keyed in?
    Please help...
    this is urgent!
    Thank you.

    Use OUT paramter to pass values from called procedure.
    You can pass the values as IN / IN OUT / OUT
    parameters.
    For sample coding please mail
    null

  • RRI pass Characteristic value without being drilled down

    Hi BW'ers,
    I am using Report to Report interface to jump from one report to another. Everything seems to work fine, untill I have a mandatory variable in the receiver report.
    The receiver report has a mandatory variable for characteristic 0MRP_CONTRL. The sender has this characteristic as a 'free one', but <b>not drilled down</b> in the query.
    When the user goes to the the receiver report, the values of 0MRP_CONTRL are not passed through.
    So I would like to know: How can the values be passed to the receiver without being drilled down? In fact the system should check the valid 0MRP_CONTRL values (as it should be in drill down status) and pass them to the receiver.
    I tried every possible combination of transaction rsbbs, but not a lot of success.
    Hope someone knows the answer. It would be a great help!
    Best regards,  
    Bart

    Hello Bart,
    "In fact the system should check the valid 0MRP_CONTRL values (as it should be in drill down status) and pass them to the receiver." ... You just mentioned that 0MRP_CONTROL is a free char and not drilled down. What is the exact situation?

  • EDI over WCF request-response port - how to catch failed messages and send response over a 2 way port

    I'm using BizTalk 2009.  I've written an orchestration for accepting 270's and returning 271's, and another for 276's and 277's.  The incoming and outgoing EDI stream is wrapped in XML.  I've published the schema using the WCF publishing wizard,
    and I am using the WCF-WSHttp adapter.  I have custom pipeline components to unwrap and wrap the XML, and to handle the NACK generated by the adapter.  Everything works fine if valid EDI is received. 
    However, I'm challenged with handling failures from the EDI disassambler.  The specification I've been given is to return a 271 or 277 in all cases (or as many as possible).  What I would like to do is catch the failed message, generate a (271
    or 277) response, and return that response over the 2-way port.  I know how to enable failed message routing and how to subscribe to the message if it were to come in over a one-way port.  It seems that this cannot be done when the message comes
    in over a 2-way port. 
    Any suggestions on how this can be done?

    I should have mentioned that turning off as much EDI validation as I can in the pipeline is already part of my approach.  However, to my knowledge, there are some validations (such as incorrect segment count in the SE) that cannot be disabled. 
    Regarding the TA1/997/999 - because this is a real time transaction, I'm not generating any.  Still, to take your suggest, I decided to generate a 997, thinking I could at least subscribe to it and if the 997 indicated a failure, to
    generate the response (in the form of a 271 or 277) that my trading partner is expecting.  What I found was that the 997 was being returned through the send pipeline of the 2 way port, EVEN WHEN I set RouteAckOn2WayPort to False on the receive pipeline! 
    This produces even more work for me, because now I have to "eat" the acknowledgement so that the 271 or 277 can get through.

Maybe you are looking for