Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable robot tests #87

Closed
manics opened this issue Nov 30, 2017 · 5 comments
Closed

Enable robot tests #87

manics opened this issue Nov 30, 2017 · 5 comments

Comments

@manics
Copy link
Member

manics commented Nov 30, 2017

Based on discussions in Slack the robot tests don't work in devspace.

@joshmoore
Copy link
Member

joshmoore commented Nov 30, 2017

In my devspace, I'm currently seeing this:


TEST CASE: | Test Comments
-- | --
 
0:00:00.001 (+0:00:00.001)
FAIL (critical)
Parent suite setup failed: WebDriverException: Message: None Stacktrace:     
at java.util.HashMap.putMapEntries (HashMap.java:500)     
at java.util.HashMap.putAll (HashMap.java:784)     
at org.openqa.selenium.remote.DesiredCapabilities. (DesiredCapabilities.java:54)     
at org.openqa.grid.web.servlet.handler.RequestHandler.process (RequestHandler.java:107)     
at org.openqa.grid.web.servlet.DriverServlet.process (DriverServlet.java:83)     
at org.openqa.grid.web.servlet.DriverServlet.doPost (DriverServlet.java:67)     
at javax.servlet.http.HttpServlet.service (HttpServlet.java:707)     
at javax.servlet.http.HttpServlet.service (HttpServlet.java:790)     
at org.seleniumhq.jetty9.servlet.ServletHolder.handle (ServletHolder.java:808)     
at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle (ServletHandler.java:587)     
at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle (SessionHandler.java:221)     
[ Message content over the limit has been removed. ] ....seleniumhq.jetty9.servlet.ServletHandler.doScope (ServletHandler.java:515)     
at org.seleniumhq.jetty9.server.session.SessionHandler.doScope (SessionHandler.java:185)     
at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope (ContextHandler.java:1061)     
at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle (ScopedHandler.java:141)    
at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle (HandlerWrapper.java:97)     
at org.seleniumhq.jetty9.server.Server.handle (Server.java:499)    
at org.seleniumhq.jetty9.server.HttpChannel.handle (HttpChannel.java:310)     
at org.seleniumhq.jetty9.server.HttpConnection.onFillable (HttpConnection.java:257)     
at org.seleniumhq.jetty9.io.AbstractConnection$2.run (AbstractConnection.java:540)     
at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:635)    
at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$3.run (QueuedThreadPool.java:555)     
at java.lang.Thread.run (Thread.java:745)


@joshmoore
Copy link
Member

joshmoore commented Dec 1, 2017

Changes made locally such that robot tests are running: https://web-proxy.openmicroscopy.org/next-ci/job/OMERO-robot/6/console

commit 20d8b42c566818dc0f926db4d86a19dcb8b376fa
Author: jmoore <josh@glencoesoftware.com>
Date:   Fri Dec 1 08:50:58 2017 +0000

    Robot improvements

diff --git a/docker-compose.yml b/docker-compose.yml
index e256079..9861e39 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -113,7 +113,7 @@ redis:
     image: redis

 seleniumhub:
-    image: selenium/hub:3.0.0-dubnium
+    image: selenium/hub
     environment:
         - GRID_BROWSER_TIMEOUT=60
         - GRID_TIMEOUT=60
@@ -124,13 +124,13 @@ seleniumhub:
     ports:
         - "4444"
 seleniumfirefox:
-    image: selenium/node-firefox:3.0.0-dubnium
+    image: selenium/node-firefox
     links:
         - seleniumhub:hub
 #    volumes:
 #        - /dev/shm:/dev/shm
 seleniumchrome:
-    image: selenium/node-chrome:3.0.0-dubnium
+    image: selenium/node-chrome
     links:
         - seleniumhub:hub
 #    volumes:

diff --git a/home/jobs/OMERO-robot/config.xml b/home/jobs/OMERO-robot/config.xml
index db4432d..273348a 100644
--- a/home/jobs/OMERO-robot/config.xml
+++ b/home/jobs/OMERO-robot/config.xml
@@ -19,7 +19,7 @@
         <hudson.model.StringParameterDefinition>
           <name>WEBHOST</name>
           <description></description>
-          <defaultValue>next_infra-ci.openmicroscopy.org</defaultValue>
+          <defaultValue>web-proxy.openmicroscopy.org</defaultValue>
         </hudson.model.StringParameterDefinition>
       </parameterDefinitions>
     </hudson.model.ParametersDefinitionProperty>
@@ -71,7 +71,7 @@ mv $WORKSPACE/${ZIP_DIST%.zip} $SRC/dist
 virtualenv $WORKSPACE/omero-virtualenv --system-site-packages
 source $WORKSPACE/omero-virtualenv/bin/activate
 pip install -r $SRC/dist/share/web/requirements-py27-nginx.txt
-pip install &quot;robotframework==3.0&quot; &quot;robotframework-selenium2library==1.8.0&quot;
+pip install --upgrade --pre &quot;robotframework==3.0&quot; &quot;robotframework-selenium2library&quot;

 $SRC/dist/bin/omero config set omero.web.prefix $WEB_PREFIX;

@@ -80,7 +80,7 @@ cd $SRC/dist
 bash ../components/tests/ui/robot_setup.sh
 mv $SRC/dist/robot_ice.config $SRC/components/tests/ui/resources/
 export ICE_CONFIG=$SRC/components/tests/ui/resources/robot_ice.config
-$SRC/dist/bin/omero --path $SRC/components/tests/ui/plugins robot config --protocol http --webhost $WEBHOST --remoteurl &apos;http://seleniumhub:4444/wd/hub&apos; --dc &apos;browse
+$SRC/dist/bin/omero --path $SRC/components/tests/ui/plugins robot config --protocol https --webhost $WEBHOST --remoteurl &apos;http://seleniumhub:4444/wd/hub&apos; --dc &apos;brows

 sed -i.bak -re &apos;s/(\{SERVER_ID\}.*1)/\{SERVER_ID\}      2/&apos; $SRC/components/tests/ui/resources/config.txt

However, there are a few warnings:

  • 1
web-firefox:
Created dir: /home/omero/workspace/OMERO-robot/src/components/tests/ui/target/reports/web/firefox
[ ERROR ] Error in file '/home/omero/workspace/OMERO-robot/src/components/tests/ui/testcases/web/forms_test.txt': Invalid syntax in test case 'Test Search': Setting '[Documentation]' used multiple times.
  • 2 (MANY)
Test Comments                                                         [ WARN ] Using 'Get Element Attribute' without explicit attribute is deprecated.
[ WARN ] Using 'Get Element Attribute' without explicit attribute is deprecated.
[ WARN ] Using 'Get Element Attribute' without explicit attribute is deprecated.
(...lots of repeats...)
  • 3 (Several)
------------------------------------------------------------------------------
Web.Create Scenario :: Tests the tree for creating new projects, d... | FAIL |
Suite teardown failed:
WebDriverException: Message: Session [03c75b9e-e73d-4f2e-a411-56a0b72ee147] was terminated due to TIMEOUT
Stacktrace:
    at org.openqa.grid.internal.ActiveTestSessions.getExistingSession (ActiveTestSessions.java:105)
    at org.openqa.grid.internal.DefaultGridRegistry.getExistingSession (DefaultGridRegistry.java:394)
  • 4
MoveTargetOutOfBoundsException: Message: (158, -68) is out of bounds of viewport width (1224) and height (842)

cc: @will-moore

@will-moore
Copy link
Member

will-moore commented Dec 1, 2017 via email

@jburel
Copy link
Member

jburel commented Jan 21, 2018

see #88
and ome/openmicroscopy#5606 for test improvement

@jburel jburel closed this as completed Jan 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants