I am using jmeter and in one of the GET and POST methods I am getting - Response Code:401 | Response Message: Session Time out cookie not set.
1) I have set Http Cookie Manager as Global variable before the Thread Group.
2) ADFS login is passing and I am getting required cookies for - Launch URL, Landing Page (after login), Logout.
3) In one of the POST API i get the following Request Cookie and Header:
POST data:
{}
Cookie Data:
TeleAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U2VjdXJpdHlDb250ZXh0VG9rZW4gcDE6SWQ9Il8xNzIyY2MxYi1mODIwLTQ2MjctODg1Zi1mYjYzNjZjNmUyYjMtOTlDOUVFRTI4QTZDMzcxRjQ4RjIxQjI3QUI0QzZBQjEiIHhtbG5zOnAxPSJodHRwOi8vZG9jcy5vYXNpcy1vcGVuLm9yZy93c3MvMjAwNC8wMS9vYXNpcy0yMDA0MDEtd3NzLXdzc2VjdXJpdHktdXRpbGl0eS0xLjAueHNkIiB4bWxucz0iaHR0cDovL2RvY3Mub2FzaXMtb3Blbi5vcmcvd3Mtc3gvd3Mtc2VjdXJlY29udmVyc2F0aW9uLzIwMDUxMiI+PElkZW50aWZpZXI+dXJuOnV1aWQ6ODA3ZDZmZmMtMzVlMC00ZWNmLWI5MmItNDIwOTFmNGE3MjkyPC9JZGVudGlmaWVyPjxDb29raWUgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwNi8wNS9zZWN1cml0eSI+Sm40ZkpqNmFFSlBUekZyVUxlYmpyVlQ0eDFXK2FYUU5NM3lPdStPYVBOOTJzTFpZcS9BeFh0dkxhanFYYW45N0plaUcwWXBOc1FFWGhJOEk5TTNXa2VMbmFSZVdPZ0txOHZWcVNnV2kzd3ptUGlHWUVIeVR3YWlZSDFlR3MyMU9nOStkbXRVUjJjT0o3MGdhbkNYTkRaRnZYZ3dLZTlnMHEveG1VK2tCTFVqbDZQUVlKUGhtcDlFWUZBUWZkVzhFdVJaYzg4Q255Nis5K2hOUVJFT0xvZjZsSHBo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017 11:57:28"; 16D5A74E-A74E-4AEB-A25A-28A48B88E090="02/26/2017 12:27:29"
Request Headers:
Connection: keep-alive
Content-Type: application/json;charset=UTF-8
Accept: application/json, text/plain, */*
Origin: https://xxx-dev.com
Referer: https://xxx-dev.com/abc/
Accept-Language: en-US,en;q=0.8
Upgrade-Insecure-Requests: 1
Accept-Encoding: gzip, deflate, sdch, br
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
X-Requested-With: XMLHttpRequest
Connection: keep-alive
TokenHash: {"Salt":"CaSDwW5rZd5s9X4lPWkxpTQgrNgsq+f5PDIfwuDg+PJykjSIplEhEy5QJqGM6rxtwW5TkRopLwSK43jEr6w6og==","Hash":"A5BwLYxf0CoGfV1NDseSGp65MftAmFhRP7HYzLboTHA="}
Content-Length: 2
Response from server:
Thread Name: Thread Group 1-1
Sample Start: 2017-02-26 06:57:28 EST
Load time: 3
Connect Time: 0
Latency: 3
Size in bytes: 274
Sent bytes:6096
Headers size in bytes: 274
Body size in bytes: 0
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""):
Response code: 401
Response message: Session timeout cookie not set
Response headers:
HTTP/1.1 401 Session timeout cookie not set
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Arr-Disable-Session-Affinity: true
Date: Sun, 26 Feb 2017 11:57:28 GMT
Content-Length: 0
HTTPSampleResult fields:
ContentType:
DataEncoding: null
When I checked in fiddler and Chrome Developer tool - this is the Request Message sent (it has passed in chrome developer tool):
Connection: keep-alive
Content-Length: 2
Accept: application/json, text/plain, */*
Origin: https://xxx-dev.com
TokenHash: {"Salt":"kBa7ZWLbqOPbkYhsZSAcktsovgrhOxSPwLtA4NwnWKj1Pwoea98PdQHDN47AmRWJ4OZe2ct2AIjJ2lagkv2B2Q==","Hash":"JWVlp5S8qNsARDIhtYRwMJGRpmTrD+HzwaXlS2xLrto="}
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Content-Type: application/json;charset=UTF-8
Referer: https://xxx-dev.com/abc/
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8
Cookie: TeleAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U2VjdXJpdHlDb250ZXh0VG9rZW4gcDE6SWQ9Il8xNzIyY2MxYi1mODIwLTQ2MjctODg1Zi1mYjYzNjZjNmUyYjMtRjNGMkI1RTc1MjNGQUVDOEY3QkY5OUMwMDg3NTAyMzMiIHhtbG5zOnAxPSJodHRwOi8vZG9jcy5vYXNpcy1vcGVuLm9yZy93c3MvMjAwNC8wMS9vYXNpcy0yMDA0MDEtd3NzLXdzc2VjdXJpdHktdXRpbGl0eS0xLjAueHNkIiB4bWxucz0iaHR0cDovL2RvY3Mub2FzaXMtb3Blbi5vcmcvd3Mtc3gvd3Mtc2VjdXJlY29udmVyc2F0aW9uLzIwMDUxMiI+PElkZW50aWZpZXI+dXJuOnV1aWQ6ZDIxYzU4MzYtMzIzZC00MmNkLWFiZWQtODJjZmVhZDViNDcxPC9JZGVudGlmaWVyPjxDb29raWUgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwNi8wNS9zZWN1cml0eSI+ZHFvai9DZzVrckVHVmd2bkJlaytyY2o4UlQ2TWtXSXJrVDErVWVoM3VjOGZoT2o5VFdVL2srLzVrUHI4SGNEcTU3dTl3L0FCaTdGVGR5UDlzLzNmQWViL25PeFJLSnUwTTM2anBvQldJazN3KzcxZEZ6UCtqOTFJOFM2YUZiRG4yREF0VGtVc3gvRmRsNHBuQXQrck1wU29oUFJkUkFvUjBZZ1djbnJNU0FKRW14V0Q2SFIzdFZKTU1wMDl2WUc2SUJVbmdMQi9E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25A-28A48B88E090=02/26/2017 08:42:01
Question: Since it says session time out cookie not set is it due to the Quotes in jmeter response?
0B8A8B36-05A3-4359-BE72-49411DBED5B1="02/26/2017 11:47:08"; 16D5A74E-A74E-4AEB-A25A-28A48B88E090="02/26/2017 12:17:09"
Cos I dont see this in Chrome developer tool or in fiddler.
I tried to mitigate the issue by providing additional header for the sampler and passed the following parameters:
Content-Type application/json;charset=UTF-8
Accept application/json, text/plain, */*
Cookie TeleAuth=${COOKIE_TeleAuth}; TeleAuth1=${COOKIE_TeleAuth1}; TeleAuth2=${COOKIE_TeleAuth2}; 50FC05F7-187E-4603-99BA-3269EAE586C9=${COOKIE_50FC05F7-187E-4603-99BA-3269EAE586C9}; 0B8A8B36-05A3-4359-BE72-49411DBED5B1=${COOKIE_0B8A8B36-05A3-4359-BE72-49411DBED5B1}; 16D5A74E-A74E-4AEB-A25A-28A48B88E090=${COOKIE_16D5A74E-A74E-4AEB-A25A-28A48B88E090}
handle-errors-globally true
Host xxx-dev.com
Origin https://xxx-dev.com
Referer https://xxx-dev.com/Stratus/
But I do still find the quotes even after bypassing the global cookie manager.
is this cos of the quotes in the session time out variable in cookies or is it cos of something else? please help
答案 0 :(得分:0)
通过反复试验找到了解决方案,并且信不信由你很简单。
我确实在fiddler中编写了API参数(方法,标题,cookie,有效负载),发现引号是导致401错误的问题,响应消息:未设置会话超时cookie。
解决方案:在全局 Http Cookie管理器中,将 Cookie政策设置为默认和实施在我的案例中是 HC3CookieHandler
这修复了Cookie中的引号问题。
感谢。