You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raising this from an user email for sharing, as other users might benefit from this question.
Script in C:\test1
Need to write csv to another folder: F:\apps\test1
Tried the following on windows:
output_filename = "F:\apps\test1\test123.txt"
echo "output_filename = " + output_filename
dump "this is test123" to '+output_filename+'
Error message:
output_filename = F:\apps\test1\test123.txt
dump "this is test123" to '+output_filename+'
Unable to open file 'F:/apps/test1/F:\apps\test1\test123.txt'
F:/apps/tagui/src/phantomjs:/platform/fs.js:79 in open
F:/apps/tagui/src/phantomjs:/platform/fs.js:136 in write
F:/apps/tagui/src/phantomjs:/code/output1.js:81 in save_text
F:/apps/tagui/src/phantomjs:/code/output1.js:1208
F:/apps/tagui/src/phantomjs:/platform/casper.js:1637 in runStep
F:/apps/tagui/src/phantomjs:/platform/casper.js:414 in checkStep
For your advice, please.
The text was updated successfully, but these errors were encountered:
Having a dynamic filename wasn't planned as part of the use scenarios, but I can imagine that it is going to very useful. Thanks for raising this! I've made a commit to the cutting edge version which you can download and use right away for both macOS and Windows. Let me know if you run into issues :)
Adding a note that this dynamic filename works also for load step to load from a filename that is dynamically formed during run-time and not pre-scripted during automation flow development.
Raising this from an user email for sharing, as other users might benefit from this question.
Script in C:\test1
Need to write csv to another folder: F:\apps\test1
Tried the following on windows:
output_filename = "F:\apps\test1\test123.txt"
echo "output_filename = " + output_filename
dump "this is test123" to '+output_filename+'
Error message:
output_filename = F:\apps\test1\test123.txt
dump "this is test123" to '+output_filename+'
Unable to open file 'F:/apps/test1/F:\apps\test1\test123.txt'
F:/apps/tagui/src/phantomjs:/platform/fs.js:79 in open
F:/apps/tagui/src/phantomjs:/platform/fs.js:136 in write
F:/apps/tagui/src/phantomjs:/code/output1.js:81 in save_text
F:/apps/tagui/src/phantomjs:/code/output1.js:1208
F:/apps/tagui/src/phantomjs:/platform/casper.js:1637 in runStep
F:/apps/tagui/src/phantomjs:/platform/casper.js:414 in checkStep
For your advice, please.
The text was updated successfully, but these errors were encountered: