It's all about the answers!

Ask a question

RQM Command Line Execution Tool Error


Liora Milbaum (513289118) | asked Sep 30 '14, 5:34 a.m.
CLM 4.0.4

I am using the tool with ant from my build definition.
From the build log file:

CreateTestSuiteResult:
[executeTestSuiteExecRecord] Attempting to create SSL_TLS context
[executeTestSuiteExecRecord] Successfully created an HTTP client
[executeTestSuiteExecRecord] Attempting to create SSL_TLS context
[executeTestSuiteExecRecord] Connection to RQM Server is established
[executeTestSuiteExecRecord] Procesing input parameters for TestSuite Execution
[executeTestSuiteExecRecord] Starting execution
[executeTestSuiteExecRecord] Exception occurred while doing a post to the server with the URL:https://ilclm.redbend.com:9443/qm/service/com.ibm.rqm.execution.common.service.rest.ITestSuiteExecutionRecordRestService/execute. Please verify that the adapter being used is running and the values for parameters tserId, suiteStepScriptIds, suiteStepAdapterIds are valid and exist.
[executeTestSuiteExecRecord] Internal Error occurred. See log for more details


Where can I find the log file?
Thanks,
Liora

2 answers



permanent link
Reshma Ratnani (1.1k1) | answered Sep 30 '14, 5:41 a.m.
JAZZ DEVELOPER
Hi Liora

What all arguments are you passing?
You need to specify the -suiteStepScriptIds argument with scriptIds which you want to execute
Also if you want to execute remote script then you need to specify the adapterId

Comments
Liora Milbaum commented Sep 30 '14, 5:53 a.m.

the ant file:
<project name="vrm" default="CreateTestSuiteResult">
    <target name="CreateTestSuiteResult">
        <executeTestSuiteExecRecord
            userId="${userId}"
            password="${password}"
            rqmServerUrl="${rqmServerUrl}"
            projectName="${projectName}"
            testSuiteExecRecordId="${testSuiteExecRecordId}"
            arguments="-exitOnComplete=true -resultState=com.ibm.rqm.execution.common.state.error" />
    </target>
    <taskdef name="executeTestSuiteExecRecord"
        classname="com.ibm.rqm.executiontool.RQMExecuteTestSuiteExecRecord" />
</project>


Reshma Ratnani commented Sep 30 '14, 5:58 a.m.
JAZZ DEVELOPER

The -suiteStepScriptIds argument is missing here and so you are getting the error. Include the -suiteStepScriptIds argument in your ant file

Usage example

"Executing a Test Suite Execution Record":

"ExecutionUtility -tserId=134 -projectName="Quality Manager" -publicURI=https://localhost:9443/jazz -user=<valid user>  -password=<correct password>   -suiteStepScriptIds=10,23,,45 -suiteStepAdapterIds=20,20,,11 -exitOnComplete=false


Reshma Ratnani commented Sep 30 '14, 6:00 a.m.
JAZZ DEVELOPER

Some help info for the new arguments

-suiteStepScriptIds=1,,4,10 : Optional comma separated scriptIds for each step in the order of step. Leave blank for a step where not applicable or want to use default script.
        For instance, to specify scriptId 4 for step 1, script 78 for step 3 for a suite with 5 steps, argument value would be as follows:
        -suiteStepScriptIds=4,,78,,
 
-suiteStepAdapterIds=<comma separated adapter ids for each suite step> : Optional comma separated adapter Ids for each step in the order of step. Leave blank for a step where adapter is not required or want RQM to assign an adapter.
        For instance, to specify adapterId 20 for step 2,  15 for step 3 for a suite with 3 steps, argument value would be as follows:
        -suiteStepAdapterIds=,20,15


Liora Milbaum commented Sep 30 '14, 6:21 a.m.

I think that using the "-resultState" argument eliminates the necessity of using the 

"-suiteStepAdapterIds" argument. 
This ant file was already used as it is in another project and worked perfectly. It must be something else. 

Do you know where I can find the log file stated in the error?


Reshma Ratnani commented Sep 30 '14, 6:25 a.m.
JAZZ DEVELOPER

You can add argument -verbose=true
this will print additional logs in console


permanent link
Liora Milbaum (513289118) | answered Oct 01 '14, 11:59 p.m.
Found the problem. The user ${userId} was not part of the Project Area. As soon as I added him it start working.

Thanks,
Liora

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.