This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- For more details, see http://support.loadimpact.com/knowledgebase/articles/389413-advanced-login-w-dynamic-data-extraction-correlati | |
-- | |
-- Dynamic data correlation/extraction example user scenario | |
-- | |
-- This user scenario code demonstrates how to look for certain data in an HTTP response | |
-- using regular expression matching. The extracted data can then be used in future requests, | |
-- typically to simulate CSRF (cross-site request forgery) tokens, session keys or similar | |
-- dynamic data the server wants included in requests for security or other reasons. | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- For more details, see: http://support.loadimpact.com/knowledgebase/articles/861396-how-to-load-test-an-api | |
-- This script takes a URL as input, and attempts to generate a steady flow | |
-- of 25 requests per second, RPS. Dividing your target RPS by 25 while using this | |
-- script as the user scenario(s), you will know the number of required VUs to | |
-- model in your test configuration. | |
-- What URL are we looking to hit in this test | |
local url = "http://109.228.153.2/style.css" |