[Sikuli-driver] [Question #270334]: Sikuli doesn't kill the CMD process in Windows after running the script is done
New question #270334 on Sikuli: https://answers.launchpad.net/sikuli/+question/270334 Hi, I run a sikuli test from a .bat file, which looks like this: C:\Documents and Settings\Administrator\Desktop\sikuli\runIDE.cmd -r C:\Documents and Settings\Administrator\Desktop\SikuliTests\MySikuliScript.sikuli and everything works nicely, the script is run, sikuli does the tests etc, and the command prompt is closed after the tests are done. However, the window is just closed, but the process is still active. Is there a way to tell sikuli to actually kill the process when it's done? Not just 'close' the cmd window? I'm very dependent on this, as I do some variable resetting in my C# code: var process = Process.Start(runTests.bat) and I plug in into process.Exited event provided by .NET, to do some variable resetting. So is there a way to achieve this? As a follow up question, if I start sikuli from C# code, like above, is there any way to know when the sikuli will finish its tests, aside from events provided by Process class in .NET ? I know sikuli runner and the C# code in this case are totally independent, but still, is there a way to achieve this? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ 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 #269702]: Sikuli not pausing the script
New question #269702 on Sikuli: https://answers.launchpad.net/sikuli/+question/269702 I want to pause the execution of the script for 2 minutes: suite=unittest.TestLoader().loadTestsFromTestCase(Test1) suite.addTests(unittest.TestLoader().loadTestsFromTestCase(Test2)) result = XMLTestRunner(file(unittest xml result.xml, w)).run(suite) in the beginning of the test runner file I try both: import time time.sleep(120) and wait(120). Neither works, tests still start running -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ 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 #269560]: Sikuli test succeeding even though it should fail
New question #269560 on Sikuli: https://answers.launchpad.net/sikuli/+question/269560 Hi, I've set up a few tests. However, I intentionally set up one test to fail. When I run all those test an xml report gets created. What is funny, all 6 tests pass, despite the 6th one should fail, since it's asserting for a non existent image. class TestRiggedToFail(unittest.TestCase): def testFail(self): wait(2) assert exists(1437632092515.png) 1437632092515.png won't be seen on the screen, as it is a photo from the internet. How and why does this assert pass, and in my report all tests are successful? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ 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 #269439]: Importing Custom sikuli module - [error] NameError ( global name 'click' is not defined )
New question #269439 on Sikuli: https://answers.launchpad.net/sikuli/+question/269439 I have a utility sikuli module that I would like to reuse throughout other sikuli modules my util file looks like: from sikuli import * def helperMethod1(): ... def helperMethod2(): ... So it has from sikuli import * at the beginning. And where I consume it, it's loaded like: utilFunctionsPath = 'MyDir\UtilFunctions' if not utilFunctionsPath in sys.path: sys.path.append(utilFunctionsPath) import UtilFunctions I tried also with the reload(), and read other people's posts too, but the problem persists no matter what. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ 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