[ 
https://issues.apache.org/jira/browse/CONNECTORS-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15932211#comment-15932211
 ] 

Karl Wright commented on CONNECTORS-1196:
-----------------------------------------

[~kishorekumar], I revamped the SeleniumTester class to add support for 
test-specified language and browser type.

I also added the following method, specifically designed to wait for a deleted 
job to go away:

{code}
  public void waitForJobDelete(final String jobID, int timeoutAmount)
    throws Exception {
    
    navigateTo("Manage jobs");
    waitForElementWithName("liststatuses");
    while (exists(By.cssSelector("span[jobid=\"" + jobID + "\"]")))
    {
      if (timeoutAmount == 0)
      {
        throw new Exception("Timed out waiting for job "+jobID+" to go away");
      }
      clickButton("Refresh");
      waitForElementWithName("liststatuses");
      //Let us wait for a second.
      Thread.sleep(1000L);
      timeoutAmount--;
    }
  }
{code}

I need the following similar methods:

- a method to start a job (click the "start" button):

{code}
public void startJob(String jobID);
{code}

- a method to wait until a started job completes (or aborts); if aborted, needs 
to return the final state in a String:

{code}
public String waitForJobComplete(String jobID, int timeout) throws Exception;
{code}

Would you be able to add these to the SeleniumTester class in the branch?  I am 
not sure I know the UI structure well enough yet to write them myself; I don't 
fully understand the new DOM.  They will make converting the rest of the tests 
much easier.  Thanks!!


> Proposal to update Manifold Crawler UI
> --------------------------------------
>
>                 Key: CONNECTORS-1196
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1196
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Framework core
>    Affects Versions: ManifoldCF next
>            Reporter: Kishore Kumar
>            Assignee: Kishore Kumar
>             Fix For: ManifoldCF next
>
>         Attachments: Bandwidth Report.png, Index.jsp.png, List 
> Repository.png, Report.png, View.png
>
>
> Hi,
> I have been working on a new User Interface for ManifoldCF.
> This UI is based on Bootstrap, jQuery and some other opensource scripts.
> Only the index.jsp will be loaded once and other page are rendered using AJAX 
> call, making it more responsive and modern.
> Please find the attached screenshots.
> *Backward compatibility:*
> Since most of our tab comes from connectors, those tabs will be displayed as 
> it is with no immediate attention required. (see sample screenshot attached)
> *What next?*
> In future we can add Charts to our reports where ever applicable, so that it 
> will be more user friendly & informative for end users.
> Can make use of Web socket to notify exception or error to users as 
> Notifications.
> *Browser compatibility*
> Has been tested with most latest browser and IE10, will try to add support 
> for IE8 with acceptable degradation.
> Any suggestion, concern much appreciated.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to