Atribute error

gtb goodTweetieBird at hotmail.com
Thu Apr 26 16:52:34 EDT 2007



In file Test1.py below I get a attribute error on the line
"self.logon()". It worked earlier when Test1 was derived from class
newLogon but that does not seem logical to me. Any suggestions?

Thanks,

john

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#File Test1.py

# Generated by MaxQ [com.bitmechanic.maxq.generator.CompactGenerator]
#Test1.py

from CompactTest import CompactTest
from newLogon import newLogon

class Test1(CompactTest):
    # Recorded test actions.
    def runTest(self):
        self.msg('Test started')

	self.logon()

    # ^^^ Insert new recordings here.  (Do not remove this line.)


# Code to load and run the test
if __name__ == 'main':
    Test1('Test1').Run()


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#File newLogon.py
# Generated by MaxQ [com.bitmechanic.maxq.generator.CompactGenerator]
from CompactTest import CompactTest

class newLogon(CompactTest):
    # Recorded test actions.
    def logon(self):
        self.msg('Test started')


    # ^^^ Insert new recordings here.  (Do not remove this line.)


# Code to load and run the test
if __name__ == 'main':
    newLogon('newLogon').Run()




More information about the Python-list mailing list