fa32dd817e3bf76da1589c5dba252f250b3eb221
[test/tct/csharp/api.git] /
1 #!/usr/bin/python
2 import os
3 import timeit
4 from time import sleep
5 tctshell_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
6 os.chdir(tctshell_path)
7
8 plan_file = '/opt/tools/shell/plan/S_mobile_plan.xml'
9 plan_file2 = '/opt/tools/shell/plan/2.4_mobileF.xml'
10
11 start_plan = timeit.default_timer()
12 os.system("./tct-shell -p %s --tizen-version tizen_web_2.4 -l DEBUG --disable" %plan_file2)
13 stop_plan = timeit.default_timer()
14
15 start_distribute = timeit.default_timer()
16 os.system("./tct-shell --distribute %s --tizen-version tizen_web_2.4 -l DEBUG --disable" %plan_file2)
17 stop_distribute = timeit.default_timer()
18
19 start_autoplan = timeit.default_timer()
20 #os.system('./tct-shell --autoplan %s --tizen-version tizen_web_2.4 -l DEBUG --disable' %plan_file2)
21 stop_autoplan = timeit.default_timer()
22
23
24 plan_time = stop_plan - start_plan
25 autoplan_time = stop_autoplan - start_autoplan
26 distribute_time = stop_distribute - start_distribute
27
28 print "-"*50
29
30 print "\nTest Plan Mode: %d\nAuto Plan Mode: %d\nDistribute Plan Mode: %d\n" %(plan_time, autoplan_time, distribute_time)
31
32 print "-"*50
33
34