Report directory property in teststand 2012

Hi,
I'm trying to programmatically access the report file directory in teststand 2012, the location of which changed vs. 2010.  I found one at:
RunState.Root.Locals.ModelPluginConfiguration.Plug​ins[0].PluginSpecific.Options.Directory
But the "[0]" tells me it's 0 probably because the report is the first item in the result processing list, and if that ever changed, my code would break. Is there another location besides the above that holds the report directory?
Thanks
David J.

The problem about using [0] is that you are also under the assumption that someone has NOT reordered the list of plugins in the Result Processor list.   To fix that you could check for the name of the Plugin instead of the index.
To do this you could utilize the ModelPluginConfiguration callback.
Foreach { Parameters.ModelPluginConfiguration.Plugins }
 if { Locals.Plugin.Base.DisplayNameExpression == "\"Report\"" }
       Then obtain the ReportFilePath
Now, if someone decides to delete the Report plugin, then that is another story.
Is there someway to prevent someone from DELETING a Plugin from the Results Processor window?  I imagine privileges probably wouldn't allow a technician or operator to do this, but an admin probably still could.    When it is deleted, it does not appear in the Configuration List, I would assume.
Thanks,
PH

Similar Messages

  • TestStand 2012 Report File Location variable

    Hi,
    In TestStand 2010 SP1, I have the "report file path" as one of the column into the database using the RunState.Report.Location.  This has been working until I upgraded to TestStand 2012.  The RunState.Report.Location is always empty.  I also tried to use the RunState.Root.Locals.ReportFilePath but I get an error that this is an unknow variable when logging to the database.  Even when removing the <UUTStatus> from the file path expression below, there is no difference.  
    I am using the following report file path expression:
    "C:\\TSReports\\<UUTStatus>\\<ClientFileName>_Report[<FileDate>][<FileTime>][UUT]_<UUTStatus>.<FileExtension>"
    Which variable contains the report file path in TestStand 2012.  
    Solved!
    Go to Solution.

    I haven't tried it, but RunState.Report.Location might work if you set the New Thread option on the Report and Database to False (assuming the report is first in the list) so you can be sure that the Report has been generated before you check that value.
    You have to set the Configure>>Result Processing>>Show More Options to see the New Thread options.
    This should give you access to the path of the Displayed report (the one with the checkmark in the Display column). However, in TS 2012, you can have any number of reports.
    There is a new callback, GetReportFilePath, you can add to your sequences to obtain the report paths as they are determined. You could store the paths in a station global or runtime variable for later use if needed.

  • Reporting mechanism on HTML report file, using TestStand 2012 SP1

    Hi,
    I am using TestStand 2012 SP1, where the reporting mechanism is configured to be in HTML format.
    I am not getting the full report of the sequence file which is executed, however I get a part of it printed on the HTML file.
    The following are the configured "Report options",
    ===========
    Contents Tab:
    ===========
    Report Format : HTML Document
    Default Numeric Format : %$.13f
    Include Step Result: Checked
                  Result Filtering Expression : Result.Status=="Failed"
                  Include Test Limits : Checked
                  Include Measurements : Checked
                  Include Arrays : Insert Table
                  Filter : Include All
    Include Execution Times : Checked
    On-The-Fly Rporting and Only Display Latest Results : Checked
    Select a Report Generator for producing the Report Body : DLL
    ===========
    Report File Pathname Tab:
    ===========
    Generate Report File Path : Checked
           File Name/Directory Options : Specify Report File Path by Expression
           Report File Path (Sequential Model) :
                            StationGlobals.TopLevelReportPath
                            +RunState.ProcessModelClient.AsPropertyObjectFile.​DisplayName+"Report_[<FileDate>]<Unique>.<FileExte​nsion>"
    Please let me know a solution to this problem.
    Thanks,
    Dharani

    Jason,
    Thankyou for replying.
    Yes, I need only the steps which had failed to print on the report file.
    The problem what I am facing is, if there are 10 failed steps, the report is not printed for all.
    Also the order of printing is not correct for the first step and the last step which is printed on the report file.
    I had used "Post Expression" for printing data for all the failed steps. Normally these post expressions should be printed beneath the step in the report file.
    However,
    1) For the first step which is printed on the html file, the post expression gets printed just above the step and also it gets printed beneath the step.
    2) For the last step which is printed on the html file, the post expression is not printed beneath the step.
    Please let me know if i need to provide some more information.
    Thanks,
    Dharani

  • Change the HTML Report format the same as TestStand 2010 SP1 in TestStand 2012

    I have a lot of test steps (~10K)  that gets executed and the indentations on HTML report format in TestStand 2012 gets too deep.  I have to slide the horizontal bar to the right to see the report when l'm in the middle.  I did not have this issue in TestStand 2010 SP1.  
    Is ther a way to change the HTML Report format (style) the same as TestStand 2010 SP1 in TestStand 2012? 

    dexrays:
    We are currently investigating this issue. In order to help us with the investigation could you post a sequence file and configuration that reproduce the problem? The configuration file is located in C:\ProgramData\National Instruments\TestStand 2012\Cfg\ModelPlugins\ResultProcessing.cfg for Windows Vista / Windows 7 or you can use the Cfg link in the TestStand 2012 installation directory. 
    You can use the Legacy Model Switcher (included in TestStand 2012) to use the legacy models instead of the new models. The legacy models are more backward compatible, however, this also means that you will not be able to use the improvements in the new models (for example, the new plug-in architecture). If this is acceptable then you can use the legacy model switcher to switch to the legacy models. The Legacy Model Switcher is located in the Start Menu under Programs->National Instruments->TestStand 2012->Tools->Compatibility. For more information on Legacy Model Switcher please read the online help.
    Thanks for your report and for your help with diagnosing this issue. 
    - Francisco

  • Getting Report File Path location at execution in TestStand 2012 and later

    I need to include PNG pictures into my TestStand Report (HTML, XML, ATML).
    When report generation was made through plugins (before TestStand 2012), it was easy to get report file location during execution through variable RunState.Root.Locals.ReportFilePath in order to save PNG files near the report file (in same directory).
    I didn't find yet an easy an simple way to do the same in TestStand 2012 with Result Processing Plugins.
    Any idea ?
    Remarks :
    Since this functionnality has to be included within MESULOG TS+ last version which is a TestStand Add-on, I cannot modify Report Options, Process Model or include a callback (like GetReportFilePath.
    In need ReportFilePath within a Custom Step Type which cannot wait for PostUUT or ReportGeneration to save its PNG files.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

    jiggawax,
    Thank you for you quick answer.
    RunState.Root.Locals.ModelPluginConfiguration.Plug​ins[<plugin index>].PluginSpecific.Options.Directory is valid only if  
    RunState.Root.Locals.ModelPluginConfiguration.Plug​ins[<plugin index>].PluginSpecific.Options.DirectoryType is set to "SpecificDirectory".
    It seems that I cannot get the complete ReportFilePath before "UUT Done" plugin entry which is after MainSequence execution.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

  • How do I add a logo in the header of a TestStand 2012 HTML report?

    I've been trying to add a company logo to the header of a HTML report on TestStand 2012 without success. I've followed the help topic below however this seems to be for TestStand 3.1 and does not work on 2012. 
    http://digital.ni.com/public.nsf/allkb/3FD69C34EEF13E3786257448006A5F43
    I'm able to add pictures to the XML and ATML reports however I want to stick with HTML and everything I try does not seem to work!
    Any help would be hugely appreciated. 
    Many Thanks
    Sam Beutelspacher

    In TestStand 2012, the ReportHeader string no longer contains a <body> tag, so you can directly append the extra HTML to the parameter without needing to do a search and replace.  The following expression worked in my case:
    Parameters.ReportHeader = "\R\N<IMG src=\"C:\\NI.JPG\" ALT=\"NATIONAL INSTRUMENTS\">" + Parameters.ReportHeader
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • TestStand 2012 Custom Report Path/Name

    Does anybody know how to get a TestStand 2012 report placed in a custom location with a custom name, both of which are determined using information obtained in MainSequence? I had a method of accomplishing this in TestStand 2010, but it does not work in 2012.
    Overriding parameters in the ReportOptions callback does not work because MainSequence has not been called yet, and moving the report file in ProcessCleanup doesn't work because the report apparently has not been closed by TestStand yet, so there's nothing that can be moved
    Thanks!

    Btw, the report file not being closed during Process Cleanup is probably due to New Thread option being set for your report in the Result Processing Dialog Box (click Show More Options to see it). You can turn this option off it you want.

  • RunState.Caller.Locals.ReportOptions.Directory unknown in Teststand 2013

    Hello,
    I have a problem due to migration between TestStand 4.1.2 and TestStand 2013.
    In previous sequences I used the variables: RunState.Caller.Locals.ReportOptions.Directory, RunState.Caller.Locals.StartDate.Text, RunState.Caller.Locals.UUT.SerialNumber, RunState.Caller.Locals.ReportFilePath and others... without problem.
    Now in TestStand 2013, the variables cannot be evaluated , generates an Teststand error and thus I cannot personnalize my report name and directory.
    Hereafter the complete expression that cause problems:
    RunState.Caller.Locals.ReportOptions.Directory=FileGlobals.Report_Directory + "\\" + RunState.Caller.Locals.StartDate.Text + "\\" + RunState.Caller.Locals.UUT.SerialNumber ,
    RunState.Caller.Locals.ReportFilePath=FileGlobals.Report_Directory + "\\" + RunState.Caller.Locals.StartDate.Text + "\\" + RunState.Caller.Locals.UUT.SerialNumber + "\\" + "Report ["+ RunState.Caller.Locals.UUT.SerialNumber +"][" + Str(RunState.Caller.Locals.StartTime.Hours) +" "+ Str(RunState.Caller.Locals.StartTime.Minutes) +" "+ Str(RunState.Caller.Locals.StartTime.Seconds) + "]" + ".html",
    FileGlobals.UUT_Time = "[" + RunState.Caller.Locals.UUT.SerialNumber+"][" + Str(RunState.Caller.Locals.StartTime.Hours) +" "+ Str(RunState.Caller.Locals.StartTime.Minutes) +" "+ Str(RunState.Caller.Locals.StartTime.Seconds) + "]" , FileGlobals.fileDir=RunState.Caller.Locals.ReportOptions.Directory 
    Thanks for your help.

    If you using these expressions to set the report path and directory, then, do consider using TestStand expression to specify the report path in Report Options dialog. Its lot easier to use compared to setting values to subproperties of Runstate.Caller.Locals.ReportOptions variable.
    You can get more information in the following links
    http://zone.ni.com/reference/en-XX/help/370052K-01/tsref/infotopics/specifyreportfilepath_byexpressi...
    http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/reports_expressions/
    http://digital.ni.com/public.nsf/allkb/78E88742D0F8C3C5862576D4006B8E44
    Coming to your error, please provide more information regarding which sequence file and sequence did you modify.
    Also note that, in TestStand 2012, process models had major change to support plug-in architecture. Process models without the plug-in architecture (like the one used in TestStand 4.1.2) is installed in "<TestStand>\Components\Models\TestStandModels\TestStand 2010 Process Models (Legacy)" directory. If you want to migrate your process model changes, it might be valid to update the legacy process models instead of new models.
    You can see brief description of TestStand 2012 process model changes in http://zone.ni.com/reference/en-XX/help/370052K-01/tshelp/infotopics/2012whatsnew/#plugin
    - Shashidhar

  • ModifyRepo​rtHeader from ProcessMod​el in Teststand 2012

    I need to add information to the report header.  I want to do this from the process model because all UUTs will need to put this information in the report and I don't want each client sequence file to use the modifyreportheader callback.  I had this working in 2010 by simply putting my custom report stuff in the sequence inside sequentialModel.seq.  Since report processing doesn't work the same due to the new features in 2012, I'm having trouble finding a solution. 
    I understand that I could go to NI_ReportGenerator.seq and add my code there.  However, for source control reasons I don't want any customized code to reside under C:\program files.  The "Call Model Plugin - UUT Done" step which contains the actual report gen steps seems to be hard coded to use C:\Program Files (x86)\National Instruments\TestStand 2012\Components\Models\ModelPlugins\NI_ReportGener​ator.seq. 
    I see two solutions, but haven't been successful implementing either.
    1.  Somehow change the parameter in ModelSupport.seq->"Call Model Plugin - UUT Done" to a custom path for the ReportGenerator.seq.
    or
    2. Force Teststand to use the "ModifyReportHeader" sequence that is in SequentialModel.seq instead of using the one in NI_ReportGenerator.seq
    Thanks,
    Kevin

    Yes.  I have my custom sequentialmodel.seq located in my source control local repository on disk.
    After running into this problem, I copied the entire C:\Program Files (x86)\National Instruments\TestStand 2012\Components\Models directory to my local repository.  Teststand now executes ModelSupport.seq from my copy, but when it gets to the step shown below it still points to the Program Files.
    The image below was captured after deleting the ResultsProcessing.cfg file and restarting Teststand.  Which I didn't try until you suggested it.

  • Report Directory Creation

    Can you please change the report object to incorporate directory creation?  I'd like to file reports by date/time and dynamic directory creation is needed to do this in Lookout.
    Another way to print screens to pdf (preferred) or html with date/time directories or filenames would be welcome.  Since the report graphic objects are not nameable (by date/time for example), new directory is needed for each report to properly file/separate them.
    Related to this is the ability to make a date object (expression, or other) dynamic included in a filename with the correct numeric format.  No luck so far.
    Ideas/experience welcome!

    Okay, I've got it.  You will need to disable images for this post page to see as typed (without smiley faces...that are NOT supposed to be in my text below)
    Key was to use expressions with embedded text functions such as:
     "cmd /c mkdir \\Domain\Share\lookout\reports\all_rad\"&left(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),10)&"\"&mid(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),12,2)
    The above is the value of an expression object that is connected to the run object's "Command line" property which writes the directory yyyy-mm-dd\hh based on a conditional pot value.
    The report's " Output directory" property uses another expression object that is similar, just without the dos command:
    "\\Domain\Share\lookout\reports\all_rad\"&left(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),10)&"\"&mid(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),12,2)
    Lookout is power, even if it is clumsy sometimes.
    A separate issue with reports is that the panels I am trying to print are full screen (normally maximized, normal panels).  Unfortunately, when the Panel.graphic is connected to the report.display parameter, it uses the screen property size and does not use the "maximized" equivalent size.
    The issue is that you cannot make a "non" maximized normal panel as big as it is when displayed maximized, so it is impossible to print the entire panel as it is displayed in Lookout.
    It would be great if this could be "fixed" some how.  Ryan....comment?
    Ed
    Message Edited by erblock on 04-28-2009 12:53 AM

  • Teststand 2012 plugin architecture

    Hi all,
    Any tutorials on teststand 2012 plugin architecture. I searched on net but could find only few white papers and video tutorial which gives you an overview.
    Thanks

    You have three options:
    A. Make your plug-in a result processor, even if it doesn't process results. This allows it to be inserted and configured in the Result Processing Dialog Box.
    B. Make your plug-in an Addon. See http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/pmpconfiguring/,  Model Plug-in Add-ons and Addons.cfg section.
    C. Create your own configuration file:
    For option (C), you can create additional model plug-in configuration files in the following ways:
    1. Call the DisplayModelPluginDialogEx function from ModelSupport2.dll as defined in ResultProcessing.h to display a dialog that creates and edits a configuration file.
    Note that this dialog will be programmatically customizable in a future version of TestStand. Also, the complete source code is already provided.
    2. Copy an existing configuration file to a new file name. Open the new file in a text editor. Replace any occurrence of the previous file name with the new file name. Thus, you could use the Result Processing Dialog Box to create a ResultProcessing.cfg file with your plug-in in it and then copy the file before removing your plug-in from the dialog.
    3. Create a configuration file programmatically using the TestStand API. You create a Model Plug-in configuration file with an instance of the PropertyObjectFile class with a file type of FileType_PropertyObjectFile. The PropertyObjectFile.Data property of the file must be of type NI_ModelPluginConfigurationSet. Currently there is no example of this, but the source code in ResultProcessing.c performs similar actions.

  • How to check any directory existance in TestStand?

    How to check any directory existance in TestStand?
    Is there TestStand function? Or other option without writing my own code in external program (e.g. LabVIEW or C)?
    Thanks in advance
    Solved!
    Go to Solution.

    At Least according to the NI TestStand 2012 documentation, Engine.FindPath and Engine.FindFile work only within the NI TestStand SearchDirectories.
    Maybe related: remote paths (\\server\path\to\file.ext) are considered "invalid" by Engine.FindPath.

  • Automated report email notification using SCCM 2012

    For SCCM mail notification using Office365 exchange.
    Is smtp rely required.. Please suggest and provide link 

    duplicate thread.you have also asked the same question here http://social.technet.microsoft.com/Forums/systemcenter/en-US/cccd6760-0416-4fed-b5df-d19fac00035f/automated-sccm-report-send-to-email-addresssccm-2012?forum=configmgrgeneral#0e84de61-c872-44fe-8544-f6b39450a44d
    Eswar Koneti | Configmgr blog:
    www.eskonr.com | Linkedin: Eswar Koneti
    | Twitter: Eskonr

  • MCTS 70-466 Implementing Data Models and Reports with Microsoft SQL Server 2012

    I am searching for training kit for Exam 70-466 (Implementing Data Models and Reports with Microsoft SQL Server 2012) but I think is not published yet. I was expecting its release in Jan or Feb 2014. Would any one can tell me its release date or any place
    where I can find this book.
    Thanks
     

    Hi Azhar lqbal Gondal,
    According to your description, since the issue regards training and certification,
     I suggest you post the question in the Learning forums at
    http://social.technet.microsoft.com/Forums/en-US/home?category=learning. It is appropriate and more experts will assist you. If you have a specific technical question about Microsoft SQL Server,
     you can visit and post your question on  the SQL Server Forum.
    There is some detail about Exam 70-466 Implementing Data Models and Reports with Microsoft SQL Server 2012, you can review the following articles.
    Exam content can be found here:
    http://www.microsoft.com/learning/en-us/exam-70-466.aspx
    http://borntolearn.mslearn.net/certification/database/w/wiki/525.466-implementing-data-models-and-reports-with-microsoft-sql-server-2012.aspx#fbid=Mn-t6aRhs-H
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How can I get Launching report directory in report trigger??

    how can I get Launching report directory in report trigger??
    pls help me :'<
    I can run this function in forms.
    "how can I get Launching report directory in report trigger??"
    does reports have same function???

    Click the little down arrow/+ symbol  next the + - in the folders bar.

Maybe you are looking for

  • Transfering presentations from powerpoint to Keynote

    Hi I have transfered a powerpoint presentation onto Keynote and have two problems. 1. When i saved the presenation in Keynote the text does not appear on the presentaion as the texts that are on the presenation are not part of Apples fonts. The texts

  • Robohelp with french accentuated character

    Hi again, I got another problem with Robohelp 8. I search inside the forum and didn't find something to help me. If any can't do something, i will be very happy ! We use Rh8 for Word. Word version is microsoft word 2000. We are in a french world and

  • Changing long user name via UNIX?

    Is there a simple way to change a user's LONG name via UNIX (or some other method that doesn't involve System Prefs --> Accounts). We're migrating from AD to local accounts and currently, the long names are: +Lastname, Firstname (my company domain ya

  • Configure nwds update site

    Hi All , Is there a way to configure nwds update site on sap netweaver 7.1 server that is not CE , for example on PI 7.1 server . I have deployed the to SCAs of tupdate site to Pi 7.1 , but I can't synchronize my  updates , Regards , Oren

  • Visual Studio 2013 Versus SQL Server

    Hello: I have just installed Visual Studio 2013 and I would like to upgrade my SQL Server from 2005 Express. I have downloaded SQL 2012 but I cannot get Mangement Studio to download (apparently others have had this problem as well). I was attempting