incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1228723 - in /incubator/lcf/trunk: connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java tests/solr/src/test/java/org/apache/manifoldcf/solr_tests/NavigationDerbyUI.java
Date Sat, 07 Jan 2012 20:48:28 GMT
Author: kwright
Date: Sat Jan  7 20:48:28 2012
New Revision: 1228723

URL: http://svn.apache.org/viewvc?rev=1228723&view=rev
Log:
Finish Solr UI test, and fix a bug in Solr UI.

Modified:
    incubator/lcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java
    incubator/lcf/trunk/tests/solr/src/test/java/org/apache/manifoldcf/solr_tests/NavigationDerbyUI.java

Modified: incubator/lcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java?rev=1228723&r1=1228722&r2=1228723&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java
(original)
+++ incubator/lcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java
Sat Jan  7 20:48:28 2012
@@ -1177,7 +1177,7 @@ public class SolrConnector extends org.a
 "        <tr class=\"formrow\"><td class=\"formseparator\" colspan=\"3\"><hr/></td></tr>\n"+
 "        <tr class=\"formrow\">\n"+
 "          <td class=\"formcolumncell\">\n"+
-"            <a name=\"argument\"><input type=\"button\" value=\"Add\" alt=\"Add
argument\" onclick=\"javascript:addArgument();\"/></a>\n"+
+"            <a name=\"argument\"><input type=\"button\" value=\"Add\" alt=\"Add
argument\" onclick=\"javascript:addArgument();\"/>\n"+
 "              <input type=\"hidden\" name=\"argument_count\" value=\""+Integer.toString(i)+"\"/>\n"+
 "              <input type=\"hidden\" name=\"argument_op\" value=\"Continue\"/>\n"+
 "            </a>\n"+

Modified: incubator/lcf/trunk/tests/solr/src/test/java/org/apache/manifoldcf/solr_tests/NavigationDerbyUI.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/tests/solr/src/test/java/org/apache/manifoldcf/solr_tests/NavigationDerbyUI.java?rev=1228723&r1=1228722&r2=1228723&view=diff
==============================================================================
--- incubator/lcf/trunk/tests/solr/src/test/java/org/apache/manifoldcf/solr_tests/NavigationDerbyUI.java
(original)
+++ incubator/lcf/trunk/tests/solr/src/test/java/org/apache/manifoldcf/solr_tests/NavigationDerbyUI.java
Sat Jan  7 20:48:28 2012
@@ -70,14 +70,39 @@ public class NavigationDerbyUI extends B
     selectbox.selectValue(testerInstance.createStringDescription("org.apache.manifoldcf.agents.output.solr.SolrConnector"));
     button = window.findButton(testerInstance.createStringDescription("Continue to next page"));
     button.click();
-    // Visit the Throttling tab
     window = testerInstance.findWindow(null);
+    form = window.findForm(testerInstance.createStringDescription("editconnection"));
+    // Visit the Throttling tab
     link = window.findLink(testerInstance.createStringDescription("Throttling tab"));
     link.click();
-    // Visit the Solr tabs
-    // MHL
-    // Go back to the Name tab
     window = testerInstance.findWindow(null);
+    form = window.findForm(testerInstance.createStringDescription("editconnection"));
+    // Visit the Solr tabs - Server first
+    link = window.findLink(testerInstance.createStringDescription("Server tab"));
+    link.click();
+    window = testerInstance.findWindow(null);
+    form = window.findForm(testerInstance.createStringDescription("editconnection"));
+    // Schema
+    link = window.findLink(testerInstance.createStringDescription("Schema tab"));
+    link.click();
+    window = testerInstance.findWindow(null);
+    form = window.findForm(testerInstance.createStringDescription("editconnection"));
+    // Arguments
+    link = window.findLink(testerInstance.createStringDescription("Arguments tab"));
+    link.click();
+    window = testerInstance.findWindow(null);
+    form = window.findForm(testerInstance.createStringDescription("editconnection"));
+    // Documents
+    link = window.findLink(testerInstance.createStringDescription("Documents tab"));
+    link.click();
+    window = testerInstance.findWindow(null);
+    form = window.findForm(testerInstance.createStringDescription("editconnection"));
+    // Commits
+    link = window.findLink(testerInstance.createStringDescription("Commits tab"));
+    link.click();
+    window = testerInstance.findWindow(null);
+    form = window.findForm(testerInstance.createStringDescription("editconnection"));
+    // Go back to the Name tab
     link = window.findLink(testerInstance.createStringDescription("Name tab"));
     link.click();
     // Now save the connection.
@@ -143,11 +168,16 @@ public class NavigationDerbyUI extends B
     selectbox.selectValue(testerInstance.createStringDescription("MyRepositoryConnection"));
     button = window.findButton(testerInstance.createStringDescription("Continue to next screen"));
     button.click();
+    window = testerInstance.findWindow(null);
+    form = window.findForm(testerInstance.createStringDescription("editjob"));
     // Visit all the Solr tabs
-    // MHL
-    
-    // Save the job
+    // Solr Field Mapping
+    link = window.findLink(testerInstance.createStringDescription("Solr Field Mapping tab"));
+    link.click();
     window = testerInstance.findWindow(null);
+    form = window.findForm(testerInstance.createStringDescription("editjob"));
+
+    // Save the job
     button = window.findButton(testerInstance.createStringDescription("Save this job"));
     button.click();
 



Mime
View raw message