5 tctshell_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
6 os.chdir(tctshell_path)
8 plan_file = '/opt/tools/shell/plan/S_mobile_plan.xml'
9 plan_file2 = '/opt/tools/shell/plan/2.4_mobileF.xml'
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()
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()
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()
24 plan_time = stop_plan - start_plan
25 autoplan_time = stop_autoplan - start_autoplan
26 distribute_time = stop_distribute - start_distribute
30 print "\nTest Plan Mode: %d\nAuto Plan Mode: %d\nDistribute Plan Mode: %d\n" %(plan_time, autoplan_time, distribute_time)