Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
QuickStart generation should produce test artifacts(and configuration for tests too).
To enforce a good usage of Click, the generator should produce JUnit tests (with SeleniumUnit test for the Pages).
E.g. for google page (but it is similar for every click page):
<code>
import com.thoughtworks.selenium.*;
import junit.framework.*;
public class GoogleTest extends TestCase {
private Selenium browser;
public void setUp()
public void testGoogle()
{ browser.open("http://www.google.com/webhp?hl=en"); browser.type("q", "hello world"); browser.click("btnG"); browser.waitForPageToLoad("5000"); assertEquals("hello world - Google Search", browser.getTitle()); }public void tearDown()
{ browser.stop(); }}
</code>
Attachments
Issue Links
- is part of
-
CLK-531 Quick Start Project Builder improvements
- Open