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 .CompactGenerat or]
#Test1.py
from CompactTest import CompactTest
from newLogon import newLogon
class Test1(CompactTe st):
# 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 .CompactGenerat or]
from CompactTest import CompactTest
class newLogon(Compac tTest):
# 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('newLo gon').Run()
Comment