Return-Path: Delivered-To: apmail-incubator-click-dev-archive@minotaur.apache.org Received: (qmail 42123 invoked from network); 30 Mar 2009 18:56:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2009 18:56:11 -0000 Received: (qmail 28221 invoked by uid 500); 30 Mar 2009 18:56:11 -0000 Delivered-To: apmail-incubator-click-dev-archive@incubator.apache.org Received: (qmail 28188 invoked by uid 500); 30 Mar 2009 18:56:11 -0000 Mailing-List: contact click-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@incubator.apache.org Delivered-To: mailing list click-dev@incubator.apache.org Received: (qmail 28179 invoked by uid 99); 30 Mar 2009 18:56:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 18:56:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 18:56:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 90F4D234C041 for ; Mon, 30 Mar 2009 11:55:50 -0700 (PDT) Message-ID: <787935424.1238439350592.JavaMail.jira@brutus> Date: Mon, 30 Mar 2009 11:55:50 -0700 (PDT) From: "Joseph Schmidt (JIRA)" To: click-dev@incubator.apache.org Subject: [jira] Created: (CLK-510) QuickStart should generate tests too. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org QuickStart should generate tests too. ------------------------------------- Key: CLK-510 URL: https://issues.apache.org/jira/browse/CLK-510 Project: Click Issue Type: New Feature Reporter: Joseph Schmidt 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): import com.thoughtworks.selenium.*; import junit.framework.*; public class GoogleTest extends TestCase { private Selenium browser; public void setUp() { browser = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.com"); browser.start(); } 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(); } } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.