Telerik Forums
Test Studio for APIs Forum
2 answers
80 views

Hello,

I have a test step that requests a page from our web application. The request is a GET for host/instance/Dashboard, and receives the following response:

----------

HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: /instance/?Redirect=%252finstance%252fDashboard
Server: Microsoft-IIS/8.5
X-AspNetMvc-Version: 5.2
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Fri, 31 Mar 2017 18:19:53 GMT
Content-Length: 160

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/instance/?Redirect=%252finstance%252fDashboard">here</a>.</h2>
</body></html>

----------

The step would normally successfully go to our 'Dashboard', but in this case I am executing the step without being logged in, which is why I am being redirected. The problem is that the Last Response Data section never gets updated with the 302 Found response - it still contains the response from a previous run where the actual requested document was returned. Should the Last Response Data update when you execute an individual step?

Thanks in advance.

Elena
Telerik team
 answered on 05 Apr 2017
2 answers
99 views

Hello,

Since I updated Telerik API to version 2017.1.207.0 I seem to have trouble getting the Bearertoken set using Set Variable.

Before update, the Set Variable step was defined as
Source: Body     JSONPath     acces_token
Variable: Bearertoken
Convert to: none
Target  Level: Test

Which worked fine with:
{
"access_token":"xxxx",
"token_type":"bearer",
"expires_in":3599
}
Since the update the Bearertoken does not get set (=empty). This is probably due to a new validation of the JSON path: "The path is not a valid Jsonpath"
However, if JSONPath is defined as $.access_token the bearertoken still does not get set (=empty)
Please advise on how to get this working again. It blocks running my testcases.

Regards,

Richard

Elena
Telerik team
 answered on 10 Feb 2017
11 answers
151 views

Fiddler easily send requests and recieves answers from my Api but Studio not, request from studion even don't get to api.

Log says:

13:23:27.676 [INFO]  [START]   |  Step 'Api' [7KifDHNOAE0ql1ukkpSAWR]

13:23:27.827 [ERROR] [FAILED]  |  |  'GET http://[ip]:[port]/api/version' [144 ms] [3tDMFpQUKTNpVFeC9JSdUh] 'ЌҐў®§¬®¦­® гбв ­®ўЁвм 100-Continue б Ї®¬®ймо нв®Ј® бў®©бвў .€¬п Ї а ¬Ґва : value'

13:23:27.831 [ERROR] [FAILED]  |  Step 'Api' [156 ms] [7KifDHNOAE0ql1ukkpSAWR]

I even tryed to export request from fiddler and import it to studio - it didn't help.
Vadym
Top achievements
Rank 1
 answered on 24 Jan 2017
3 answers
115 views

Hi. Thanks a lot, for this awesome product, I really enjoy it

Help me please.

How I can catch value from http response and set it like a variable(when I create essence, in responce I have responce Id, after this I want to operate with this Id)

Elena
Telerik team
 answered on 03 Jan 2017
1 answer
74 views
How to support https request for "test studio for APIs"? could someone tell me about this?
Kiril Stanoev
Telerik team
 answered on 30 Nov 2016
1 answer
80 views

How does one take the response from one request and use the data to set the variables on the next request of a test? I have a test that creates a sale, returns an ID, and the sale is confirmed with that ID. The documentation isn't clear how'd I'd pass the resulting data to the next request.

 

Thanks in advance.

Oleg
Telerik team
 answered on 07 Sep 2016
3 answers
119 views

Hi guys!  Just want to say that I'm really excited to see you tackle API Testing.  I wish you luck and really hope your product turns out to be something like Test Studio and something above and beyond just a trivial wrapper around sending http requests.

 

I'll keep an eye on this project!  Again, I'm excited and wish you all well!

Valeri Hristov
Telerik team
 answered on 19 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?