I would like to read from the file on SUT (MAC OS 10.4.10).
the file is located in Applications/Test/ws.properties.
I tried the following:
put “/Applications/Test/ws.properties” into versionFile
open file versionFile for reading
put “” into versionLine
read from file versionFile until return
if it is empty then exit repeat
put the last item delimited by tab of it into versionLine
close file versionFile
I have two problems with the above script:
it reads from the similar file located on the Eggplant server machine (not from SUT)
and it only return the last line in that file:
The file looks like this:
The intention of the script was to return 4 0 32
But it only returns prod_number=32
Any help will be greatly appreciated!