Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

[PROPOSAL] Webdriver Selenese HTML Runner #175

Closed
lukeis opened this issue Mar 2, 2016 · 10 comments
Closed

[PROPOSAL] Webdriver Selenese HTML Runner #175

lukeis opened this issue Mar 2, 2016 · 10 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 175

WebDriver Selenese HTML Runner (WSHR)

This small library makes it possible to run Selenium HTML tests
programmatically.


Background

Many projects use Selenium IDE to record tests in HTML format and run them
with "classic" Selenium. WSHR parses these files and uses Webdriver to
execute them.


Usage

WSHR does not have its own commandline runner, but can be used from any
Java class. Typically you would use it from JUnit, TestNG, JBehave or even
Fitnesse fixtures.

See GoogleTest.java for a concrete example.


TODOs

* Neko

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> must
be changed to <html> - otherwise neko says 0 nodes. Neko config?

* Reporting

Output HTML. Write to a passed stream instead of stdout.


Reported by flobakk on 2009-03-24 15:15:06


- _Attachment: [webdriver-selenese-html-runner.zip](https://storage.googleapis.com/google-code-attachments/selenium/issue-175/comment-0/webdriver-selenese-html-runner.zip)_
@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

It should be OK to change the package names in this code to those of webdriver.

Reported by aslak.hellesoy on 2009-03-31 21:11:24

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Absolutely. In fact, if the project chooses to use the provided code, they are of
course free to decide how they want to incorporate it with Webdriver. E.g. let it be
a standalone module, or include it in one of the existing modules.

The package name is a slip-up on our behalf, and should indeed be changed to a more
appropriate name.

Reported by flobakk on 2009-03-31 21:31:47

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by jari.bakken on 2010-06-17 00:34:23

  • Labels added: Type-Enhancement, Component-WebDriver
  • Labels removed: Type-Defect

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by antlong on 2011-01-24 18:17:18

  • Labels added: Component-IDE

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Yes. Absolutely. Likely has to be Java for is-it-on-the-machine-ness. Also should include
'remove -htmlSuite from the server' as this would be replacement tech.

Reported by adamgoucher on 2011-02-01 01:35:21

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

The way of running the Selenium HTML scripts, ie. interpreting them instead of compiling
them into Java, has some major advantages:

1. Allows for easy incorportion with your Continuous Integration process:
a. A tester (usually a non-techi) records a test case/suite through the Selenium IDE
and
saves it in Selenium HTML.
b. These Selenium HTML scripts are checked in into a version control system (eg. Subversion).
c. A programmer builds a Java program that loads and runs each script as a JUnit test.
(This could be a program a little more sofisticated than GoogleTest.java example above,
for it wil load and run all scripts present in a certain directory. Allowing for testers
to add scripts without need to modify the Java program.)

2. In case a new Selenium API is released you will not have te export all scripts again
to Java files. Simply replacing the interpreter is all that is needed. You won't have
to export the scripts at all, nor adding the exported Java file to your version control
system to incorporate them into your Continuous Intergration build process.

3. Similar interpreters could be created for other languages such as Ruby, Python,
C#, etc. This way Selenium HTML could become a standard test DSL (Domain Specific Language).

Reported by ronald.koster@logica.com on 2011-02-17 13:06:58

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

This is the Holy Grail of web testing! Looks like somebody else is on the case http://code.google.com/p/mvnsese/

Reported by mr.simon.jones on 2011-03-11 09:26:43

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Writing a runner for selenese is out of scope for the project. That said, one of the
project's GSoC students has been working on the problem this summer. It takes
- selenese -> remote webdriver
- setup/teardown (in xunit style)
- data driving

The code is at https://github.com/Toseter/SeleniumRunner

Documentation, etc. coming in the next week or so.

(there is also http://www.selunit.org/ and a number of other ones).

Reported by adamgoucher on 2011-08-17 16:29:55

  • Status changed: WontFix

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

For those of you still looking for this, the following project works very nicely and
is actively maintained: https://github.com/vmi/selenese-runner-java

Reported by correia@textkernel.nl on 2014-04-30 08:43:22

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 17:47:53

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant