Ticket #136 (closed enhancement: fixed)
Run Selenium (AJAX) tests in TestMaker
| Reported by: | fcohen | Owned by: | llara@… |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Version: | 5.2 | Keywords: | selenium selenese ajax |
| Cc: |
Description (last modified by fcohen) (diff)
PushToTest version 5.2 will feature Selenium integrated into the PushToTest test automation platform. Selenium users will create functional tests of Web and Ajax applications using the Selenium plug-in to Firefox. Selenium outputs Selenese files in HTML format.
Users will have two ways to play Selenium tests in the PushToTest distributed test environment:
1) ScriptRunner:
<resources>
<selenium path="BrewBizCoffeeTest.selenium"/>
</resources>
...
<run name="CoffeeTest" testclass="BrewBizCoffeeTest. selenium"
method="selenium" langtype="selenium">
</run>
Internally this uses the Denali contributed (http://tinyurl.com/6lzq9c) HTMLUnit/Rhino approach to operate the test.
2) Transformer for Selenese -> Jython:
PushToTest will contribute a Selenese-to-PushToTest transformer. The Transformer outputs a Jython script that uses HTMLUnit and Rhino to play-back tests. We will use the Denali Selenium-PushToTest transformer contribution. Dominique and Olivier of Denali contributed the transformer. Download the transformer at: http://tinyurl.com/6lzq9c. We will use this approach to write a Selenium ScriptRunner (langtype="selenium").
For both of the above options, Selenium tests receive dynamic operational data at runtime from PushToTest Data Production Libraries (DPLs.) For instance, a Selenium test that operates a sign-in page receives the account number and password from a DPL that accesses data from a comma-separated-value file (or a relational database or custom DPL.)
Additionally, Selenium tests produce results data that PushToTest Results Analysis engine renders into hundreds of charts. And, these charts correlate Selenium test operation to resource utilization (CPU, Network, Memory, Threads) in the back-end server.
3) Operate a Selenium test in a TestNode/Selenium? RC/Browser
This test operates a Selenese test using a TestNode, Selenium RC, and a browser. TestMaker operates the test and receives the results. TestMaker processes the results into a transaction log file and processed the TestMaker results engine.
