In our quest to build a performance testing solution in JMeter for PeopleSoft, we have completed all the preliminary setup to initiate the performance testing. In this post, we will see how to record the script in PeopleSoft and test the recording script.
The recording procedure logs into the PeopleSoft environment, enter some values in the test page, click on submit and logout from the portal.For our testing purposes, we will enter "123" in the test page field that was built as a part of part1.
Open the web browser and run these steps once. Note that the proxy settings of the web server should point to the one as configured in Part3. Make sure that the proxy is turned on. (start button against the proxy object should be clicked). The recorded script gets reflected on the JMeter Menu item.Once we have recorded the script, it is required to attempt a playback on the script to see if everything works fine.To do this, Select Run and click on Start.If you have followed the steps as outlined here, the “Start” would have replayed the recording exactly once. This would have resulted in one row being inserted into our table. A sample log screenshot is provided below:(This log could be different depending on your environment)
Label | # Samples | Average | Median | 90% Line | Min | Max | Error % | Throughput | KB/sec |
/_e/1/ethofy/_images/NewBannerPromotionSpot.gif | 12 | 21040 | 21019 | 21195 | 20909 | 21223 | 1 | 0.042986871 | 0.061794 |
/psp/PSFT/?cmd=login&languageCd=ENG | 1 | 611 | 611 | 611 | 611 | 611 | 0 | 1.636661211 | 114.1363 |
/cs/PSFT/cache/PT_TAB2LAX4A598C_1.gif | 1 | 72 | 72 | 72 | 72 | 72 | 0 | 13.88888889 | 0.949436 |
…. | … | … | … | … | … | .. | .. | .. | .. |
TOTAL | 70 | 3913 | 266 | 21009 | 6 | 21223 | 0.171429 | 0.250756748 | 2.196161 |
Increasing the Number of threads (users) under thread group properties to 5 would result in 5 rows getting inserted into our table. (the script is played five times).This is also evident from the PSADMIN client status lookup
PSADMIN client status during playback |
And as expected, we got five more new rows inserted into our test table.
Setting the number of threads to 5 and loop count to 2 would result in 10 rows being inserted into the table. All the while, we have been inserting the same value “123” over and again into the table. In the upcoming post, let us figure a way out to parametrize this value.
No comments:
Post a Comment