Skip to content

Commit 25809dd

Browse files
SvetoslavTsenovdtopuzov
authored andcommitted
add env USE_PREBUILT_WDA (#74)
1 parent 15bad3b commit 25809dd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/functional/tests/core/mobile/settings/MobileSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public class MobileSettings extends Settings {
4545
public SettingsAndroid android;
4646
public DeviceType deviceType;
4747
public boolean reuseDevice;
48+
public boolean usePrebuiltWDA;
4849

4950
/**
5051
* Init settings.
@@ -222,6 +223,11 @@ public void initSettings() {
222223
this.deviceBootTimeout = this.convertPropertyToInt("deviceBootTimeout", 300);
223224
this.deviceType = this.getDeviceType();
224225

226+
String usePreBuildWDAEnv = System.getenv("USE_PREBUILT_WDA");
227+
if (usePreBuildWDAEnv != null && !usePreBuildWDAEnv.isEmpty()){
228+
this.usePrebuiltWDA = usePreBuildWDAEnv == "true" ? true : false;
229+
}
230+
225231
if (this.platform == PlatformType.Android) {
226232
loggerBase = LoggerBase.getLogger("AndroidSettings");
227233
this.android = this.initSettingsAndroid();

0 commit comments

Comments
 (0)