mercredi 10 janvier 2018

Extract nested fields in Visual Studio Web load test

Here is an html code I would like to test load and extract data from

<body>
    <h1>Hello StackOverflow</h1>

    <input type="hidden" name="Secret" value="66"/>
    <input type="hidden" name="Field[66].value" value="333" />
</body>

I need the 333 value. To do that, I need to extract the value 66 from Secret, and then use this value to deduce the name of the field (here Field[66].value). How can I do that?

I've tried to use two Extract Attribute Value extraction rules, but because there are on the same response, the first value is not yet in the context.

Aucun commentaire:

Enregistrer un commentaire