Posts Tagged ‘xml’

How to install and use Pylot?

Step 1: Download -> Pylot_1.26 from http://www.pylot.org/download.html

Step 2: Download -> python-2.6.2.msi

Step 3: Download -> wxPython2.8-win32-unicode-2.8.10.1-py26.exe

Step 4: Download -> matplotlib-0.98.5.3.win32-py2.6.exe

Step 5: Download -> numpy-1.3.0-win32-superpack-python2.6.exe

Step 6: Download -> pywin32-214.win32-py2.6.exe

Make sure you install in the same order just to avoid any complications

Run the command C:\pylot_1.25>python run.py -x –testcases.xml

from DOS prompt

If you want that in GUI mode then run C:\pylot_1.25>python run.py -x -g –testcases.xml

TIPS:

To run a test case with multiple urls’s you need to to write an xml script with all the url’s inside the script. this would be ok if there are only few url’s that you need to test but for bigger data sets its hard so

run the following script to populate the XML script reading data from a .csv file

print ‘<testcases>’
for data in lines:
print “”"
<case>
<url>http://foo.com/%s</url>
</case>
“”" % data
print ‘</testcases>’

In the DOS command prompt run -> python foo.py > testcases.xml

Powered By Wordpress Tabs Slides

The New Pylot – Open source performance test tool

Pylot is a free open source tool for testing performance and scalability of web services. It runs HTTP load tests, which are useful for capacity planning, benchmarking, analysis, and system tuning.

Pylot generates concurrent load (HTTP Requests), verifies server responses, and produces reports with metrics. Tests suites are executed and monitored from a GUI or shell/console.

You begin by defining your test cases in an XML file. Test cases are where you specify the requests (url, method, body/payload, etc) and verifications. Server responses can be verified by matching content to regular expressions and with HTTP status codes. You can adjust the load settings in the workload controls on the GUI or from the command line before you start a test run (number of agents, request intervals, rampup time, test duration). These settings enable you to model tests based on various load scenarios. At runtime, the cases are loaded and passed to the load generating engine. Agents are dispatched and run concurrently to send HTTP requests to your web service. Real-time stats and error reporting are displayed for monitoring the test as it executes.

Powered By Wordpress Tabs Slides
Return top

INFORMATION

Do not forget to leave a comment if you find the posts useful.