It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

XRay - Rest API problem

HI

1) Could you help me with Rest API? I need to add Test Sets from different encoding (ISO-8859-2)

/rest/api/2/issue

I have an error message in response:

{"errorMessages": ["Invalid UTF-8 middle byte 0x70\n at [Source: org.apache.catalina.connector.CoyoteInputStream@30438fe7; line: 6, column: 42]"]}

 

req:

{
"fields": {
"project": {
"key": "SET"
},
"summary": "udostępnianie danych pracowników medycznych",

"issuetype": {
"name": "Test Set"
}
}
}

 

2) How can I add (by REST Api) many Test Sets?

 

 

1 answer

Hi Rafal,

Using our REST API, you can create, update and delete Test Sets.

In order to create, you use the following request:

curl -H "Content-Type: application/json" -X POST -u admin:admin --data @example.json http://yourserver/rest/raven/1.0/api/testset/TEST-123/test

*Example

We can also explore the documentation related to that:

Best Regards,
Team Xray

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you