Jason,
I think I found what my problem was. Your step " 5) Right-click on
StockWatcher project, New > Source Folder named "test"" is the key.
It has to be "Source Folder" -- Just "Folder" will screw things up.
When I right-click the test java file, "Run As -> Run
Configurations ...", the "Run" button is enabled.
Also, I can run the Junit by right-click the test java file "Run As ->
GWT JUnit Test".
Again, thanks for your help! You are the BEST!
On Sep 22, 8:58 am, Pion <
onlee2...@gmail.com> wrote:
> Thanks, Jason. I really appreciate your help.
>
> I just followed your step-by-step instructions below. Unfortunately,
> It still give me "The input type of the launch
> configuration doesnotexist".
>
> Also, I right-click the StockWatcherTest.java and select "RunAs ->RunConfigurations", it shows the dialog box and the "Run" button is
> disabled.
>
> I don't know if this info will be helpful to you. This morning, I
> created a unit test successfully onEclipse-Galileo for my Google App
> Engine by doing the following:
>
> o I created a package com.foo.server.test under src
> o Right-click on the package com.foo.server.test, select "New ->
> Other ... ->JUnitTest Case ".
> o IcanrunonEclipsesuccessfully.
> o Also, the "Run" button is enabled when I went to "RunAs ->Run
> Configurations".
>
> Again, thanks for your help.
>
> On Sep 22, 7:43 am, Jason Parekh <
jasonpar...@gmail.com> wrote:
>
> > Hi Pion,
> > Could you try the steps below? I performed these locally and found success.
>
> > 1) Extract GettingStarted.zip somewhere
> > 2)Eclipse'sFile > Import > General > Existing projects, choose the
> > extracted StockWatcher directory
> > 3) Right-click on the StockWatcher project, and choose Properties. Click on
> > Google > Web Toolkit (on the side bar), and confirm there is a GWT SDK set
> > for this project
> > 4) Java Build Path, Libraries tab, Add Library button,JUnitfrom list, Next
> > button, ensureJUnit3 is being used, and Finish button and then OK button
> > 5) Right-click on StockWatcher project, New > Source Folder named "test"
> > 6) Create a package in there named
> > "com.google.gwt.sample.stockwatcher.client"
> > 7) Finally, paste the contents below into a new class in that package (named
> > StockWatcherTest.java)
> > 8) Right-click on this class, chooseRunAs > GWTJUnitTest
>
> > If I've screwed up anywhere in these directions, please let me know. Hope
> > this works!
>
> > jason
>
> > package com.google.gwt.sample.stockwatcher.client;
>
> > import com.google.gwt.junit.client.GWTTestCase;
>
> > /**
> > * GWTJUnittests must extend GWTTestCase.
> > */
> > public class StockWatcherTest extends GWTTestCase {
>
> > /**
> > * Must refer to a valid module that sources this class.
> > */
> > public String getModuleName() {
> > return "com.google.gwt.sample.stockwatcher.StockWatcher";
> > }
>
> > /**
> > * Add as many tests as you like.
> > */
> > public void testSimple() {
> > assertTrue(true);
> > }
>
> > }
> > On Mon, Sep 21, 2009 at 6:27 PM, Pion <
onlee2...@gmail.com> wrote:
>
> > > Unfortunately, there is no .metadata folder.
>
> > > There are .settings, .classpath and .project.
>
> > > On Sep 21, 2:29 pm, Jason Parekh <
jasonpar...@gmail.com> wrote:
> > > > No problem!
> > > > If you open yourEclipseworkspace folder, there should be a folder
> > > called
> > > > ".metadata". Inside that, there should be a file called ".log".
>
> > > > I believe Windows hides these files by default, so you may need to use
> > > the
> > > > command prompt to find this file (either that, or turn on the setting to
> > > > show hidden files -- seehttp://
> > >
windowshelp.microsoft.com/Windows/en-US/help/27e9a81a-fac7-457...)
>
> > > > If neither the file nor folder are present, then there maynotbe any
> > > > detailed error logs.
>
> > > > jason
>
> > > > On Mon, Sep 21, 2009 at 5:20 PM, Pion <
onlee2...@gmail.com> wrote:
>
> > > > > Sorry for the late reply. I just returned to my desk.
>
> > > > > WherecanI find those info?Canyou give me more specific examples? I
> > > > >can't seem to find them.
>
> > > > > On Sep 21, 12:11 pm, Jason Parekh <
jasonpar...@gmail.com> wrote:
> > > > > > Strange! Could you send us the contents of your
> > > WORKSPACE/.metadata/.log
> > > > > > file? It might have more detailed information about the error.
> > > > > > Thanks
> > > > > > jason
>
> > > > > > On Mon, Sep 21, 2009 at 1:51 PM, Pion <
onlee2...@gmail.com> wrote:
>
> > > > > > > I right-click on my java test file and select "RunAs -> GWTJunit
> > > > > > > Test". Then, I got the following error: "The input type of the
> > > launch
> > > > > > > configuration doesnotexist".
>
> > > > > > > On Sep 21, 10:27 am, Jason Parekh <
jasonpar...@gmail.com> wrote:
> > > > > > > > On Mon, Sep 21, 2009 at 1:21 PM, Pion <
onlee2...@gmail.com>
> > > wrote:
>
> > > > > > > > > I got the error when following the instructions on
> > > > > > > > >
http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
>
> > > > > > > > > Followinghttp://
> > >
code.google.com/eclipse/docs/gwt_junit.htmldidnot
> > > > > > > > > give me any error. I went toEclipse"Run->RunConfigurations
> > > ...
> > > > > "
> > > > > > > > > which display a dialog box. But the "Run" button (on the dialog
> > > > > box)
> > > > > > > > > has been disabled so I cannotrunit.
>
> > > > > > > > Could you try right-clicking on your test class and choosingRun
> > > as
> > > > > ->
> > > > > > > GWT
> > > > > > > > Test case?
>
> > > > > > > > Thanks,
> > > > > > > > jason
>
> > > > > > > > > On Sep 21, 9:41 am, Jason Parekh <
jasonpar...@gmail.com>
> > > wrote:
> > > > > > > > > > Hi Pion,
>
> > > > > > > > > > Did the error you described ("The input type of the launch
> > > > > > > configuration
> > > > > > > > > > doesnotexist") come when you were following the
> > > StockWatcher
> > > > > test
> > > > > > > > > > instructions or the Google Plugin forEclipsetest
> > > instructions?
>
> > > > > > > > > > What error did youruninto when you tried the Google Plugin
> > > for
> > > > > > >Eclipse
> > > > > > > > > > test instructions (the second URL you mentioned)?
>
> > > > > > > > > > Thanks
> > > > > > > > > > jason
>
> > > > > > > > > > On Mon, Sep 21, 2009 at 11:53 AM, Pion <
onlee2...@gmail.com>
> > > > > wrote:
>
> > > > > > > > > > > I am following the instructions on
> > > > > > > > > > >
http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> > > > > > > > > > > Icanrunthejunitsuccessfully using command line. My
> > > > > > > environments
> > > > > > > > > > > are:Eclipse-Galileo, GWT SDK 1.7 on Windows Vista.
>
> > > > > > > > > > > However, I am having problem when trying torunit on
> > >Eclipse.
> > > > > > >Eclipse
> > > > > > > > > > > gave me the following error message: "The input type of the
> > > > > launch
> > > > > > > > > > > configuration doesnotexist".
> > > > > > > > > > > MyEclipse"Run" button is disabled -- Icannotclick it.