This OctoPerf tutorial guides you through the following steps:
- Identify a success criteria for the login,
- Use a Regex to extract this success criteria,
- Use a IF logic action to condition the rest of the script to a successful login,
- Validate the Virtual User.
If you want to exercise with this tutorial, here is a JMX export of the resulting virtual user This way you’ll be able to import it in OctoPerf as a JMeter script and compare to what you’ve done. You will also need this CSV file to make it work properly.
More advanced examples of IF conditions are available in our documentation.