← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #187287]: Unit-test run using pyunit

 

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

    Status: Answered => Open

Prateek Sahu is still having a problem:
when I am running my test Suite from command prompt following error is coming. I am not getting this error
What I should do to resolve this


D:\EBA\Scripts\eBA-POC\TestScripts>jython -m unittest TestSuite_Authorization_Modification.py
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\jython2.5.2\Lib\runpy.py", line 94, in run_module
    return _run_module_code(code, init_globals, run_name,
  File "C:\jython2.5.2\Lib\runpy.py", line 51, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "C:\jython2.5.2\Lib\runpy.py", line 32, in _run_code
    exec code in run_globals
  File "C:\jython2.5.2\Lib\unittest.py", line 816, in <module>
    main(module=None)
  File "C:\jython2.5.2\Lib\unittest.py", line 767, in __init__
    self.parseArgs(argv)
  File "C:\jython2.5.2\Lib\unittest.py", line 794, in parseArgs
    self.createTests()
  File "C:\jython2.5.2\Lib\unittest.py", line 794, in parseArgs
    self.createTests()
  File "C:\jython2.5.2\Lib\unittest.py", line 799, in createTests
    self.test = self.testLoader.loadTestsFromNames(self.testNames,
  File "C:\jython2.5.2\Lib\unittest.py", line 565, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "C:\jython2.5.2\Lib\unittest.py", line 541, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'py'

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.