This is a migrated thread and some comments may be shown as answers.

Issue with accessing to api with Studio

11 Answers 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vadym
Top achievements
Rank 1
Vadym asked on 24 Nov 2016, 11:32 AM

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.

11 Answers, 1 is accepted

Sort by
0
Oleg
Telerik team
answered on 24 Nov 2016, 03:55 PM
Hello Vadym,

Thanks for reaching out. I am afraid though that the information you have provided is not sufficient to determine what exactly happens on your side. Could you please send us a test project where the issue reproduces?

Regards,
Oleg
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vadym
Top achievements
Rank 1
answered on 24 Nov 2016, 04:35 PM

i found reason of tests fails, in headers was block

Content-Length: 100

after i removed it - it worked.

However i i have a problem with displaying ru-ru charset in Console and in "Last Response Data"

0
Ivaylo
Telerik team
answered on 29 Nov 2016, 01:14 PM
Hello Vadym,

I am not able to replicate this behavior with Test Studio for APIs version 2016.3.928 and newer (refer attached screenshot). Let me know which is the version you are using and provide more information. If you provide a test project would be helpful enough.

Regards,
Ivaylo
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vadym
Top achievements
Rank 1
answered on 30 Nov 2016, 02:22 PM

Ivaylo,i see this:

 

0
Vadym
Top achievements
Rank 1
answered on 30 Nov 2016, 02:27 PM
sry for 2 posts, didn't find "edit". Here 2nd example of response
0
Accepted
John
Telerik team
answered on 02 Dec 2016, 02:16 PM
Hi Vadym,

After carefully inspecting your request I have just found out that you are sending header:

Accept-Encoding: gzip

If you remove this header you should be able to see the response content without gzip compression. Please give this a try and let me know if you will need further assistance. Thanks in advance for your cooperation! 

Regards,
John
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vadym
Top achievements
Rank 1
answered on 02 Dec 2016, 02:37 PM

Yes, It worked. Thank you. I have next question:

Can i in some insert Authorisation header in variable? As 'base-url'

I tried to create auth variable insert into it all authorization header (Basic Vlc3Q6YjBlMGVjN2ZhMGE4OTU3N2M5MzQxYzE2Y2ZmO.....) something like that but Studio do not send varibale value. It send nothing if i insert variable into Authorization header.

0
Kiril Stanoev
Telerik team
answered on 02 Dec 2016, 02:59 PM
Hi Vadym,
Thank you for writing. I tried reproducing the issue you described but with no success. Have a look at the screenshots below and let me know if I am missing anything.





I'd be glad to assist you further.

Regards,
Kiril Stanoev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vadym
Top achievements
Rank 1
answered on 02 Dec 2016, 03:15 PM
Yes it working as "Test case" variable but don't work as Project variable
0
Kiril Stanoev
Telerik team
answered on 02 Dec 2016, 03:51 PM
Hello Vadym,
I made the auth-variable a project variable and the test worked as expected. I'm attaching my test project. Have a look at it and let me know if I'm missing anything. The next step is to send us a sample project that reproduces the issue you're describing. 

Regards,
Kiril Stanoev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vadym
Top achievements
Rank 1
answered on 24 Jan 2017, 03:01 PM
Thank you for your help. I found my error. It's because studio runs tests without saving global variables. After i save them - test uses it correctly.
Tags
General Discussions
Asked by
Vadym
Top achievements
Rank 1
Answers by
Oleg
Telerik team
Vadym
Top achievements
Rank 1
Ivaylo
Telerik team
John
Telerik team
Kiril Stanoev
Telerik team
Share this question
or