Unable to do mapping for qTest project from ARD 3.1

book

Article ID: 198415

calendar_today

Updated On:

Products

CA Agile Requirements Designer

Issue/Introduction

Unable to see any option to map qTest fields in ARD 3.1

Environment

Release : 3.1

Component : CA Agile Requirements Designer

Resolution

The issue appears to be a configuration issue that is affecting the authentication process. The user can authenticate as long as they append the project path to the qTest URL (https://qtest.my-domain.com/p/1/portal/project). However, if they only use the domain portion (https://qtest.my-domain.com), which is the recommended/documented method, for setting up the qTest connection in ARD, their authentication request is being refused. 

From the ARD log, with qTest logging enabled, the authentication request, for the domian URL is getting redirected by qTest. The redirect is attempting to use the oauth token. We see a 302 error thrown.

2020-08-31 08:42:36,551 INFO  [default] [qTest Log](POST) Request URL: https://qtest.my-domain.com/oauth/token
2020-08-31 08:42:37,484 ERROR [default] [e:\buildagent\tdm\agiledesigner\agiledesigner\restservicehelper.cpp:574] [qTest Log]Qt Network Error (Qt error code: 302) Error transferring https://qtest.my-domain.com/oauth/token - server replied: 
2020-08-31 08:42:37,485 INFO  [default] [qTest Log]Response URL: https://qtest.my-domain.com/oauth/token
2020-08-31 08:42:37,485 INFO  [default] [qTest Log]Response HTTP Code: 400
2020-08-31 08:42:37,485 INFO  [default] [qTest Log]ReturnedMessage: {"error":"invalid_grant","error_description":"Bad credentials"}

Researching the error by looking through the qTest documentation. What jumps out at me from the redirection is the URL is redirected to use the oauth token, which according to qTest is for jira authentication.

Comparing this to the log in where the project path is appended to the URL, we see the authentication is successful, and the qTest redirect is not using oauth for authentication: 

2020-08-26 10:40:41,666 INFO  [default] [qTest Log](POST) Request URL: https://qtest.my-domain.com/p/1/oauth/revoke
2020-08-26 10:40:41,673 INFO  [default] [qTest Log]Message: 
2020-08-26 10:40:42,395 INFO  [default] [qTest Log]Response URL: https://qtest.my-domain.com/p/1/oauth/revoke
2020-08-26 10:40:42,395 INFO  [default] [qTest Log]Response 

Additional Information

For more information regarding configuring the qTest integration in ARD 3.1 see:

https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/devops/agile-requirements-designer/3-1/integrations/integration-with-lifecycle-tools/integrate-with-qtest.html