Get name of step's sequence

Hi all,
I have a test sequence which consists of a group of sub-sequences.  Each sub-sequence contains a set of steps which report results to my report file.  I've created a custom callback sequence (ModifyReportEntry) in order to modify the report body text for each step, but I'd like to include then name of the step's sequence in the report line for that step.
I'm guessing that this property is somewhere in the Parameters.Result.TS realm, but can't figure out what it is.  (Using TS 4.1)
Can someone help me out?
Thanks!
Jeff

Jeff,
You can use RunState.Caller.Parameters.SequenceName from your "ModifyReportEntry" Sequence File Callback. So the Statement expression would look something like Parameters.ReportEntry
+= "<tr><td>Sequence
Name</td><td>"+RunState.Caller.Parameters.SequenceName+"</td></tr>". 
Richard S -- National Instruments --Applications Engineer -- Data Acquisition with TestStand

Similar Messages

  • Get Name of Future Step in TestStand Sequence

    Hello All,
      Working on a sequence of numeric limit tests, and need to set the limits programatically, based on an imported configuration file.  I use a simple action call to set the limits with a code module (TestStand Set Property Value function), but in order to make the code module reusable, I need to pass in the step name for the test step it applies to, each time I call it.  The problem is that the step that each limit applies to is several steps later in the sequence.  I know that I can get the name of the next step (RunState.NextStep.Name) but need to know if it is possible to get names of later steps as well.  I'm guessing it may have something to do with the "NextStepIndex" function, but can't seem to get the context right.  Please advise.  Thanks in advance.
    GSinMN

    Figured it out myself.
    Locals."Variable To Set" = RunState.Sequence.GetStep((RunState.Sequence.GetStepIndex(Step.Name, StepGroup_Main))+"Number of steps in Future",StepGroup_Main).Name
    Where "variable to set" is the name of the variable you are assigning the step name to and "number of steps in future" is an integer that represents the index with respect to the current step (i.e. 2 would mean the second step after the current step).
    GSinMN

  • Get the Table name by providing the Sequence name

    Hello,
    I wish to retrieve the table name to which the sequence is related.
    I understand that when the sequence was created, no reference is mentioned to any table. The sequence may be used across many tables.
    But the DB definitely knows internally how many tables are referencing the particular sequence.
    So, can anyone help me in finding the table (or all tables) referencing one particular sequence.
    Thanks and Regards
    (Please treat this as urgent as i am desperately in need of such a query)

    I share Adrian's scepticism. Using the data dictionary we could find all the program units - TRIGGERS, TYPES, PROCEDURES, etc - which use the sequence. From there we can find all the TABLES that are also referenced by those programs. And that's as good as it gets in Oracle. We cannot definitely say which tables use which sequences (although a good naming convention helps).
    Of course, your DBA may have access to some accurate and up-to-date documentation. But that is maintained externally to the database and not derived from it.
    Cheers, APC

  • Why i cann't get the executed step index of main segment of a sequence?

    Hi, Everyone!
    Could someone help me ,Pls?
    Query:
            How can i get the executed step index of main segment of a executed sequence?
    Aim:
           I want to let Teststand reveal the executed step index no matter when it running in main segment, setup segment or cleanup segment when i terminate executing sequence.
    My action:
          I add a Statement step in SequenceFilePostStep , the content is FileGlobals.GetArrayOffset1= RunState.Sequence.Main.GetArrayOffset("Pass/Fail Test1",0,"0").
          but it cann't work, and it is error.

    The backslashs are escape characters which tell the expression to interpret the " " as actual quotes. Since the expression Doug posted had other quote marks in it here: ("", 0, "[\"Pass/Fail Test1\"]")  we have to escape the inner quotation marks so that the expression will be interpreted correctly. The backslash does this.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Get Comment from the Current Sequence

    Hi everybody,
    Just wanna know if it's possible to get the comment from the sub sequence like we can get the name using RunState.Sequence ?
    my test Name is the sub sequence name and the number associated is placed in the comment, that way I'm generating data to database autmatically.
    Pierre

    Hi Pierre,
    you can use "RunState.Sequence.AsPropertyObject.Comment" to get the comment of your SubSequence.
    Hope that helps.
    Regards
    MY

  • How to access the Requirements property (& subproperties) of steps and sequences with the TestStand API

    The concept of associating teststand objects to unit requirements for traceability purposes was added to TS 3.5, and I need to find out how to access the array of strings used to store unit requirements in step objects, sequence objects and sequencefile objects. The teststand help file points out that the requirements list of a sequencefile object is accessible using the PropertyObjectFile interface, and also points out that Requirements is a property of the sequence and step classes. Furthermore it implicitly states that the requirements property has a Links subproperty which is an array of strings, but that is pretty much the extent of the documentation on this new feature so far. There seems to be no expression function available to get to those requirements either.
    I know that this feature was added to allow TestStand to interface with RG, and I am planning on using RG, but I would also like to do things with the requirements information within TestStand.
    Anyone? 

    Are you talking about the Requirements Gateway?  It is a separate product from NI that will do what you are looking for.  I haven't used it so I am not sure of the API chain to make it work.  Take a look and see if that is what you were thinking of.
    Hope that this helps,
    Bob Young
    Sorry, I just re-read your original post and see that you are looking to also use the Requirements Gateway, so you obviously know about it.  I don't know what the API changes were that made it work so I am not going to be much help.
    Sorry about posting before getting the correct information from the original.
    Bob Young
    Message Edited by Bob Y. on 08-24-2006 04:54 PM
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Can we view line numbers next to each step in sequence file ?

    Hi,
        I have a sequence file having 600 steps. I would like to know is there any option in test stand to set line number for each step in sequence editor so that it will be helpful for review.
    Example:
    1 Action1
    2 Action2
    600 Action600 
    Regards,
    krishna 
    Solved!
    Go to Solution.

    Krishna,
    If you just want to know the index of a step, this information is displayed at the bottom of the sequence editor in the status bar.  It shows you how many steps there are in the sequence, how many you have selected, and the index(es) of the selected step(s).
    It is also possible to display this information in the steps view as a column if you are willing to create a new column.  Follow the instructions in this KB to see how to create a new column:Changing Columns Properties of the TestStand Sequence Editor Execution View Window.
    One of the types of colums is Index. Simply set your column to that type and you will see step indexes as shown below. 
    Message Edited by Josh W. on 07-01-2009 01:50 PM
    Message Edited by Josh W. on 07-01-2009 01:53 PM
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • I am not able to get name of the person when he is calling for which i have already saved the no. on my contact list i have reseted my phone twice help me out

    hello i have started using iphone 5 for which i downloaded my contacts from i clouds i am not able to get name of the person when he is calling for which i have already saved the no. on my contact list i have reseted my phone twice  its only showing the names of the person whose no. i have saved it with the country code i am staying in india new delhi pls help me i am fed up not able to get the name of person who is calling

    Sir, your Apple ID can be used as an iCloud account as well. They are both the same thing.
    You can learn more from --> Set up your Apple ID for iCloud and iTunes - Apple Support

  • Finding the name of my teststand sequence in the process model

    I would like to be able to find the file path and name of a teststand sequence in the process model. I have created a simple vi which will display this information when run in a sequence. If i insert the vi into the process model, the file path and name returned is that of the process model and not the sequence under exectution. Is there a way of extracting this information in the process model?

    Davepar -
    If you are executing in the process model you can use the following as a lookup string if you are in the root context "RunState.ProcessModelClient.Path" or "RunState.Root.RunState.ProcessModelClient.Path" if you are not in the root context.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • TS4062 HELP!!!  When I try to sync my iPhone with iTunes it gets stuck at step 2 and goes no further.  I have iTunes 10.6.3.25.  It happens all the time.  I have Windows 7.

    Please help.  Every time I try to sync my iphone with itunes it gets stuck at step 2 and just spins.  I have iTunes 10.6.3.25 installed.  I've even shut down and rebooted.  Nothing helps.

    Based on what someone else said, I am getting the "rotating ball of eternal sadness".  Yup.  That about describes it.

  • Get name fails on automounted volume

    here's the script:
    tell application "FileMaker Pro"
    activate
    set mysuperid to (cell "superid" of current record of document "ajoneuvot")
    if mysuperid > 0
    set mytarget to (cell "superid" of current record of document "ajoneuvot" & cell "g_kuvapaate" of document "ajoneuvot")
    else
    set mytarget to (cell "reknro" of current record of document "ajoneuvot" & cell "g_kuvapaate" of document "ajoneuvot")
    end if
    set mysource to choose file with prompt "Valitse kuva" of type "JPEG-kuva" without invisibles
    tell application "Finder"
    set myname to name of mysource
    duplicate mysource to folder "kuvaIN" of folder "vehicles" of startup disk with replacing
    if item mytarget of folder "kuvaIN" of folder "vehicles" of startup disk exists
    delete item mytarget of folder "kuvaIN" of folder "vehicles" of startup disk
    end if
    set name of item myname of folder "kuvaIN" of folder "vehicles" of startup disk to mytarget
    end tell
    end tell
    works great when the selected picture resides on a volume which is manually mounted or on local volume.
    We have people whose home folder resides on our X server and is automounted. If they try to select a picture from that automounted volume, the script fails with this error (translation from finnish):
    can not get name of alias
    volumename:thefilepath
    is the problem that the volume on which the picture resides is not mounted from finder (the icon is not visible on desktop)?
    thanks for any help

    So, no help?

  • Java.lang.Exception: Could not get name for DC project

    Hello Experts,
    We have a code which is downloaded from SVN repository.
    I have imported the code from my desktop into NWDS and when I try to deploy it throws,
    java.lang.Exception: Could not get name for DC project
    I have referred few threads in SCN and solution suggested is to change the workspace and create a new DC & copy the _comp from old DC.
    I tried the above solution but there are lot of build errors as we have few RFC models and it is throwing build errors for missing model reference.
    Kindly help me on how to fix the error.
    Thanks, Swarnaprakash

    Dear Swarnaprakash,
    The Web Dynpro DCs Import C:\----\user\.dtc\LocalDevelopment\DCs\sap.com\test and
    the related package for DC  is missing once check it after try to import.
    Depending on which Java compiler preferences are set, you may see some
    warnings in the "Task" view after importing the project. If the severity level for problems of type "Unused imports" (set in Preferences – Java – Compiler) has the value "Warning", the compiler will issue a warning for unused import references. Ignore these warnings!
    Still You getting means delete your .metadata before take the backup.after open the NWDS again it will set new configurations in your system.
    Thanks & Regards,
    Durga Rao.

  • Get name of startup disk JS

    I've got an applescript that get's the name of the startup disk using
    set macname to get name of startup disk
    I'm wondering if the same can be done in a javascript that runs in InDesign CS3....
    I need to make the scripts work across platforms and am new to Java Scripting.
    Thanks in advance for any feedback.....

    Hi Kasyan!
    This is a very old thread, but I came accross it while searching for a solution to put the name of my startup disk in front of a file path in the "ancient" notation where the folder hierarchy is represented with a ":" devider istead of the "/".
    For all lurkers here:
    When exporting to fixed layout EPUB using the epubFixedLayoutExportPreferences in InDesign CC 2014, you sometimes need this "ancient" notation when working on a Mac. In the epubFixedLayoutExportPreferences you can assign an array of file paths to external CSS and JS files. And these file paths are in the notation:
    "NameOfTheDisk:NameOfFolder:NameOfOtherFolder:external.css"
    Instead of:
    "/NameOfFolder/NameOfOtherFolder/external.css"
    If you do the folder devider with "/" and the root is simply written as a "/" at start of the file path, the export will fail to include the external CSS and JS files.
    See this thread in the Adobe InDesign EPUB Forum for example:
    Script EPUB export not including JS/CSS with epubFixedLayoutExportPreferences
    So let me thank you for this AppleScript snippet to get the name of the startup disk!!!
    I have added some lines of code to get the name of the InDesign app more accurately equal of its version number.
    I've tested this on my MacBook with OSX 10.7.5. Hope, that the AppleScript part will not break on later instances of Mac OSX.
    Here your code with my small addition:
    //Kasyan Servetsky
    //https://forums.adobe.com/message/2336686#2336686
    //Some small addition by Uwe Laubender
    var myDisk = GetStartUpDisk();
    $.writeln("The name of my start up disk is: \"" + myDisk + "\"");
    function GetStartUpDisk() {
        //Get the name of the application for Mac users:
        var myAppName = decodeURI(File(app.fullName).name).replace(/\.app$/,"");
        if (File.fs == "Macintosh") {
            var myScript = 'tell application \"Finder\"\r'
            myScript += 'set myStartUpDisk to get name of startup disk\r';
            myScript += 'end tell\r';
            /* CHANGED LINE: I replaced the original line (now commented out) with a more general approach */
            /* myScript += 'tell application \"Adobe InDesign CS' + ((parseInt(app.version.substr(0, 1)) - 2) + "") + '\"\r'; */   
            myScript += 'tell application \"'+myAppName+'\"\r';
            myScript += 'tell script args\r';
            myScript += 'set value name \"myScriptArgument\" value myStartUpDisk\r';
            myScript += 'end tell\r';
            myScript += 'end tell\r';
            app.doScript(myScript, ScriptLanguage.applescriptLanguage);
            var myStartUpDisk = app.scriptArgs.getValue("myScriptArgument");
        else if (File.fs == "Windows")  {
            var myStartUpDisk = String(Folder.system).charAt(1);
        return myStartUpDisk;
    Hm, now the question is: How can I get the name of a disk, that is not the startup disk?
    Could one of the AppleScripters here in the forum comment on that?
    All the best to you, Kasyan!
    Uwe

  • Get Digit String Step on UCCX 8.0.2

    Hello,
    I'm using the "Get Digit String" step to prompt callers for their account number.  I am using this step to collect account numbers from Spanish speaking callers.  I have created a spanish prompt asking the callers for their account number and am playing that when the call enters the "Get Digit String" step. I have also configured the "Timeout" and "Unsuccessful" steps to also play Spanish prompts before sending the call to the next step in the strip. The problem that I'm having is that if I don't enter a number, after the initial prompt, I hear a message, in English, that says "Are you still there" and then I'm prompted to enter my account number again.  How do I change the "Are you still there" message to a Spanish message?  Can this even be done?
    Any help would be greatly appreciated.
    Thanks.

    If you modify the system prompt, chances are in the future an upgrade can overwrite your recording. What you should do is set your retry and timeout counts to 0, put an increment node and increment an int variable, and use an if statement to check the index of that int to see how many times you retied. Within the timeout and and unsuccessful node put an audio file there to represent each message.

  • Droplet - getting name of dropped file

    This post does not need answering, as I have already solved the problem described. I have put it here in case it might help someone else save a bit of time. However, feel free to make comments and observations for further enlightenment of myself and others who are grappling with various aspects of AppleScript.
    Recently, I decided to learn to use droplets and open handlers. In my first attempt, I set out to modify an existing script which prompted the user to choose a file which is then processed in various ways. My aim was to drop the file on the new droplet version of the script, with the droplet identifying the file automatically, and have it run as before from there onwards. So far, through trial and error and a fair bit of internet searching, I have been able to work out most things in a reasonably short time. One that took me a while involved getting the name of the file which is dropped onto the droplet - the file name could be anything, but the script needed its name for the various things which happen in the script.
    I quickly discovered that a droplet can quite happily and easily give a list of the names of files inside a folder which is dropped onto it. When it comes to just one single file, it took a bit of work.
    I started off with something like this (with a few variations):
    (the display dialog bit is there to show if I got exactly what I wanted - it's not necessary for the correct running of the droplet, but droplets don't have "Result" and "Event Log" available for seeing what's happening)
    +on open Dropped_File+
    +tell application "Finder"+
    +set NameOfFile to name of Dropped_File+
    +display dialog NameOfFile+
    +end tell+
    +end open+
    There was usually an error message such as: Can't get name of {alias "Macintosh HD:Users:username:Desktop:filename.txt"}, or another one about not being able to make the acquired information into the right data type. Generally I was getting the complete pathway of the file, but couldn't separate out what I wanted from the rest of it.
    As part of my looking for a solution, I tried duplicating the file and getting the name of the copy. Success, in the sense that I could get the name of the copy.
    +on open Dropped_File+
    +tell application "Finder"+
    +set CopyOfFIle to duplicate Dropped_File to desktop+
    +set NameOfCopyOfFIle to name of CopyOfFIle+
    +display dialog NameOfCopyOfFIle+
    +end tell+
    +end open+
    After more experimentation I found the "info for" command (in StandardAdditions), and ended up with the following successful droplet:
    +on open Dropped_File+
    +tell application "Finder"+
    +set NameOfFile to (name of (info for Dropped_File))+
    +display dialog NameOfFile+
    +end tell+
    +end open+
    I hope this saves somebody some time. About a third of my scripting attempts are usually assisted unknowingly by someone else who has been trying something similar and, having succeeded, posted their results online for others to benefit from.

    Hi Pierre,
    I tested both at the same time with the following code:
    +on open Dropped_File+
    +tell application "Finder"+
    +set Name1OfFile to name of item (item 1 of Dropped_File as alias)+
    +display dialog Name1OfFile+
    +set Name2OfFile to name of (item 1 of Dropped_File as alias)+
    +display dialog Name2OfFile+
    +end tell+
    +end open+
    Both versions gave the desired result - just the name of the file - whereas when I had tried using "as alias" (obviously not in the same place and not using "item 1 of") I had received error messages. From memory, I think I had tried "name of (item Dropped_File) as alias".
    I "fiddled" with your suggestion a little, and found that the following (omitting the "item" and "item 1 of") also works:
    +on open Dropped_File+
    +tell application "Finder"+
    +set Name1OfFile to name of item (Dropped_File as alias)+
    +display dialog Name1OfFile+
    +set Name2OfFile to name of (Dropped_File as alias)+
    +display dialog Name2OfFile+
    +end tell+
    +end open+
    It looks the correct placement and usage of "as alias" did the trick.
    Thank you very much for taking the time to examine the problem and come up with a solution which should work equally well under both System 10.4 and 10.5.
    Message was edited by: Steven Jones

Maybe you are looking for