Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
Application Insight Cookies Handling in Jmeter
  1. Unable to find source request of ai.user, ai.session (cookies) and ai.operationid. There are two Tracks requests that I can see in Network tab almost on every hit:
    a) OPTIONS> dc.services.visualstudio.com/v2/track b) POST> dc.services.visualstudio.com/v2/track. This has following Payload that have above mentioned IDs (user,session,operation) and also the Instrumentation Key: Snippet of the POST track request payload

  2. Want to use the above IDs in subsequent POST requests in the test plan. ai.user can be used because it has expiration of 365 days but not the other two IDs.

How can I handle these dynamic IDs (May be by using Pre & Post Processors) but from where to fetch these values? I cannot find the source for them in the browser.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

As per How Application Insights recognizes returning users and efficiently send telemetry data to Azure article the values come with Cookies:

enter image description here

So it's sufficient to add a HTTP Cookie Manager and configure it to store cookies into JMeter Variables by adding the next line to user.properties file

CookieManager.save.cookies=true

once done you will be able to access ai_session cookie value as ${COOKIE__ai_session}

and it would be possible to extract the value before | using Regular Expression Extractor

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!