Hi,
I am new to jMeter. I have read some info in the foruim and downloaded the jMeter scripts from the exiting Moodle forum:
https://moodle.org/mod/forum/discuss.php?d=119443
Moodle-JMeter-LoadTest.zip
I have modified the scripts and tested it internally on my moodle testing server. To start, I try three testings:
1. goto login
1. view user profile, the result always redirect back to http://localhost/login/index.php.
2. goto course, the result always redirect to enrol page
The login page is always redirect to: http://192.168.3.1/moodle/login/index.php
does this mean the login is failed?
The goto course always redirect the request as below:
<div style="margin-top: 3em; margin-left:auto; margin-right:auto; text-align:center;">This page should automatically redirect. If nothing is happening please use the continue link below.<br/>
So, I tested in Moodle demo site to make sure my jmeter script correct, by changing the parameter. The login is fine without any redirect, but surprisingly it is giving me the same result for view course and view profile.
When I check under "Response data" tab for "Goto Course", it gives this response.
<title>Redirect</title>
</head><body><div style="margin-top: 3em; margin-left:auto; margin-right:auto; text-align:center;">This page should automatically redirect. If nothing is happening please use the continue link below.<br/><a href="http://demo.moodle.net/enrol/index.php?id=625">Continue</a></div></body></html>
I though, it should return the view course page, instead of redirect to enrollent page.
What should I check for the Assertion?
I have attached the modified jmeter script which pointed to the moodle demo site. My moodle is running internally and not accessible from outsite.
Any help are most appreciate.
Thanks,
YL