NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

path changed during deployment

I deployed a new version of a test today and got an error when TS went to find a Configuration File for the Property Loader.  The test works on my development system but the deployed version has this error.  

 

A close look at the error shows it is missing part of the path.  "\T" seems to have been replaced by a return or line feed.  

 

The deployment places the files in the proper folder.  But the Property Loader has the path wrong.

 

I have 3 picture files attached:

Error.jpg shows the error I get when I try to run the test.

Text File in project.jpg shows the file properties.

Expression.jpg shows how the expression for the path is set up in the Property Loader.

 

When I Analyze the Source Files I get a Warning:You may need to add the files referenced by the following expression from the Property Loader......   and it indicates the same expression as in the Expression.jpg.

 

Thanks for the help,

Steve

 

Download All
0 Kudos
Message 1 of 5
(4,994 Views)

I added double backslashes to the path.  I am now building it and will see if that was the problem.  This test has had the single backslashes for several revisions with no problems until now....

 

Steve

 

0 Kudos
Message 2 of 5
(4,977 Views)

With double backslashes that step now works.

The curious thing is this test has used single backslashes since April of 2013 for over 15 revisions. How did it work that long without an issue?

Maybe the single vs double backslashes is not the problem here??

Thanks,
Steve

 

0 Kudos
Message 3 of 5
(4,933 Views)

Hey SteveFeeser,

 

I'm glad that it worked out for you.  Here's some information that may shed some light on your question.

 

TestStand 2012 includes the following enhancements to operators in expressions:

  • When you specify a path in an expression, you no longer need to escape backslashes in the path string. You can now prefix the path string with the @ symbol to automatically escape the backslashes, as in the following example: 

    @"C:\Windows\temp" 

    In previous versions of TestStand, you had to escape the backslashes in the path string by using double backslashes, as in the following example: 

    "C:\\Windows\\temp"

TestStand 2012 New Features

http://zone.ni.com/reference/en-XX/help/370052K-01/tshelp/infotopics/2012whatsnew/

 

Hopefully this helps.

Taylor
0 Kudos
Message 4 of 5
(4,930 Views)

I forgot to mention:  I am using TestStand 4.2.1.

 

Thanks,

Steve

 

0 Kudos
Message 5 of 5
(4,926 Views)