[ptt-users] TestMaker Run help
renliang1317
renliang1317 at 163.com
Wed Oct 25 02:32:47 PDT 2006
Hi
junit.framework.AssertionFailedError: Step 1 got response 500 when requesting:
In my memory,the same error appear when I ues testmake.The response value is 500,and that is reason.You should add the value "500" to response value.
step1:Press the menu named "Tools",and press "New Agent".
step2:Select the "Record from a Web-Browser"
step3:Press the button named "Advanced options"
step4:You will see a text edit named "Success responses",you just need add "500" to it.
OK,you can use testmake now.
-----ÔʼÓʼþ-----
·¢¼þÈË:"Kelin"
·¢ËÍʱ¼ä:2006-10-25 10:52:27
ÊÕ¼þÈË:users at lists.pushtotest.com
³ËÍ:(ÎÞ)
Ö÷Ìâ:[ptt-users] TestMaker Run help
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.comHTTPExample: Initializetest: setUptest: runTestRequest 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\</SPAN></SPAN><SPAN style="FONT-FAMILY: courier new,monospace">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/88510939/attachment-0001.htm
More information about the Users
mailing list