WebWork 2.2.6 have Selenium test cases for the showcase web application that comes with the distribution. Showcase is there to help us make sure the functionalities in WebWork works as expected. Run Showcase Selenium Test CasesTo run Selenium test cases for showcase.
StructureThe selenium core source files are under the directory [Directory Where WebWork Distribution is Unziped]/webapps/showcase/src/webapp/selenium/core in the distribution of WebWork. The tests are under the directory [Directory Where WebWork Distribution is Unzipped]/webapps/showcase/src/webapp/selenium/tests Adding more test casesTo add more test cases, create the test cases and place them in [Directory Where WebWork Distribution is Unzipped]/webapps/showcase/src/webapp/selenium/tests Then alter [Directory Where WebWork Distribution is Unzipped]/webapps/showcase/src/webapp/selenium/tests/TestSuite.html to add the newly created test case. TestSuite.html looks something like ... <body onload="filterTestsForBrowser()"> <table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"> <tbody> <tr> <td><b>Test Suite</b></td> </tr> <tr> <td> <a href="./../tests/ConfigBrowserTest.jsp">ConfigBrowserTest</a> </td> </tr> <!-- here is where the newly created test case should be linked --> ... </tbody> </table> <body> ... Enjoy. |