Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
1.7k views
by The go-to Tester (190 points)
retagged by

In JMeter By Record and playback option I perform an Action (i,e) ->  My application -> login -> home page (i just login to my application). process have been recorded

Now if I want to do performance testing so, I increase the number of Threads as 50 with delay of 30 (So for each 30 sec new user will login) and I gave loop count as 2 

(i,e)  50 user's login to my application for every 30 sec this process will run twice . and also I add Listener (View Result in Table and Graph result, summary Report) 

now how to analyze the result? 

I saw the graph result and table view result -> how to identify the performance (By which term I can tell the performance of my application)

1 Answer

1 like 0 dislike
by Expert (748 points)
selected by
 
Best answer
You have to  use co relation because you have increase number of threads and run your jmx file in non gui mode.

Its my suggestion..
by The go-to Tester (190 points)
okay i will try it .
by The go-to Tester (190 points)
using GUI we cant able to see the result ah?
(non GUI mode means command prompt.)
by Expert (748 points)
Apache jmeter in non gui mode:
-n – non-GUI mode – this specifies JMeter is to run in non-GUI mode
-t – JMX file – location of the test plan and the name of JMX file that contains the Test Plan
-l – log file name of JTL file to log sample results to

-n – Non-GUI mode – This specifies JMeter is to run in non-gui mode
-t – Name of JMX file that contains Test Plan
-l – Name of JTL file (JMeter text logs) to capture log results        
-j – Name of Log file to capture execution logs

jmeter -n -t my_test_plan.jmx -l log.jtl
jmeter -n -t my_test_plan.jmx -l TestResultFile.jtl
Run Jmeter in Non-GUI mode through Command Line:

jmeter -n -t YourJmeterTestPlan.jmx -l TestResultFile.jtl  -j LogFile.log
Optional

you have to run in command prompt by follwing this command
by The go-to Tester (190 points)
ohh, Okay I will try it and let you know.
Thank you.
by Expert (748 points)
sure! Please let me know
by The go-to Tester (190 points)
jmx loc = "E:\Abhishek\Performance testing result\abc.jmx"
jtl loc = "E:\Abhishek\Performance testing result\def.jtl"
Jmeter loc = "E:\Abhishek\Performance testing tools\apache-jmeter-3.3\apache-jmeter-3.3\bin"

in cmd i moved to bin loc

1) jmeter -n -t \Abhishek\Performance testing result\abc.jmx  -l \Abhishek\Performance testing result\def.jtl

2) jmeter -n -t abc.jmx -l def.jtl

am getting an error
An error occurred: Unknown arg: testing
errorlevel=1
Press any key to continue . . .

how to resolve this ??
by Master (1.2k points)
@Abhishek, I posted it as a new question for you.

https://softwaretestingboard.com/qna/2738/?vadt=true#axzz53t2jvvnw
by The go-to Tester (190 points)
Okay,
Thank You @Mayur
Do you have any idea about this ?
by Expert (748 points)
1>it seems you have not make testresult file in bin folder
apache jmeter-bin -(TestResult.jtl)
2> if you want log then give as like
jmeter -n -t YourJmeterTestPlan.jmx -l TestResultFile.jtl  -j LogFile.log

Please let me know
by Master (1.2k points)
Hi Bharat,

Thank you for your answer. Is that answer related to the question https://softwaretestingboard.com/qna/2738/?vadt=true#axzz53t2jvvnw,

If so, please post your answer there.

-Mayur
by Expert (748 points)
Yes, it seems like test result file in bin folder is missing
by Master (1.2k points)
Sure Bharat. Thank you. I am just trying to make sure that the Question and Answer site is organized. The organized work helps everyone.

It makes more sense for me to post my solution to a question instead of discussing the same in the comment section. And encourage everyone to do the same. So, the next person can be benefited from the same. That's the ultimate goal of this question and answer site.

Happy testing and contributing.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...