Hi
 
I just installed maxq and wanted to test a DSL router's login web page.  I use a sniffer to get the realm information.  I know the correct username and password.  When I ran the script below, the sniffer shows no Based64 string (username and password stuff) sent to the router.  Can some one help point out a solution?
 
Thank you
 
Steve
 
===================== Test script ===================================
 
# imports
 
from java.util import HashMap
from com.bitmechanic.maxq import HttpTestCase, EditorPane
 
from junit.textui import TestRunner
 
from java.lang import *
 
from java.io import *
 
from java.util import *
 
from HTTPClient import *
 
 
 

# definition of test class
 
class MaxQTest(HttpTestCase):
 
    def __init__(self):
 
        HttpTestCase.__init__(self, "")
 
 
 
    def runTest(self):
 

        print "Testing URL: %s" % self.replaceURL('''http://10.3.52.69/''')
        self.get("
http://10.3.52.69/")
        print "Response code: %s" % self.getResponse().getStatusCode()
        self.assertEquals(200, self.getResponse().getStatusCode())
 
        print "Testing URL: %s" % self.replaceURL('''http://10.3.52.69/SmartDevice''')
        self.get("
http://10.3.52.69/SmartDevice")
        print "Response code: %s" % self.getResponse().getStatusCode()
        self.assertEquals(401, self.getResponse().getStatusCode())
 
 AuthorizationInfo.addBasicAuthorization("http://10.3.52.69/",80,"NotMyRealm-3000","admin","admin")
        print "Testing URL: %s" % self.replaceURL('''http://10.3.52.69/SmartDevice''')
        self.get("
http://10.3.52.69/SmartDevice")
        print "Response code: %s" % self.getResponse().getStatusCode()
        self.assertEquals(200, self.getResponse().getStatusCode())
 
        print "Testing URL: %s" % self.replaceURL('''http://10.3.52.69/SmartDevice/MyAccountConfirm''')
        self.get("
http://10.3.52.69/SmartDevice/MyAccountConfirm")
        print "Response code: %s" % self.getResponse().getStatusCode()
        self.assertEquals(200, self.getResponse().getStatusCode())
        print "Logging in user"
      
 
 
 

##########################################
 
 
 
# Code to load and run the test
 
test = MaxQTest()
 
test.runTest()
 
 
===================== Test log ===================================

Testing URL: http://10.3.52.69/
 
Response code: 200
 
Testing URL: http://10.3.52.69/SmartDevice
 
Response code: 401
 
Testing URL: http://10.3.52.69/SmartDevice
 
Response code: 401
 
Traceback (innermost last):
 
  File "<string>", line 46, in ?
 
  File "<string>", line 32, in runTest
 
junit.framework.AssertionFailedError: expected:<200> but was:<401>
 

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

 at junit.framework.Assert.failNotEquals(Assert.java:234)
 

 at junit.framework.Assert.assertEquals(Assert.java:68)
 

 at junit.framework.Assert.assertEquals(Assert.java:121)
 

 at junit.framework.Assert.assertEquals(Assert.java:127)
 

 at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
 

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

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

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

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

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

 at org.python.core.PyInstance.invoke(PyInstance.java)
 

 at org.python.pycode._pyx28.runTest$3(<string>:32)
 

 at org.python.pycode._pyx28.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._pyx28.f$0(<string>:46)
 

 at org.python.pycode._pyx28.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.bitmechanic.maxq.RunTestDialog.run(RunTestDialog.java:95)
 

 at java.lang.Thread.run(Thread.java:534)
 
 
 

junit.framework.AssertionFailedError: junit.framework.AssertionFailedError: expected:<200> but was:<401>
 
 
 
 at org.python.core.Py.JavaError(Py.java)
 
 at org.python.core.Py.JavaError(Py.java)
 
 at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
 
 at org.python.core.PyMethod.__call__(PyMethod.java)
 
 at org.python.core.PyObject.__call__(PyObject.java)
 
 at org.python.core.PyInstance.invoke(PyInstance.java)
 
 at org.python.pycode._pyx28.runTest$3(<string>:32)
 
 at org.python.pycode._pyx28.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._pyx28.f$0(<string>:46)
 
 at org.python.pycode._pyx28.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.bitmechanic.maxq.RunTestDialog.run(RunTestDialog.java:95)
 
 at java.lang.Thread.run(Thread.java:534)