I try to run our automatic tests in parallel. Therefore I've configured two jenkins nodes, which execute my test jobs. Unfortunately Quality Center isn't able to deal with remote host sharing, e.g. it associates the end of a test to the wrong test in run scheduler. To solve this, my idea was to create 2 partitions of remote hosts and access the host group regarding to the Jenkins node, on which its executed.
I've configured a node depending environment variable named HOST_GROUP and set it into my job configuration, field "RUN HOST". I've guessed that it would resolve the variable as it has done for the report-name, but it hasn't.
In the following the call of runTestSet.vbs:
Building remotely on iut-quality-1.2 in workspace D:\Jenkins1.2\workspace\QTP BE Buchungsmatrix IUT
[QTP BE Buchungsmatrix IUT] $ cscript /nologo "D:\Jenkins1.2\workspace\QTP BE Buchungsmatrix IUT\runTestSet.vbs" http://**************** *** ******** *** *** "Booking Engine" Buchungsmatrix_IUT "IUT-QUALITY-2"-qcreport-Buchungsmatrix_IUT-25.xml 600 RUN_REMOTE $HOST_GROUP
21.08.2012 13:59:07 : Script parameters:
21.08.2012 13:59:07 : *************************************************
21.08.2012 13:59:07 : QC Server : http://******************************
21.08.2012 13:59:07 : QC UserName : ***
21.08.2012 13:59:07 : QC Password : ********
21.08.2012 13:59:07 : QC Domain : ***
21.08.2012 13:59:07 : QC Project : ***
21.08.2012 13:59:07 : QC TestSetFolder: Booking Engine
21.08.2012 13:59:07 : QC TestSetName : Buchungsmatrix_IUT
21.08.2012 13:59:07 : XML Junit File : IUT-QUALITY-2-qcreport-Buchungsmatrix_IUT-25.xml
21.08.2012 13:59:07 : Timeout : 600
21.08.2012 13:59:07 : *************************************************
21.08.2012 13:59:07 : RunMode : RUN_REMOTE
21.08.2012 13:59:07 : RunHost : $HOST_GROUP
21.08.2012 13:59:07 : *************************************************