Changes: Polished the startup time performance tests

RevBy:Juha Lintula
pull/1/head
Olli Leppanen 15 years ago
parent 302cbc8da7
commit fe5d753d95

@ -66,6 +66,9 @@ appName=options[:application]
sut = TDriver.sut(:Id=> 'sut_qt_maemo')
appOnTop = sut.application()
# Stop the MProgressIndicator
system("initctl stop xsession/MProgressIndicator")
while appOnTop.attribute('objectName') != 'meegotouchhome'
fullName = appOnTop.attribute('FullName')

@ -93,10 +93,11 @@ class TC_PerformanceTests < Test::Unit::TestCase
system("initctl stop xsession/sysuid")
system("initctl stop xsession/applifed")
system("initctl stop xsession/search")
system("/sbin/initctl restart xsession/mthome")
system("initctl restart xsession/mthome")
system("mv /usr/lib/qt4/plugins/testability/libtestability.so /tmp/.")
sleep(4)
system "pkill MProgressIndicator"
system("initctl stop xsession/MProgressIndicator")
end
@ -134,6 +135,7 @@ class TC_PerformanceTests < Test::Unit::TestCase
else
@pos = `#{GET_COORDINATES_SCRIPT} -a #{@options[:application]}`
puts @pos
sleep (2)
system "/usr/bin/waitloadavg.rb -l 0.3 -p 1.0 -t 120 -d"
@ -151,7 +153,7 @@ class TC_PerformanceTests < Test::Unit::TestCase
# First line tells when the button is released
@start_time = lines[0]
puts "Clicked: #{lines[0]}"
puts "Started: #{lines[0]}"
# Second one when the first pixel has changed its color
@end_time = lines[1]
puts "Pixel changed: #{lines[1]}"

Loading…
Cancel
Save