That seems to have fixed it for me. Karl
On Mon, Jul 23, 2018 at 4:54 PM Kishore Kumar <[email protected]> wrote: > Hi, > > > > I did few trial and error on Windows and it appears that the Navigation > Menu animation on Windows takes more than a second. I directed the > SeleniumTester.navigateTo() to wait more than a second by updating > Thread.sleep(1000); to Thread.sleep(2000);. Once built, now UI test works > on Windows. I did this few times to confirm that the issues is with the > animation delay. > > > > If anyone can confirm the same on their machine then we can push this to > trunk. Change navigateTo() Thread.sleep to 2 secs. > > > > If it fails for you on the first run, please try couple of times. > > > > I have attached the ant logs from my machines. > > > > @Piergiorgio Lucidi <[email protected]>, I have so far not tested > ManifoldCF with Remote Selenium steup. > > > > Thanks, > > Kishore Kumar > > > > -----Original Message----- > > From: Karl Wright <[email protected]> > > Sent: 23 July 2018 07:41 > > To: dev <[email protected]> > > Subject: Re: Executing UI Tests > > > > Are you running on Windows, or Ubuntu? I don't have an ubuntu setup so > I'm trusting Kishore Kumar's claim that it succeeds there. > > > > The fact that you get a link error indicates that something is wrong in > the build itself. I don't get a link error and you shouldn't either. You > might want to make sure that your dist folder has only one version of each > selenium jar. > > > > Karl > > > > > > On Mon, Jul 23, 2018 at 9:47 AM Piergiorgio Lucidi <[email protected] > > > > wrote: > > > > > Hi Karl, > > > > > > I have tried but it returns the same exception... !!!! > > > > > > PJ > > > > > > Il giorno lun 23 lug 2018 alle ore 11:58 Karl Wright > > > <[email protected]> ha scritto: > > > > > > > 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 < > > > [email protected] > > > > > > > > > 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.activedirectory.tests.NavigationHSQLDBUI): > > > > > Caused > > > > > > an ERROR > > > > > > [junit] > > > > > > > > > > > > > > > > > > com.google.common.util.concurrent.SimpleTimeLimiter.create(Ljava/util/ > > > concurrent/ExecutorService;)Lcom/google/common/util/concurrent/SimpleT > > > imeLimiter; > > > > > > [junit] java.lang.NoSuchMethodError: > > > > > > > > > > > > > > > > > > com.google.common.util.concurrent.SimpleTimeLimiter.create(Ljava/util/ > > > concurrent/ExecutorService;)Lcom/google/common/util/concurrent/SimpleT > > > imeLimiter; > > > > > > [junit] at > > > > > > org.openqa.selenium.net.UrlChecker.<init>(UrlChecker.java:62) > > > > > > [junit] at > > > > > > > > > > > > > > > > > > org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(Dr > > > iverService.java:188) > > > > > > [junit] at > > > > > > > > > > > > > > > > > > org.openqa.selenium.remote.service.DriverService.start(DriverService.j > > > ava:179) > > > > > > [junit] at > > > > > > > > > > > > > > > > > > org.openqa.selenium.remote.service.DriverCommandExecutor.execute(Drive > > > rCommandExecutor.java:79) > > > > > > [junit] at > > > > > > > > > > > > > > > > > > org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.jav > > > a:548) > > > > > > [junit] at > > > > > > > > > > > > > > > > > > org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDrive > > > r.java:212) > > > > > > [junit] at > > > > > > > > > > > > > > > > > > org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java > > > :130) > > > > > > [junit] at > > > > > > > org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181) > > > > > > [junit] at > > > > > > > org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168) > > > > > > [junit] at > > > > > > > org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157) > > > > > > [junit] at > > > > > > > > > > > > > > > > > > org.apache.manifoldcf.core.tests.SeleniumTester.start(SeleniumTester.j > > > ava:86) > > > > > > [junit] at > > > > > > > > > > > > > > > > > > org.apache.manifoldcf.authorities.authorities.activedirectory.tests.Na > > > vigationHSQLDBUI.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/connector-build.xml:1195: > > > > > > Test > > > > > > > > > > > > > > > > > > org.apache.manifoldcf.authorities.authorities.activedirectory.tests.Na > > > vigationHSQLDBUI > > > > > > 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 < > > > [email protected] > > > > > > > > > > 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 < > > > [email protected] > > > > > > > > > > > wrote: > > > > > > > > > > > > > Hi Karl, > > > > > > > > > > > > > > Thank you for the update, I'll hold until we find a fix for > > > > > > > this > > > > issue > > > > > > > > > > > > > > > On Jul 11, 2018, at 9:09 PM, Karl Wright > > > > > > > > <[email protected]> > > > > 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 < > > > [email protected]> > > > > > > > wrote: > > > > > > > >> > > > > > > > >> This stackoverflow article recommends an update of the > > > > > > > >> chrome > > > > > driver: > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > https://stackoverflow.com/questions/22402389/getting-exeception-while- > > > using-chrome-browser-in-selenium-project > > > > > > > >> > > > > > > > >> Karl > > > > > > > >> > > > > > > > >> > > > > > > > >>> On Wed, Jul 11, 2018 at 11:18 AM Karl Wright < > > > [email protected] > > > > > > > > > > > > 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 < > > > > > > [email protected] > > > > > > > > > > > > > > > >>> wrote: > > > > > > > >>> > > > > > > > >>>> Hi Karl, > > > > > > > >>>> I have set the environment variable *SL_CHROME_DRIVER* > > > > > > > >>>> > > > > > > > >>>> this is the error message in plain text > > > > > > > >>>> > > > > > > > >>>> Behaviour=}] > > > > > > > >>>> [junit] Session ID: 3ad1b9e6f76c135667ad37cbbe571974 > > > > > > > >>>> [junit] at > > > > > > > >>>> > > > java.lang.reflect.Constructor.newInstance(Constructor.java:423) > > > > > > > >>>> [junit] at > > > > > > > >>>> > > > > > > > >>>> > > > > > > > > > > > > > > > > > > > > > > > > > org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.j > > > ava:216) > > > > > > > >>>> [junit] at > > > > > > > >>>> > > > > > > > >>>> > > > > > > > > > > > > > > > > > > > > > > > > > org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHan > > > dler.java:168) > > > > > > > >>>> [junit] at > > > > > > > >>>> > > > > > > > >>>> > > > > > > > > > > > > > > > > > > > > > > > > > org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.jav > > > a:638) > > > > > > > >>>> [junit] at > > > > > > > >>>> > > > > > > > > > > > > > > > org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:32 > > > 5) > > > > > > > >>>> [junit] at > > > > > > > >>>> > > > > > > > >>>> > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.manifoldcf.core.tests.SeleniumTester.start(SeleniumTester.j > > > ava:111) > > > > > > > >>>> [junit] at > > > > > > > >>>> > > > > > > > >>>> > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.manifoldcf.authorities.authorities.activedirectory.tests.Na > > > vigationHSQLDBUI.createConnectionsAndJob(NavigationHSQLDBUI.java:40) > > > > > > > >>>> [junit] > > > > > > > >>>> [junit] > > > > > > > >>>> > > > > > > > >>>> BUILD FAILED > > > > > > > >>>> > > > > > > > > > > > D:\RC0\apache-manifoldcf-2.10-src\apache-manifoldcf-2.10\build.xml:498: > > > > > > > >>>> The > > > > > > > >>>> following error occurred while executing this line: > > > > > > > >>>> > > > > > > > > > > > D:\RC0\apache-manifoldcf-2.10-src\apache-manifoldcf-2.10\build.xml:436: > > > > > > > >>>> The > > > > > > > >>>> following error occurred while executing this line: > > > > > > > >>>> > > > > > > > >>>> > > > > > > > > > > > > > > > > > > > > > > > > > > D:\RC0\apache-manifoldcf-2.10-src\apache-manifoldcf-2.10\dist\connector-build.xml:1192: > > > > > > > >>>> Test > > > > > > > >>>> > > > > > > > >>>> > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.manifoldcf.authorities.authorities.activedirectory.tests.Na > > > vigationHSQLDBUI > > > > > > > >>>> failed > > > > > > > >>>> > > > > > > > >>>>> On 11 July 2018 at 19:55, Karl Wright > > > > > > > >>>>> <[email protected]> > > > > > 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 < > > > > > > > [email protected] > > > > > > > >>>>> > > > > > > > >>>>> 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 > > > > > > > >>>>>>> <[email protected]> > > > > > > wrote: > > > > > > > >>>>>>> > > > > > > > >>>>>>> Have you installed Selenium? > > > > > > > >>>>>>> > > > > > > > >>>>>>> Karl > > > > > > > >>>>>>> > > > > > > > >>>>>>> > > > > > > > >>>>>>> On Wed, Jul 11, 2018 at 3:40 AM Irindu Nugawela < > > > > > > > >>>> [email protected]> > > > > > > > >>>>>>> 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.<init>(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:4 > > > > 0) > > > > > > > >>>>>>>> [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 > > > > > > > >>>>>>>> > > > > > > > >>>>>>>> > > > > > > > >>>>>>>> > > > > > > > >>>>>>>> > > > > > > > >>>>>>>> (I have also attached the screenshot) > > > > > > > >>>>>>>> > > > > > > > >>>>>>>> Please help me run the UI tests and also let me know > > > > > > > >>>>>>>> if > > > > there > > > > > 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 <http://www.ce.pdn.ac.lk/> > > > > > Undergraduate, > > > > > > > >>>>>>>> Faculty of Engineering University of Peradeniya > > > > > > > >>>>>>>> > > > > > > > >>>>>>> > > > > > > > >>>>>> > > > > > > > >>>>>> > > > > > > > >>>>>> > > > > > > > >>>>>> -- > > > > > > > >>>>>> Thanks and Regards, > > > > > > > >>>>>> Irindu Nugawela, > > > > > > > >>>>>> Computer Engineering <http://www.ce.pdn.ac.lk/> > > > > Undergraduate, > > > > > > > >>>>>> Faculty of Engineering University of Peradeniya > > > > > > > >>>>>> > > > > > > > >>>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>> -- > > > > > > > >>>> Thanks and Regards, > > > > > > > >>>> Irindu Nugawela, > > > > > > > >>>> Computer Engineering <http://www.ce.pdn.ac.lk/> > > > Undergraduate, > > > > > > > >>>> Faculty of Engineering University of Peradeniya > > > > > > > >>>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > -- > > > > > > Piergiorgio > > > > > > > > > > > > > > > > > > > -- > > > > Piergiorgio > > > > > > > >
