mlsomers
14 years agoNew Contributor
How to delete a file
I'm in a keyword test editor workspace screen.
From the operations list I drag and drop the Run Code Snippet operation into my testitems treeview.
In the Specify code dialog, I entered the following line:
aqFileSystem.DeleteFile("G:\MyDir\MyFile.ext")
When I run the test, I don't get any error and the file does not get deleted.
What am I missing?
By the way, is there any way I can extend the "operations" toolbox with my own custom standard operations such as filesystem (delete, copy, move), windows services (starting, pausing, stopping etc...)
Thanks in advance,
Louis
From the operations list I drag and drop the Run Code Snippet operation into my testitems treeview.
In the Specify code dialog, I entered the following line:
aqFileSystem.DeleteFile("G:\MyDir\MyFile.ext")
When I run the test, I don't get any error and the file does not get deleted.
What am I missing?
By the way, is there any way I can extend the "operations" toolbox with my own custom standard operations such as filesystem (delete, copy, move), windows services (starting, pausing, stopping etc...)
Thanks in advance,
Louis