Forum Discussion
ibright
7 months 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
- 4 years agoSuperTester
- 3 years agoCata