How to write test results of TestStand to a database?

such as Access databse.

Hi,
In The Teststand Reference Manual Chapter 6 -13 Example Data Link and Result Table Setup for Microsoft Access is a step by step guide.
Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer

Similar Messages

  • I want to write a program in LabView then pass the test results to teststand to check if it pass or fail without displaying the test stand program,

    I want to write a program in LabView and create an execute but I want to be able to pass test results to test stand to find it the unit pass ar fail the test then save the data to a database. How would i go about it.

    What's confusing is your statement that you want to do this "without display the test stand program". You can minimize the TestStand UI to the task bar but if you don't want TestStand to be running, how can TestStand evaluate the result. Explain a little more please.
    In the message body of your post, you just say you want to create a LabVIEW exe and pass the results to TestStand. What I would recomend is that instead of an exe, you create a dll and use TestStand's DLL adapter to call it and return the results. TestStand will evaluate it and do the logging.

  • How to write test case for ViewController project using JUnit ?

    Hi All,
    JDev ver : 11.1.1.5
    JUnit : 1.9 jar added.
    I am writing test cases for my ViewController project. View project contains beans and other business logic files.
    So, for that I want to write test cases.
    In lot of codes I have FacesContext instance, there I am getting null pointer error.
    ex:
    public static String getFromHeader(String key) {
    FacesContext ctx = getFacesContext();
    ExternalContext ectx = ctx.getExternalContext();
    return ectx.getRequestHeaderMap().get(key);
    How to write cases for this scenario ?
    I came to know to use mockito, But I dont know how to mock the FacesContext.
    Anyone please help.
    Thanks,
    Gopinath

    Gopinath,
    Although I've not used it and cannot therefore say anything about whether it's useful or not - have you looked at JSFUnit?
    John

  • How to write data/result in excel or external data source in c#??

    Hello Team,
    I have automation framework in c#. So there are multiple testmethod and testclasses.....so i havt to write result of every testmethod ...in below format..in excel 
    [TestMethod]
    public void Demo()
    WriteIntoExcel("TestClassName","TestmethodName", Pass/Fail, Time);
    I can all info in every methods but i dont know how to write it in excel or any other external datasource after every method .....
    Actually i want c# code to which will write data/result in excel ...excel might be saved in shared drive...
    Thanks in advance

    Hi Mon,
    We also could use OleDbConnection to insert data into excel.
    using System.Data.OleDb;
    using Excel = Microsoft.Office.Interop.Excel;
    using Microsoft.Office.Interop;
    //in the method section use as :
    string datevariable = "02/02/2010";
    string namevariable = "Shyam";
    string strConnectionString ="";
    string cmd;
    string filepath = ""C:\\sample.xls";
    strConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+filePath+@";Extended Properties=""Excel 8.0;HDR=Yes;""" ;
    OleDbConnection conn =new OleDbConnection (strConnectionString);
    try
    conn.Open();
    catch(Exception e)
    Console.WriteLine(e);
    try
    // Insert into Sheetname
    cmd = "Insert into [Sheet1$] ( [Date], [Name]) values ('" +datevariable+ "','" +namevariable+ "');
    //Similarly you can update also
    OleDbCommand cmdUpd=new OleDbCommand(cmd);
    cmdUpd.Connection = conn;
    cmdUpd.ExecuteNonQuery();
    conn.Close();
    catch(Exception e)
    Console.WriteLine(e);
    Best regards,
    Kristin
    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.

  • How to get Test Results to SQL w/o Coldfusion

    Is there a way to get Captivate test results (or any results)
    to SQL. I was thinking of using the SCORM interface?
    A simple elegant solution would be great since I want to
    build it into to all my componants.
    Thanks in advance,
    Scott

    If your organization is running Sharpoint 3.x, you can use
    the sharepoint learning kit which runs off of a sql back end. This
    is a SCORM 2004 compliant LMS that can be found here:
    http://www.codeplex.com/SLK
    If you want to do this without an LMS, you can set up your
    quiz to just send the score as in this article:
    http://www.adobe.com/devnet/captivate/articles/store_cpresults_print.html
    You steal the idea from here, but in your javascript, you can
    do a pass your variables (quiz resutls), to an asp.net page that
    places them into a SQL db. I'm working on such a solution right
    now. That way, you don't need an LMS and you have complete control
    over how and when the results are stored.

  • XPS Controller - How to write points/results of the Relative Move command

    Hi,
    I'm new to Newport XPS Controller and linear stages. I've just figured out how to communicate to the stage via XPS controller and managed to move the stage. I need help on how to get the points that the stage has moved. I guess I could use the gather function but got stuck halfway through. A screenshot of the block diagram and the VI is attached below.
    Henry
    Attachments:
    test.png ‏156 KB
    Test.vi ‏20 KB

    Hey there,
    I am going to make a couple assumptions here, please reply and let me know if they are wrong :)
    I am going to assume the jsp is running on an app server that is separate from the content server and you need to execute the web services from there. I am also going to assume that you are familiar with importing and using java classes on your jsp.
    You have several options in this case:
    1. Generate the stub classes for the WSDL's yourself instead of using the SoapClient class (this can easily be done in eclipse)
    2. Modify the SoapClient.java to be a more generic class instead of a command line argument based class and use your modified class to make the call and display the results.
    3. Use the SoapClient class as is by executing a command line call in your jsp (using java.lang.Process)
    Depending on your comfort level with java and jsp I think #2 would be easier but #1 is the more standard approach. #3 is not recommended but doable
    Hope that helps,
    Andy Weaver - Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=amw >
    Check out our Oracle Consulting Services Section.

  • How to write Test Script for Rossettanet PIP message to test in RSTK tool.

    Hi All,
    I am new to RSTK i came to know that we need to prepare a test script and place in a Tomcat Server folder, to test any PIP message. Please let me know how we can prepare this Test Script.
    Thanks alot in advance.
    Srinivas.
    Edited by: sri_rambo on Oct 27, 2009 8:08 AM
    Edited by: sri_rambo on Oct 27, 2009 11:34 AM

    Hi,
       Did you check this blog?
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID1594031950DB00395255272980057387End?blog=/pub/wlg/3826
    and this:
    /people/shabarish.vijayakumar/blog/2008/04/28/the-rosettanet-stk-and-how-to-use-it-to-your-advantage
    Regards,
    ravi

  • Can I write test results to bookmarks in a word document?

    I have a word document which I have created bookmarks in. Is it possible to write data to these bookamrks?
    Regards
    Conor

    See Using LabVIEW to Import Data Into a Microsoft Word Document. That article talks about launching LabVIEW from Word, but the important bit for you is step #2. I believe this specific method requires the Office Report Generation Toolkit.
    Of course, you can always use ActiveX directly.
    Message Edited by smercurio_fc on 05-08-2008 11:16 AM

  • How to write test procedures of the following code, need someones help

    ITS VERY URGENT.....PLEASE SEND ME THE REPLY ON MY EMAIL ID [email protected]
    // Account.java - Data class for account files
    // MODULE INDEX
    // NAME CONTENTS
    // Account Constructor
    // Account Constructor
    // getAccountNo Get account identifier
    // getAccountType Get account type
    // getCustNo Get customer identifier
    // getBalance Get balance
    // getCurCode Get currency code
    // setAccountNo Set account identifier
    // setAccountType Set account type
    // setCustNo Set customer identifier
    // setBalance Set balance
    // setCurCode Set currency code
    // MAINTENANCE HISTORY
    // DATE PROGRAMMER AND DETAILS
    // 6-5-08 TLT Original
    // IMPORTATIONS
    import java.util.*;
    import java.lang.*;
    // CLASS DECLARATIONS
    public class Account
    // INSTANCE DATA
    private String accountNo; //Account identifier
    private String accountType; //Account type
    private String custNo; //Customer identifier
    private double balance; //Balance
    private String curCode; //Currency code
    // CLASS CONSTRUCTOR
    Account (
    String accountNo) //Account idenfier
         this.accountNo = accountNo;
    Account (
         String accountNo, //Account identifier
         String accountType, //Account type
         String custNo, //Customer identifier
         double balance, //Balance
         String curCode) //Currency code
    this.accountNo = accountNo;
    this.accountType = accountType;
    this.custNo = custNo;
    this.balance = balance;
    this.curCode = curCode;
    // Get account identifier
    String getAccountNo () {
    return accountNo;
    // Get account type
    String getAccountType () {
    return accountType;
    // Get customer identifier
    String getCustNo () {
    return custNo;
    // Get balance
    double getBalance () {
    return balance;
    // Get currency code
    String getCurCode () {
    return curCode;
    // Set account identifier
    void setAccountNo (
    String accountNo)
    this.accountNo = accountNo;
    // Set account type
    void setAccountType (
    String accountType)
    this.accountType = accountType;
    // Set customer identifier
    void setCustNo (String custNo) {
    this.custNo = custNo;
    // Set balance
    void setBalance (double balance) {
    this.balance = balance;
    // Set currency code
    void setCurCode (String curCode) {
    this.curCode = curCode;
    }

    123shweta wrote:
    ITS VERY URGENT.....W00t? Well if its soo urgent then perhaps you should learn from this and do some planning ahead in the future so you dont find ur self in these urgent needs.
    PLEASE SEND ME THE REPLY ON MY EMAIL ID [email protected]
    Wat tha.., do you expect someone to just magically solve your problem for ya just like that? with an half asked question even.
    Last but not least.. Why would you even need an test for an getters and setter class?

  • Write Query Results into a text file

    Hello All,
    In SAP B1 Query Generator I'm trying to write the results of a query into a text file (.txt). I've tryed with queryout but it doesn't work.
    What I want is something like this:
    SELECT * FROM TABLE queryout "C:/textfile.txt"
    Any sugestions?
    Thanks in advance,
    Miguel Barbosa

    Hello All,
    Since yesterday and due to your help, I've found how to solve my problem.
    This post is only to share with you and with the others users of Expert Forums how to Write the results of an SQL Query in SAP Business One to a Text File without making it by exportation.
    Requested Text File by customer:
    Document type in R/3 If Invoice -- 'Z100' - Position 1 to 4 - 4 characters
    Supplier Code -- dbo.Table.CardCode -- Position 5 to 15 - 10 characters
    Item Code -- dbo.Table.ItemCode -- Position 11 to 25 - 14 characters
    Client Code -- dbo.Table.CardCode -- Position 26 to 36 - 10 characters
    Client Name -- dbo.Table.CardName -- Posiiton 37 to 100 - 63 characters
    Fixed Blank Field -- ' ' -- Position 101 to 120 - 19 blank spaces
    Quantity -- dbo.Table.Quantity -- Position 121 to 140 -- 19 characters
    Unit Price -- dbo.Table.PriceBefDi -- Position 141 to 160 -- 19 characters
    If Invoice Fixed identifier -- 'Z01' -- Position 161 to 163 -- 3 characters
    Fixed Blank Field -- ' ' -- Position 164 to 220 -- 56 characters
    Document Date -- dbo.Table.DocDate -- Position 221 to 229 - 8 characters
    Delivery Date -- dbo.Table.ActDelDate -- Position 230 to 238 - 8 characters
    Sales Order Number - dbo.Table.DocNum -- Position 239 to 260 - 21 characters
    Delivery Number - dbo.Table.DocNum -- Position 261 to 282 - 21 characters
    Follows the code:
    EXEC master..xp_cmdshell'bcp
    SELECT DISTINCT
    ''Z100''
    + ''ZP00002091''
    + IsNull(Convert(nVarChar(44), Cast(T0.DocNum As Numeric(38, 0))), '''')
    + ''PTAP''
    + ''          ''
    + ((LTRIM(RTRIM(T1.U_NumConc)))) + SPACE(10-LEN(LTRIM(RTRIM(T1.U_NumConc)))) + ((LTRIM(RTRIM(T3.BaseRef)))) + SPACE(10-LEN(LTRIM(RTRIM(T3.BaseRef))))
    + ''                    ''
    + ''Z02''
    + CONVERT(varchar(10), T1.ActDelDate, 112)
    + CONVERT(varchar(10), T0.DocDate, 112)
    + ''    ''
    + IsNull(Convert(nVarChar(44), Cast(T1.BaseRef As Numeric(38, 0))), '''')
    + ((LTRIM(RTRIM(T1.ItemCode)))) + SPACE(18-LEN(LTRIM(RTRIM(T1.ItemCode))))
    + ''0'' + REPLACE(SPACE(12-LEN(CONVERT(varchar(12), CAST(T1.Quantity AS NUMERIC (38,3))))),'' '',''0'') + REPLACE(((LTRIM(RTRIM(CONVERT(NUMERIC(38,3),T1.Quantity))))),''.'','''')
    + ''0'' + REPLACE(SPACE(12-LEN(CONVERT(varchar(12), CAST(T1.PriceBefDi AS NUMERIC (38,2))))),'' '', ''0'') + REPLACE(((LTRIM(RTRIM(CONVERT(NUMERIC(38,2),T1.PriceBefDi))))) ,''.'','''')
    + ''ZPHA''
    + ''          ''
    + ''  ''
    + ''                         ''
    + ((LTRIM(RTRIM(T4.CardName)))) + SPACE(69-LEN(LTRIM(RTRIM(T4.CardName))))
    + ''                        ''
    + CONVERT(varchar(10), T0.DocDate, 112)
    + ''               ''
    FROM
    JFOTST.dbo.OINV T0
    INNER JOIN JFOTST.dbo.INV1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN JFOTST.dbo.ODLN T2 ON T2.DocNum=T1.BaseRef
    INNER JOIN JFOTST.dbo.DLN1 T3 ON T3.DocEntry=T2.DocEntry
    INNER JOIN JFOTST.dbo.OCRD T4 ON T1.U_NumConc=T4.AddId
    WHERE T0.CardCode=''C52''
    queryout "c:\text1.txt" -c -T -x'
    Note that in this code everytime you need to use the symbol ' you have to doble it like ''Fixed Text''.
    Be aware that there is one UDF so if you try to make this query run in your SB1 you will have to create a UDF called U_NumConc in the document lines.
    Database usage:
    JFOTST.dbo.OINV T0
    JFOTST.dbo - Database Name.
    OINV - Table
    T0  - Alias
    For any doubts I'll be available to help.
    Once again thank you very much for all your help.
    Together we are stronger!
    Kind Regards,
    Miguel Barbosa
    Edited by: Miguel Barbosa on Aug 18, 2009 12:09 PM
    Edited by: Miguel Barbosa on Aug 18, 2009 12:10 PM

  • How to discard skipped test results in XML report generated from TestStand

    Hello,
    I'm generating XML report from TestStand. I have more than 100 test cases & user has the flexibility to select the test cases to execute or to skip.
    Problem statement:
    1. In Configure\report options there is filter expression to filter test results to be logged. However, this filter is disabled for XML report.
    2. Is there a way to compress XML file using either encryption or any other methods?
    I understand that there would be two methods ideally for my problem statement #1 above:
    A. To have a workaround in reportgen_xml.seq to pragmatically log only executed test cases and discard skipped test results.
    B. Modify stylesheet supplied by NI to discard skipped test results.
    For problem statement #2 above:
    I am able to encrypt the data before logging it to XML. But I don't know how to modify the stylesheet to decrypt the same using either public/ private encryption keys. Can anyone bring in more ideas here !!!
    My preference would be to implement using #A above to reduce the XML file size which is ~4 MB will all test results (skipped + executed). If this is not possible my last option would be to implement using #B above
    I would appreciate if someone can help me for my problem statement? I'm using TestStand 2010
    Solved!
    Go to Solution.

    I have another solution and that is to actual discard the result before you get to the report stage.
    You can do this by use of the Override Callback SequenceFilePostResultList and if Skipped then discard the result from ResultList.
    Check out this link.
    Regards
    Ray Farmer

  • How frame drop test is executed using PQA in TestStand ?

    Can someone shed some light on the frame drop test which is executed using PQA in TestStand ? Also, what is the use of reference stream and trigger in the frame drop test ?
    According to the manual, the Dropped Frame processor computes the difference in pixels between consecutive frames. So, in this scenario, how does the processor compare the framedrop of the test stream with reference stream (if any).
    Thanks

    Hello Enigma123
    The Dropped Frames processor returns a metric that is the average of the absolute difference between each pixel in a frame compared to its following frame.  Depending on scene transitions or a known video playback performance, you can use this processor to determine if you are missing frames.  For example, imagine two 3x3 images
    2 2 2           1 1 1
    2 2 2     &    1 1 1
    2 2 2           1 1 1
    The average difference between these frames is 1.  A media reference stream is not used with this processor when it runs.  However, and I always recommend doing this for unreferenced tests, a data reference can be created from a reference stream to compare with future tests results. The data reference is a calcuated set of metrics that corresponds with a given PQA acquisition/processes or a set thereof.
    Here is the process I would take for unreferenced tests.
    Take a reference video that you know plays back properly.
    Set that you wish to create a data reference, acquire that video/audio stream and perform and activate the desired processors.
    Now, select that you would like to use that data reference for future acquisitions.
    Perform new acquisitions using the same processors and observe the new results stream
    You will see your results stream now centred at zero according to the following calculation  (Test Results - Reference Results) / Reference Results  [Relative Difference]
    If you see any major deviations, this is a probably cause for a concern, in our case, for dropped frames
    Let's continue this discussion in the following location:
    PQA Help
    http://forums.ni.com/t5/NI-VideoMASTER-and-NI/PQA-Help/m-p/2305242/
    Thank you.
    Sincerely,
    Greg S.

  • How to fill pre-defined tables in Word 2003 with test results?

    Hi All,
    I have a simple test board , where i measure different DC levels,  with a simple Vi that saves the test results in to a Text file.
    These results in text file, were manually typed in to a test report , which is a Word document with tables, but i have now created a macro in word 2003 that can take the results from text file and added to the specific rows and columns in  my word test report file.
    The big questions is how can i get Labview to,after it has measured the DC levels, write the test results to the specific tables , rows and columns, in the Word document without deleting all?
    The attached picture illustrates one tables , and the yellow cells showing the cells that need to be filled in with test results.
    Labview vers: 2009
    Solved!
    Go to Solution.
    Attachments:
    Template.jpg ‏37 KB

    Hi!
    I'm a Test Engineer for electronics and I create alot of automated tests with LabVIEW. Many of our customers want testsresults in a fancy and easy-to-read report. I did not have the MS Office Report Generation tool. So I did some research in the Excel Board and came a cross a link to a free open Excel toolkit ( Link ). The toolkit looks like this in LabVIEW:
    As you can see, you have many tools to get the job done. I'm talking about reading, writing and formatting Excel. The toolkit uses activeX. If you give me a few minutes I'll create an example for you.
    What I do when I create a report:
    Step 1. Create a template with all your formatting, macros, images and colors. Name the file for example "template.xlsx" (or .xls if you use an older office version).
    Step 2. In your program, copy the file to the desired location and give it a proper name.
    Step 3. Aquire some data and write it to the file you copied and renamed.
    For my latest project I created a fully-automated testprogram for testing a electric product. After each test a report is generated based on the procedure above. After testing all the products I have for example 300 reports. I then created a program that reads all the reports and creates a summary report that contains statistics for all the tested products. In my program I can also print the reports or the summary report and deliver to our customer. All this takes just a few seconds and adds extra quality to the products we sell to our customer.
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • How sharing a COM object with severeal test dlls in teststand

    I have several tests (dlls) accessing a DAQ board (not VI compliant) thanks to a COM object. I would like to keep one instance of this object, passing its reference to each test dll, instead of creating one in each test. How can I do that with TestStand?

    You can do one of two things to store a reference to the COM object in the context of TestStand so that you can pass it to successive steps in order for them to all use the same object instance.
    First, if you create the object in TestStand with an ActiveX Automation Adapter step, the method call to instantiate the object should return a reference to the object. If you designate an activex reference type local variable as the property to receive the reference during the creation operation, you should be able to pass this into methods that use IDispatch* parameters, or you can use the TestStand API to access the TestStand variable instead.
    The second scenario is very similar, in that if you don't create the object in TestStand but inside of a dll instea
    d, you can simply pass the parameter back from a function into a TestStand activex reference property variable or use the TestStand API inside of the dll to set the value of an activex reference property to the IDispatch of the object.
    To better understand how to use the ActiveX Automation Adapter and ActiveX Reference Variable Types, look at Chapter 13 of the TestStand User Manual under the section entitled "ActiveX Automation Adapter". I have also attached an example to this post that uses the ActiveX Automation Adapter and ActiveX reference datatype in a sequence that writes data to a Microsoft Excel spreadsheet and generates a chart from the data.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask
    Attachments:
    Write_Table_to_XL_and_Create_Chart.seq ‏53 KB

  • How Do You Store Test Results

    OK, so this is really sort of a survey. I'm developing a new test system and am toying around with how to store the data. Obviously one alternative is to use TestStand's built in database capability, but in looking at the tables it seems like post-processing could be a bit of a pain (it's not instantly obvious to me how I would author the proper queries, etc).
    Another alternative would be to create my own database and then figure out how to get all of the hooks in the proper places to make sure that data is properly stored when it should be, etc. This could result in some fairly complex database design, teststand foo, etc.
    So I'm wondering what the community as a whole seems to favor: Use TestStand's built in database stuff or roll your own?

    I've tried several different methods like individual DUT text files, appended text files, databases, and such.  The best method I've come up with is using a text data file with comma delimiters.  The catch is to log each DUT data as a two dimensional data.  The first columns of each line contian DUT header information such as serial number, date tested and such.  Then a test column, name, and p/f.  After that each result that relates to that test is added for each column.  It takes on the following format.
    dut1,date,sn,operator,test,0,p,r1-LL,r1-MV,r1-UL,r1-p/f,r1-description,r2-LL,r2-MV,r2-UL,r1-p/f,r2-description,...etc
    dut1,date,sn,operator,test,1,p,r1-LL,r1-MV,r1-UL,r1-p/f,r1-description,r2-LL,r2-MV,r2-UL,r1-p/f,r2-description,...etc
    Then then next DUT will be
    dut2,date,sn,operator,test,0,p,r1-LL,r1-MV,r1-UL,r1-p/f,r1-description,r2-LL,r2-MV,r2-UL,r1-p/f,r2-description,etc
    dut2,date,sn,operator,test,1,p,r1-LL,r1-MV,r1-UL,r1-p/f,r1-description,r2-LL,r2-MV,r2-UL,r1-p/f,r2-description,etc
    A little wasteful on memory, but memory is cheap.  The advantage of doing it this way is you can pull into a spreadsheet program, then insert blank line at top, and then insert the data autoformat.  Now you have a simple database without the overhead of the database.  A couple a seconds and anybody of any skillset can pull up the data and it makes sense.   I also divide the files into logical sizes such as work week, quarters, or year so the data files don't get too large.  I've looked a data management programs as well.  They are nice if you want to invest the time to understand what's going on.  Problem is, most people viewing the data files want information fast when they need it.  They are not willing to invest time to install special programs and invest the time to get the information they need.  Just some thoughts. 

Maybe you are looking for