lundi 4 février 2019

Communication Problem between Botium Box and Selenium (Docker)

We have a running version of botium-box and selenium in separated docker containers. Botium-box is connected to redis and prisma in the cloud. We connected the docker containers using a network by running the following commands:

docker run --name botium -p 4000:4000 botiumbox
docker run --name selenium --hostname selenium -d -p 4444:4444 --shm-size=2g selenium/standalone-chrome:3.141.59-europium
docker network create my-net
docker network connect my-net selenium
docker network connect my-net botium

We have a working test case with our chatbot using the botium-cli as it's explained in the following article: https://chatbotsmagazine.com/5-steps-automated-testing-of-chatbots-in-eclipse-ef4c3dcaf233

When we try to connect our chatbot with botium-box we receive the following error:

2019-02-04T13:06:44.665Z botium-box-server-agents-testsession Test Session Job 247/cjrqcmo4j00yt0807mskvflq9 failed: Error: <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <link rel="stylesheet" type="text/css" href="/assets/displayhelpservlet.css" media="all"/>
  <link href="/assets/favicon.ico" rel="icon" type="image/x-icon" />
  <script src="/assets/jquery-3.1.1.min.js" type="text/javascript"></script>
  <script src="/assets/displayhelpservlet.js" type="text/javascript"></script>
  <script type="text/javascript">
    var json = Object.freeze('{"consoleLink": "\u002fwd\u002fhub","type": "Standalone","class": "org.openqa.grid.web.servlet.DisplayHelpHandler$DisplayHelpServletConfig","version": "3.141.59"}');
  </script>
</head>
<body>

<div id="content">
  <div id="help-heading">
    <h1><span id="logo"></span></h1>
    <h2>Selenium <span class="se-type"></span>&nbsp;v.<span class="se-version"></span></h2>
  </div>

  <div id="content-body">
    <p>
      Whoops! The URL specified routes to this help page.
    </p>
    <p>
      For more information about Selenium <span class="se-type"></span> please see the
      <a class="se-docs">docs</a> and/or visit the <a class="se-wiki">wiki</a>.
      <span id="console-item">
        Or perhaps you are looking for the Selenium <span class="se-type"></span> <a class="se-console">console</a>.
      </span>
    </p>
    <p>
      Happy Testing!
    </p>
  </div>

  <div>
    <footer id="help-footer">
      Selenium is made possible through the efforts of our open source community, contributions from
      these <a href="https://github.com/SeleniumHQ/selenium/blob/master/AUTHORS">people</a>, and our
      <a href="http://www.seleniumhq.org/sponsors/">sponsors</a>.
   </footer>
  </div>
 </div>

</body>
</html>
    at new RuntimeError (/app/agent/node_modules/webdriverio/build/lib/utils/ErrorHandler.js:143:12)
    at Request._callback (/app/agent/node_modules/webdriverio/build/lib/utils/RequestHandler.js:302:39)
    at Request.self.callback (/app/agent/node_modules/request/request.js:185:22)
    at Request.emit (events.js:188:13)
    at Request.EventEmitter.emit (domain.js:439:20)
    at Request.<anonymous> (/app/agent/node_modules/request/request.js:1161:10)
    at Request.emit (events.js:188:13)
    at Request.EventEmitter.emit (domain.js:439:20)
    at IncomingMessage.<anonymous> (/app/agent/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:276:13).

Why do we receive this redirect? Which endpoint should be used for Selenium Endpoint (Device Providers)?

How do you connect Selenium and botium-box in Docker?

Thank you very much!

Aucun commentaire:

Enregistrer un commentaire