Giter VIP home page Giter VIP logo

kibana-selenium's People

Contributors

rydor avatar weezer avatar

Watchers

 avatar  avatar  avatar  avatar

kibana-selenium's Issues

Intermittent kibana-selenium failures on rpco newton/master

Hi All,

We're seeing the following two intermittent failures on test_all_event_logs when running kibana-selenium testing against rpco newton and master deployments:

======================================================================
ERROR: test_all_event_logs (testrepo.kibana.kibana.KibanaOne)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/RPC-AIO_newton-xenial-deploy-swift-periodic/kibana-selenium/testrepo/kibana/kibana.py", line 101, in test_all_event_logs
    if "message" in v.text:
  File "/var/lib/jenkins/workspace/RPC-AIO_newton-xenial-deploy-swift-periodic/kibana-selenium/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 68, in text
    return self._execute(Command.GET_ELEMENT_TEXT)['value']
  File "/var/lib/jenkins/workspace/RPC-AIO_newton-xenial-deploy-swift-periodic/kibana-selenium/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 461, in _execute
    return self._parent.execute(command, params)
  File "/var/lib/jenkins/workspace/RPC-AIO_newton-xenial-deploy-swift-periodic/kibana-selenium/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute
    self.error_handler.check_response(response)
  File "/var/lib/jenkins/workspace/RPC-AIO_newton-xenial-deploy-swift-periodic/kibana-selenium/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response
    raise exception_class(message, screen, stacktrace)
StaleElementReferenceException: Message: {"errorMessage":"Element is no longer attached to the DOM","request":{"headers":{"Accept":"application/json","Accept-Encoding":"identity","Connection":"close","Content-Type":"application/json;charset=UTF-8","Host":"127.0.0.1:44239","User-Agent":"Python-urllib/2.7"},"httpVersion":"1.1","method":"GET","url":"/text","urlParsed":{"anchor":"","query":"","file":"text","directory":"/","path":"/text","relative":"/text","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/text","queryKey":{},"chunks":["text"]},"urlOriginal":"/session/786df8d0-8d07-11e7-8a70-9b1371f71d78/element/:wdc:1504044912391/text"}}
Screenshot: available via screen
======================================================================
ERROR: test_all_event_logs (testrepo.kibana.kibana.KibanaOne)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/RPC-AIO_newton-xenial-deploy-swift-periodic/kibana-selenium/testrepo/kibana/kibana.py", line 107, in test_all_event_logs
    ' > tr:nth-child({0}) > td:nth-child(3)'.format(child)
UnboundLocalError: local variable 'child' referenced before assignment

These are gate failures, so unfortunately we do not have screenshots at our disposal, but I can provide the captured logging should that help.

Are these errors anything you all are able to assist with?

Thanks!

--Matt

Updates need for CSS change to element used for verifying the setup class.

Currently the setup method is looking for an element ".name" in order to ensure the webpage has "Home dashboard" in the text. The change that is required is to change the element we are looking for to "title".

There was another change related to the url. Kibana is no longer accessible on https so a change to the url was needed.

Kibana upgrade to 4.0

As part of the upgrade to 4.0 the CSS has changed. Also the page layout and page objects have changed. There is no longer an Event Dashboard title nor section. The graphs are now encapsulated inside a ".gridster" css section. As a result of the changes that occurred with the upgrade to 4.0, all of the test cases to include the setup step need to be refactored. We will be removing all test cases and adding new one once the portal starts displaying data once again.

In the mean time we need to refactor
-setUp() to look for ".name" with the test "Home dashboard"
-test for the grid's existence
-confirm the log section exists
-confirm an actual log exists

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.