rcbops-qe / kibana-selenium Goto Github PK
View Code? Open in Web Editor NEWKibana testing framework which uses selenium webdriver and phantomjs.
License: Apache License 2.0
Kibana testing framework which uses selenium webdriver and phantomjs.
License: Apache License 2.0
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
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.