Copying File from one folder to another through a code mod
Posted: Fri Nov 21, 2014 4:27 pm
Hi,
I am having an issue with a code module and I'm trying to figure out why it's not working now compared to the way I had it set up earlier.
So, my initial setup used to be a recording with a code module within to copy a file from our internal network to the test station. This was working fine.
I then decided that it didn't make sense to have a single code module under a recording, so i recreated it as just a code module. This worked for a few times and then all of a sudden just stopped. I use a couple of variables within to get my testcase name, and when I set a break point inside the code module, all paths are correct but it does not transfer over. But when I hard code a path it seems to work fine.
What I'm trying to figure out is if there is any real difference between having the code module within the recording. It seems like it runs faster when it is just a code module, and hoping that the speed isn't the reason (like the code module is finishing before the action is done).
Any Ideas?
Thanks
I am having an issue with a code module and I'm trying to figure out why it's not working now compared to the way I had it set up earlier.
So, my initial setup used to be a recording with a code module within to copy a file from our internal network to the test station. This was working fine.
I then decided that it didn't make sense to have a single code module under a recording, so i recreated it as just a code module. This worked for a few times and then all of a sudden just stopped. I use a couple of variables within to get my testcase name, and when I set a break point inside the code module, all paths are correct but it does not transfer over. But when I hard code a path it seems to work fine.
What I'm trying to figure out is if there is any real difference between having the code module within the recording. It seems like it runs faster when it is just a code module, and hoping that the speed isn't the reason (like the code module is finishing before the action is done).
Any Ideas?
Thanks