I'm writing a test script for a web application that relies on cookies for session management. The HTTPRequest handles the cookies brilliantly, as long as I stick to one request object.
The problem is that I can't get my tests to stop recording:
url = "http://site"
request = HTTPRequest(url=url)
...
Test(1, "Login").record(request)
...
Test(2, "Get index page").record(request)
This code works, but the statistics will show twice as many runs for the Login-test. The Test class (http://grinder.sourceforge.net/g3/script-javadoc/index.html) does not define an stopRecording
method.
Implemented work around:
This fixes the statistics without breaking the session with the server.