Complex Data Correlation Rules
LoadComplete is new to me and Regex has always been anemesis of mine. I'm trying to determine if the below Data Correlation Rule I need is possible, or if I need to create many Data Selectors & Data Replacers, and recreate their values each time a new recording is made. My Scenario has multiple instances of variables which are provided in response bodies using parameter names that do not match the names used in the subsequent requests where this data is used. The "Working With Subexpressions" documentation shows that: -A variable name in the "Find names and extra attributes" section can be set to the to the value of a regex subexpression. So, the ""ClientExchange":"(.*?)"" regex using "$1" would create a variable by the name of "8c2edc663f41c388429277224fa16da3" -That variable can then be used in the "Select from Responses" section using the same ""ClientExchange":"(.*?)"" regex, again using"$1" to set the value of"8c2edc663f41c388429277224fa16da3" to"5q813b9c3e969bc5bfb8f42d80a7bdf4". However, I don't understand how to get the "Replace in requests" section to provide the desired outcome. Example: Use data from ClientExchange parameter from Response Body of request 102: Recorded:"8c2edc663f41c388429277224fa16da3": - Actual string where value is extracted from: "{"ClientExchange":"8c2edc663f41c388429277224fa16da3"}" Simulated: "5q813b9c3e969bc5bfb8f42d80a7bdf4" To replace in TransactionId value in Request Header: Where the Recorded value is:"8c2edc663f41c388429277224fa16da3" With the Simulated value of: "5q813b9c3e969bc5bfb8f42d80a7bdf4" Any recommendations on how to go about creating aData Correlation Rule that would work in my example scenario?Solved3.3KViews0likes2CommentsLoadComplete Data Replacers & "LoadComplete will replace only the first match"
I have form pages where many field names and/or values contain a unique ID which is captured by a Data Selector associated with an earlier request. On these form pages, I need to replace a portion of X number of field names/values using the value captured by the Data Selector, however the first match is the only one processed. Per the Data Replacerdocumentation, "LoadComplete will replaceonly the first match". Is there some other way to accomplish this replacement?2.8KViews0likes2CommentsConvert - URL decode in Data Replacers does not work as expected
The problem I ran into on LoadComplete was thatthe Convert - URL decode in Data Replacers did not work as expected.For example, since VIEWSTATE in the request body is a variable, I used data selectors to extract it from the response body with Convert - URL decode then used it in the next request body. However,after I simulated the request, the result was a failure. I found that thevalue of VIEWSTATE in the request body was incorrect. Some special characters were not decoded such as '=' and '/'. (%2F in the screenshot should be decoded into '/'.) Does anyone know how I can solve it?Solved1.2KViews0likes1Comment