Hi all,

Sorry if this has already been posted but I came across a way to generate JMeter test plans from a list of URL's (for example, URL's of a specific format with variable parameters, with the parameters coming from a database query). This would be useful in case you want to create a test which hits a specific url with all possible parameters.

steps:

1. generate a file containing all of the urls using a database dump. example:

select id_number from users

this would return a list like 1,2,3,4,...... up to all the current user id's

(using perl or some other program, take this list of ID's and create a file with the URL for each ID:)

file contents:
http://myhost/user.jsp?id=1
http://myhost/user.jsp?id=2
http://myhost/user.jsp?id=3
...

let's say the file is called urls.txt

2. Start JMeter, create a Thread Group, and then add the HTTP Recording Proxy to the Workbench item. Start the proxy.

3. From the command line, use wget to read in the URL's from the file and request each one through the proxy:

http_proxy=http://127.0.0.1:8080 /usr/bin/wget --proxy -i urls.txt -q -O /dev/null

Then watch as each url is added to the test plan

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to