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
Post a Comment