sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12477
Re: [Question #205117]: multiple scripts --- from sikuli import * needed
Question #205117 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/205117
Status: Answered => Open
arun.a is still having a problem:
i modified the script
new1
------
from sikuli import *
#import unittest
#import HTMLTestRunner
class Channel(unittest.TestCase):
def test0(self):
popup ("Good morning")
dragDrop("1343374822138.png", "1343283210216.png")
click("1343283226606.png")
App.open("C:\Program Files\App.exe")
wait(1)
assert exists("OpticalChann.png")
test script
-------------
from sikuli import *
myScriptPath = "C:\\Documents and Settings\\USER\\Desktop\\new1.sikuli"
import new1 import *
from unittest import *
from HTMLTestRunner import*
#importPath = r"C:\\Documents and Settings\\USER\\Desktop\\new1.sikuli"
#myPath ="C:\\Documents and Settings\\USER\\Desktop"
suite = unittest.TestLoader().loadTestsFromTestCase(Channel)
#unittest.TextTestRunner(verbosity=2).run(suite)
outfile = open("C:\Report.html", "wb")
runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title='Xbox Test Report', description='This is a demo' )
runner.run(suite)
outfile.close()
Log
-----
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[error] Stopped
[error] An error occurs at line 3
[error] Error message: SyntaxError: ("mismatched input 'import' expecting NEWLINE", ('C:\\DOCUME~1\\USER\\LOCALS~1\\Temp\\sikuli-tmp6031911783683472720.py', 3, 16, 'import dlmsnew1 import * \n'))
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.