selenium - Define gradle task, to run task with specific system properties -


i struggling create gradle task execute test task specified system.properties use selenium tests

task firefox() << {     system.setproperty('driver', 'firefox')     tasks.clean.execute()     tasks.test.execute() } 

that not work obviously. highly appreciate help, finalize built script!

task.execute() should never called build script (bad things can happen if do). it's gradle call method. way set system properties test task is:

test {     systemproperty "driver", "firefox" } 

system.setproperty() won't have effect because tests execute in separate jvm.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -