How can I detect that a step was forced to fail or forced to pass?

When I set one step to ForceFail, and another step to ForcePass, and I run the test sequence, the ResultStatus is just "Failed" or "Passed" without providing any feedback that it was not a true test.  Is there a way to detect / document this?
Solved!
Go to Solution.

I'll do you one better, here's a working example. It uses the SequenceFilePostResultListEntry callback, but you could also implement it in process model using ProcessModelPostResultListEntry. You may have to modify your stylesheet to get results to populate correctly, particularly with XML or ATML reporting.
It's pretty simple: if the reporting step uses either Force Pass or Force Fail, the callback updates both the UI's ResultStatus and the Result.Status going into the report. If you only want one or the other, remove or comment out the part you don't want.
Attachments:
ForcedPostStepExample.seq ‏6 KB

Similar Messages

  • How can I detect that there is an internet connection?

    How can I detect that there is an internet connection?
    Peter Goossens

    How can I detect that there is an internet connection?
    Peter Goossens
    Peter,
    You might want to experiment with this. It's not perfect, but...
    Class
    Imports System.IO
    Imports System.Net
    Namespace InternetConnection
    Public Class SiteInfo
    Private _displayName As String
    Private _connectionString As String
    Private Sub New(ByVal name As String, _
    ByVal connectionString As String)
    _displayName = name.Trim
    _connectionString = connectionString.Trim
    End Sub
    ''' <summary>
    ''' Gets the connection string of this instance.
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public ReadOnly Property ConnectionString() As String
    Get
    Return _connectionString
    End Get
    End Property
    ''' <summary>
    ''' Gets the display name of this instance.
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public ReadOnly Property DisplayName() As String
    Get
    Return _displayName
    End Get
    End Property
    ''' <summary>
    ''' A method which will add a new site to your collection of SiteInfo.
    ''' </summary>
    ''' <param name="siList">Your generic List(Of SiteInfo).</param>
    ''' <param name="displayName">The display name for this new instance
    ''' of SiteInfo.</param>
    ''' <param name="connectionString">The connection string for this
    ''' new instance of SiteInfo.</param>
    ''' <remarks></remarks>
    Public Shared Sub AddNew(ByRef siList As List(Of SiteInfo), _
    ByVal displayName As String, _
    ByVal connectionString As String)
    Try
    If siList Is Nothing Then
    Throw New NullReferenceException("The collection of SiteInfo cannot be null.")
    ElseIf String.IsNullOrEmpty(displayName) OrElse displayName.Trim = "" Then
    Throw New ArgumentException("The display name cannot be null or empty.")
    ElseIf String.IsNullOrEmpty(connectionString) OrElse connectionString.Trim = "" Then
    Throw New ArgumentException("The connection string cannot be null or empty.")
    Else
    If siList.Count > 0 Then
    Dim findDuplicate As IEnumerable(Of SiteInfo) = _
    From si As SiteInfo In siList _
    Where si.DisplayName.ToLower.Replace(" "c, "") = _
    displayName.ToLower.Replace(" "c, "") AndAlso _
    si.ConnectionString.ToLower.Replace(" "c, "") = _
    connectionString.ToLower.Replace(" "c, "")
    If findDuplicate.Count <> 0 Then
    Throw New ArgumentException("This is a duplicate entry.")
    Else
    siList.Add(New SiteInfo(displayName, connectionString))
    End If
    Else
    siList.Add(New SiteInfo(displayName, connectionString))
    End If
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    ''' <summary>
    ''' A method which will return a boolean value to indicate internet
    ''' connection status.
    ''' </summary>
    ''' <param name="siList">Your generic List(Of SiteInfo).</param>
    ''' <param name="displayName">The display name for the instance
    ''' of SiteInfo to use.</param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public Shared Function InternetIsConnected(ByVal siList As List(Of SiteInfo), _
    ByVal displayName As String) As Boolean
    Dim retVal As Boolean = False
    Try
    If siList Is Nothing Then
    Throw New NullReferenceException("The collection of SiteInfo cannot be null.")
    ElseIf siList.Count = 0 Then
    Throw New ArgumentOutOfRangeException("Count", "The collection of SiteInfo cannot be empty.")
    ElseIf String.IsNullOrEmpty(displayName) OrElse displayName.Trim = "" Then
    Throw New ArgumentException("The display name cannot be null or empty.")
    Else
    Dim findInstance As IEnumerable(Of SiteInfo) = _
    From si As SiteInfo In siList _
    Where si.DisplayName.ToLower.Replace(" "c, "") = _
    displayName.ToLower.Replace(" "c, "")
    If findInstance.Count <> 1 Then
    Throw New ArgumentException("This instance is not in the collection of SiteInfo.")
    Else
    retVal = TestConnection(findInstance.First.ConnectionString)
    End If
    End If
    Catch ex As Exception
    Throw
    End Try
    Return retVal
    End Function
    Private Shared Function TestConnection(ByVal url As String) As Boolean
    Dim retVal As Boolean = False
    Try
    Dim request As WebRequest = WebRequest.Create(url)
    Using response As HttpWebResponse = DirectCast(request.GetResponse, HttpWebResponse)
    Using dataStream As Stream = response.GetResponseStream
    Using reader As New StreamReader(dataStream)
    Dim responseFromServer As String = reader.ReadToEnd()
    retVal = True
    End Using
    End Using
    End Using
    Catch ex As WebException
    retVal = True
    Catch ex As Exception
    retVal = False
    End Try
    Return retVal
    End Function
    End Class
    End Namespace
    Example Usage
    Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    Dim siList As New List(Of InternetConnection.SiteInfo)
    InternetConnection.SiteInfo.AddNew(siList, _
    "Test1", _
    "http://dev.virtualearth.net/REST/v1/Locations/37221?o=xml")
    InternetConnection.SiteInfo.AddNew(siList, _
    "Test2", _
    "nothing here")
    InternetConnection.SiteInfo.AddNew(siList, "Test3", _
    "www.google.com")
    InternetConnection.SiteInfo.AddNew(siList, "Test4", _
    "http://fls-online.com")
    ' This will return true:
    Dim bool1 As Boolean = _
    InternetConnection.SiteInfo.InternetIsConnected(siList, _
    "Test1")
    ' This will return false:
    Dim bool2 As Boolean = _
    InternetConnection.SiteInfo.InternetIsConnected(siList, _
    "Test2")
    ' This will return false:
    Dim bool3 As Boolean = _
    InternetConnection.SiteInfo.InternetIsConnected(siList, _
    "Test3")
    ' This will return true:
    Dim bool4 As Boolean = _
    InternetConnection.SiteInfo.InternetIsConnected(siList, _
    "Test4")
    Stop
    End Sub
    End Class
    Let me know your results please?
    Still lost in code, just at a little higher level.

  • How can I detect that a device is from Motorola !

    hi all !
    I want to detect if my device is a Motorola one, to do so, I was checking the class com.motorola.extensions.ScalableImage, if it's present I know that the device is a Motorola.
    but, now, I have some devices (V8) that didn't support this class, so how can I do otherwise ?
    I saw that there's an API named get URL from flex, but i don't now more about !
    some one can help me ?
    Regards, Idir

    check this out
    // detecting NOKIA or SonyEricsson 
                      try { 
                               final String currentPlatform = System.getProperty("microedition.platform"); 
                               if (currentPlatform.indexOf("Nokia") != -1) { 
                                   return "nokia"; 
                               } else if (currentPlatform.indexOf("SonyEricsson") != -1) { 
                                   return "SE"; 
                      } catch (Throwable ex) { 
                   // detecting SAMSUNG 
                      try { 
                               Class.forName("com.samsung.util.Vibration"); 
                               return "samsung";
                      } catch (Throwable ex) { 
                   // detecting MOTOROLA 
                      try { 
                               Class.forName("com.motorola.multimedia.Vibrator"); 
                               return "motorola";
                      } catch (Throwable ex) { 
                               try { 
                                   Class.forName("com.motorola.graphics.j3d.Effect3D"); 
                                   return "motorola";
                               } catch (Throwable ex2) { 
                                   try { 
                                            Class.forName("com.motorola.multimedia.Lighting"); 
                                            return "motorola";
                                   } catch (Throwable ex3) { 
                                            try { 
                                                Class.forName("com.motorola.multimedia.FunLight"); 
                                                return "motorola";
                                            } catch (Throwable ex4) { 
                   // detecting SIEMENS
                      try { 
                               Class.forName("com.siemens.mp.io.File"); 
                               return "siemens"; 
                      } catch (Throwable ex) { 
                   // detecting LG 
                      try { 
                               Class.forName("mmpp.media.MediaPlayer"); 
                               return "LG";
                      } catch (Throwable ex) { 
                               try { 
                                   Class.forName("mmpp.phone.Phone"); 
                                   return "LG";
                               } catch (Throwable ex1) { 
                                   try { 
                                            Class.forName("mmpp.lang.MathFP"); 
                                            return "LG";
                                   } catch (Throwable ex2) { 
                                            try { 
                                                Class.forName("mmpp.media.BackLight"); 
                                                return "LG";
                                            } catch (Throwable ex3) { 
                      }  pravin

  • How can i detected that the channel is closed with nio async?

    using nio, I can wait accept, read data, write data asynchronously.
    now i make a server program, and want to dected if a socket is closed by client, how can i do this?
    thanks.

    TO: ejp
    In TCP the only way you can detect a dead connection is to attempt to write to it.
    Eventually this will fail probably with a SocketException 'connection reset'.When should this happen? I don't seem to get any expection. The socket is registered for read only but it never gets read for reading again. The appropriate selection key indicates it is writable, but I don't have it registered for write operation.
    Isn't there any other way to get around those dead sockets without trying to write at them? This would be quite an overhead, since server has to send some check_alive message periodically...

  • How can I verify that an email was sent?

    I was an Adobe SendNow Outlook user until early this morning, when I had to send an important document for a meeting this morning. SendNow for Outlook informed me that it  just retired, and so I was directed to this Adobe Send cloud version.   I was able to go in and send my document. And later I found the new Adobe Send Outlook plug-in.
    But in the meantime, my recipient has not yet retrieved the document (according to the status). I'm wondering how I can verify/see the email I sent through Send. I don't see anything in the Adobe Send Cloud interface that allows me to see either the recipient email address or the text of the email. This seems to be an important component missing. Or am I missing something?
    Keith
    p.s. My recipient did finally view the document and I received my email verification, but I still can't seem to find the original text of the email!
    Message was edited by: Keith Jefferies

    Hi Keith,
    Please see this post, which addresses your question: Text body of Sent messages
    Please let us know if you have additional questions.
    Best,
    Sara

  • Sockets: How can server detect that client is no longer connected?

    Hi,
    I really need help and advice with the following problem:
    I have a Client - Server socket program.
    The server listens on port 30000 using a server socket on one machine
    The client connects to localhost on port 20000, previously creating an ssh port forward connection using the Jsch package from www.jcraft.com with
    "session.setPortForwardingL(20000, addr, 30000);"
    Then the client sends Strings to the server using a PrintWriter.
    Both are connected to each other through the internet and the server uses a dynamic dns service.
    This all works well until the IP address of the Server changes, The client successfully reconnects to the server using the dynamic dns domain name, but the server keeps listening on the old socket from the previous connection, while opening a new one for the new client connection. The server doesn't seem to notice that Client has disconnected because of this IP address change.
    looks like the server is stuck inside the while loop. If i cut the connection manually on the client side, the server seems to notice that the client has disconnected, and jumps out of the while look (see code below)
    this is the code I'm using for the server:
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.net.Socket;
    import java.util.logging.Logger ;
    public class SocketHandler extends Thread {
        static Logger logger = Logger.getLogger("Server.SocketHandler");
        private Socket clientSocket = null;
        private BufferedReader in = null;
        private InputStreamReader inReader = null;
        public SocketHandler(Socket clientSocket) throws IOException {
            this.clientSocket = clientSocket;
            inReader = new InputStreamReader(clientSocket.getInputStream ());
            in = new BufferedReader(inReader);
        public void run() {
            try {
                String clientMessage = null;
                while ((clientMessage = in.readLine()) != null) {
                    logger.info("client says: " + clientMessage);
            } catch (IOException e) {
                logger.severe(e.getMessage());
                e.printStackTrace();
            } finally {
                try {
                    logger.info("closing client Socket: " + clientSocket);
                    clientSocket.close();
                    in.close();
                    ServerRunner.list.remove(clientSocket);
                    logger.info("currently "+ServerRunner.list.size()+" clients connected");
                } catch (IOException e) {
                    logger.severe (e.getMessage());
                    e.printStackTrace();
    }I've tried making the server create some artificial traffing by writing some byte every few seconds into the clients OutputStream. However I get no exceptions when the IP address changes. The server doesn't detect a disconnected socket connection.
    I'd really appreciate help and advice

    If a TCP/IP peer is shut down "uncleanly", the other end of the connection doesn't get the final end of connection packet, and read() will wait forever. close() sends the final packet, as will killing the peer process (the OS does the close()). But if the OS crashes or for some other reason can't send the final packet, the server never gets notification that the peer has gone away.
    Like you say, one way is timeout, if the protocol is such that there always is something coming in at regular intervals.
    The other way is a heartbeat. Write something to the other end periodically, just some kind of "hello, I'm here, ignore this message". The other end doesn't even have to answer. If the peer has gone away, TCP will retransmit your heartbeat message a few times. After about a minute it will give up, and mark the socket as broken. read() will then throw an IOException. You could send heartbeats from the client too, so that the client detects if the server computer dies.
    TCP/IP also has a TCP-level heartbeat; see Socket.setKeepAlive(). The heartbeat interval is about two hours, so it takes it a while to detect broken connections.

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

  • When Subscribing to my Newsletter through my IWeb website, one is entered in EVERY Category; how can I change that!?

    When Subscribing to my Newsletter through my IWeb website, one is entered in EVERY Category; how can I change that!?  It's a convenient feature, to just pass out my biz card, and get newsletter subscribers.  But they don't seem to be able to choose categories; I always get notifications that they have been subscribed to every category (including ones that don't appear as options when they subscribe through the newsletter server).  HELP??

    How do they subscribe?
    Where is the newsletter?
    Where or what is the newsletter server?
    Where do they choose a category?
    Specify.
    Anyway, there is none in iWeb.

  • How can I detect in Business HTML that the app was called from portal?

    How can I detect in Business HTML that the app was called from portal?
    I need to distinguish whether the application was called from portal (URL iView) or by using an URL outside of portal.
    So what I'm looking for is a variable or function that can be used like this:
    `if (~within_portal==1)`
      do this if called from portal
    `else;`
      do that if not called from portal
    `end;`
    For example, can I check in the program that there is a SSO2 cookie from the portal?
    I'm using Integrated ITS in Basis 700.

    Here is the trick:
      if (sapwp_active=="1")
        in portal
      else
        without portal
      end;

  • When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?

    When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Websites remembering you and automatically log you in is stored in a cookie.
    *Create an allow Cookie Exception to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    *Tools > Options > Privacy > Cookies: Exceptions
    In case you are using "Clear history when Firefox closes":
    *do not clear Cookies
    *do not clear Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception and cookies from plugins.

  • I refuse to pay for a one year automatic subscription for Cosumer report that was charged to my account today without me noticing. How can I cancel that and get reimbursed now?

    I refuse to pay for a one year automatic subscription for Cosumer report that was charged to my account today without me noticing. How can I cancel that and get reimbursed now?
    Patrick

    First turn off auto-renewing subscriptions:
    iTunes Store: Purchasing and managing auto-renewing subscriptions
    Getting a refund won't be as simple. For that you will have to contact iTunes Store Support.

  • My pc was stolen and now i want to transfer the music from the ipod touch to the new computer, but sync only allows the other way. How can i do that? I need to back up the music!

    my pc was stolen and now i want to transfer the music from the ipod touch to the new computer, but sync only allows the other way. How can i do that? I need to back up the music!

    If it is purchased music from itunes you can redownload it.
    Follow instructions at link below.
    http://support.apple.com/kb/HT2519

  • My iphone 5 was stolen today, I had it backed up last week, can I restart this back up on my other i phone which is i phone4? how can I do that as when I plugged my iphone 4 it backed up automatically

    My iphone 5 was stolen today, I had it backed up last week, can I restart this back up on my other i phone which is i phone4? how can I do that because when I plugged my iphone 4 to my laptop it backed up automatically and I can't seem to find the older back up or maybe I don't know where to find it?

    iTunes preferences>Devices>Should see the seperate backups there

  • HT1296 I was using the iCloud for my iPod and had recorded an important Voice Memo on the device. Before I was able to store it on my computer, the device stopped working. I have the data on the Cloud, how can I get that back to my iMac?

    I was using the iCloud for my iPod and had recorded several irreplaceable Voice Memos. It went up to the Cloud, but I wasn't too savvy with the Cloud at that point, so it wasn't syncronizing to my home computer. So, the thing is that the iPod died and the backup is in the Cloud and I would like to load the backup to my iMac to recover my data. How can I do that? Thanks

    The new device I got to replace the iTouch is a iPad and I don't see the playlist I created with previous voice memos on it at all. Is there any way to access them on the iPad? If I erase the iPad and restore it with the old back up will the Voice Memos come along and get in to my home computer or will I be out of luck?

  • Im syncing my iphone to itunes because i cant unlock the phone due to water damage so that i can take what is on it and put it on a new phone. how can i ensure that everything was taken from the phone and where can i find it in itunes?

    my phone recently suffered water damage so that the screen does not reigster when i slide to unlock. I am sycing the data from the phone onto itunes so i can put it onto a new phone. How can i ensure that i took everything off of the old phone before i restore it and where can i find all of that stuff when i sync with the new phone?

    iTunes will only store a back up of the iPhone and you find this by following the steps below:
    Windows
    Edit>Preferences>Devices
    Mac
    iTunes>Preferences>Devices
    The link below can show you what is stored in an iTunes back up:
    iTunes: About iOS backups

Maybe you are looking for

  • Re: [iPlanet-JATO] using begin childName Display method

    Oops. Sorry about that, Craig. I didn't realize I might leave that impression. I'm sure the tiled views work since you have so many examples of these and it's a relatively simple concept, isn't it? Not to mention a necessary one. I didn't have time t

  • Problem with Bind Variable not updatable.

    Hi all, I'm using Jdev 11.1.2.3.0. In my VO, I created a Bind Variable and set it NOT UPDATABLE. Then I created a View Criteria with some other Bind Variables. I use this View Criteria in a search page, but at runtime I see also an inpunt text for th

  • Memory leak in OracleXMLSave?

    I always get a Out of Memory : Java heap space at oracle.xml.sql.dml.OracleXMLSave.saveNodeVal(OracleXMLSave.java:2854)      at oracle.xml.sql.dml.OracleXMLSave.saveNodes(OracleXMLSave.java:2650)      at oracle.xml.sql.dml.OracleXMLSave.saveXML(Oracl

  • Adding Processing Instruction in the insertionpoint

    Hi, I want insert processing instruction to the insertionpoint[0], is that possible? something like this, var PI = app.selection[0].insertionPoints[0]; PI.xmlInstructions.add("target", "data"); Vandy

  • I want to update my apps but i cant log out of my kids account off my phone?

    My kid is logged in to my iphone and I created my own account and want to update apps. When it asks to update it still brings up my sons Apple ID account. How do I put mine on. I have already created one and looks like I am logged in but still does t