Prompt for folder and copy file into it
- 5 years ago
almost everything that can be done in scripts is theoretically possible in keyword tests using the run code snippet operation. In order to do what you are trying to do (from my understanding), you would use the builtin.inputbox method to prompt the user for the desired folder location.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/builtin/inputbox.html
then you would use aqfilesystem.copy method https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfilesystem/copyfile.html
to copy the file into the designated folder (assigned above using the inputbox method). one of the parameters of aqfilesystem.copy method is target location, so instead of hardcoding that value, you would supply the resulting operation of the builtin.inputbox method in there (so set the inputbox result 'the user input for desired location' as a variable)