← Back to team overview

sikuli-driver team mailing list archive

[Question #167525]: X-1.0rc2: Sikuli does not release memory up to 1GB after testrun

 

New question #167525 on Sikuli:
https://answers.launchpad.net/sikuli/+question/167525

Hello!
i'm using Sikuli Version X-1.0rc2 on Mac OS X 10.6.6
Once launched, Sikuli use 100-120 Mo of RAM
by execution 300 simple test cases ( 3 test cases repeated 100 times with a "for" loop ), sikuli use more than 500 Mo of RAM (sometimes 900 Mo ) and this RAM space is not released after the execution of these test cases

Is there a way to free the memory after the execution of test cases ?

Here is what my test cases look like:

import unittest
class TestSequenceFunctions(unittest.TestCase):
 def test_001(self):
  appSafari = App("/Applications/Safari.app")
  appSafari.focus()
  click( )
  click( )
  assert(exists( ))

 def test_002(self):
  appSafari = App("/Applications/Safari.app")
  appSafari.focus()
  click( )
  click( )
  assert(exists( ))

 def test_003(self):
  appSafari = App("/Applications/Safari.app")
  appSafari.focus()
  click( )
  click( )
  assert(exists( ))
  click( )
  click( )
  click( )
  click( )
  click( )

suite = unittest.TestLoader().loadTestsFromTestCase(TestSequenceFunctions)
for i in range(100):
 print("test numero: "+ str(i))
 unittest.TextTestRunner(verbosity=2).run(suite)

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