Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VSO REST API: IndexOutOfRangeException when try to create Test Result via Rest

$
0
0

Hello everyone.

I try to use new Visual Studio Online REST API for Test Management. So I managed to create Test Run, but I faced with problem of creating Test result for this Run. I followed the example which is described here https://www.visualstudio.com/integrate/api/test/results#Addtestresultstoatestrun

My query is:

POST https://myname.visualstudio.com/DefaultCollection/TestAPIforTFS/_apis/test/runs/35/results?api-version=2.0-preview

[{ { "testPoint": {"id": "1"  },  "state": "Completed",  "outcome": "Failed"  }]

So when I execute this query I get response with code 500

{"$id":"1","innerException":null,"message":"TF400898: An Internal Error Occurred. Activity Id: fcdbd94e-d01e-4945-8667-e63d8528f305.","typeName":"System.IndexOutOfRangeException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","typeKey":"IndexOutOfRangeException","errorCode":0,"eventId":0}

I tried to create Test Case which is the same as in sample, but I received the same result. When I tried to skip, for example, ID of test point I received code 400 and message that I missed required property.

So is it bug of API or I do something wrong?

Thanks in advance.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>