- 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 [cid:image001.jpg@01CD128E.A86F12C0] ---------------------------------------------------------------------------- # Create the session directory by accessing http://localhost/qunit_remote/index.php?action=init&session=mysessionname # 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. http://localhost/qunit_remote/file/jquery-mobile/tests/unit/core http://localhost/qunit_remote/file/jquery-mobile/tests/unit/button http://localhost/qunit_remote/file/jquery-mobile/tests/unit/event ... # Finally to retrieve results simply run from any browser/machine http://localhost/qunit_remote/index.php?action=end&session=mysessionname # Instead of getting a zip you can just get the final master xml will all the results by using http://localhost/qunit_remote/index.php?action=end&session=mysessionname&output=raw Maxime Rassi NOKIA 5 Wayside Road Burlington MA, 01803
Attachments
- image/jpeg attachment: image001.jpg
Received on Saturday, 7 April 2012 11:44:37 UTC