Re: [Sikuli-driver] [Question #697339]: Sikuli 2.0.5 - runScript('powershell get-process') return error

2021-06-01 Thread TestMechanic
Question #697339 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/697339

Status: Answered => Solved

TestMechanic confirmed that the question is solved:
I got the example from the docs

Example for PowerShell:

returnCode = runScript('powershell get-process')

So maybe it is a documentation bug

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1919163] Re: [2.0.5] JDBC on windows doesn't work

2021-06-01 Thread mpayne
Hello, I am having a similar issue with 2.0.5, would it be possible to
try the 2.0.5 build without Jython as well?

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to SikuliX.
https://bugs.launchpad.net/bugs/1919163

Title:
  [2.0.5] JDBC on windows doesn't work

Status in SikuliX:
  New

Bug description:
  Using sqlite-jdbc-3.34.0.jar in 2.0.5 results in the following error in the 
line:
  from com.ziclix.python.sql import zxJDBC

  
  .\sikulix\scripts\sqlite.sikuli\sqlite.py:64: RuntimeWarning: 
PyTableCode.call caught a Throwable that is not an Exception:
  java.lang.ExceptionInInitializerError
  Jython internals might be in a bad state now that can cause deadlocks later 
on.
  See http://bugs.jython.org/issue2536 for details.
from com.ziclix.python.sql import zxJDBC
  [error] script [ cgssqlite ] stopped with error in line 64
  [error] java.lang.ExceptionInInitializerError ( 
java.lang.ExceptionInInitializerError )
  [error] --- Traceback --- error source first
  line: module ( function ) statement 
  64: main (   ) from com.ziclix.python.sql import zxJDBC
  [error] --- Traceback --- end --

  It works fine in 2.0.4.
  Win 10 64 bit.
  sqlite-jdbc-3.34.0.jar is in the folder 
.AppData\Roaming\Sikulix\Extensions

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1919163/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #697339]: Sikuli 2.0.5 - runScript('powershell get-process') return error

2021-06-01 Thread RaiMan
Question #697339 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/697339

RaiMan posted a new comment:
@masuo 
2FAST4ME :-))) all the best RaiMan

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #697339]: Sikuli 2.0.5 - runScript('powershell get-process') return error

2021-06-01 Thread RaiMan
Question #697339 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/697339

Status: Open => Answered

RaiMan proposed the following answer:
looking into the implementation, it must be so:

runScript('powershell\n get-process')

or

script = """powershell
get-process
"""
runscript(script)

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #697339]: Sikuli 2.0.5 - runScript('powershell get-process') return error

2021-06-01 Thread masuo
Question #697339 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/697339

masuo posted a new comment:
@TestMechanic
I have got same error.
And another way as follow work fine.

cmd = """
powershell
get-process
"""
runScript(cmd)
bb = RunTime.get().getLastCommandResult()
print bb

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #697208]: I need to show a permanent "log" windows on top

2021-06-01 Thread TestMechanic
Question #697208 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/697208

TestMechanic posted a new comment:
Just my 2 cents: I created a splash screen that sit on top of the screen
and I put there names of my tests or any debug info I want. Also it is
valuable when I am analyzing my test results and watching video test log

Here is the sample of splashscreen:
https://www.screencast.com/t/IB2iKLQ1wl

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #697271]: Release file created with the setLogFile() function

2021-06-01 Thread TestMechanic
Question #697271 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/697271

Status: Open => Answered

TestMechanic proposed the following answer:
You need to use different approach since yours is not technically
correct.

You can just archive file after sikuli script is done. So you can use
shell or batch to do something like this:

sikuli -jar sikukli. -r yourscript
7zip a .
del 

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #697339]: Sikuli 2.0.5 - runScript('powershell get-process') return error

2021-06-01 Thread TestMechanic
New question #697339 on SikuliX:
https://answers.launchpad.net/sikuli/+question/697339

Tested on 2 windows10 machines, powershell 5.1

runScript('powershell get-process')

result in :
[error] Runner: script not found: powershell get-process

Note: that 'powershell get-process' works fine from console and from windows 
run menu

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #696667]: Minimal VM

2021-06-01 Thread TestMechanic
Question #696667 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/696667

TestMechanic proposed the following answer:
You need to provide enough resources for:
-- OS
-- Sikuli (actually java app that are not light one)
-- Application under test - not sure what you are testing but if it is Chrome 
for example it is not light as well

In my experience: I was able to run smoothly tests with 2xCPU and 2GB
ram minimum. Also you can reduce UI resolution to minimal for your AUT.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp