cancel
Showing results for 
Search instead for 
Did you mean: 

Combine multiple SoapUI project jUnit html report into a single report

Highlighted
Occasional Contributor

Re: Combine multiple SoapUI project jUnit html report into a single report

Hi @nmrao

 

Here is the snapshot of build.gradle

 

=========================

def projectFilec = ["xyz", "xyz1", "xyz2", "xyz3", "xyz4"]

 

task myCopy(){
}

def copycount = 1

projectFilec.each{ projectsFilec ->
task "myCopy${copycount}"(type: Copy){
from("${projectsFilec}")
into('AllReports')
include('TEST-*.xml')
}
myCopy.dependsOn "myCopy${copycount}"
copycount++
}

task mergeJUnitReports {
ext {
resultsDir = file("AllReports")
targetDir = file("AllReports/merged/")
}

doLast {
ant.taskdef(name: 'junitreport',
classname: 'org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator',
classpath: configurations.antJUnit.asPath)

ant.junitreport(todir: resultsDir) {
fileset(dir: resultsDir, includes: 'TEST-*.xml')
report(todir: targetDir, format: 'frames')
}
}
}

===========================

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Check out this week's challenge!

Create a script to generate an email when an assertion fails for the TechCorner tag!


Scripts created in July:
- A script to change the request body before sending it to the server
Top Kudoed Authors