Closed fatahillahardhi closed 1 year ago
Hello,
In your Courgette runner, you can specify any random value and override these values at runtime.
In GitLab you would just need to specify system properties at runtime, for example:
job1:
variables:
COURGETTE_THREADS: 2
script:
- [gradle | mvn ] test -Dcourgette.threads='$COURGETTE_THREADS'"
Or simply pass the values in the run command directly.
-Dcourgette.threads=2 -Dcourgette.rerunAttempts=2 -Dcourgette.mobileDevice="device1, device2"
Ok that's very helpfull, thank you Prashant!
Hello Prashant I want to ask (again).
Can I edit Courgette Test Runner annotation like this? Example:
the objectives that I can change thread/others using env because I will try Courgette in Gitlab. Also, I want change in mobileDevices too, for example:
because I don't want the devices to be visible to others except certain people.
if that's not possible, can I use variables instead of env? Thank you