jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ZK <stevesenio...@gmail.com>
Subject Re: Obtaining & Using SignalR "ConnectionToken" variable ?
Date Thu, 10 Apr 2014 15:51:18 GMT
Hi,
looks like your regular expression is wrong

You say the response you get is:
{ 
:   "Url":"/service/signalr", 
:  
"ConnectionToken":"6ZItz2DFf4LSZTX-GrkUJrZht5HL2SWZdAEyvqGoJGzgGjGQh84I52kCAXv0tiNDYVfwH8hS1DOSRTScei7ePL9x9cryopcT9ux0cmSv_QZFaCsS0",

:   "ConnectionId":"9be06f9a-6cca-46b3-ab90-7d74e66dd485", 
:   "KeepAliveTimeout":20.0, 
:   "DisconnectTimeout":30.0, 
:   "TryWebSockets":false, 
:   "WebSocketServerUrl":null, 
:   "ProtocolVersion":"1.2" 
} 

it should be something like:
"ConnectionToken":"(.+?)"


Also add a 'Default Value' to the Regular Expression Extractor:
NOT_FOUND
This will help you troubleshoot the issue

Also:
Add a Debug Sampler after the HTTP Request with the regEx extractor    
(Add>Samplers>Debug Sampler)
Add a 'View Results Tree'     (Add>Listeners>View Results Tree)

Adding those components will assist in your troubleshooting


Test Plan
-View Results Tree
-Thread Group
--HTTP Request
---Regular Expression Extractor
--Debug Sampler

Run Your test
Select/Click 'View Results Tree' Component in the Test Plan
Select/Click 'Debug Sampler' result within the 'View Result Tree' output



ZK








--
View this message in context: http://jmeter.512774.n5.nabble.com/Obtaining-Using-SignalR-ConnectionToken-variable-tp5719773p5719795.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message