Search the web
Sign In
New User? Sign Up
java-gui-testing · Java GUI Testing
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 1625 - 1654 of 1683   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#1654 From: Alex Ruiz <alruiz15@...>
Date: Sun Jul 22, 2007 9:10 pm
Subject: Re: Test-Driven GUI Development
alruiz15
Offline Offline
Send Email Send Email
 
Hi David,

Thank you very much for your feedback :)

I understand that the Robot class was not created specifically for testing only. Unfortunately I have seen developers still trying to use it directly to test Swing GUIs. The point I was trying to make is that if we use it directly, our tests can break easily if we make changes in layout/component size :) Now I realize I should have made the point even more clear by saying that the Robot class was not designed with testing in mind...my sincere apologies for the confusion :(

I'll write a blog entry about this...thank you for pointing this out :)

I'm aware of other excellent testing GUI frameworks besides Abbot. We have been using Abbot for some time. And we also have been using TestNG. We just wanted to use these two frameworks together. So we created a small project for that purpose. Then we started playing and we got this API (that we think is easy to use) and decided to make it to make test-framework-independent and we got into FEST. As I mentioned in the article, we didn't try to reinvent the wheel, just to make things easier :)

I truly appreciate your feedback :)

Cheers,
-Alex.





David Herron <davidh@...> wrote:

I looked at that when it first came out.  It's a good article.

As the co-author of the Robot class, your description of that class was curious.

As a design consideration we purposely kept Robot small .. because we did not know how people would want to use Robot nor know the "best" way to facilitate testing of the platform.  Another reason to keep Robot small was to minimize the size impact on the platform .. that is, minimize that "bloat" criticism.  If we'd made Robot a full testing solution, can you imagine what the screams of "bloat" would be like?

Secondly, Abbot is hardly the only tool which has sprung up to offer the facilities you describe.  There's many different tools, including Abbot.  Maybe you know about this page:

http://wiki.java.net/bin/view/Javapedia/TestingGUIApplications

I see that FEST isn't listed there.  Please feel free to add a link to FEST on this page.



Alex Ruiz wrote:
Dear group members,

JavaWorld just published the article "Test-Driven GUI Development with FEST" ( http://www.javaworld.com/javaworld/jw-07-2007/jw-07-fest.html  ), written by yours truly :)

I would like to kindly ask you to take a look. Feedback is always appreciated!

Sincerely,
-Alex


Need a vacation? Get great deals to amazing places on Yahoo! Travel.

#1653 From: David Herron <davidh@...>
Date: Sun Jul 22, 2007 3:53 pm
Subject: Re: Test-Driven GUI Development
reikiman
Offline Offline
Send Email Send Email
 

I looked at that when it first came out.  It's a good article.

As the co-author of the Robot class, your description of that class was curious.

As a design consideration we purposely kept Robot small .. because we did not know how people would want to use Robot nor know the "best" way to facilitate testing of the platform.  Another reason to keep Robot small was to minimize the size impact on the platform .. that is, minimize that "bloat" criticism.  If we'd made Robot a full testing solution, can you imagine what the screams of "bloat" would be like?

Secondly, Abbot is hardly the only tool which has sprung up to offer the facilities you describe.  There's many different tools, including Abbot.  Maybe you know about this page:

http://wiki.java.net/bin/view/Javapedia/TestingGUIApplications

I see that FEST isn't listed there.  Please feel free to add a link to FEST on this page.



Alex Ruiz wrote:

Dear group members,

JavaWorld just published the article "Test-Driven GUI Development with FEST" ( http://www.javaworld.com/javaworld/jw-07-2007/jw-07-fest.html  ), written by yours truly :)

I would like to kindly ask you to take a look. Feedback is always appreciated!

Sincerely,
-Alex


#1652 From: "Alex Ruiz" <alruiz15@...>
Date: Tue Jul 17, 2007 1:38 pm
Subject: Test-Driven GUI Development
alruiz15
Offline Offline
Send Email Send Email
 
Dear group members,

JavaWorld just published the article "Test-Driven GUI Development with FEST" ( http://www.javaworld.com/javaworld/jw-07-2007/jw-07-fest.html  ), written by yours truly :)

I would like to kindly ask you to take a look. Feedback is always appreciated!

Sincerely,
-Alex

#1651 From: freeplacements placementcell <freeplacementcell@...>
Date: Sun Jul 1, 2007 8:17 am
Subject: Urgent Requirement, IT Software
freeplacemen...
Offline Offline
Send Email Send Email
 
Computers/IT : Testing/Quality-Asurance
Computers/IT : Freshers
CallCenter/MedicalTranscription :
Computers/IT : DotNet
Computers/IT : Java/J2EE


Pinpoint customers who are looking for what you sell.

#1650 From: freeplacements placementcell <freeplacementcell@...>
Date: Mon Jul 2, 2007 7:14 am
Subject: IT Software, Urgent Requirement
freeplacemen...
Offline Offline
Send Email Send Email
 
Computers/IT : Testing/Quality-Asurance
Computers/IT : Freshers
CallCenter/MedicalTranscription :
Computers/IT : DotNet
Computers/IT : Java/J2EE


Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.

#1649 From: Olivier Lefevre <lefevrol@...>
Date: Fri Jun 29, 2007 3:54 pm
Subject: Borland SilkTest any?
lefevrol
Offline Offline
Send Email Send Email
 
Does anyone on this list have any experience with Borland SilkTest?
When I entered "Silk" into the search box in the archives, I got
exactly zero matches, which puzzled me.

Regards,

-- O.L.

#1648 From: "Debasis Pradhan" <debasis_pradhan123@...>
Date: Sat Jun 16, 2007 3:28 pm
Subject: Test Automation Traps! - A tool with a fool is still a tool!
debasis_prad...
Offline Offline
Send Email Send Email
 
Hello friends, this is Debasis, a Passionate Software Tester (Self-
Certified). I have a blog where I write about my passion!

Recently I have posted a blog entry titled "Test Automation Traps! - A
tool with a fool is still a tool!". Please leave your views and ideas
on this.

URL: http://software-testing-zone.blogspot.com

Regards,
Debasis,
http://software-testing-zone.blogspot.com

#1647 From: Alex Ruiz <alruiz15@...>
Date: Fri May 25, 2007 6:18 am
Subject: Re: Easy Test-Driven GUI Development - JavaOne presentation
alruiz15
Offline Offline
Send Email Send Email
 
Our presentation was a BOF. Unfortunately BOF materials are not posted at the JavaOne site :(

-Alex.

David Herron <davidh@...> wrote:

Yeah, OOo has supported using $$o files for a long time. Of course it's a
translation and there's always the possibility it can't properly
interpolate a given file.

The JavaONE site has posted the presentations as well, and they do have
them in PDF format:

http://developers.sun.com/learning/javaoneonline/j1online.jsp?yr=2007

The site promises multimedia files will be there "Soon".

- David Herron

On Thu, 24 May 2007, Shura wrote:

> OpenOffice?!
>
> I did not know! I swear!
>
> Lemme try ...
>
> Thnks.
>
> On May 24, 2007, at 1:25 PM, Thomas L Roche wrote:
>
> > On May 24, 2007, at 6:16 AM, Alex Ruiz wrote:
> >>> I uploaded the files we used for our JavaOne presentation "Easy
> >>> Test-Driven GUI Development" at the EasyTesting Google group. There
> >>> are seven zip files that contain a PowerPoint presentation
> >
> > Shura 05/24/2007 12:30:48 PM:
> >> Do you have a pdf version for those of us who do not use MS?
> >
> > I use OpenOffice and haven't had any problems with PPTs in quite
> > awhile. In particular my OOo 2.2 had no problems with Alex's slides.
> >
>
>

Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 hot CTA = Join Yahoo!'s user panel


#1646 From: David Herron <davidh@...>
Date: Thu May 24, 2007 8:52 pm
Subject: Re: Easy Test-Driven GUI Development - JavaOne presentation
reikiman
Offline Offline
Send Email Send Email
 
Yeah, OOo has supported using $$o files for a long time.  Of course it's a
translation and there's always the possibility it can't properly
interpolate a given file.

The JavaONE site has posted the presentations as well, and they do have
them in PDF format:

http://developers.sun.com/learning/javaoneonline/j1online.jsp?yr=2007

The site promises multimedia files will be there "Soon".

- David Herron

On Thu, 24 May 2007, Shura wrote:

> OpenOffice?!
>
> I did not know!  I swear!
>
> Lemme try ...
>
> Thnks.
>
> On May 24, 2007, at 1:25 PM, Thomas L Roche wrote:
>
> > On May 24, 2007, at 6:16 AM, Alex Ruiz wrote:
> >>> I uploaded the files we used for our JavaOne presentation "Easy
> >>> Test-Driven GUI Development" at the EasyTesting Google group. There
> >>> are seven zip files that contain a PowerPoint presentation
> >
> > Shura 05/24/2007 12:30:48 PM:
> >> Do you have a pdf version for those of us who do not use MS?
> >
> > I use OpenOffice and haven't had any problems with PPTs in quite
> > awhile. In particular my OOo 2.2 had no problems with Alex's slides.
> >
>
>

#1645 From: Shura <alexandre.iline@...>
Date: Thu May 24, 2007 8:48 pm
Subject: Re: Easy Test-Driven GUI Development - JavaOne presentation
alexandre.iline@...
Send Email Send Email
 
Worked ... thanks for the tip.

What's more interesting to me right now ...

Are there any specific techniques to write code so that representation layer and model are totally separated? Any kind of design patterns ... anything.

Not sure if such thing exists, though ...

Anybody heard about anything like this?

Shura.

On May 24, 2007, at 1:31 PM, Shura wrote:

OpenOffice?!

I did not know! I swear!

Lemme try ...

Thnks.

On May 24, 2007, at 1:25 PM, Thomas L Roche wrote:

> On May 24, 2007, at 6:16 AM, Alex Ruiz wrote:
>>> I uploaded the files we used for our JavaOne presentation "Easy
>>> Test-Driven GUI Development" at the EasyTesting Google group. There
>>> are seven zip files that contain a PowerPoint presentation
>
> Shura 05/24/2007 12:30:48 PM:
>> Do you have a pdf version for those of us who do not use MS?
>
> I use OpenOffice and haven't had any problems with PPTs in quite
> awhile. In particular my OOo 2.2 had no problems with Alex's slides.
>



#1644 From: Shura <alexandre.iline@...>
Date: Thu May 24, 2007 8:31 pm
Subject: Re: Easy Test-Driven GUI Development - JavaOne presentation
alexandre.iline@...
Send Email Send Email
 
OpenOffice?!

I did not know!  I swear!

Lemme try ...

Thnks.

On May 24, 2007, at 1:25 PM, Thomas L Roche wrote:

> On May 24, 2007, at 6:16 AM, Alex Ruiz wrote:
>>> I uploaded the files we used for our JavaOne presentation "Easy
>>> Test-Driven GUI Development" at the EasyTesting Google group. There
>>> are seven zip files that contain a PowerPoint presentation
>
> Shura 05/24/2007 12:30:48 PM:
>> Do you have a pdf version for those of us who do not use MS?
>
> I use OpenOffice and haven't had any problems with PPTs in quite
> awhile. In particular my OOo 2.2 had no problems with Alex's slides.
>

#1643 From: Thomas L Roche <tlroche@...>
Date: Thu May 24, 2007 8:25 pm
Subject: Re: Easy Test-Driven GUI Development - JavaOne presentation
tlroche
Offline Offline
Send Email Send Email
 
On May 24, 2007, at 6:16 AM, Alex Ruiz wrote:
>> I uploaded the files we used for our JavaOne presentation "Easy
>> Test-Driven GUI Development" at the EasyTesting Google group. There
>> are seven zip files that contain a PowerPoint presentation

Shura 05/24/2007 12:30:48 PM:
> Do you have a pdf version for those of us who do not use MS?

I use OpenOffice and haven't had any problems with PPTs in quite
awhile. In particular my OOo 2.2 had no problems with Alex's slides.

#1642 From: Shura <alexandre.iline@...>
Date: Thu May 24, 2007 4:30 pm
Subject: Re: Easy Test-Driven GUI Development - JavaOne presentation
alexandre.iline@...
Send Email Send Email
 
Hi.

I would very much like to see the slides - some of the guys mentioned the session to me. I could not attend myself, 'cause I was busy on the pod.

Do you have a pdf version for those of us who do not use MS?

Shura.

On May 24, 2007, at 6:16 AM, Alex Ruiz wrote:

Hello everybody,

I uploaded the files we used for our JavaOne presentation "Easy Test-Driven GUI Development" at the EasyTesting Google group. There are seven zip files that contain a PowerPoint presentation and 6 movies showing coding examples.

Feedback is always appreciated! :)

Best regards,
-Alex.



#1641 From: "Alex Ruiz" <alruiz15@...>
Date: Thu May 24, 2007 1:16 pm
Subject: Easy Test-Driven GUI Development - JavaOne presentation
alruiz15
Offline Offline
Send Email Send Email
 
Hello everybody,

I uploaded the files we used for our JavaOne presentation "Easy Test-Driven GUI Development" at the EasyTesting Google group. There are seven zip files that contain a PowerPoint presentation and 6 movies showing coding examples.

Feedback is always appreciated! :)

Best regards,
-Alex.

#1640 From: Thomas L Roche <tlroche@...>
Date: Wed May 23, 2007 4:05 pm
Subject: "Using TPTP to Automate Functional Testing"
tlroche
Offline Offline
Send Email Send Email
 
#1639 From: Shura <alexandre.iline@...>
Date: Mon May 21, 2007 3:58 pm
Subject: Re: about test reports
alexandre.iline@...
Send Email Send Email
 
Sebastien ...

Jemmy is designed as a UI reproducing library - no more.

Other tools exist out there which could do what you describe: they called test harness.

JUnit is likely to be the most used. 

If you consider using JUnit, take a look on XTest too. This is an extension over JUnit. It is built within Netbeans, but, there is a binary distribution of it, which could be used standalone.

Shura.

On May 21, 2007, at 5:23 AM, atomikx wrote:


Hi,

just a question I was asking myself about reports with jemmy. I mean, jemmy
provides
reports thanks to text files such as error or golden or out but these files
are not really readable and their contents can be really important and so
it's difficult to analyse them and to go back to the errors for instance.

Taking this in consideration, is there an other way or maybe a tool (that
can be linked with jemmy of course) that can provides reports about test
results and errors in a more readable and analysable format.

Thanks

Sébastien

--
View this message in context: http://www.nabble.com/about-test-reports-tf3789901.html#a10717741
Sent from the Java GUI Testing mailing list archive at Nabble.com.



#1638 From: atomikx <seb.muscat@...>
Date: Mon May 21, 2007 12:23 pm
Subject: about test reports
atomikx29
Offline Offline
Send Email Send Email
 
Hi,

just a question I was asking myself about reports with jemmy. I mean, jemmy
provides
reports thanks to text files such as error or golden or out but these files
are not really readable and their contents can be really important and so
it's difficult to analyse them and to go back to the errors for instance.

Taking this in consideration, is there an other way or maybe a tool (that
can be linked with jemmy of course) that can provides reports about test
results and errors in a more readable and analysable format.

Thanks

Sébastien

--
View this message in context:
http://www.nabble.com/about-test-reports-tf3789901.html#a10717741
Sent from the Java GUI Testing mailing list archive at Nabble.com.

#1637 From: "Sameera Bharadwaj \(Sam\)" <sameerab@...>
Date: Fri Apr 20, 2007 10:06 pm
Subject: RE: need some guidance
sameerabs_in
Offline Offline
Send Email Send Email
 

Hi Deepak,

At the first level try do a automation feasibility analysis.

Do navigate the application using the selected tool and see if the objects are identified.

Based on that select the test cases you can automate.

 

Hope this gives some trigger to handle automation

Sameera

 


From: java-gui-testing@yahoogroups.com [mailto:java-gui-testing@yahoogroups.com] On Behalf Of meetdeepak32
Sent: 20 April 2007 15:03
To: java-gui-testing@yahoogroups.com
Subject: [java-gui-testing] need some guidance

 

Hi all,

i m a manual tester.But my company(Reflection Infosystem does
automation testing also.I have some confusions regarding which test
cases to automate.I have also problems with scripts in QTP.i m
therefore joining ur group to interact with u guys.

deepak


**************************************************************************
Nous Infosystems
This e-mail transmission may contain confidential or legally privileged information that is intended only for the individual(s) or entity(ies) named in the e-mail address. If you are not the intended recipient, please reply to the postmaster@..., so that arrangements can be made for proper delivery, and then please delete all copies and attachments.Any disclosure, copying, distribution, or reliance upon the contents of this e-mail, by any other than the intended recipients, is strictly prohibited.
**************************************************************************

#1636 From: "Alex Ruiz" <alruiz15@...>
Date: Fri Apr 20, 2007 1:46 pm
Subject: Re: GUI tests !
alruiz15
Offline Offline
Send Email Send Email
 
I haven't tried Jemmy...but I have used Costello ( http://abbot.sourceforge.net  ) to test existing GUIs. It is really easy to use and fast. The potential downside is that the recorded interactions with the GUI are stored in XML, which can make code modularization/refactoring not so easy.

I hope that helps :)

Cheers,
Alex.

--- In java-gui-testing@yahoogroups.com, "atomikx29" <seb.muscat@...> wrote:
>
> Hi,
>
> I have a big problem. In fact I have to test a java swing GUI for which
> I haven't the source code. I have to write a class test that will
> detect the GUI and proceed the tests on it.
>
> I have tried to do that with Jemmy, I mean I have simply create a test
> class with a JFrameOperator (without parameters so that it could detect
> the first GUI launched) but it doesn't work. (I launch my test class
> under eclipse, then I run my GUI ... and the test does not detect it).
>
> So maybe I'm doing something wrong ?
> or maybe I'm not using the good tool ?
>
> If could suggest me a way to do that it would be really nice !
>
> thanks
>
> atomikx
>

#1635 From: "meetdeepak32" <meetdeepak32@...>
Date: Fri Apr 20, 2007 7:03 pm
Subject: need some guidance
meetdeepak32
Offline Offline
Send Email Send Email
 
Hi all,

i m a manual tester.But my company(Reflection Infosystem does
automation testing also.I have some confusions regarding which test
cases to automate.I have also problems with scripts in QTP.i m
therefore joining ur group to interact with u guys.


deepak

#1634 From: Shura <alexandre.iline@...>
Date: Fri Apr 20, 2007 12:42 pm
Subject: Re: GUI tests !
alexandre.iline@...
Send Email Send Email
 
Dear sir.

As I've replied to you on the internal alias, more information is needed than you provided.

Please read this list of things, which would help us to help you.

Shura.

On Apr 20, 2007, at 10:56 AM, atomikx29 wrote:

Hi,

I have a big problem. In fact I have to test a java swing GUI for which
I haven't the source code. I have to write a class test that will
detect the GUI and proceed the tests on it.

I have tried to do that with Jemmy, I mean I have simply create a test
class with a JFrameOperator (without parameters so that it could detect
the first GUI launched) but it doesn't work. (I launch my test class
under eclipse, then I run my GUI ... and the test does not detect it).

So maybe I'm doing something wrong ?
or maybe I'm not using the good tool ?

If could suggest me a way to do that it would be really nice !

thanks

atomikx



#1633 From: "Dakshinamurthy Karra" <technovator@...>
Date: Fri Apr 20, 2007 12:59 pm
Subject: Re: GUI tests !
kdmurthy2001
Offline Offline
Send Email Send Email
 
You can try abbot or marathon. Both support recording testcases and for most purposes you do not need the source.

-- KD


On 4/20/07, atomikx29 <seb.muscat@...> wrote:

Hi,

I have a big problem. In fact I have to test a java swing GUI for which
I haven't the source code. I have to write a class test that will
detect the GUI and proceed the tests on it.

I have tried to do that with Jemmy, I mean I have simply create a test
class with a JFrameOperator (without parameters so that it could detect
the first GUI launched) but it doesn't work. (I launch my test class
under eclipse, then I run my GUI ... and the test does not detect it).

So maybe I'm doing something wrong ?
or maybe I'm not using the good tool ?

If could suggest me a way to do that it would be really nice !

thanks

atomikx




--
Dakshinamurthy Karra (http://blog.jaliansystems.com)

#1632 From: "atomikx29" <seb.muscat@...>
Date: Fri Apr 20, 2007 6:56 am
Subject: GUI tests !
atomikx29
Offline Offline
Send Email Send Email
 
Hi,

I have a big problem. In fact I have to test a java swing GUI for which
I haven't the source code. I have to write a class test that will
detect the GUI and proceed the tests on it.

I have tried to do that with Jemmy, I mean I have simply create a test
class with a JFrameOperator (without parameters so that it could detect
the first GUI launched) but it doesn't work. (I launch my test class
under eclipse, then I run my GUI ... and the test does not detect it).

So maybe I'm doing something wrong ?
or maybe I'm not using the good tool ?

If could suggest me a way to do that it would be really nice !

thanks

atomikx

#1631 From: "raksag70" <raksag70@...>
Date: Mon Apr 2, 2007 12:16 pm
Subject: Eclipse TPTP AGR tool testcase
raksag70
Offline Offline
Send Email Send Email
 
Hi

I am creating the test case in Eclipse TPTP AGR tool. I am
successful in creating and testing a simple java project but if the
testcase tries to test anything more complex then that like a java
project containing a simple file "hello.java" the testcase fails.The
test case contains the stacktrace as follows.


Mar 27, 2007 12:08:52 PM GMT+05:30

There was an error while running the macro associated with the test
case: Automated GUI Test2.  org.eclipse.core.runtime.CoreException:
Error while executing a macro command: MacroCommand [item-select,
line 5]
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.cr
eatePlaybackException(MacroCommandShell.java:1217)
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.ac
cess$11(MacroCommandShell.java:1214)
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.
run(MacroCommandShell.java:1164)
	 at org.eclipse.swt.widgets.RunnableLock.run
(RunnableLock.java:35)
	 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:123)
	 at org.eclipse.swt.widgets.Display.runAsyncMessages
(Display.java:3325)
	 at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2971)
	 at org.eclipse.jface.window.Window.runEventLoop
(Window.java:820)
	 at org.eclipse.jface.window.Window.open(Window.java:796)
	 at org.eclipse.ui.actions.NewProjectAction.run
(NewProjectAction.java:116)
	 at org.eclipse.jface.action.Action.runWithEvent
(Action.java:499)
	 at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:539)
	 at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:488)
	 at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent
(ActionContributionItem.java:400)
	 at org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java:66)
	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
	 at org.eclipse.swt.widgets.Widget.notifyListeners
(Widget.java:709)
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSelectionComm
and.doClick(BooleanSelectionCommand.java:490)
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSelectionComm
and.playback(BooleanSelectionCommand.java:294)
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.
run(MacroCommandShell.java:1160)
	 at org.eclipse.swt.widgets.RunnableLock.run
(RunnableLock.java:35)
	 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:123)
	 at org.eclipse.swt.widgets.Display.runAsyncMessages
(Display.java:3325)
	 at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2971)
	 at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java:1930)
	 at org.eclipse.ui.internal.Workbench.runUI
(Workbench.java:1894)
	 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:422)
	 at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
	 at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:95)
	 at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:78)
	 at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:92)
	 at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:68)
	 at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:400)
	 at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:177)
	 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
	 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
	 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
	 at java.lang.reflect.Method.invoke(Unknown Source)
	 at org.eclipse.core.launcher.Main.invokeFramework
(Main.java:336)
	 at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	 at org.eclipse.core.launcher.Main.run(Main.java:977)
	 at org.eclipse.core.launcher.Main.main(Main.java:952)




Mar 28, 2007 2:12:02 PM GMT+05:30

There was an error while running the macro associated with the test
case: Automated GUI Test2.6.
org.eclipse.core.runtime.CoreException: A time-out occurred while
waiting for the nested shell org.eclipse.jface.wizard.WizardDialog
to complete.  It is likely caused by the absence of the shell.
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.pl
ayback(MacroCommandShell.java:846)
	 at
org.eclipse.tptp.test.auto.gui.internal.macro.Macro.playback
(Macro.java:346)
	 at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.runMacro
(MacroManager.java:574)
	 at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.access$4
(MacroManager.java:568)
	 at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager$1
$MacroOperationWrapper.run(MacroManager.java:501)
	 at java.lang.Thread.run(Unknown Source)

---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
------------------------------------------------

Mar 29, 2007 11:19:55 AM GMT+05:30

org.eclipse.core.runtime.CoreException
Line 2: The UI object with reference id 0 was not found
org.eclipse.core.runtime.CoreException: Line 2: The UI object with
reference id 0 was not found
   at
org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCoreExceptio
n(AutoGUIUtil.java:616)
   at
org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCoreExceptio
n(AutoGUIUtil.java:608)
   at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLocator.look
upReferenceId(MacroObjectLocator.java:804)
   at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.lo
ad(MacroCommandShell.java:221)
   at org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell
(Macro.java:75)
   at org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.play
(MacroManager.java:474)
   at org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner$1
$MacroPlayWrapper.run(AutoGUIRunner.java:580)
   at java.lang.Thread.run(Unknown Source)



There was an error while running the macro associated with the test
case: Automated GUI Test.  org.eclipse.core.runtime.CoreException: A
time-out occurred while running command MacroCommand [wait, line
20].  This is likely caused by the presence of an unexpected dialog
or the absence of an expected dialog.
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.pl
ayback(MacroCommandShell.java:1040)
	 at
org.eclipse.tptp.test.auto.gui.internal.macro.Macro.playback
(Macro.java:346)
	 at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.runMacro
(MacroManager.java:574)
	 at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.access$4
(MacroManager.java:568)
	 at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager$1
$MacroOperationWrapper.run(MacroManager.java:501)
	 at java.lang.Thread.run(Unknown Source).




There was an error while running the macro associated with the test
case: Automated GUI Test.  org.eclipse.core.runtime.CoreException:
Error while executing a macro command: MacroCommand [item-select,
line 24]
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.cr
eatePlaybackException(MacroCommandShell.java:1217)
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.ac
cess$11(MacroCommandShell.java:1214)
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.
run(MacroCommandShell.java:1164)
	 at org.eclipse.swt.widgets.RunnableLock.run
(RunnableLock.java:35)
	 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:123)
	 at org.eclipse.swt.widgets.Display.runAsyncMessages
(Display.java:3325)
	 at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2971)
	 at org.eclipse.jface.window.Window.runEventLoop
(Window.java:820)
	 at org.eclipse.jface.window.Window.open(Window.java:796)
	 at org.eclipse.ui.actions.ImportResourcesAction.run
(ImportResourcesAction.java:159)
	 at
org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent
(BaseSelectionListenerAction.java:168)
	 at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:539)
	 at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:488)
	 at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent
(ActionContributionItem.java:400)
	 at org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java:66)
	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
	 at org.eclipse.swt.widgets.Widget.notifyListeners
(Widget.java:709)
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSelectionComm
and.doClick(BooleanSelectionCommand.java:490)
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSelectionComm
and.playback(BooleanSelectionCommand.java:294)
	 at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.
run(MacroCommandShell.java:1160)
	 at org.eclipse.swt.widgets.RunnableLock.run
(RunnableLock.java:35)
	 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:123)
	 at org.eclipse.swt.widgets.Display.runAsyncMessages
(Display.java:3325)
	 at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2971)
	 at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java:1930)
	 at org.eclipse.ui.internal.Workbench.runUI
(Workbench.java:1894)
	 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:422)
	 at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
	 at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:95)
	 at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:78)
	 at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:92)
	 at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:68)
	 at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:400)
	 at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:177)
	 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
	 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
	 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
	 at java.lang.reflect.Method.invoke(Unknown Source)
	 at org.eclipse.core.launcher.Main.invokeFramework
(Main.java:336)
	 at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	 at org.eclipse.core.launcher.Main.run(Main.java:977)
	 at org.eclipse.core.launcher.Main.main(Main.java:952)


Could you please suggest a way forward.

Thanks in advance
Sagar

#1630 From: "mohitkk" <mohitkk@...>
Date: Mon Mar 19, 2007 10:47 am
Subject: How to access local variables?
mohitkk
Offline Offline
Send Email Send Email
 
Hi all,

    I am using JFCUnit under Eclipse 3.0. I have an GUI application in
which i have a class which extends from JFrame. In that class, i have
one default constructor and in that constructor a method is called. In
that method two components JButton and JComboBox are declared.
    Now i want to write test cases for these two components in my test
case class. But i am unable to access these local variables. Could
anybody suggest me that is it possible to access these controls or
not. If it is possible then what is the proper format for accessing
these components for writing test case.

Thanks
Mohit

#1629 From: "mohitkk" <mohitkk@...>
Date: Tue Mar 20, 2007 12:01 pm
Subject: How to display components on frame?
mohitkk
Offline Offline
Send Email Send Email
 
Hi all,

   I have a class which extends from JFrame and different components
are present in that class. When i make the object of that class and
run with Junit(JFCUnit) then only blank Frame appears. The components
which i want to test does not display. Can anybody suggest me how can
i display components on the Frame so that i could write test cases for
those components.

Thanks
Mohit

#1628 From: "mohitkk" <mohitkk@...>
Date: Thu Mar 22, 2007 11:23 am
Subject: How to find menu item in JFCUnit?
mohitkk
Offline Offline
Send Email Send Email
 
Hi all,

     I am using JFCUnit under Eclipse 3.0 for testing a GUI
application. I am facing a problem related to the MenuItem. I am not
able to find the menu item. As i am using JMenuItemFinder for finding
the menu item. But i am getting the null value. Could anybody suggest
me how do i find the menu item in my GUI application.

Thanks & Regards
Mohit

#1627 From: David Herron <davidh@...>
Date: Fri Mar 16, 2007 8:50 pm
Subject: Re: How to access GUI Component?
reikiman
Offline Offline
Send Email Send Email
 

I don't know JFCUnit .. but the general way to do what you're saying is a combination of

a) a method in java.awt.Frame that gives you a list of all the active Frame's
b) a method in Container that gives you the child components

I don't remember either method name right now .. but between them you can traverse the tree of all current Component objects.

- David



On Mar 13, 2007, at 2:09 AM, mohitkk wrote:

Hi,

I am new to JUnit and i am using the JFCUnit for the swing
application. I have an application in which i have various gui
components but these controls are defined as local in the method
related to the control. How do i access these local components for
writing the test case. Please suggest me.

Thanks
Mohit

 


#1626 From: "mohitkk" <mohitkk@...>
Date: Thu Mar 15, 2007 9:49 am
Subject: How to access components in multiple frames?
mohitkk
Offline Offline
Send Email Send Email
 
Hi Colin,

    Thanks for your worthful suggestion. Your response is really
appreciable. But still i am facing a problem related to the components
i.e. I'm not able to find the particular component from the container.
The template of my code looks like this...

public class mWindow implements ActionListener
{
	 //Button for tool bar
	 public static JButton tHome  = new JButton();

	 public static final JDesktopPane desktop = new JDesktopPane();

	 JMenuBar mBar = new JMenuBar();

	 JToolBar tBar = new JToolBar();

	 //main frame in which all components are attaching
	 public static Jframe mainWindow = new Jframe("Main");

	 public mWindow()
	 {
		 …
		 //Creating a menu bar
		 this.CreateMenuBar();

		 //add menu bar to main frame
		 mainWindow.setJMenuBar(mBar);

		 //creating a tool bar
		 this.CreateToolBar();

		 //add tool bar to main frame
		   mainWindow.getContentPane().add(tBar,BorderLayout.NORTH);

		 //adding desktop pane
		 mainWindow.getContentPane().add(desktop,BorderLayout.CENTER);

		 tHome.setEnabled(false);
	 }
	 …
}

Now, in this code what problem i'm facing is that i'm not able to get
the reference of the component. Suppose i want to get the reference of
ToolBar's button i.e. tHome in my test case but i'm always getting the
null value. Whether i try to find the component of ToolBar or MenuBar.
Could you please send me solution of this problem.

    Once again thanks for your worthful suggestion.

Thanks
Mohit

#1625 From: "Colin Vipurs" <colin.vipurs@...>
Date: Tue Mar 13, 2007 1:40 pm
Subject: RE: How to access components in multiple frames?
zodiac_zx6
Offline Offline
Send Email Send Email
 

Hi Again Mohit,

 

Do you mean frames as in JFrame or Panels? If you mean frames (JFrame, JDialog) an approach I use is to treat any other dialog that can be displayed as a separate service within the system, utilising a service-oriented architecture (SOA).  You can then keep your individual frames down to a single unit, improving coupling and cohesion.  For example, imagine you have a screen where a user is entering some Customer details, part of which requires a separate dialog for entering an Address.  On your CustomerDetailsView there would be an "Address" button which is linked to a call to "enterAddress" on the CustomerDetailsController, which would take care of popping up the dialog, so:

 

In CustomerDetailsView:

 

addressBtn.addActionListener(new ActionListener() {

   public void actionPerformed(ActionEvent e) {

            controller.enterAddress();

   }

};

 

In CustomerDetailsController:

 

public void enterAddress() {

            Address address = ServiceRegistry.getAddressService().getNewAddress();

            currentCustomer.setAddress(address);

            view.setAddress(address);

}

 

In your customer details controller/view, your test is just limited to testing that the correct service call was made, not with having to enter details on the form and clicking the Ok/Cancel buttons.

 

Again, shout if I haven't been clear enough.

 


From: java-gui-testing@yahoogroups.com [mailto:java-gui-testing@yahoogroups.com] On Behalf Of mohitkk
Sent: 13 March 2007 09:17
To: java-gui-testing@yahoogroups.com
Subject: [java-gui-testing] How to access components in multiple frames?

 

Hi,

I am new to junit and i am using the JFCUnit for swing application
under eclipse 3.0 IDE. I have an application in which i have one frame
and on that frame i have multiple frames. The gui components are
present on these multiple frames. Now, how do i test the gui component
which is present on that multiple frames. Please suggest me a solution.

Thanks
Mohit


Messages 1625 - 1654 of 1683   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help