← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #114378]: Sikuli is using a lot of RAM

 

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

belemekadem yassine posted a new comment:
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.