Excluding credentials in the script

Document ID : KB000125598
Last Modified Date : 31/01/2019
Show Technical Document Details
Question:
We have created a script using JMETER and enabled the monitoring. In few cases we have created/recorded scripts using credentials.  Do we have any options to bypass the user credentials while enabling the script monitoring?
Answer:
In JMeter scripts, it all depends on the site you are monitoring. For example, if you want your script to go to gmail.com, login and compose an email, then you must send the credentials to login via JMeter itself or use the username and password fields in the Monitor setup. There is no way for JMeter to bypass a login of any type on any site that requires a login to advance to the next step.