3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/awetestlib/command_line.rb', line 3
def build_awetestlib_command_line(options)
option_keys = {
:browser => '-b',
:capture_load_times => '-L',
:debug_dsl => '-d',
:device_id => '-I',
:device_type => '-T',
:emulator => '-E',
:environment_name => '-n',
:environment_nodename => '-f',
:environment_url => '-e',
:global_debug => '-D',
:library => '-l',
:log_path_subdir => '-S',
:output_to_log => '-o',
:platform => '-P',
:pry => '-p',
:remote_url => '-u',
:report_all_test_refs => '-R',
:root_path => '-r',
:screencap_path => '-s',
:sdk => '-K',
:locate_timeout => '-t',
:version => '-v',
:xls_path => '-x',
:help => '-h',
}
run_cmd = "awetestlib #{options[:script_file]}"
option_keys.each_key do |opt|
if options[opt]
run_cmd << " #{option_keys[opt]} #{options[opt]}"
end
end
run_cmd
end
|