Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents.
Summary: WebDriver/WebTester Factory for easy generation of Web testing UserAgents.
Status: BLOCKED
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Olli-Antti Kivilahti
QA Contact: Testopia
URL:
Keywords:
Depends on: 13995
Blocks: 14536 14540
  Show dependency treegraph
 
Reported: 2015-07-06 12:20 UTC by Olli-Antti Kivilahti
Modified: 2017-05-08 10:46 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: Medium patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (10.85 KB, patch)
2015-07-06 13:01 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (11.76 KB, patch)
2015-07-06 13:04 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (10.00 KB, patch)
2015-07-06 15:26 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (10.53 KB, patch)
2015-07-07 12:43 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (11.16 KB, patch)
2015-07-16 12:41 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (11.16 KB, patch)
2015-07-22 11:24 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (11.16 KB, patch)
2015-07-24 14:02 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (11.42 KB, patch)
2015-07-31 10:33 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (12.70 KB, patch)
2015-08-01 13:36 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (12.70 KB, patch)
2015-08-17 12:00 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents. (12.75 KB, patch)
2017-05-08 10:46 UTC, Lari Taskula
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Olli-Antti Kivilahti 2015-07-06 12:20:44 UTC
Because life is short, getting test web drivers should be easy.

In Ubuntu 14.04, Selenium no longer requires a stand-alone testing Server, so running integration tests is much much more fun!

This factory encapsulates all the boring bits about getting a web driver to mimic user behaviour in the GUI.

Tests included.
Comment 1 Olli-Antti Kivilahti 2015-07-06 13:01:26 UTC Comment hidden (obsolete)
Comment 2 Olli-Antti Kivilahti 2015-07-06 13:04:14 UTC Comment hidden (obsolete)
Comment 3 Olli-Antti Kivilahti 2015-07-06 15:26:33 UTC Comment hidden (obsolete)
Comment 4 Olli-Antti Kivilahti 2015-07-07 12:43:39 UTC Comment hidden (obsolete)
Comment 5 Olli-Antti Kivilahti 2015-07-16 12:41:06 UTC Comment hidden (obsolete)
Comment 6 Olli-Antti Kivilahti 2015-07-17 11:08:26 UTC
You need phantomjs version 1.9 or bigger to run browser testing headlessly in a testing server.
Comment 7 Olli-Antti Kivilahti 2015-07-22 11:24:12 UTC Comment hidden (obsolete)
Comment 8 Olli-Antti Kivilahti 2015-07-24 14:02:58 UTC Comment hidden (obsolete)
Comment 9 Olli-Antti Kivilahti 2015-07-31 10:33:52 UTC Comment hidden (obsolete)
Comment 10 Olli-Antti Kivilahti 2015-08-01 13:36:56 UTC Comment hidden (obsolete)
Comment 11 Olli-Antti Kivilahti 2015-08-17 12:00:24 UTC
Created attachment 41533 [details] [review]
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents.
Comment 12 Lari Taskula 2017-05-08 10:46:45 UTC
Created attachment 63234 [details] [review]
Bug 14495 - WebDriver/WebTester Factory for easy generation of Web testing UserAgents.

Has an optional dependency to Buugg 13799

Because life is short, getting test web drivers must be easy.

    use t::lib::WebDriverFactory;
    my ($firefox) = t::lib::WebDriverFactory::getUserAgentDrivers('firefox');

In Ubuntu 14.04, Selenium no longer requires a stand-alone testing Server, so
running integration tests is much much more fun!

This factory encapsulates all the boring bits about getting a web driver to mimic
user behaviour in the GUI. And makes it super easy to get a test driver for any
testing type environment.

Adds support for Test::Mojo and Selenium,
see t::lib::WebDriverFactory for installation and usage instructions.

----------------------------
-INSTALLATION INSTRUCTIONS:-
----------------------------
-All the WebDriver tests use the Selenium::PhantomJS-package by default.
You MUST install the following dependencies:
  cpanm Selenium::Remote::Driver
  cpanm Selenium::PhantomJS
  apt-get install phantomjs #Minimum version acceptable is v1.09
Optionally you can install other Selenium browsers like
  Firefox
  Chrome
  IE
But they are only useful when testing the WebDriver scripts on a graphical environment.
You are better off using Selenium IDE to learn/test WebDriver scripts.

run t::lib::webDriverFactory.t to see your configured capabilities.