mercredi 26 avril 2017

Get auth token in Gatling from meta tag

This is the sample DOM content of our app.

<head>
<title>aaa</title>
<meta name="sample" content="sample">
<meta name="sample" content="sample">
<meta name="csrf-param" content="authenticity_token">
<meta name="csrf-token" content="token">

Hi I would like to extract the token content (in 4th line) and save it in a variable to use it. But I am unable to achieve using Regex too. gatling do support meta tags?

Anyone faced the same?

Thanks, jay

Aucun commentaire:

Enregistrer un commentaire