AnsweredAssumed Answered

script property replacement on windows fails, LISA_HOME

Question asked by sdetweil2 on Jun 24, 2015
Latest reply on Jun 25, 2015 by sdetweil2

i need to get to a file, located in hitDeploy from my service, in  a scripted dataset.

 

so, I use property substitution to do this,

 

def filepath="{{LISA_HOME}}/hotDeploy/dir/filename"

 

but, on windows LISA_HOME is 'C:\progra~1\CA\DevTest\'

 

and the script can't compile, because the backslashes are not double escaped.

 

I added replace to fix the string, but its the compile phase that fails..

 

I don't see another property with hotDeploy or LISA_HOME with linux file path separators in it..

 

how do I solve this problem?

(there are also many properties that have LISA_HOME as their prefix which will fail the same way.

Outcomes