You can dynamically construct the url in your grinder script. Just use standard python string replacement techniques. Your solution may look something like this:
from net.grinder.script.Grinder import grinder
from net.grinder.script import Test
from net.grinder.plugin.http import HTTPRequest
test1 = Test(1, "Request resource")
request1 = test1.wrap(HTTPRequest())
class TestRunner:
def _get_url(self):
url = ""
# build your url here
# ...
return url
def __call__(self):
result = request1.GET(self._get_url())
Here are some other example scripts that might be helpful:
http://grinder.sourceforge.net/g3/script-gallery.html
You could read the URLs in from a data file, or build them on the fly. The Grinder API gives you access to the thread number and iteration, potentially useful to your task.