cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Capture cookie value in synthetic script step (to set in following step)

henk_stobbe
DynaMight Champion
DynaMight Champion

Hello,

 

It looks like the dynatrace synthetic script does not keep cookie's an values between steps. I have noticed that you can define cookies using an event. It would be nice if the value from a previous step could be used here.

 

In first steps I login, a session cookie is used. And after the login in the next step a 400 (deceptive) request is send back. I mimicked this by removing the session cookie in the browser.

 

KR Henk

2 REPLIES 2

ChadTurner
DynaMight Legend
DynaMight Legend

@henk_stobbe you might want to toss in a RFE so this feature can be built into the product 

-Chad

HannahM
Dynatrace Leader
Dynatrace Leader

For Browser Monitors, I wouldn't expect this to occur, once a Cookie is set I would expect it to persist for that execution. 

For HTTP Monitors, I would expect the cookie to need to be set with each request and this can be done by pulling the session id and then adding it into the subsequent requests. There's a similar example in the docs here.

If this is for a Browser Monitor, can you create a Support ticket for Dynatrace to investigate?

Featured Posts