Forum Discussion
ibright
2 years agoNew Contributor
Thanks everyone for replying. I managed to solve it myself doing it this way:
import groovy.io.FileType
def aPIresultsfolder = context.expand( '${#Project#API results folder}' )
String folderPath = aPIresultsfolder
new File(folderPath).eachFile (FileType.FILES) { file ->
if (file.name.contains('Forward NDF errors')) file.delete()
}
I changed the folderpath reference to refer to the defined field that ReadyAPI had generated automatically.
Related Content
- 10 years ago
- 4 years ago
Recent Discussions
- 9 hours ago
- 4 days ago
- 15 days ago