Problem getting test information from build workflow

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Problem getting test information from build workflow

Rajiv Nair

I'm trying to access our Anthill server through the remoting API. I'm using
the anthill3 jars from the devkit.
I've been able to connect and get the BuildLife information for the main
build workflow as follows:

*Project[] projects =
*for (int index = 0; index < projects.length; index++) {*
* Project project = projects[index];*
* Workflow wrkFlow = project.getWorkflow(Long.valueOf(1)); // workflow id
of a known workflow.*
* *
* BuildLife[] buildLives =
* *
* for (int i = 0; i < MAX_BUILDS_TO_RETRIEVE; i++) {*
* BuildLife buildLife = buildLives[i];*
* // Do some processing to get the build deails, status, changelists etc. *
* }*

However, I'm not able to figure out how to get the Junit test information.
The Junit tests are configured as a secondary process which kicks off after
the main build starts.
The unit tests have their own workflow (and id) but I get a 'null'
BuildProfile from the workflow (*wrkFlow**.getBuildProfile() *shown above).

I tried to do :

*WorkflowCase[] workflowCases =
*for (WorkflowCase wrkCase : workflowCases) {*
*            JUnitReport[] reports =

but that fails with the following exception:
*java.lang.NullPointerException: VarService is not registered with the
* at
* at
* at

I'm not sure how to proceed. Can someone help please?

Anthill-pro mailing list
[hidden email]