Calum, Kristian and everyone else:
Thanks for the latest recommendations...
I put this:
response=tests[0].GET('http://hostname:81/')
print response.text
...in place, and it did output the entire response (which contained the HTML of the entire page, including the sessionID as part of a hypertext reference anchor which links to the next page of my test) to the console.
However, when I attempt to store this value in a String so that I can get what I'm looking for using either x = response.text OR x = response.getText(), it only seems to bring in the beginning of the response into the variable, not the whole thing, so I'm assuming there's a limit to what can be brought into a String variable. Any thoughts on how to get to the sessionID in this response?
In addition, I'm having trouble with a lot of the String functions (e.g., substring, indexOf, lastIndexOf, etc...). These are such simple functions, basic java, and I've even ensured that the functions will succeed by setting simple String variable equal to values like "ABC" and "123" just to get some sort of success...
Here is an example of the error I'm seeing:
11/30/05 12:20:15 PM (thread 0 run 0): Aborted run, script threw class org.python.core.PyException: null
Traceback (innermost last):
File "D:\Grinder\projects\grinder_3_112905_DynamicsTest\httpscript.py", line 24, in __call__
AttributeError: 'string' object has no attribute 'substring'
at org.python.core.Py.AttributeError(Py.java)
at org.python.core.PyObject.__getattr__(PyObject.java)
at org.python.core.PyObject.invoke(PyObject.java)
at org.python.pycode._pyx0.__call__$2(D:\Grinder\projects\grinder_3_112905_DynamicsTest\httpscript.py:24)
at org.python.pycode._pyx0.call_function(D:\Grinder\projects\grinder_3_112905_DynamicsTest\httpscript.py)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyFunction.__call__(PyFunction.java)
at org.python.core.PyMethod.__call__(PyMethod.java)
at org.python.core.PyObject.invoke(PyObject.java)
at org.python.core.PyInstance.__call__(PyInstance.java)
at org.python.core.PyObject.__call__(PyObject.java)
at net.grinder.engine.process.JythonScript$JythonRunnable.run(JythonScript.java:144)
at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:128)
at java.lang.Thread.run(Thread.java:534)
Any help would be appreciated, and thanks so much for everything so far...
Sincerely,
Anthony