Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

XRAY and webdriverIO integration Issues

Mahima Malpure
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 31, 2021

Hi there , 

I am trying to integrate XRAY with webdriver IO , mocha using the guide below 

https://docs.getxray.app/display/XRAYCLOUD/Testing+web+applications+using+Mocha+and+WebdriverIO#tab-API

The below - 

curl -H "Content-Type: application/json" -X POST --data '{ "client_id": "CLIENTID","client_secret": "CLIENTSECRET" }'  https://xray.cloud.xpand-it.com/api/v1/authenticate

needs client Id and client secret which is not available for our JIRA implementation. 

so , I only have username and password , how do i use it to achieve above ? 

Thanks,

Mahima.

1 answer

0 votes
Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2021

Hi @Mahima Malpure 

It does not work with username/password because it uses two-step authentication.

You need first to configure the client ID and secret as described on this documentation page:

https://docs.getxray.app/display/XRAYCLOUD/Global+Settings%3A+API+Keys

After, it is necessary to request an access token like described here:

https://docs.getxray.app/display/XRAYCLOUD/Authentication+-+REST

And finally, you can execute your API requests using the token obtained from the previous step.

Thank you.

Kind regards,
Rogerio Paiva [Xporter Support Team]

Suggest an answer

Log in or Sign up to answer