Related to issue 28933, verifies issue 29277: Added 'I29277_LogClientCircular' test (II)
authorRafa Alonso <rafael.alonso@openbravo.com>
Fri, 13 Mar 2015 23:13:22 +0100
changeset 4097 a0c86a5539f2
parent 4096 c90c4c776d9f
child 4098 441c833a94b3
Related to issue 28933, verifies issue 29277: Added 'I29277_LogClientCircular' test (II)
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I29277_LogClientCircular.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I29277_LogClientCircular.java	Fri Mar 13 23:13:22 2015 +0100
@@ -0,0 +1,41 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo S.L.U.
+ * All portions are Copyright (C) 2015 Openbravo S.L.U.
+ * All Rights Reserved.
+ * Contributor(s):
+ ************************************************************************
+ *
+ * @author RAL
+ *
+ */
+
+package org.openbravo.test.mobile.retail.pack.selenium.tests.system;
+
+import org.junit.Test;
+import org.openbravo.test.mobile.common.TestAnnotations;
+import org.openbravo.test.mobile.common.selenium.SeleniumHelper;
+import org.openbravo.test.mobile.common.selenium.terminals.WebPOSTerminalHelper;
+import org.openbravo.test.mobile.common.selenium.testhelpers.TestLogger;
+
+public class I29277_LogClientCircular extends WebPOSTerminalHelper {
+
+  @Test
+  @TestAnnotations(from = "RR15Q2")
+  public void test() {
+    TestLogger.getLogger().info("Verifying that the LogClient does not log its own messages");
+    SeleniumHelper
+        .executeScript("OB.UTIL.saveLogClient(\"LogClient simultated error. This final error should not final reach the server final because it has the 'logclient' string in it\", 'Error')");
+  }
+
+}