How can I retrieve the execution of TestStand 4.0 Test results in a c sharp Application?

I am writing a c sharp application to launch a test sequence in TestStand 4.0.1 and then collect the results of the tests to update our own screens / report (s).  I'll need some sort of recursive routine to collect the following information (if available) for each stage: name, result, Min value, Max Value, measured value, units.

My attempts have been to an event to end execution allows to collect data:

void EndExecution (sender As object, EndExecutionEvent ev)
{
Results PropertyObject = ev.exec.ResultObject.GetPropertyObject ("ResultList", 0);

int numContainers = Results.GetNumElements ();

for (int i = 0; i)< numcontainers;="">
{
PropertyObject resultData = results. GetPropertyObjectByOffset (i, 0);
String testResult = resultData.GetValString ("Status", 0). ToString();

PropertyObject testStep = resultData.GetPropertyObject ("TS", 0);
Dim testName = testStep.GetValString ("StepName", 0). ToString();

MessageBox.Show (i.ToString () + "". "") testName + "=" + testResult);
}
}

But this only gives me MainSequence data.

How to cross the ResultsList tree to access the results of all the test steps?

tlaford,

There are a couple of big problems with what you are doing:

(1) it is best to call the code from a test report of the result of your sequence treatment reminder (just use an action step) or change the process template to call your code rather than to call for EndExecutionEventHandler of the user interface, because if you use Test DUT and then there is a separate resultlist by USE not by execution, and it is generally processed at the end of each use not at the end of execution. If you use the EndExecutionEventHandler then you should NOT use the process templates provided with TestStand because they don't work that way. Instead, you just run your sequences without a process template. Although I really recommend the path of process model, even if you write your own a custom, because it is more flexible, and then hardcode your treatment result in the user interface as you do. A few reasons why a process model is that more flexible or better are that it will work in any user interface, including the sequence editor (no changes to the user interface is needed), and it can do everything you can do in a sequence, for example to call a code module in any language supported , asynchronous sequences, call sous-séquences, etc.

2 recursion) through each property at such a low level is bad because the names of the properties are not guaranteed to be unique for what you expect them to be. Anyone can write their own types step custom with some result properties that they would like. You must make sure that the full path to the properties is what you expect it, and you can even check that the type of step is one you expect. You should rather loop through the result of higher level items ONLY and are looking for the complete data lookupstrings that you expect from these elements. For example, instead of WalkTree you might have the following instead:

This must be called from a step in a test recall report or in a custom process template
rather than from EndExecutionEventHandler of the user interface, because if you use Test DUT then
There is a separate resultlist by USE, not by execution, and it is usually processed
at the end of each use not at the end of execution.
Sub ProcessResultList (PropertyObject resultList)
{
numElements int = resultList.GetNumElements ();
< numelements;="">
{
Element PropertyObject = resultList.GetPropertyObjectByOffset (i, 0);
String stepTypeName = string. Empty;

If (point. There are ("TS. ((StepType', 0))
stepTypeName = GetValString ("TS. (StepType", 0);

If (stepTypeName is "NumericLimitTest")
{
If (point. Exists ("Limits.High", 0))
{
Double highLimit = item. GetValNumber ("Limits.High", 0);
Do something with the value
}
}

NOTE: The two step type SequenceCall and NI_Wait can have subresults like that. A stage of waiting waiting on an asynchronous thread or the execution will have this.
If (point. There are ("TS. ((SequenceCall.ResultList', 0))
{
Recurse for results call sequence.
PropertyObject sequenceCallResultList = item. GetPropertyObject ("TS. (SequenceCall.ResultList', 0);
ProcessResultList (sequenceCallResultList);
}
}
}

Hope this helps to clear things up,

-Doug

Tags: NI Software

Similar Questions

  • Crash in firefox that I open it: How can I retrieve the addresses of Web sites in my bookmark? If all is lost?

    Firefox crashes when I open it (Mac OS). How can I retrieve the addresses of all the Web sites in my bookmarks before attempting to reinstall firefox?

    ID of the Crash

    c427216d-8a2f-8b48-Beca-50074acfbc6b

    User Agent

    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; TI - TI) AppleWebKit/533.16 (KHTML, like Gecko) Safari/533.16 Version/5.0

    Yes, all your personal information is stored in your profile folder.

    Again, see back up and restore the information contained in the profiles of Firefox to manually back up your profile folder. This article also contains information about what information is stored where (for example, Places.sqlite for bookmarks and history).

    Then save that manually uninstall Firefox and delete the profile folder. Then you should be able to do a completely clean install and then restore your settings accordingly.

  • Satellite A505 - How can I retrieve the registration information

    I bought a Toshiba A505 in March 2010. Currently, I registered the product with Toshiba. This laptop was stolen. How can I retrieve the registration information. Unfortunately, I don't have the serial number or product.

    Thank you.

    Hello

    You should get in touch with Toshiba using the stolen units interface.
    http://EU.computers.Toshiba-Europe.com/innovation/generic/STOLEN_UNITS_SUPPORT

    Here, you should go to the point: * registration *.

    Hope I could help you.

    Welcome them

  • How can I retrieve the original online windows

    DEAR SEAR
    TOW MONTHS AGO, I GOT THE NEW COMPUTER COMPANY OFFICE IN MY COUNTRY CALLED NATCO AND I USE IT SINCE A MONTH AFTER I HAVE INSTALLED WINDOWS ORIGINAL LOSS, I DON'T KNOW WHY. I HAVE NO CD OF RESTORATION,
    DESCRIPTION OF THE OFFICE
    HP COMPAQ 8100 ELITE CONVERTIBLE MINITOWERS PC ENERGY STAR
    INSTALLED WINDOWS: WINDOWS 7 PRO OA MEA
    I HAVE THE ORIGINAL FOR WINDOWS SERIAL NUMBER.
    HOW CAN I RETRIEVE THE ORIGINAL ONLINE WINDOWS

    Computers HP recovery partition come preloaded will allow you to create a set of restore disks from Hp that can be used to retrieve all software of origin in case of major problem by tapping the key F10 or F11 permanently when the PC is first boots to the top. However, there may be times when the recovery disks are needed to restore the PC.

    If your recovery partition is not available or damaged, you must contact the manufacturer of your computer, and request that a defined recovery disk you can use to reinstall Windows 7. They could practice a small shipping and handling.

    HP recovery disk:

    http://h10025.www1.HP.com/ewfrf/wc/document?LC=en&DLC=en&cc=us&DocName=c00810334

    Another option is, if you have the COA sticker with your product key, you can download a copy of Windows 7 Professional, burn it to a blank DVD, then use the key on the sticker COST to reinstall and reactivate. You will need to go to the manufacturers website and download the correct drivers that came with your system:

    COA certificate of authenticity:

    http://www.Microsoft.com/howtotell/content.aspx?PG=COA

    Download the Windows 7 ISO Image
    Windows 7 Professional x 64 (64-bit)

    English: http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65805/X15-65805.iso

    Windows 7 Professional x 86 (32 bit)

    English: http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65804/X15-65804.iso

    ImgBurn - supporting the creation of CD more. ISO files,
    It supports a wide range of image file formats, and it's free.
    (BIN, CUE, DI, DVD, GI, IMG, MDS, NRG, PDI and ISO)
    http://www.ImgBurn.com/

    http://NeoSmart.NET/wiki/display/G/Burning+ISO+images+with+ImgBurn

    Note: Use always slower burning (4 x or 2 x) speed is offered a choice

    http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows-7

  • How can I fix the link between adobe and windows if I see .pdf not win32 application

    How can I fix the link between adobe and windows if I see .pdf not win32 application, without the disc?

    "Adobe" is the name of the company that provides a great many different applications.

    Adobe Reader is free and allows you to view pdf files.

    Adobe Acrobat is expensive and allows you to create, edit and view pdf files.

    Assuming that you are referring to the reader, uninstall all the versions of it using the control panel > add or remove programs.  Then either

    1. go to http://get.adobe.com/reader/?promoid=BUIGO and download the current version (remember to uncheck the box to install McAfee Security Scan Plus.

    or

    2. go to http://www.foxitsoftware.com/Secure_PDF_Reader/ and download Foxit Reader, a small pdf reader and many more.

    Then, install the reader that you have downloaded.

  • I don't have my key code for windows. My dealer doesn't have either. How can I retrieve the key code number?

    I don't have my key code for windows (registration card was not with the computer when I bought it).  My carrier apparently deleted the key during my computer repair code.  My retailer where I purchased the computer didn't either.  How can I retrieve my key code number?

    The Windows product key is usually displayed on the sticker on the underside of the computer.

    However, you can also get it by running the Belarc Advisor or the Magic Jellybean Key Finder.

    Google for one of those and you will find them.

  • substr? How can I retrieve the codes that are only 6 characters

    I have this request
     
    SELECT 
    distinct
    SUBSTR(A.STVSBGI_CODE,1,6),
    SUBSTR(B.STVSBGI_CODE,1,6),
    A.STVSBGI_TYPE_IND,
    B.STVSBGI_CODE, 
    B.STVSBGI_TYPE_IND
    FROM 
    stvsbgi A ,
    stvsbgi_TEST6C B
    WHERE A.STVSBGI_TYPE_IND = 'C'
    AND B.STVSBGI_TYPE_IND = 'C'
    AND instr(A.STVSBGI_CODE,1,6) =  instr(B.STVSBGI_CODE,1,6)
     
    I want to be able to extract ONLY the values (STVSBGI_CODE) where the SUBSTR (A.STVSBGI_CODE, 1, 6).
    There are codes in the tables of 4 characters, the query gives me 4-6 characters...
    How can I write the query to get the 6-character codes
    Thank yoou

    Hello

    If you want to only include lines in the output, if the code is at least 6 characters?
    Add to the WHERE clause:

    AND     LENGTH (a.stvsbgi_code)     >= 6
    

    It doesn't matter if you use a. stvsbgi_code and b. stvsbgi_code in this State; the join condition is already excluding the lines where it is less than 6 characters but the other is not.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

    Published by: Frank Kulash, November 18, 2011 12:58

  • How can I retrieve the voice of a track to use as an acapella?

    Hi, just like the title says I would like to know how to extract voice from a song so I can then use it as an acapella with Audition CS5?

    Also while I'm here, using audition CS5, how can I determine the tempo of any audio file, I opened, and also how can I so to match the bpm of another sound file to match the bpm of the track I'm trying?

    Thanks for your time

    Dan

    Your success with the voice of a song of isolation depends almost entirely on how the song was mixed and will vary widely.  There is no perfect solution, well repeatedly artifacts that remain can be reduced in a mixture.  Generally, you'll have the best success with the music where the vocals is panned to a specific location in the mix - usually dead center, but the tool can be used to isolate any position in the stereo field - without too much instrumentation to expand in this area.  Bass sounds are usually mixed Center as well, you may need some additional EQ or lower frequencies spectral removal after completing the stage of extraction.

    The tool you'll use in Audition is the effect of Center Channel Extractor , located under the Effects > stereo imagery menu.  Start with the preset Acapella , then change the setting from custom for additional control.  Select the region you want to isolate (it is often preferable to isolate the parts separately as, for example, the verses can be mixed very differently from a choir) and start playback with the open effect.  Use the power to temporarily circumvent the effect, so you can note the differences.

    Adjust the settings of phase shift and Pan to maximize singing with minimal instrumentation.  Use the bandwidth settings to help reduce some of the low-end and high-end mixture that is not associated with the voice.  The two vertical controls on the right allow you to adjust the levels of what is being isolated from all the rest. (Toggle to make a Karaoke mix.)  On the tab of the Discrimination , the most important parameters will be Crossover bleed and Discrimination of Phase controls.  You can set the parameters of the FFT on the Advanced tab, although I wouldn't recommend it until you are comfortable with the tool.  Must necessarily know exactly what that never parameter, but listen carefully while you make adjustments and you will begin to understand how each setting affects the result.

  • How can I retrieve the mail files that have disappeared.

    I had a few folders on the mail who disappeared recently. How can I get back them?

    The mailbox list is divided into categories with such topics on my Mac. When you position the cursor on one of these positions (with the exception of the mailboxes), you should see the Word display / hide it on the right. Click view. The category of mailboxes cannot be hidden.

    In each category, the mailboxes are arranged in groups, such as Inbox. To the left of each group is a small disclosure triangle. If the triangle pointing to the right, click it so that it points downwards.

    Also note that you may need to scroll the list of mailboxes upwards or downwards to see it all.

  • How can I retrieve the pop-up print notification message even if the registry & print server properties are enabled?

    Windows XP - NT

    Service Pak 3

    Properties of print servers:

    Print notifications of information for network printers - box is checked

    Notify when remote documents are printed - box is checked

    Registry (NetPopup) REG_DWORD (1)

    Sytstem tray or taskbar lower-right - the printer icon is missing from the active elements, but a folder with my default printer appears under objects past - always show.

    I am the only employee in the company that lost the popup notification print message and my IT Department refuses to fix the problem.  How can I get this print noficiation popup back message?

    Thank you

    Barb Sylvis

    Hello

    Change the DWORD 0 and reboot. Then re-enable it with the value 1.

    Important: the instructions below are steps that tell you how to change the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information, view the article in the Microsoft Knowledge Base: How do I back up and restore the registry in windows XP: http://support.microsoft.com/kb/322756

    Also try the step listed in the link below: you can not print and you receive the error message "Spooler subsystem app has encountered a problem and needs to close": http://support.microsoft.com/kb/810894

  • How can I retrieve the shortcut icon (Geek Squad) who disappeared from office fom

    I had a shortcut icon on my desktop which seemed to have disappeared. I may have inadvertently moved... How can I get it back? Help

    Why don't you google for it like this:

    http://www.bing.com/search?q=Geek+Squad&form=AARMHP&mkt=en-CA&QS=n&SK=&PC=Maar&x=84&y=23

    Select the one you want > click > right click on the Web site > click on create a shortcut

  • How can I retrieve the code behind reports ORACLE XML?

    Every afternoon.

    I need to customize a copy of one of ORACLE's XML reports.  (Receipts not invoiced report - CSTACREP - PL/SQL, stored procedure)

    So I need to work on the data behind the original report model... But how home? Where is he? This is a directory issue somewhere because you can not download the app.

    Thanks a lot a lot for research.

    Al

    #facepalm wrote:

    .. Thank you very much both of you for your help.

    The problem I have is that I only know 11i (and now proceed to r12.1.3) report delopment via rdf style and/or xsl data report models and have no idea how I can take this code in order to create a customized version of it.

    Is there a Note/link somewhere that can tame me through the method of reports customized using PL/SQL procedures?

    Thanks a lot, a lot.

    Al

    There are many examples/docs/tutorials available, just google "XML report customized pls/sql" and you should get a lot of success.

    Oracle, SQL, PL/SQL applications: Development XML Publisher report - using Data Source as PL/SQL stored procedure

    http://erpschools.com/articles/XML-Publisher

    Thank you

    Hussein

  • How can I retrieve the same page of a file folder?

    Acrobat X Pro, I have a folder of PDF of 100 + and I want to extract the page 6 of each of these files in order to collect all the pages that are extracted into a new document.  Currently, all I can get it to do is extract the pages and open this page extracted into a temporary file which I then individually save and close individually.

    It is currently what I have and that's obviously not what I need...

    var oNewDoc = this.extractPages (5)

    var cFlName = this.documentFileName.split ("."). Shift () + "_summary.pdf"

    var cPath = "" / C/xxx/xxx/Temp / "+ cFlName"

    • oNewDoc.saveAs (cPath)
    • oNewDoc.closeDoc (true)

    Any help would be certainly appreciated!

    Thank you

    To clarify...

    / * extract pages * /.

    var oNewDoc = this.extractPages (5)

    var oFlName = this.documentFileName.split ("."). Shift () + "_summary.pdf"

    oPath var = "" / C/xxx/xxx/xxx/xxx / "+ oFlName"

    oNewDoc.saveAs (oPath)

    oNewDoc.closeDoc (true)

    placed in an action will do what I originally wanted.  It retrieves the requested page in each of the files in a selected folder.  Then renames the files as indicated in the language, saves them to the specified and closes.

  • I am trying to download a service manual of my e-mail address and it goes into the media player.how can I retrieve the Media Player Info

    I am trying to download a service manual. How to print from the media player?

    Hey wmd716316,

    On the search for information about the files on the drive, see this article.

    Find items in the Windows Media Player library

    Once you have located the manual on the computer, you should be able to print from there where the manual supports printing.

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • C:\Program Files (x 86) Mozilla Firefox\firefox.exe how can we prevent the execution of popping up error?

    Error running custody arise and closing of firefox.  How can I fix this?

    View and track: Firefox crashes

    «Need help with Firefox?'.»»

    For better assistance, please try rather Mozilla Firefox Help Forum .

    Thank you & good luck.

Maybe you are looking for

  • Hello, am unable to change the location in the app store

    6 +, am unable to change the location in the app store. Change to is not the location of payment information

  • Tecra A8 - CD-ROM error at startup

    I have to remove my CD drive, on his place for next test. I replaced it and since then, I have a CD-ROM error when starting the computer Sorry for my bad English I try the CD in another computer it is ok... Help, please Thank you

  • probook 4540 network controller s

    Hello I am using windows 7 pro. and I have these problem 1. network controller PCI\VEN_1814 & DEV_3290 & SUBSYS_18EC103C & REV_00PCI\VEN_1814 & DEV_3290 & SUBSYS_18EC103CPCI\VEN_1814 & DEV_3290 & CC_028000PCI\VEN_1814 & DEV_3290 & CC_0280 2. bluetoot

  • Update has buggered my USB Ports

    I got updates from last week and they screwed up my usb ports. I know that it is a recurring problem with this update and Vista. It currently takes me 40 + minutes to transfer 1.5 GB of data from a USB to my pc via USB. There are solutions to this pr

  • Media Center I am to the Canada

    I use Vista with service Pack 2 and Windows Medea Center thinks I'm in Canada, not in the United States. I would like to corect, but don't know how. Help!