[ptt-users] TestMaker Run help

Kelin zzf818 at gmail.com
Tue Oct 24 19:52:27 PDT 2006


Hi,

I'm a new learner of TestMaker. I just installed TestMaker and want to run
the example agents. When I run  the HTTP_Example.py on my computer, it shows
the following error message. I really confused about it. Could anyone can
help me?

The error message:

=======================================================
HTTPExample: Functional test of a Web application
=======================================================
Test created by TestMaker from http://www.pushtotest.com


HTTPExample: Initialize
test: setUp
test: runTest
Request step: 1, http://examples.pushtotest.com/responder/htmlresponder
------------------------------
Agent stopped.
------------------------------
Agent error:
Traceback (innermost last):
  File "<string>", line 125, in ?
  File "<string>", line 67, in runTest
  File "C:\Documents and
Settings\zzf\desktop\TestMaker\.\lib\.\agentbase.py", line 178, in get
  File "C:\Documents and Settings\zzf\desktop\TestMaker\.\lib\.\agentbase.py",
line 214, in connect
junit.framework.AssertionFailedError: Step 1 got response 500 when
requesting: 'http://examples.pushtotest.com/responder/htmlresponder

    at junit.framework.Assert.fail(Assert.java:51)

    at junit.framework.Assert.assert(Assert.java:20)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:585)

    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
)

    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
)

    at org.python.core.PyObject.__call__(PyObject.java:283)

    at org.python.core.PyObject.invoke(PyObject.java:2055)

    at agentbase$py.connect$6(C:\Documents and
Settings\zzf\desktop\TestMaker\.\lib\.\agentbase.py:214)

    at agentbase$py.call_function(C:\Documents and
Settings\zzf\desktop\TestMaker\.\lib\.\agentbase.py)

    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.PyInstance.invoke(PyInstance.java)

    at agentbase$py.get$4(C:\Documents and
Settings\zzf\desktop\TestMaker\.\lib\.\agentbase.py:178)

    at agentbase$py.call_function(C:\Documents and Settings\zzf\desktop
\TestMaker\.\lib\.\agentbase.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.PyInstance.invoke(PyInstance.java)

    at org.python.pycode._pyx8.runTest$4(<string>:67)

    at org.python.pycode._pyx8.call_function(<string>)

    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.PyInstance.invoke(PyInstance.java)

    at org.python.pycode._pyx8.f$0(<string>:125)

    at org.python.pycode._pyx8.call_function(<string>)

    at org.python.core.PyTableCode.call(PyTableCode.java)

    at org.python.core.PyCode.call(PyCode.java)

    at org.python.core.Py.runCode(Py.java)

    at org.python.core.Py.exec(Py.java)

    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)

    at com.pushtotest.testmaker.gui.AgentRunner.run(Unknown Source)


junit.framework.AssertionFailedError: junit.framework.AssertionFailedError:
Step 1 got response 500 when requesting: '
http://examples.pushtotest.com/responder/htmlresponder


And another questions:, I don't know what does the following sentences mean:

reload(agentbase)
class HTTPExample( agentbase.agentbase,  junit.framework.TestCase ):

I just don't understand its syntax.
-- 
Best Regards!

Kelin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cake.pushtotest.com/pipermail/users/attachments/20061025/b53b7b61/attachment.htm


More information about the Users mailing list