New question #673141 on Sikuli:
https://answers.launchpad.net/sikuli/+question/673141
I am new to sikuli but managed to write some scripts (that would run well in
sikuli IDE). Then I took the next step and created a detailed framework to
test my desktop based application. But I am facing errors when I try to run my
test script.
FYI, I am using sikuli with python along with HTMLTestRunner for reporting.
Below is directory structure for my folder SikuliFramework_PRE2019
BaselineImages (contains all my baseline images to be used in test cases)
Output (HTMLTestRunner creates html output file in this directory)
TestData (contains excel which would determine which test I want to run)
TestDriver (folder having below scripts)
HTMLTestRunner.py (this is RaiMan's test reporting script
available on net)
TestDriver.py (my driver script)
TestScripts
Effects.sikuli
Effects.py (my test script)
Inside my driver script TestDriver.py, I am trying to add Effects class in test
suite by writing below line:
self.suite = unittest.TestSuite()
self.suite.addTest(Effects('Effects'))
But it shows error on running:
ERROR: test_main (__main__.Test_HTMLTestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"c:\Users\nbhushan\Desktop\SikuliFramework_PRE2019\TestDriver\TestDriver.py",
line 43, in test_main
self.suite.addTest(Effects('Effects'))
NameError: global name 'Effects' is not defined
----------------------------------------------------------------------
I understand that my directory structure is the problem here but I want to keep
it this way. It appears that there is some import error. Please suggest
solution to this problem.
PS. I am also unable to do 'from sikuli import *'
On doing pip install sikuli on command line, it says 'Exception: Unable to
determine JRE_HOME'
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp