ABLUnit reading results.xml

Posted by anandknr on 28-Mar-2020 15:42

Hello Team,

I am in progress version 11.7 AIX. 

I wanted to implement ABLUnit Testing as part of jenkins build and we are not using ANT script for Jenkins build. I was able to call the ABLUnit through a script (-p ABLUnitCore.p -param "CFG=./ablunit.json") and generated the results.xml. Everything looks good so far.

Now, how will my build process display the result.xml and possibly fail the process when testcase fails? 

Thanks in Advance,

Anand 

All Replies

Posted by bronco on 31-Mar-2020 12:13

Maybe you can tell us what you're using instead of Ant to build everything. cmd, bash?

Posted by anandknr on 31-Mar-2020 18:14

We are currently using plain shell script for our build process.  

Posted by anandknr on 31-Mar-2020 18:14

We are currently using plain shell script for our build process.  

Posted by doavandoorn on 03-Apr-2020 13:35

Wrap your shell script in a (groovy) jenkinsfile. (See samples on the internet how to start a shell script from a Jenkinsfile)

Then afterwards you can do something like this:

stage('Unit Tests JUnit results collection') {
steps {
dir('.') {
junit keepLongStdio: true, testResults: 'Tests/*.xml'
}
}
}


This thread is closed