W3C home > Mailing lists > Public > public-test-infra@w3.org > April to June 2012

QUnit - Test Results Server Side Handling to XML

From: <maxime.rassi@nokia.com>
Date: Fri, 6 Apr 2012 21:13:37 +0000
To: <public-test-infra@w3.org>
CC: <mike.tavares@nokia.com>, <Rakesh.Tiwary@nokia.com>
Message-ID: <417D1514FFBC52469BF14D98DE0C95C710556EC0@008-AM1MPN1-042.mgdnok.nokia.com>
Our team here at Nokia needed an automated way to run and fetch the results from the qunit jquery mobile test pages (https://github.com/jquery/jquery-mobile/tree/master/tests). Selenium would have naturally been a great tool to automate this however given our added layer of complexity and evolving infrastructure with physical devices we have been testing a simpler approach with minimal infrastructure support needed.

In this approach, we have modified the jquery.testHelper.js script to send the content of the page back to a server at the end of execution. The results are parsed by the server and stored there as physical files.

Each test pages can now be loaded one after another and the results are processed and stored on the server no matter the device or browser in use. Any client can then request the results back by calling the appropriate url.
We thought of sharing this back to the community if it can be useful to anyone else.

The source can be found at: https://github.com/maximerassi/qunit_remote


# Create the session directory by accessing

# Then you can start running the tests by accessing the corresponding directories
# When you edit 'file/jquery_mobile/tests/jquery.testHelper.js' make sure you use the same
# 'mysessionname' as for the 'init' and 'end' steps.

# Finally to retrieve results simply run from any browser/machine
# Instead of getting a zip you can just get the final master xml will all the results by using

Maxime Rassi
5 Wayside Road
Burlington MA, 01803

(image/jpeg attachment: image001.jpg)

Received on Saturday, 7 April 2012 11:44:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:34:07 UTC