Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems like the testrun is always imported in status 'TO DO' #3

Open
rinanir opened this issue Sep 21, 2022 · 0 comments
Open

Seems like the testrun is always imported in status 'TO DO' #3

rinanir opened this issue Sep 21, 2022 · 0 comments

Comments

@rinanir
Copy link

rinanir commented Sep 21, 2022

Thanks for providing this example. I almost got it to work....

I have set this up as a repo in BitBucket Cloud, and am executing it with a Jira Cloud instance.

I have a single test that the pipeline is running, and each pipeline execution adds a test execution with this single testrun indeed, as expected. but the status of the testrun is 'TO DO'.

In Bitbucket, I have configured the pipeline as per the code given here ([https://docs.getxray.app/display/XRAYCLOUD/Integration+with+Bitbucket+Pipelines#IntegrationwithBitbucketPipelines-Cucumberexample] ) --> under the section cucumber example

I am not sure if the problem, is with this project or with XRAY?

More details:

The yml file to run the bitbucket is this:

`# This is a sample build configuration for Ruby.

Check our guides at https://confluence.atlassian.com/x/8r-5Mw for more examples.

Only use spaces to indent your .yml configuration.

-----

You can specify a custom docker image from Docker Hub as your build environment.

image: ruby:2.6

pipelines:
default:
- step:
caches:
- bundler
script: # Modify the commands below to build your repository.
- |
apt-get update -qq
apt-get install unzip
gem install cucumber
gem install rspec-expectations
export token=$(curl -H "Content-Type: application/json" -X POST --data "{ "client_id": "$client_id","client_secret": "$client_secret" }" https://xray.cloud.getxray.app/api/v1/authenticate| tr -d '"')
curl -H "Content-Type: application/json" --output features/features.zip -X GET -H "Authorization: Bearer ${token}" "https://xray.cloud.getxray.app/api/v2/export/cucumber?keys=$cucumber_keys"
rm -f features/*.feature
unzip -o features/features.zip -d features/
cucumber -x -f json -o data.json
curl -H "Content-Type: application/json" -X POST -H "Authorization: Bearer ${token}" --data @data.json https://xray.cloud.getxray.app/api/v1/import/execution/cucumber
echo "done"

definitions:
caches:
bundler: ./vendor`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant