sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34579
[Question #271397]: Running sikuli from command line, with xmlrunner
New question #271397 on Sikuli:
https://answers.launchpad.net/sikuli/+question/271397
Hi,
I’m unable to start a sikuli script from command line when I use xmlrunner, due to:
[error] ImportError ( No module named xmlrunner )
Scrip completes when using the IDE. Also, I can run the script from the command line just fine if I use the default textRunneer.
Full output:
PS C:\sikuli> C:\Sikuli\runsikulix.cmd -r C:\Sikuli\scripts\starscope.sikuli
+++ running this Java
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\Sikuli\sikulix.jar -r C:\Sikuli\scripts\starscope.sikuli
[error] script [ C:\Sikuli\scripts\starscope.sikuli ] stopped with error in line 2
[error] ImportError ( No module named xmlrunner )
My code:
import unittest
from xmlrunner import *
class StarscopeSikuli(unittest.TestCase):
@classmethod
def setUpClass(cls):
... test cases removed ...
demo_suite = unittest.TestLoader().loadTestsFromTestCase(StarscopeSikuli)
XMLTestRunner(verbosity=2, output='reports').run(demo_suite)
xmlrunner is currently located in the same folder as the sikuli script, i.e. C:\Sikuli\scripts\starscope.sikuli\
I copied xmlrunner to C:\Sikuli\, as well as Lib and sikulixlibs fodders in AppData, but no luck. Any help would be greatly appreciated. Thanks.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.