Blank Spaces in Path in Linux Machine
Hi, I am using Windows Machine for our development work and ultimate deployment is with a Linux Machine. In my .tst file, I have below steps configured.
1) Get Project Location using absolutefilepath()
2) Execute a DB query and I am storing the results of query to XML Converter for converting them to CSV. Then I am taking the CSV output and Write into a File with Target DIrectory as ${Project_Location}.
This method works fine in Windows. But when deployed in Linux machine, we are getting blank in absolute path (eg: SOATest/SOA//file.csv) and says it is invalid. Please let me know how we can resolve this issue.
Best Answer
-
You should use relative paths. File/directory fields in SOAtest generally accept relative paths everywhere. There should be no need to calculate an absolute path somewhere. If you are attempting to calculate an absolute path from a script then you may have a mistake in your script.
Instead, in your the Write File tool, put "." in the Target Directory field to save in the same directory as your SOAtest project file.
0
Answers
-
Thanks Benken. It worked out.
0