From dev-return-18189-archive-asf-public=cust-asf.ponee.io@manifoldcf.apache.org Mon Jul 23 11:58:58 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 57D1B180647 for ; Mon, 23 Jul 2018 11:58:57 +0200 (CEST) Received: (qmail 25934 invoked by uid 500); 23 Jul 2018 09:58:56 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 25922 invoked by uid 99); 23 Jul 2018 09:58:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2018 09:58:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4EA4CC03BD for ; Mon, 23 Jul 2018 09:58:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.889 X-Spam-Level: ** X-Spam-Status: No, score=2.889 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 6tRDV9KjOQFV for ; Mon, 23 Jul 2018 09:58:51 +0000 (UTC) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 0D22C5F381 for ; Mon, 23 Jul 2018 09:58:51 +0000 (UTC) Received: by mail-lj1-f182.google.com with SMTP id r13-v6so33731ljg.10 for ; Mon, 23 Jul 2018 02:58:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=PYMuMFG/350XmQLpHswPRbezC3OyVLhsihkeXEfkygM=; b=p7qClrdznW0CB/JL+p37HeXBij0LnhTfky46Osb+Dv4mpFLza0iNFFHUn4O+xwUwVH wJuTNmpRGn9ZkiWY06DdjSuVVurDzvsdx87ELpv7UleSJIXKMA6h/xNyDiVYX6InOPWE CxGLJDdV5eBFIHhSW8F6VZMoS7Bih1GCnnm9seLCKpTEksVid7W068WH+HXWVPnT5yPY mCF7bYRsvQRxX+7KFWO1bB3Kcn7sQ1o/ctS0fyCtbd1Fhp4K8+0NKN3/MJDazPGmtVnS 6+URm6Cp59QwIHnovSWsJkrLk2OW5DRb6oeQahA3FOY+hseFokk67i75sIk33UqpA63J z/6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=PYMuMFG/350XmQLpHswPRbezC3OyVLhsihkeXEfkygM=; b=PU9WoRX5uHXjdCURrzY2rJ5i894mnAKW1cJ4G31W+LjrAQD4NYRbMS8sM1SJzvxLeV 3cvHUlGv3P6tPBCol3UeSQG5ruhX9o8lHJjnoLOZtHanZ1atcShtJdu45GaCf/lVZru6 2TSIHn2t+FsRKT2Niri1RFg0eQr//zq/sNcPShejJu0Noe4cXxZCXkpiznWtkKaNAFvf 1Z0rJ4d2Ei0UEQepzAVam1mfuZTfoQYwsjbG37zYmnu/8+szTJJiviTAOmkPG8Ddr3VQ MyDaXtZ49CtJlX5wmlWFEgK9118e+Z4bpaExEGoaYAJkyySXYfBI5N2UJWnnqbIC6y5D ycfg== X-Gm-Message-State: AOUpUlFiqRWkstnGduAw0xackOIBWw7dTaxnQQIW4e/OcsyxhPDXvCKN ubGaWZm4ECHhYKu1oRGh+5SLtR5j/cSBsiRb8ClYTQ== X-Google-Smtp-Source: AAOMgpc6qnbTRAHdcDN1kv03/CR3m1zUZyeH3IFkjs3mfnqb6/MytaS2so7VpEjms/WLeji5eGU4R71ufl7SQrgWE54= X-Received: by 2002:a2e:2b0e:: with SMTP id q14-v6mr8155967lje.147.1532339930218; Mon, 23 Jul 2018 02:58:50 -0700 (PDT) MIME-Version: 1.0 References: <894DBECE-4DCA-497A-A7DB-E15643C5C783@gmail.com> In-Reply-To: From: Karl Wright Date: Mon, 23 Jul 2018 05:58:38 -0400 Message-ID: Subject: Re: Executing UI Tests To: dev Content-Type: multipart/alternative; boundary="00000000000037446a0571a7b16b" --00000000000037446a0571a7b16b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Piergiorgio, I updated trunk to include the latest Selenium stuff so you will need to do the following to get beyond your current problems: (1) ant clean-core-deps (2) ant make-core-deps (3) ant clean Then you can run ant-uitest with the right jars. Thanks!! Karl On Mon, Jul 23, 2018 at 4:20 AM Piergiorgio Lucidi wrote: > I think that it is not clear how to run UI Tests, I think that we should > have a simple cookbook to describe how to setup locally the execution of = UI > tests. > I'm trying to use the latest fixes included by Kishore but probably I'm > missing something but I don't know what. > > I have started the Selenium server and I set the environment property for > the Chrome Driver but it returns the following exception: > > [junit] Testcase: > > > createConnectionsAndJob(org.apache.manifoldcf.authorities.authorities.act= ivedirectory.tests.NavigationHSQLDBUI): > Caused > > an ERROR > > [junit] > > > com.google.common.util.concurrent.SimpleTimeLimiter.create(Ljava/util/con= current/ExecutorService;)Lcom/google/common/util/concurrent/SimpleTimeLimit= er; > > [junit] java.lang.NoSuchMethodError: > > > com.google.common.util.concurrent.SimpleTimeLimiter.create(Ljava/util/con= current/ExecutorService;)Lcom/google/common/util/concurrent/SimpleTimeLimit= er; > > [junit] at > > org.openqa.selenium.net.UrlChecker.(UrlChecker.java:62) > > [junit] at > > > org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(Drive= rService.java:188) > > [junit] at > > > org.openqa.selenium.remote.service.DriverService.start(DriverService.java= :179) > > [junit] at > > > org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCo= mmandExecutor.java:79) > > [junit] at > > > org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:5= 48) > > [junit] at > > > org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.j= ava:212) > > [junit] at > > > org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:13= 0) > > [junit] at > > org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:181) > > [junit] at > > org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:168) > > [junit] at > > org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:157) > > [junit] at > > > org.apache.manifoldcf.core.tests.SeleniumTester.start(SeleniumTester.java= :86) > > [junit] at > > > org.apache.manifoldcf.authorities.authorities.activedirectory.tests.Navig= ationHSQLDBUI.createConnectionsAndJob(NavigationHSQLDBUI.java:40) > > [junit] > > [junit] > > BUILD FAILED > > > /Users/piergiorgiolucidi/Documents/workspaces/manifoldNew/trunk/build.xml= :498: > > The following error occurred while executing this line: > > > /Users/piergiorgiolucidi/Documents/workspaces/manifoldNew/trunk/build.xml= :436: > > The following error occurred while executing this line: > > > /Users/piergiorgiolucidi/Documents/workspaces/manifoldNew/trunk/dist/conn= ector-build.xml:1195: > > Test > > > org.apache.manifoldcf.authorities.authorities.activedirectory.tests.Navig= ationHSQLDBUI > > failed > > Total time: 18 seconds > > > Do you have some ideas? > > Thank you all. > > Cheers, > PJ > > Il giorno mer 11 lug 2018 alle ore 20:51 Karl Wright > ha scritto: > > > Upgrading to latest version of selenium is complete but didn't help. > > > > Karl > > > > > > On Wed, Jul 11, 2018 at 12:28 PM Irindu Nugawela > > wrote: > > > > > Hi Karl, > > > > > > Thank you for the update, I'll hold until we find a fix for this issu= e > > > > > > > On Jul 11, 2018, at 9:09 PM, Karl Wright wrote= : > > > > > > > > Just updating the selenium distribution is not enough. There are > some > > > > downstream dependencies that have changed too. This is going to > take a > > > > while. > > > > > > > > Karl > > > > > > > > > > > >> On Wed, Jul 11, 2018 at 11:21 AM Karl Wright > > > wrote: > > > >> > > > >> This stackoverflow article recommends an update of the chrome > driver: > > > >> > > > >> > > > >> > > > > > > https://stackoverflow.com/questions/22402389/getting-exeception-while-usi= ng-chrome-browser-in-selenium-project > > > >> > > > >> Karl > > > >> > > > >> > > > >>> On Wed, Jul 11, 2018 at 11:18 AM Karl Wright > > > wrote: > > > >>> > > > >>> I am getting the same thing here. > > > >>> It looks likes Chrome updates have broken some Selenium behavior. > I > > > have > > > >>> no time to look at this in any detail for the next several weeks, > > > however. > > > >>> > > > >>> Karl > > > >>> > > > >>> > > > >>> On Wed, Jul 11, 2018 at 10:30 AM Irindu Nugawela < > > nbiindeera@gmail.com > > > > > > > >>> wrote: > > > >>> > > > >>>> Hi Karl, > > > >>>> I have set the environment variable *SL_CHROME_DRIVER* > > > >>>> > > > >>>> this is the error message in plain text > > > >>>> > > > >>>> Behaviour=3D}] > > > >>>> [junit] Session ID: 3ad1b9e6f76c135667ad37cbbe571974 > > > >>>> [junit] at > > > >>>> java.lang.reflect.Constructor.newInstance(Constructor.java:423) > > > >>>> [junit] at > > > >>>> > > > >>>> > > > > > > org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java= :216) > > > >>>> [junit] at > > > >>>> > > > >>>> > > > > > > org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandle= r.java:168) > > > >>>> [junit] at > > > >>>> > > > >>>> > > > > > > org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:6= 38) > > > >>>> [junit] at > > > >>>> > > > > org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:325) > > > >>>> [junit] at > > > >>>> > > > >>>> > > > > > > org.apache.manifoldcf.core.tests.SeleniumTester.start(SeleniumTester.java= :111) > > > >>>> [junit] at > > > >>>> > > > >>>> > > > > > > org.apache.manifoldcf.authorities.authorities.activedirectory.tests.Navig= ationHSQLDBUI.createConnectionsAndJob(NavigationHSQLDBUI.java:40) > > > >>>> [junit] > > > >>>> [junit] > > > >>>> > > > >>>> BUILD FAILED > > > >>>> > > > D:\RC0\apache-manifoldcf-2.10-src\apache-manifoldcf-2.10\build.xml:49= 8: > > > >>>> The > > > >>>> following error occurred while executing this line: > > > >>>> > > > D:\RC0\apache-manifoldcf-2.10-src\apache-manifoldcf-2.10\build.xml:43= 6: > > > >>>> The > > > >>>> following error occurred while executing this line: > > > >>>> > > > >>>> > > > > > > D:\RC0\apache-manifoldcf-2.10-src\apache-manifoldcf-2.10\dist\connector-b= uild.xml:1192: > > > >>>> Test > > > >>>> > > > >>>> > > > > > > org.apache.manifoldcf.authorities.authorities.activedirectory.tests.Navig= ationHSQLDBUI > > > >>>> failed > > > >>>> > > > >>>>> On 11 July 2018 at 19:55, Karl Wright > wrote: > > > >>>>> > > > >>>>> I am not seeing the graphic. > > > >>>>> You also need to set the proper environment variables to point = at > > > your > > > >>>>> selenium installation. > > > >>>>> > > > >>>>> Karl > > > >>>>> > > > >>>>> > > > >>>>> On Wed, Jul 11, 2018 at 10:24 AM Irindu Nugawela < > > > nbiindeera@gmail.com > > > >>>>> > > > >>>>> wrote: > > > >>>>> > > > >>>>>> Hi Karl, > > > >>>>>> > > > >>>>>> Thank you for the tip. I installed selenium but still the UI > test > > > >>>> fails. > > > >>>>>> Here is the error > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>> On 11 July 2018 at 15:42, Karl Wright > > wrote: > > > >>>>>>> > > > >>>>>>> Have you installed Selenium? > > > >>>>>>> > > > >>>>>>> Karl > > > >>>>>>> > > > >>>>>>> > > > >>>>>>> On Wed, Jul 11, 2018 at 3:40 AM Irindu Nugawela < > > > >>>> nbiindeera@gmail.com> > > > >>>>>>> wrote: > > > >>>>>>> > > > >>>>>>>> Hi All, > > > >>>>>>>> > > > >>>>>>>> I am trying to execute UI tests of CMIS and ElasticSearch > > > >>>> connectors > > > >>>>> but > > > >>>>>>>> their respective build files do not have a target to run UI > > tests > > > >>>>>>> instead > > > >>>>>>>> in the parent build.xml which is in the project root I found > the > > > >>>>> target > > > >>>>>>>> "uitest" which is supposed to run all the UI tests but > executing > > > >>>> "*ant > > > >>>>>>>> uitest*" fails with the following exception > > > >>>>>>>> > > > >>>>>>>> [junit] Testcase: > > > >>>>>>>> > > > >>>>>>> createConnectionsAndJob(org.apache.manifoldcf.authorities. > > > >>>>> authorities.activedirectory.tests.NavigationHSQLDBUI): > > > >>>>>>>> Caused an ERROR > > > >>>>>>>> [junit] The driver executable does not exist: > > > >>>>>>>> > > > >>>>>>> D:\gitBlunder\manifoldcf\connectors\activedirectory\ > > > >>>>> test-HSQLDB-output\${env.SL_CHROME_DRIVER} > > > >>>>>>>> [junit] java.lang.IllegalStateException: The driver > > executable > > > >>>>> does > > > >>>>>>>> not exist: > > > >>>>>>>> > > > >>>>>>> D:\gitBlunder\manifoldcf\connectors\activedirectory\ > > > >>>>> test-HSQLDB-output\${env.SL_CHROME_DRIVER} > > > >>>>>>>> [junit] at > > > >>>>>>>> com.google.common.base.Preconditions.checkState( > > > >>>>> Preconditions.java:518) > > > >>>>>>>> [junit] at > > > >>>>>>>> > > > >>>>>>> org.openqa.selenium.remote.service.DriverService. > > > >>>>> checkExecutable(DriverService.java:123) > > > >>>>>>>> [junit] at > > > >>>>>>>> > > > >>>>>>> org.openqa.selenium.remote.service.DriverService. > > > >>>>> findExecutable(DriverService.java:118) > > > >>>>>>>> [junit] at > > > >>>>>>>> > > > >>>>>>> org.openqa.selenium.chrome.ChromeDriverService.access$ > > > >>>>> 000(ChromeDriverService.java:32) > > > >>>>>>>> [junit] at > > > >>>>>>>> > > > >>>>>>> org.openqa.selenium.chrome.ChromeDriverService$Builder. > > > >>>>> findDefaultExecutable(ChromeDriverService.java:137) > > > >>>>>>>> [junit] at > > > >>>>>>>> > > > >>>>>>> org.openqa.selenium.remote.service.DriverService$Builder. > > > >>>>> build(DriverService.java:302) > > > >>>>>>>> [junit] at > > > >>>>>>>> > > > >>>>>>> > > > org.openqa.selenium.chrome.ChromeDriverService.createDefaultService( > > > >>>>> ChromeDriverService.java:88) > > > >>>>>>>> [junit] at > > > >>>>>>>> > > > >>>> > > org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:156) > > > >>>>>>>> [junit] at > > > >>>>>>>> > > > >>>>>>> org.apache.manifoldcf.core.tests.SeleniumTester.start( > > > >>>>> SeleniumTester.java:86) > > > >>>>>>>> [junit] at > > > >>>>>>>> > > > >>>>>>> > > > org.apache.manifoldcf.authorities.authorities.activedirectory.tests. > > > >>>>> > > > NavigationHSQLDBUI.createConnectionsAndJob(NavigationHSQLDBUI.java:40= ) > > > >>>>>>>> [junit] > > > >>>>>>>> [junit] > > > >>>>>>>> > > > >>>>>>>> BUILD FAILED > > > >>>>>>>> D:\gitBlunder\manifoldcf\build.xml:498: The following error > > > >>>> occurred > > > >>>>>>> while > > > >>>>>>>> executing this line: > > > >>>>>>>> D:\gitBlunder\manifoldcf\build.xml:436: The following error > > > >>>> occurred > > > >>>>>>> while > > > >>>>>>>> executing this line: > > > >>>>>>>> D:\gitBlunder\manifoldcf\dist\connector-build.xml:1192: Test > > > >>>>>>>> > > > >>>>>>> > > > org.apache.manifoldcf.authorities.authorities.activedirectory.tests. > > > >>>>> NavigationHSQLDBUI > > > >>>>>>>> failed > > > >>>>>>>> > > > >>>>>>>> =E2=80=8B > > > >>>>>>>> > > > >>>>>>>> > > > >>>>>>>> (I have also attached the screenshot) > > > >>>>>>>> > > > >>>>>>>> Please help me run the UI tests and also let me know if ther= e > is > > > >>>> a way > > > >>>>>>> to > > > >>>>>>>> invoke the UI tests for a particular Connector instead of > > running > > > >>>> all > > > >>>>>>> the > > > >>>>>>>> UI tests. > > > >>>>>>>> > > > >>>>>>>> -- > > > >>>>>>>> Thanks and Regards, > > > >>>>>>>> Irindu Nugawela, > > > >>>>>>>> Computer Engineering > Undergraduate, > > > >>>>>>>> Faculty of Engineering University of Peradeniya > > > >>>>>>>> > > > >>>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>> -- > > > >>>>>> Thanks and Regards, > > > >>>>>> Irindu Nugawela, > > > >>>>>> Computer Engineering Undergraduate, > > > >>>>>> Faculty of Engineering University of Peradeniya > > > >>>>>> > > > >>>>> > > > >>>> > > > >>>> > > > >>>> > > > >>>> -- > > > >>>> Thanks and Regards, > > > >>>> Irindu Nugawela, > > > >>>> Computer Engineering Undergraduate, > > > >>>> Faculty of Engineering University of Peradeniya > > > >>>> > > > >>> > > > > > > > -- > > Piergiorgio > > > --00000000000037446a0571a7b16b--