Unanswered question

How would I remove a File from a folder using neoload?

Need Help creating a script that removes the file created for that VU before moving to the next iteration.

Todd F.
Todd F.

Todd F.

Level
0
10 / 100
points

Answers

You can use JAVA code inside a Javascript at the end of your iteration to remove the file in your folder.

You could try something like that:

 

var myFile = new java.io.File("/home/myuser/foo.txt");
myFile['delete']();

 

You can of course customize it to suit your need.

I hope that it will help you.