manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishore Kumar (JIRA)" <>
Subject [jira] [Commented] (CONNECTORS-1196) Proposal to update Manifold Crawler UI
Date Mon, 18 May 2015 21:54:00 GMT


Kishore Kumar commented on CONNECTORS-1196:


I am able to convert one of the test class using Selenium with PhantomJS driver. This test
was carried out for Active Directory connector with success.

  //TODO: Read path from property file.
  private static String PHANTOMJS_BINARY = "E:\\MCF\\phantomjs-2.0.0-windows\\bin\\phantomjs.exe";
  protected WebDriver driver = null;
  public void setupHTMLTester()
    throws Exception
    final DesiredCapabilities capabilities = new DesiredCapabilities();
    // Configure our WebDriver to support JavaScript and be able to find the PhantomJS binary
    capabilities.setCapability("takesScreenshot", true);
    driver = new PhantomJSDriver(capabilities);
  public void teardownHTMLTester()
    throws Exception
    if (driver != null)

  public void createConnectionsAndJob()
          throws Exception

    // Login

    // Define an authority connection via the UI
    driver.findElement(By.linkText("List Authority Groups")).click();
    driver.findElement(By.linkText("Add a new authority group")).click();
    driver.findElement(By.linkText("List Authority Connections")).click();
    driver.findElement(By.linkText("Add a new connection")).click();
    // Fill in a name

    // Select a type
    WebElement select = driver.findElement("classname"));
    new Select(select).selectByVisibleText("AD authority");
    new Select(driver.findElement("authoritygroup"))).selectByVisibleText("MyAuthorityConnection");
    driver.findElement(By.xpath("//input[@alt='Continue to next page']")).click();

    // Server tab
    driver.findElement(By.linkText("Domain Controller")).click();
    driver.findElement(By.xpath("//input[@value='Add to End']")).click();

    driver.findElement(By.xpath("//input[@alt='Save this authority connection']")).click();
    driver.findElement(By.linkText("List Authority Connections")).click();
    driver.findElement(By.xpath("//a[@alt='Delete MyAuthorityConnection']")).click();    

This need to be further optimized by placing the recurring code in base classes.

> Proposal to update Manifold Crawler UI
> --------------------------------------
>                 Key: CONNECTORS-1196
>                 URL:
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Framework core
>    Affects Versions: ManifoldCF next
>            Reporter: Kishore Kumar
>            Assignee: Kishore Kumar
>         Attachments: Bandwidth Report.png, Index.jsp.png, List Repository.png, Report.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

View raw message