Create and add a new WebTestPlugin in whose PreWebTest event you call the MoveDataTableCursor () method of the WebTest object, giving it the value of the context parameter $ WebTestUserId (e.WebTest.Context.WebTestUserId). Also make sure that the data source is set to Do not move the cursor automatically. This blocks the virtual user in a row in your data table.
CAVEAT: this will only work if you work locally or with ONE agent and with only one script in LoadTest, because WebTestUserId is NOT unique to agents or scripts (unlike documentation). If you have configured multiple agents, your plugin will need to know how to split data rows between agents. There is no way to work with it in several scenarios - for this you will need a smarter solution.
Also note that WebTestUserId starts at 0 in LoadTest, but starts at 1 in standalone WebTest (who knows why?).
source share