<casename="Perf-Test-Command-launcher"type="Performance"description="Measure startup time of the application using launcher"timeout="500"level="System"insignificant="true">
<casename="Perf-Test-Command-launcher"type="Performance"description="Measure startup time of the application using launcher"timeout="500"level="System"insignificant="false">
<casename="Perf-Test-Grid-launcher"type="Performance"description="Measure startup time of the application using launcher"timeout="840"level="System"insignificant="true">
<casename="Perf-Test-Grid-launcher"type="Performance"description="Measure startup time of the application using launcher"timeout="840"level="System"insignificant="false">
<casename="Perf-Test-Command-QML-launcher"type="Performance"description="Measure startup time of the QML application using launcher"timeout="500"level="System"insignificant="true">
<casename="Perf-Test-Command-QML-launcher"type="Performance"description="Measure startup time of the QML application using launcher"timeout="500"level="System"insignificant="false">
<casename="Perf-Test-Grid-QML-launcher"type="Performance"description="Measure startup time of the QML application using launcher"timeout="840"level="System"insignificant="true">
<stepexpected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -a fala_qml_wl -b fala_qml_wl -s 750 -f "/tmp/fala_qml_wl.log" > /tmp/perf_grid_qml_with_launcher.txt</step>
<casename="Perf-Test-Grid-QML-launcher"type="Performance"description="Measure startup time of the QML application using launcher"timeout="840"level="System"insignificant="false">
<stepexpected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -a fala_qml_wl -b fala_qml_wl -s 750 -m 150 -f "/tmp/fala_qml_wl.log" > /tmp/perf_grid_qml_with_launcher.txt</step>
<casename="Perf-Test-Command-plain"type="Performance"description="Measure startup time of the application without launcher"timeout="500"level="System"insignificant="true">
<casename="Perf-Test-Command-plain"type="Performance"description="Measure startup time of the application without launcher"timeout="500"level="System"insignificant="false">
<casename="Perf-Test-Command-QML-plain"type="Performance"description="Measure startup time of the qml application without launcher"timeout="500"level="System"insignificant="true">
<casename="Perf-Test-Command-QML-plain"type="Performance"description="Measure startup time of the qml application without launcher"timeout="500"level="System"insignificant="false">
<stepexpected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -a fala_wol -b "fala_wol" -f "/tmp/fala_wol.log" > /tmp/perf_grid_without_launcher.txt</step>
</case>
<casename="Perf-Test-Grid-QML-plain"type="Performance"description="Measure startup time of the qml application without launcher"timeout="840"level="System"insignificant="true">
<casename="Perf-Test-Grid-QML-plain"type="Performance"description="Measure startup time of the qml application without launcher"timeout="840"level="System"insignificant="false">
<stepexpected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -a fala_qml_wol -b fala_qml_wol -f "/tmp/fala_qml_wol.log" > /tmp/perf_grid_qml_without_launcher.txt</step>
@ -80,6 +80,12 @@ class TC_PerformanceTests < Test::Unit::TestCase
print_debug("The Startup limit is : #{options[:startup]}")
end
options[:minstartup]=nil
opts.on('-m','--minstartup MILLISECONDS','Time limit in milliseconds. Slower startup will make test to fail.')do|milliseconds|
options[:minstartup]=milliseconds.to_i
print_debug("The Minimum Startup limit is : #{options[:minstartup]}")
end
options[:appCache]=nil
opts.on('-t','--appCache MILLISECONDS','Time limit in milliseconds for application from cache.')do|milliseconds|
options[:appCache]=milliseconds.to_i
@ -165,6 +171,10 @@ class TC_PerformanceTests < Test::Unit::TestCase
system("initctl restart xsession/mthome")
sleep(10)
end
ifnotsystem"pgrep applauncherd"
system("initctl start xsession/applauncherd")
sleep(5)
end
end
@ -313,7 +323,11 @@ class TC_PerformanceTests < Test::Unit::TestCase
if@options[:startup]!=nil
print_debug("Check that startup time is less than #{@options[:startup]} ms")
assert((start_time_sum/COUNT)<@options[:startup],"Application: #{@options[:application]} avarage startup was slower than #{@options[:startup]} ms")
assert((start_time_sum/COUNT)<@options[:startup],"Application: #{@options[:application]} avarage startup was higher than #{@options[:startup]} ms")
end
if@options[:minstartup]!=nil
print_debug("Check that startup time is more than #{@options[:minstartup]} ms")
assert((start_time_sum/COUNT)>@options[:minstartup],"Application: #{@options[:application]} avarage startup was slower than #{@options[:minstartup]} ms")