I have some tests that create data during the test so in my @BeforeMethod I always check to delete these files before the test starts. This works perfectly fine if I am running the test on the same machine that it is launched from. However, when I try to launch the tests locally on my own machine but specify to execute it on another machine over the network, the test will still try to delete these files on my own machine. The method I am using to delete the files is standard java.io.File class. I'm guessing this has something to do with the fact that the code gets compiled on my pc and then executed elsewhere? I know in Silktest Classic there were built in File io methods that would handle this problem for you. Is there something similar in Silk4J?
↧