-
1. Re: How to define Arquillian Drone capabilities dynamically
mjobanek Jul 25, 2016 10:41 AM (in response to jollytoad)Hi,
AFAIK there is no way to set any capability from code - it is possible only through the arquillian.xml file. There are two possibilities how to set capabilities dynamically:
1) using profiles
2) using variables
then there in your arquillian.xml specify this ${variable} and for each run/profile set different value.
-
2. Re: How to define Arquillian Drone capabilities dynamically
jollytoad Jul 25, 2016 4:40 PM (in response to jollytoad)I've had to do some really dodgy hacking with reflection to do this... Adaptavist / reference-plugin / source / src / test / java / com / adaptavist / arquillian / SauceLabsTestNameExtensi…
Basically extracting the capabilityMap from the WebDriverConfiguration and adding a new entry.
WebDriverConfiguration really could do with a setCapability(String, Object) method.
Here's the result: Sauce Labs | Dashboard
-
3. Re: How to define Arquillian Drone capabilities dynamically
mjobanek Jul 26, 2016 10:07 AM (in response to jollytoad):-D
Yeah, in this way it is possible then. I wasn't thinking about such a hack - but if it works for you, why not :-).