How Auto Correlation Works
Basic Example
UseLet’s thisthere articlebe toa understandAlpha therequest/response mechanicsPair ofsuch AIQ Auto Correlation and how extracted values are applied during replay.that
Validation
request(Alpha) Locate=thehttp://server/getProducts
response(Alpha)dynamic=value[{productId=512,productName=“Screw”, price= “5”},
{productId=631,productName=“Hammer”, price= “10.4”} ]
And let Beta be a request/response Pair such that
request(Beta) = http://server/purchaseProduct?id=512
response(Beta) = …
A correlation could be seen here in the sourceproductId from the request of Alpha which is used in the response orof priorBeta. step output.
response(A) reused= [{productId=512,productName=“Screw”, price= “5”},
{productId=631,productName=“Hammer”, price= “10.4”} ]
request(B) = http://server/purchaseProduct?id=512
Supported Formats
HTML
XML
JSON
CSV
Features and Best Practices
When working with autocorrelation, Always check to Execute all HAR calls (even after a failure) in athe laterOptions panel of Scenario Builder under HAR Script Options.
Never check 'Mark each request oras action.a step' (it will make autocorrelation fail sometimes).
Autocorrelation rejects unnecessary correlations.
Autocorrelation makes har scripts Less brittle.
Autocorrelation cleans duplicated correlations.
A1 -- > B
A2 -- > C
A1 == A2
Automatically transform A2 to A1 (Shrinks memory footprint)
A1 -- > B
A1 -- > C
'Show headers, requests, and responses in each test case execution output' option is useful for the Development team to debug, similar to the designer script debug option. Please mark this option if (and only if) you want the development team to review autocorrelation.
Autocorrelation supports URLs with correlationor enabledwithout and verifyport, the substitutedbelow value2 matchesURLs are handled the currentsame executionway.
https://appvance.ci.cloudbees.com/login.html
https://appvance.ci.cloudbees.com:443/login.html
Last updated: SeptemberAugust 29,09, 20262023
If you have any feedback on this topic, please contact us at documentation@appvance.ai