Author: kwright
Date: Sun Mar 19 10:38:44 2017
New Revision: 1787607

URL: http://svn.apache.org/viewvc?rev=1787607&view=rev
Log:
First step of moving to new HTML tester

Modified:
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/activedirectory/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/activedirectory/tests/NavigationHSQLDBUI.java
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/cmis/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/cmis/tests/NavigationHSQLDBUI.java
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/elasticsearch/connector/src/test/java/org/apache/manifoldcf/agents/output/elasticsearch/tests/NavigationHSQLDBUI.java
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/hdfs/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/hdfs/tests/NavigationUITester.java
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/jcifs/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharedrive/tests/NavigationHSQLDBUI.java
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/jdbc/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/jdbc/tests/NavigationHSQLDBUI.java
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/opensearchserver/connector/src/test/java/org/apache/manifoldcf/agents/output/opensearchserver/tests/NavigationHSQLDBUI.java
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/rss/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/rss/tests/NavigationHSQLDBUI.java
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/webcrawler/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/webcrawler/tests/NavigationHSQLDBUI.java
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/wiki/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/wiki/tests/NavigationHSQLDBUI.java
    
manifoldcf/branches/CONNECTORS-1196-2/framework/core/src/test/java/org/apache/manifoldcf/core/tests/SeleniumTester.java
    
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java
    
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java
    
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/activedirectory/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/activedirectory/tests/NavigationHSQLDBUI.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/activedirectory/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/activedirectory/tests/NavigationHSQLDBUI.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/activedirectory/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/activedirectory/tests/NavigationHSQLDBUI.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/activedirectory/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/activedirectory/tests/NavigationHSQLDBUI.java
 Sun Mar 19 10:38:44 2017
@@ -37,6 +37,7 @@ public class NavigationHSQLDBUI extends
   public void createConnectionsAndJob()
     throws Exception
   {
+/*
     testerInstance.newTest(Locale.US);
     
     HTMLTester.Window window;
@@ -126,6 +127,7 @@ public class NavigationHSQLDBUI extends
     link.click();
 
     testerInstance.executeTest();
+*/
   }
   
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/cmis/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/cmis/tests/NavigationHSQLDBUI.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/cmis/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/cmis/tests/NavigationHSQLDBUI.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/cmis/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/cmis/tests/NavigationHSQLDBUI.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/cmis/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/cmis/tests/NavigationHSQLDBUI.java
 Sun Mar 19 10:38:44 2017
@@ -31,6 +31,7 @@ public class NavigationHSQLDBUI extends
   public void createConnectionsAndJob()
     throws Exception
   {
+/*
     testerInstance.newTest(Locale.US);
     
     HTMLTester.Window window;
@@ -275,6 +276,7 @@ public class NavigationHSQLDBUI extends
     link.click();
     
     testerInstance.executeTest();
+*/
   }
   
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/elasticsearch/connector/src/test/java/org/apache/manifoldcf/agents/output/elasticsearch/tests/NavigationHSQLDBUI.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/elasticsearch/connector/src/test/java/org/apache/manifoldcf/agents/output/elasticsearch/tests/NavigationHSQLDBUI.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/elasticsearch/connector/src/test/java/org/apache/manifoldcf/agents/output/elasticsearch/tests/NavigationHSQLDBUI.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/elasticsearch/connector/src/test/java/org/apache/manifoldcf/agents/output/elasticsearch/tests/NavigationHSQLDBUI.java
 Sun Mar 19 10:38:44 2017
@@ -31,6 +31,7 @@ public class NavigationHSQLDBUI extends
   public void createConnectionsAndJob()
     throws Exception
   {
+/*
     testerInstance.newTest(Locale.US);
     
     HTMLTester.Window window;
@@ -224,6 +225,7 @@ public class NavigationHSQLDBUI extends
     link.click();
     
     testerInstance.executeTest();
+*/
   }
   
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/hdfs/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/hdfs/tests/NavigationUITester.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/hdfs/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/hdfs/tests/NavigationUITester.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/hdfs/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/hdfs/tests/NavigationUITester.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/hdfs/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/hdfs/tests/NavigationUITester.java
 Sun Mar 19 10:38:44 2017
@@ -27,15 +27,15 @@ import java.io.*;
 import java.util.*;
 import org.junit.*;
 
-import org.apache.manifoldcf.core.tests.HTMLTester;
+import org.apache.manifoldcf.core.tests.SeleniumTester;
 
 /** Basic UI navigation tests */
 public class NavigationUITester
 {
-  protected final HTMLTester testerInstance;
+  protected final SeleniumTester testerInstance;
   protected final String startURL;
   
-  public NavigationUITester(HTMLTester tester, String startURL)
+  public NavigationUITester(SeleniumTester tester, String startURL)
   {
     this.testerInstance = tester;
     this.startURL = startURL;
@@ -44,6 +44,7 @@ public class NavigationUITester
   public void createConnectionsAndJob()
     throws Exception
   {
+/*
     testerInstance.newTest(Locale.US);
     
     HTMLTester.Window window;
@@ -246,6 +247,7 @@ public class NavigationUITester
     link.click();
     
     testerInstance.executeTest();
+*/
   }
   
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/jcifs/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharedrive/tests/NavigationHSQLDBUI.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/jcifs/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharedrive/tests/NavigationHSQLDBUI.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/jcifs/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharedrive/tests/NavigationHSQLDBUI.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/jcifs/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharedrive/tests/NavigationHSQLDBUI.java
 Sun Mar 19 10:38:44 2017
@@ -37,6 +37,7 @@ public class NavigationHSQLDBUI extends
   public void createConnectionsAndJob()
     throws Exception
   {
+/*
     testerInstance.newTest(Locale.US);
     
     HTMLTester.Window window;
@@ -235,6 +236,7 @@ public class NavigationHSQLDBUI extends
     link.click();
     
     testerInstance.executeTest();
+*/
   }
   
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/jdbc/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/jdbc/tests/NavigationHSQLDBUI.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/jdbc/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/jdbc/tests/NavigationHSQLDBUI.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/jdbc/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/jdbc/tests/NavigationHSQLDBUI.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/jdbc/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/jdbc/tests/NavigationHSQLDBUI.java
 Sun Mar 19 10:38:44 2017
@@ -37,6 +37,7 @@ public class NavigationHSQLDBUI extends
   public void createConnectionsAndJob()
     throws Exception
   {
+/*
     testerInstance.newTest(Locale.US);
     
     HTMLTester.Window window;
@@ -301,6 +302,7 @@ public class NavigationHSQLDBUI extends
     link.click();
 
     testerInstance.executeTest();
+*/
   }
   
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/opensearchserver/connector/src/test/java/org/apache/manifoldcf/agents/output/opensearchserver/tests/NavigationHSQLDBUI.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/opensearchserver/connector/src/test/java/org/apache/manifoldcf/agents/output/opensearchserver/tests/NavigationHSQLDBUI.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/opensearchserver/connector/src/test/java/org/apache/manifoldcf/agents/output/opensearchserver/tests/NavigationHSQLDBUI.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/opensearchserver/connector/src/test/java/org/apache/manifoldcf/agents/output/opensearchserver/tests/NavigationHSQLDBUI.java
 Sun Mar 19 10:38:44 2017
@@ -37,6 +37,7 @@ public class NavigationHSQLDBUI extends
   public void createConnectionsAndJob()
     throws Exception
   {
+/*
     testerInstance.newTest(Locale.US);
     
     HTMLTester.Window window;
@@ -202,6 +203,7 @@ public class NavigationHSQLDBUI extends
     link.click();
     
     testerInstance.executeTest();
+*/
   }
   
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/rss/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/rss/tests/NavigationHSQLDBUI.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/rss/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/rss/tests/NavigationHSQLDBUI.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/rss/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/rss/tests/NavigationHSQLDBUI.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/rss/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/rss/tests/NavigationHSQLDBUI.java
 Sun Mar 19 10:38:44 2017
@@ -27,7 +27,8 @@ import java.io.*;
 import java.util.*;
 import org.junit.*;
 
-import org.apache.manifoldcf.core.tests.HTMLTester;
+//import org.apache.manifoldcf.core.tests.HTMLTester;
+import org.openqa.selenium.By;
 
 /** Basic UI navigation tests */
 public class NavigationHSQLDBUI extends BaseUIHSQLDB
@@ -37,6 +38,153 @@ public class NavigationHSQLDBUI extends
   public void createConnectionsAndJob()
     throws Exception
   {
+    // Q: How can we control locale?  Is that even possible?  Will the test 
fail
+    // if the browser locale is wrong?
+    testerInstance.gotoUrl("http://localhost:8346/mcf-crawler-ui/index.jsp";);
+
+    //Login
+    testerInstance.waitForElementWithName("loginform");
+    testerInstance.setValue("userID","admin");
+    testerInstance.setValue("password","admin");
+    testerInstance.clickButton("Login");
+    testerInstance.verifyHeader("Welcome to Apache ManifoldCF™");
+    testerInstance.navigateTo("List output connections");
+    testerInstance.clickButton("Add a new output connection");
+
+    // Fill in a name
+    testerInstance.waitForElementWithName("connname");
+    testerInstance.setValue("connname","Null Output Connection");
+
+    //Goto to Type tab
+    testerInstance.clickTab("Type");
+
+    // Select a type
+    testerInstance.waitForElementWithName("classname");
+    
testerInstance.selectValue("classname","org.apache.manifoldcf.agents.output.nullconnector.NullConnector");
+    testerInstance.clickButton("Continue");
+
+    // Visit the Throttling tab
+    testerInstance.clickTab("Throttling");
+
+    // Go back to the Name tab
+    testerInstance.clickTab("Name");
+
+    // Now save the connection.
+    testerInstance.clickButton("Save");
+
+    // Define a repository connection via the UI
+    testerInstance.navigateTo("List repository connections");
+    testerInstance.clickButton("Add new connection");
+
+    testerInstance.waitForElementWithName("connname");
+    testerInstance.setValue("connname","RSS Repository Connection");
+
+    // Select a type
+    testerInstance.clickTab("Type");
+    
testerInstance.selectValue("classname","org.apache.manifoldcf.crawler.connectors.rss.RSSConnector");
+    testerInstance.clickButton("Continue");
+
+    // Visit the Throttling tab
+    testerInstance.clickTab("Throttling");
+
+    // Visit the rest of the tabs - Email first
+    testerInstance.clickTab("Email");
+    testerInstance.setValue("email","[email protected]");
+
+    // Robots
+    testerInstance.clickTab("Robots");
+    testerInstance.selectValue("robotsusage","none");
+
+    // Bandwidth
+    testerInstance.clickTab("Bandwidth");
+
+    // Proxy
+    testerInstance.clickTab("Proxy");
+
+    // Go back to the Name tab
+    testerInstance.clickTab("Name");
+    testerInstance.clickButton("Save");
+
+    // Create a job
+    testerInstance.navigateTo("List jobs");
+    //Add a job
+    testerInstance.clickButton("Add a new job");
+    testerInstance.waitForElementWithName("description");
+    //Fill in a name
+    testerInstance.setValue("description","RSS Job");
+    testerInstance.clickTab("Connection");
+
+    // Select the connections
+    testerInstance.selectValue("output_connectionname","Null Output 
Connection");
+    testerInstance.selectValue("output_precedent","-1");
+    testerInstance.clickButton("Add output",true);
+    testerInstance.waitForElementWithName("connectionname");
+    testerInstance.selectValue("connectionname","RSS Repository Connection");
+    
+    testerInstance.clickButton("Continue");
+
+    // Visit all the tabs.  Scheduling tab first
+    testerInstance.clickTab("Scheduling");
+    testerInstance.selectValue("dayofweek","0");
+    testerInstance.selectValue("hourofday","1");
+    testerInstance.selectValue("minutesofhour","30");
+    testerInstance.selectValue("monthofyear","11");
+    testerInstance.selectValue("dayofmonth","none");
+    testerInstance.setValue("duration","120");
+    testerInstance.clickButton("Add Scheduled Time",true);
+    testerInstance.waitForElementWithName("editjob");
+
+    //URLs tab
+    testerInstance.clickTab("URLs");
+    testerInstance.setValue("s0_rssurls","https://www.cnn.com";);
+
+    // Canonicalization tab
+    testerInstance.clickTab("Canonicalization");
+    testerInstance.clickButton("Add",true);
+
+    // URL Mappings tab
+    testerInstance.clickTab("URL Mappings");
+    //Time values tab
+    testerInstance.clickTab("Time Values");
+    //Security tab
+    testerInstance.clickTab("Security");
+    // Dechromed Content tab
+    testerInstance.clickTab("Dechromed Content");
+
+    // Save the job
+    testerInstance.clickButton("Save");
+
+    testerInstance.waitUntilPresenceOfElementLocated(By.id("job"));
+    String jobID = testerInstance.getAttributeValueById("job","jobid");
+    System.out.println("JobId: " + jobID);
+
+    //Delete the job
+    testerInstance.clickButton("Delete");
+    testerInstance.acceptAlert();
+
+    //Wait for the job to go away
+    testerInstance.navigateTo("Manage jobs");
+    testerInstance.waitForElementWithName("liststatuses");
+    // Q: We may want to add functionality like this directly to the tester 
class?
+    while (testerInstance.exists(By.cssSelector("span[jobid=\"" + jobID + 
"\"]")))
+    {
+      testerInstance.clickButton("Refresh");
+      testerInstance.waitForElementWithName("liststatuses");
+      //Let us wait for a second.
+      Thread.sleep(1000);
+    }
+
+    // Delete the repository connection
+    testerInstance.navigateTo("List repository connections");
+    testerInstance.clickButtonByTitle("Delete RSS Repository Connection");
+    testerInstance.acceptAlert();
+
+    // Delete the output connection
+    testerInstance.navigateTo("List output connections");
+    testerInstance.clickButtonByTitle("Delete Null Output Connection");
+    testerInstance.acceptAlert();
+
+/*
     testerInstance.newTest(Locale.US);
     
     HTMLTester.Window window;
@@ -272,6 +420,7 @@ public class NavigationHSQLDBUI extends
     link.click();
     
     testerInstance.executeTest();
+*/
   }
   
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/webcrawler/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/webcrawler/tests/NavigationHSQLDBUI.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/webcrawler/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/webcrawler/tests/NavigationHSQLDBUI.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/webcrawler/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/webcrawler/tests/NavigationHSQLDBUI.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/webcrawler/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/webcrawler/tests/NavigationHSQLDBUI.java
 Sun Mar 19 10:38:44 2017
@@ -37,6 +37,7 @@ public class NavigationHSQLDBUI extends
   public void createConnectionsAndJob()
     throws Exception
   {
+/*
     testerInstance.newTest(Locale.US);
     
     HTMLTester.Window window;
@@ -312,6 +313,7 @@ public class NavigationHSQLDBUI extends
     link.click();
     
     testerInstance.executeTest();
+*/
   }
   
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/wiki/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/wiki/tests/NavigationHSQLDBUI.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/wiki/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/wiki/tests/NavigationHSQLDBUI.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/wiki/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/wiki/tests/NavigationHSQLDBUI.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/wiki/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/wiki/tests/NavigationHSQLDBUI.java
 Sun Mar 19 10:38:44 2017
@@ -65,7 +65,7 @@ public class NavigationHSQLDBUI extends
       initialURLQueryResources,
       initialDocInfoQueryResources,
       namespaceResource);
-
+/*
     testerInstance.newTest(Locale.US);
     
     HTMLTester.Window window;
@@ -277,6 +277,7 @@ public class NavigationHSQLDBUI extends
     link.click();
     
     testerInstance.executeTest();
+*/
   }
   
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/framework/core/src/test/java/org/apache/manifoldcf/core/tests/SeleniumTester.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/framework/core/src/test/java/org/apache/manifoldcf/core/tests/SeleniumTester.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/framework/core/src/test/java/org/apache/manifoldcf/core/tests/SeleniumTester.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/framework/core/src/test/java/org/apache/manifoldcf/core/tests/SeleniumTester.java
 Sun Mar 19 10:38:44 2017
@@ -55,16 +55,13 @@ public class SeleniumTester {
   public void setup() throws Exception {
 
     //Download Chrome Driver for Linux from here 
(https://chromedriver.storage.googleapis.com/index.html?path=2.28/)
-
-    //TODO: Add value in properties file or get if from system path
-    System.setProperty("webdriver.chrome.driver", 
"/home/kishore/chrome-driver/chromedriver");
-
     String driverType = "chrome";
 
     if (driverType == "chrome") {
 
-      if (System.getProperty("webdriver.chrome.driver") == null)
-        throw new Exception("Please configure Google Chrome Driver in 
properties.");
+      if (System.getProperty("webdriver.chrome.driver") == null ||
+        System.getProperty("webdriver.chrome.driver").length() == 0)
+        throw new Exception("Please configure your SL_CHROME_DRIVER 
environment variable to point to the Selenium Google Chrome Driver");
 
       //Create a new instance of Chrome driver
       ChromeOptions options = new ChromeOptions();

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java
 Sun Mar 19 10:38:44 2017
@@ -27,12 +27,12 @@ import java.io.*;
 import java.util.*;
 import org.junit.*;
 
-import org.apache.manifoldcf.core.tests.HTMLTester;
+import org.apache.manifoldcf.core.tests.SeleniumTester;
 
 /** Tests that run the "agents daemon" should be derived from this */
 public class ConnectorBaseUIHSQLDB extends BaseITHSQLDB
 {
-  protected HTMLTester testerInstance = null;
+  protected SeleniumTester testerInstance = null;
   
   public ConnectorBaseUIHSQLDB()
   {
@@ -48,7 +48,7 @@ public class ConnectorBaseUIHSQLDB exten
   public void setupHTMLTester()
     throws Exception
   {
-    testerInstance = new HTMLTester();
+    testerInstance = new SeleniumTester();
     testerInstance.setup();
   }
   

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java
 Sun Mar 19 10:38:44 2017
@@ -27,12 +27,12 @@ import java.io.*;
 import java.util.*;
 import org.junit.*;
 
-import org.apache.manifoldcf.core.tests.HTMLTester;
+import org.apache.manifoldcf.core.tests.SeleniumTester;
 
 /** Tests that run the "agents daemon" should be derived from this */
 public class ConnectorBaseUIMySQL extends BaseITMySQL
 {
-  protected HTMLTester testerInstance = null;
+  protected SeleniumTester testerInstance = null;
   
   public ConnectorBaseUIMySQL()
   {
@@ -48,7 +48,7 @@ public class ConnectorBaseUIMySQL extend
   public void setupHTMLTester()
     throws Exception
   {
-    testerInstance = new HTMLTester();
+    testerInstance = new SeleniumTester();
     testerInstance.setup();
   }
   

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java?rev=1787607&r1=1787606&r2=1787607&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java
 Sun Mar 19 10:38:44 2017
@@ -27,12 +27,12 @@ import java.io.*;
 import java.util.*;
 import org.junit.*;
 
-import org.apache.manifoldcf.core.tests.HTMLTester;
+import org.apache.manifoldcf.core.tests.SeleniumTester;
 
 /** Tests that run the "agents daemon" should be derived from this */
 public class ConnectorBaseUIPostgresql extends BaseITPostgresql
 {
-  protected HTMLTester testerInstance = null;
+  protected SeleniumTester testerInstance = null;
 
   public ConnectorBaseUIPostgresql()
   {
@@ -48,7 +48,7 @@ public class ConnectorBaseUIPostgresql e
   public void setupHTMLTester()
     throws Exception
   {
-    testerInstance = new HTMLTester();
+    testerInstance = new SeleniumTester();
     testerInstance.setup();
   }
   


Reply via email to