Q. 26 What is the significance of -n, -t, and -l in the JMeter command to run the test in non-GUI mode?
Ans. The command to run JMeter in non-GUI mode is
Ans: Let's consider 'host' is a variable having an application URL defined in the User Defined Variable element. The original value of host can be replaced by ${host} wherever required.
If this variable defined in a property file then it is called by ${__P(host)}.
Q. 28 What are the different non-GUI mode to run JMeter test?
Ans: There is various Non-GUI mode supported by JMeter:
Ans: Sessions and cookies are managed in JMeter by using config elements such as HTTP Cache Manager which provides an option to save the cookie. There is also an option to clear the cookies in every iteration and also allows to add user-defined cookies.
HTTP Cache manager helps to cache the images and .css file. It can also be cleared after each iteration as per the requirement in the load tests and also limits the number of elements which can be stored in the cache.
Q. 30 How database connection can be set-up in JMeter?
Ans: Database connection can be set-up by JDBC default request (Config Element) or JDBC request (Sampler).
Next: JMeter Interview Question #7
Previous: JMeter Interview Question #5
Ans. The command to run JMeter in non-GUI mode is
jmeter -n -t myScript.jmx -l myLog.jtl
where,
-n specifies that JMeter will run in the non-GUI mode
-t for test script file
Q. 27 How to use a parameter in the JMeter script.-l for jtl file having each sample's result
Ans: Let's consider 'host' is a variable having an application URL defined in the User Defined Variable element. The original value of host can be replaced by ${host} wherever required.
If this variable defined in a property file then it is called by ${__P(host)}.
Q. 28 What are the different non-GUI mode to run JMeter test?
Ans: There is various Non-GUI mode supported by JMeter:
a. Command Line
b. ANT Plugin
c. MAVEN Plugin
d. JenkinsQ. 29 How sessions and cookies are managed in JMeter?
Ans: Sessions and cookies are managed in JMeter by using config elements such as HTTP Cache Manager which provides an option to save the cookie. There is also an option to clear the cookies in every iteration and also allows to add user-defined cookies.
HTTP Cache manager helps to cache the images and .css file. It can also be cleared after each iteration as per the requirement in the load tests and also limits the number of elements which can be stored in the cache.
Q. 30 How database connection can be set-up in JMeter?
Ans: Database connection can be set-up by JDBC default request (Config Element) or JDBC request (Sampler).
Next: JMeter Interview Question #7
Previous: JMeter Interview Question #5
No comments:
Post a Comment