Author: kishore
Date: Mon Mar 20 23:28:09 2017
New Revision: 1787888

URL: http://svn.apache.org/viewvc?rev=1787888&view=rev
Log:
Updated NavigationHSQLDBUI.java for checking job status

Modified:
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/rss/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/rss/tests/NavigationHSQLDBUI.java

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=1787888&r1=1787887&r2=1787888&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
 Mon Mar 20 23:28:09 2017
@@ -28,7 +28,6 @@ import java.util.*;
 import org.junit.*;
 
 import org.apache.manifoldcf.core.tests.SeleniumTester;
-import org.openqa.selenium.By;
 
 /** Basic UI navigation tests */
 public class NavigationHSQLDBUI extends BaseUIHSQLDB
@@ -69,6 +68,7 @@ public class NavigationHSQLDBUI extends
 
     // Now save the connection.
     testerInstance.clickButton("Save");
+    testerInstance.verifyThereIsNoError();
 
     // Define a repository connection via the UI
     testerInstance.navigateTo("List repository connections");
@@ -102,6 +102,7 @@ public class NavigationHSQLDBUI extends
     // Go back to the Name tab
     testerInstance.clickTab("Name");
     testerInstance.clickButton("Save");
+    testerInstance.verifyThereIsNoError();
 
     // Create a job
     testerInstance.navigateTo("List jobs");
@@ -151,14 +152,28 @@ public class NavigationHSQLDBUI extends
 
     // Save the job
     testerInstance.clickButton("Save");
-
-    testerInstance.waitUntilPresenceOfElementLocated(By.id("job"));
+    testerInstance.verifyThereIsNoError();
+    
+    testerInstance.waitForPresenceById("job");
     String jobID = testerInstance.getAttributeValueById("job","jobid");
     System.out.println("JobId: " + jobID);
+    
+    //Navigate to Status and Job management
+    testerInstance.navigateTo("Manage jobs");
+    testerInstance.waitForElementWithName("liststatuses");
+    
+    //Start the job
+    testerInstance.performJobAction(jobID,"Start minimal");
+    testerInstance.waitForJobStatus(jobID,"Done",120);
+    
+    //Navigate to List Jobs
+    testerInstance.navigateTo("List jobs");
+    testerInstance.waitForElementWithName("listjobs");
 
     //Delete the job
-    testerInstance.clickButton("Delete");
+    testerInstance.clickButtonByTitle("Delete job " + jobID);
     testerInstance.acceptAlert();
+    testerInstance.verifyThereIsNoError();
 
     //Wait for the job to go away
     testerInstance.waitForJobDelete(jobID, 120);


Reply via email to