Atribute error
- From: gtb <goodTweetieBird@xxxxxxxxxxx>
- Date: 26 Apr 2007 13:52:34 -0700
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()
.
- Follow-Ups:
- Re: Atribute error
- From: Bjoern Schliessmann
- Re: Atribute error
- Prev by Date: Re: My python annoyances so far
- Next by Date: Re: Dedicated CPU core for Python?
- Previous by thread: http pipelining
- Next by thread: Re: Atribute error
- Index(es):
Relevant Pages
|