Added some arguments to try to overcome the chrome hang issue (I - V)
authorRafa Alonso <rafael.alonso@openbravo.com>
Tue, 17 Feb 2015 21:33:12 +0100
changeset 4038 1defb8d9db52
parent 4037 225d94f0fdf6
child 4039 9442eaf65f61
Added some arguments to try to overcome the chrome hang issue (I - V)
src-test/org/openbravo/test/mobile/common/selenium/SeleniumHelper.java
--- a/src-test/org/openbravo/test/mobile/common/selenium/SeleniumHelper.java	Tue Feb 17 21:27:21 2015 +0100
+++ b/src-test/org/openbravo/test/mobile/common/selenium/SeleniumHelper.java	Tue Feb 17 21:33:12 2015 +0100
@@ -91,20 +91,29 @@
     // http://peter.sh/experiments/chromium-command-line-switches/
     final DesiredCapabilities capabilities = DesiredCapabilities.chrome();
     final ChromeOptions options = new ChromeOptions();
-    // options.addArguments("start-maximized"); //Starts the browser maximized, regardless of any
-    // previous settings.
     options.addArguments("window-size=900,600");// --window-size=w,h ⊗ Specifies the initial size.
-    options.addArguments("test-type"); // removes the -ignore-certificate-errors message
-    // options.addArguments("--no-experiments");
-    // options.addArguments("--disable-translate");
-    // options.addArguments("--disable-plugins");
-    // options.addArguments("--disable-extensions");
-    // options.addArguments("--no-default-browser-check");
-    // options.addArguments("--clear-token-service");
-    // options.addArguments("--disable-default-apps");
-    // options.addArguments("--enable-logging"); //
-    // http://www.chromium.org/for-testers/enable-logging
+    // options.addArguments("start-maximized"); //Starts the browser maximized, regardless of any previous settings.
+    // options.addArguments("start-fullscreen"); //Starts the browser in full screen mode (F11)
+    options.addArguments("allow-running-insecure-content"); // allows to run javascript code in https
+    options.addArguments("no-experiments");
+    options.addArguments("disable-translate");
+    options.addArguments("disable-plugins");
+    options.addArguments("disable-extensions");
+    options.addArguments("no-default-browser-check");
+    options.addArguments("clear-token-service");
+    options.addArguments("disable-default-apps");
     // options.addArguments("incognito");
+    // options.addArguments("enable-logging"); // http://www.chromium.org/for-testers/enable-logging
+    // options.addArguments("test-type"); // removes the -ignore-certificate-errors message
+    options.addArguments("crash-on-failure=enable-leak-detection");
+    options.addArguments("crash-on-hang-threads=UI:1:18,IO:1:18,DB:1:18,FILE:1:18,CACHE:1:18");
+    // options.addArguments("disable-breakpad"); // disable the crash reporting
+    // options.addArguments("disable-logging"); // disable logging
+    // options.addArguments("enable-low-end-device-mode");
+    options.addArguments("stable-release-mode");
+    // options.addArguments("ignore-user-profile-mapping-for-tests");
+    // options.addArguments("gpu-sandbox-start-early");
+    // options.addArguments("gpu-sandbox-failures-fatal");
 
     // capabilities.setCapability("chrome.verbose", false);
     capabilities.setCapability(ChromeOptions.CAPABILITY, options);