Login | Register
My pages Projects Community openCollabNet

Discussions > users > I have trouble with running scripts

maxq
Discussion topic

Back to topic list

I have trouble with running scripts

Author Minh Nguyet Nguyen <kigetsu at gmail dot com>
Full name Minh Nguyet Nguyen <kigetsu at gmail dot com>
Date 2007-04-09 19:47:20 PDT
Message Hi,
I'm newbie of using maxq, so I hope people can help me this. After recorded
test, i try to run a simple script, it leads to this error:
--------------------​--------------------​--------------------​--------
Test started
Testing URL:
http://192.168.1.34/​grid/index.php?login​_username=tester.adm​in&login_passwor​d=&set_TO_authen​ticated=Login&ne​wlang=english
Response code: 200
Testing URL:
http://sb.google.com​/safebrowsing/update​?client=Firefox2.0​&mozver=1.8.1-0000​000000&version=g​oog-white-domain:1:2​0,goog-white-url:1:3​71,goog-black-url:1:​9784,goog-black-ench​ash:1:-1
Response code: 200
Testing URL:
http://192.168.1.34/​grid/index.php?i_cid​=06785c8caae55d58416​20404069c9713
Response code: 200
Testing URL:
http://192.168.1.34/​grid/index.php?i_cid​=df95e21c7c7cfff7846​a83e385b4a257
Response code: 200
Testing URL:
http://192.168.1.34/​grid/index.php?i_cid​=e4d97ae450fcbeba416​579b6a2839c4f
Response code: 200
Traceback (innermost last):
  File "z_in_out.py", line 86, in ?
junit.framework.Asse​rtionFailedError: Assert number 5 failed expected:<302>
but was:<200>
        at junit.framework.Asse​rt.fail(Assert.java:​47)
        at junit.framework.Asse​rt.failNotEquals(Ass​ert.java:282)
        at junit.framework.Asse​rt.assertEquals(Asse​rt.java:64)
        at junit.framework.Asse​rt.assertEquals(Asse​rt.java:136)
        at sun.reflect.NativeMe​thodAccessorImpl.inv​oke0(Native Method)
        at sun.reflect.NativeMe​thodAccessorImpl.inv​oke(Unknown Source)
        at sun.reflect.Delegati​ngMethodAccessorImpl​.invoke(Unknown Source)
        at java.lang.reflect.Me​thod.invoke(Unknown Source)
        at org.python.core.PyRe​flectedFunction.__ca​ll__(
PyReflectedFunction.java)
        at org.python.core.PyMe​thod.__call__(PyMeth​od.java)
        at org.python.core.PyOb​ject.__call__(PyObje​ct.java)
        at org.python.core.PyOb​ject.invoke(PyObject​.java)
        at org.python.pycode._p​yx0.runTest$2(z_in_​out.py:67)
        at org.python.pycode._p​yx0.call_function(z_​in_out.py)
        at org.python.core.PyTa​bleCode.call(PyTable​Code.java)
        at org.python.core.PyTa​bleCode.call(PyTable​Code.java)
        at org.python.core.PyTa​bleCode.call(PyTable​Code.java)
        at org.python.core.PyFu​nction.__call__(PyFu​nction.java)
        at org.python.core.PyMe​thod.__call__(PyMeth​od.java)
        at org.python.core.PyOb​ject.__call__(PyObje​ct.java)
        at org.python.core.PyOb​ject._jcallexc(PyObj​ect.java)
        at org.python.core.PyOb​ject._jcall(PyObject​.java)
        at org.python.proxies.m​ain$z_in_out$1.run​Test(Unknown Source)
        at com.bitmechanic.maxq​.HttpTestCase.Run(Ht​tpTestCase.java:102)​
        at sun.reflect.NativeMe​thodAccessorImpl.inv​oke0(Native Method)
        at sun.reflect.NativeMe​thodAccessorImpl.inv​oke(Unknown Source)
        at sun.reflect.Delegati​ngMethodAccessorImpl​.invoke(Unknown Source)
        at java.lang.reflect.Me​thod.invoke(Unknown Source)
        at org.python.core.PyRe​flectedFunction.__ca​ll__(
PyReflectedFunction.java)
        at org.python.core.PyMe​thod.__call__(PyMeth​od.java)
        at org.python.core.PyOb​ject.__call__(PyObje​ct.java)
        at org.python.core.PyIn​stance.invoke(PyInst​ance.java)
        at org.python.pycode._p​yx0.f$0(z_in_out.py​:86)
        at org.python.pycode._p​yx0.call_function(z_​in_out.py)
        at org.python.core.PyTa​bleCode.call(PyTable​Code.java)
        at org.python.core.PyCo​de.call(PyCode.java)​
        at org.python.core.Py.r​unCode(Py.java)
        at org.python.core.__bu​iltin__.execfile_fla​gs(__builtin__.java)​
        at org.python.util.Pyth​onInterpreter.execfi​le(PythonInterpreter​.java
)
        at com.bitmechanic.maxq​.Main.runTests(Main.​java:211)
        at com.bitmechanic.maxq​.Main.main(Main.java​:143)

junit.framework.Asse​rtionFailedError: junit.framework.Asse​rtionFailedError:
Assert number 5 failed expected:<302> but was:<200>
--------------------​--------------------​--------------------​-

My java installed is Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_10-b03). I configure proxy as localhost:8090. I remember run some
playback successfully before, but don't know why it doesn't work anymore.
Please some one help me this? Thank you in advance.


Rrgs. Nguyet
Attachments

« Previous message in topic | 1 of 9 | Next message in topic »

Messages

Show all messages in topic

I have trouble with running scripts Minh Nguyet Nguyen <kigetsu at gmail dot com> Minh Nguyet Nguyen <kigetsu at gmail dot com> 2007-04-09 19:47:20 PDT
     Re: [maxq-users] I have trouble with running scripts oliverbock Oliver Bock 2007-04-09 19:54:37 PDT
         Re: [maxq-users] I have trouble with running scripts Minh Nguyet Nguyen <kigetsu at gmail dot com> Minh Nguyet Nguyen <kigetsu at gmail dot com> 2007-04-09 21:08:42 PDT
             Re: [maxq-users] I have trouble with running scripts oliverbock Oliver Bock 2007-04-09 21:18:51 PDT
                 Re: [maxq-users] I have trouble with running scripts Minh Nguyet Nguyen <kigetsu at gmail dot com> Minh Nguyet Nguyen <kigetsu at gmail dot com> 2007-04-09 21:52:23 PDT
                     Re: [maxq-users] I have trouble with running scripts oliverbock Oliver Bock 2007-04-09 22:20:55 PDT
                         Re: [maxq-users] I have trouble with running scripts Minh Nguyet Nguyen <kigetsu at gmail dot com> Minh Nguyet Nguyen <kigetsu at gmail dot com> 2007-04-10 00:18:18 PDT
                             Re: [maxq-users] I have trouble with running scripts oliverbock Oliver Bock 2007-04-10 00:19:54 PDT
                                 Re: [maxq-users] I have trouble with running scripts Minh Nguyet Nguyen <kigetsu at gmail dot com> Minh Nguyet Nguyen <kigetsu at gmail dot com> 2007-04-10 00:39:17 PDT
Messages per page: