Related to issue 40001: Fixed Warnings in Test
authorGerard van den Berg <gerard.vandenberg@openbravo.com>
Mon, 04 Feb 2019 11:22:00 +0100
changeset 8180 f6432ccaa024
parent 8179 2c2140ad7f4f
child 8181 d4c923b71034
Related to issue 40001: Fixed Warnings in Test
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customerFieldSortOrder/SCF020_CheckTheCustomerFieldsOrder.java
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customerFieldSortOrder/SCF020_CheckTheCustomerFieldsOrder.java	Mon Feb 04 09:58:11 2019 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customerFieldSortOrder/SCF020_CheckTheCustomerFieldsOrder.java	Mon Feb 04 11:22:00 2019 +0100
@@ -23,16 +23,6 @@
 
 import org.junit.Test;
 import org.openbravo.test.mobile.core.selenium.SeleniumHelper;
-import org.openbravo.test.mobile.core.utils.OBUtils;
-import org.openbravo.test.mobile.retail.mobilecore.database.DatabaseHelperInsertUpdateOrDelete;
-import org.openbravo.test.mobile.retail.pack.selenium.TestIdPack;
-import org.openbravo.test.mobile.retail.pack.selenium.terminals.WebPOSTerminalHelper;
-import org.openqa.selenium.Keys;
-
-
-import org.apache.log4j.Logger;
-import org.junit.Test;
-import org.openbravo.test.mobile.core.utils.TestLogger;
 import org.openbravo.test.mobile.retail.mobilecore.database.DatabaseHelperInsertUpdateOrDelete;
 import org.openbravo.test.mobile.retail.mobilecore.utils.RetailUtils;
 import org.openbravo.test.mobile.retail.pack.selenium.TestIdPack;
@@ -47,11 +37,12 @@
     return (String) SeleniumHelper.executeScriptWithReturn(String.format("TestRegistry.registry(\"impl_customerOnlyFields\").enyoObject.children[%d].name", position));
   }
   
-  final String preference_id = RetailUtils.getRandomUUID();
-  final String property = "OBPOS_CustomerCompSortOrder";
-  final String value = "[''lastName'', ''email'']";
+  final String testPreference_id = RetailUtils.getRandomUUID();
+  final String testProperty = "OBPOS_CustomerCompSortOrder";
+  final String testValue = "[''lastName'', ''email'']";
   final String lastNameId = "line_customerLastName";
   final String emailId = "line_customerEmail";
+  
   private void addPreference(String preferenceId, String property, String value) {
     String sql;
    
@@ -71,11 +62,11 @@
   }
   @Override
   public void beforeWithReload() {
-   addPreference(preference_id, property, value);
+   addPreference(testPreference_id, testProperty, testValue);
   }
   @Override
   public void afterWithReload() {
-   delPreference(preference_id);
+   delPreference(testPreference_id);
   }
   @Test
   public void test()