← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #657975]: keyError

 

Question #657975 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/657975

Description changed to:
getting key error :

I have 3 python classes regionDictionary.py , Test2.py , Test3.py

regionDictionary.py - contains different region dictionaries added like
below

        self.addReg("normalScreen",Region(0,0,screenWidth,screenHeight))

and getter and setter method to retrieve the dictionary value

def addReg(self, name, reg):
		self.regDict[name] = reg
		
	def getReg(self, name):
		return self.regDict[name]


Test2.py  - contains  

reg = regionDictionary(1920,1080)
self.reg.getReg("normalScreen")


Test3.py i have the test cases and i ran using below suggested framework

I ran my code using (http://blog.mykhailo.com/2011/02/how-to-sikuli-and-robot-framework.html)  Robot Framework
 
 C:\work\> jybottest.bat robot_suite\verify_operations.txt


im getting error as KeyError: 'normalScreen' in log.html 


can you please help me in resolving this 

when i run through jybot.test the dictionaries of  the parent class will
not be loaded ?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.