Re: [Pharo-project] GUI Testing Library

2011-12-14 Thread Sean P. DeNigris
Tudor Girba-2 wrote > > I think the best would be to add it externally from a configuration. So, I > created one: > Thanks! Of course if it's external no one will use it to test the image itself :( p.s. I added middle click and tests for all click types -- View this message in context: http:

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Sean P. DeNigris
Sean P. DeNigris wrote > > I will open an issue Issue 5077: UI simulation from BDDExtensions project http://code.google.com/p/pharo/issues/detail?id=5077 -- View this message in context: http://forum.world.st/GUI-Testing-Library-tp4097866p4177726.html Sent from the Pharo Smalltalk mailing

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Tudor Girba
Hi, I think the best would be to add it externally from a configuration. So, I created one: Gofer new squeaksource: 'BDDExtensions'; package: 'ConfigurationOfBDDExtensions'; load. (Smalltalk at: #ConfigurationOfBDDExtensions) loadDevelopment At the moment it only has a 1

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Sean P. DeNigris
Tudor Girba-2 wrote > > Btw, I think these should get in the Pharo distribution because they > are just too valuable. > I will open an issue and submit a slice. Do you have any suggestions/requests while I'm there? I think the only basic thing missing is middle-click, which will be easy to add.

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Marcus Denker
On Dec 9, 2011, at 4:08 PM, Tudor Girba wrote: > Btw, I think these should get in the Pharo distribution because they > are just too valuable. > Yes! > Doru > > > On Fri, Dec 9, 2011 at 4:07 PM, Tudor Girba wrote: >> Thanks a lot, Sean! >> >> It works just great with BDDExtensions and Keym

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Tudor Girba
Btw, I think these should get in the Pharo distribution because they are just too valuable. Doru On Fri, Dec 9, 2011 at 4:07 PM, Tudor Girba wrote: > Thanks a lot, Sean! > > It works just great with BDDExtensions and Keymapping-Shortcuts. > > Cheers, > Doru > > > On Thu, Dec 8, 2011 at 3:35 PM,

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Tudor Girba
Thanks a lot, Sean! It works just great with BDDExtensions and Keymapping-Shortcuts. Cheers, Doru On Thu, Dec 8, 2011 at 3:35 PM, Sean P. DeNigris wrote: > > Tudor Girba-2 wrote >> >> Would it be possible to simulate keys with modifiers without Keymapping >> present? >> > > I think I only used

Re: [Pharo-project] GUI Testing Library

2011-12-08 Thread Sean P. DeNigris
Tudor Girba-2 wrote > > Would it be possible to simulate keys with modifiers without Keymapping > present? > I think I only used Keymapping for the modifier key syntax, but looking at its repository, the shortcuts are packaged separately. So you could try only loading Keymapping-Shortcuts, whic

Re: [Pharo-project] GUI Testing Library

2011-12-08 Thread Tudor Girba
Hi Sean, Unfortunately, it seems that Keymapping introduces subtle bugs in the other tools. Would it be possible to simulate keys with modifiers without Keymapping present? Cheers, Doru On 3 Dec 2011, at 17:38, Sean P. DeNigris wrote: > > Tudor Girba-2 wrote >> >> It's just cool. >> > >

Re: [Pharo-project] GUI Testing Library

2011-12-03 Thread Sean P. DeNigris
Tudor Girba-2 wrote > > It's just cool. > Excellent! The latest package in the repo adds right clicking, choosing from menus, and a bug fix for Morphs that use local coordinates. -- View this message in context: http://forum.world.st/GUI-Testing-Library-tp4097866p4153835.html Sent from the Ph

Re: [Pharo-project] GUI Testing Library

2011-12-03 Thread Tudor Girba
Hi Sean, I just wrote the first test case for Glamour using the BDDExtensions. This was for a bug that that was present in Glamour since several months, but I just did not know how to test. With the new facilities, it got as simple as: testExplicitAcceptDoesNotAffectTextPort ...

Re: [Pharo-project] GUI Testing Library

2011-11-24 Thread Ben Coman
Sean P. DeNigris wrote: I'm starting to put together some helpers for UI testing. What's out there already? I started simulating keyboard events. It seems like the place to hook is ActiveHand>>handleEvent:. This way, it will take into account the keyboard focus and route the event the way it wou

Re: [Pharo-project] GUI Testing Library

2011-11-23 Thread Sean P. DeNigris
Alexandre Bergel-7 wrote > > I will invite you for a couple of beers at the next esug :-) > Paid in beer?! This is the best job ever ;-) -- View this message in context: http://forum.world.st/GUI-Testing-Library-tp4097866p4102097.html Sent from the Pharo Smalltalk mailing list archive at Nabb

Re: [Pharo-project] GUI Testing Library

2011-11-23 Thread Sean P. DeNigris
Starting to add simulated mouse actions... testSimulateMouseClick | textMorph | textMorph := TextMorph new contents: ''; openInWorld. textMorph simulateClick. self assert: textMorph hasKeyboardFocus. -- View this message in context: http://forum

Re: [Pharo-project] GUI Testing Library

2011-11-23 Thread Alexandre Bergel
I will invite you for a couple of beers at the next esug :-) I cannot try it right now (bad internet connection), but I checked the source code. It looks good. Cheers, Alexandre On 23 Nov 2011, at 13:12, Sean P. DeNigris wrote: > > Alexandre Bergel-7 wrote >> >> I opened an issue: http://co

Re: [Pharo-project] GUI Testing Library

2011-11-23 Thread Sean P. DeNigris
Alexandre Bergel-7 wrote > > I opened an issue: http://code.google.com/p/pharo/issues/detail?id=5010 > Fix (although I guess there are more widgets to fix?) in 1.4 inbox SLICE-Issue-5010-Testing-GUI-widgets-SeanDeNigris.1 Alexandre Bergel-7 wrote > > This is very valuable. Currently it is re

Re: [Pharo-project] GUI Testing Library

2011-11-23 Thread Tudor Girba
Wow, this looks brilliant! I will definitely give it a try in the following days. Doru On Wed, Nov 23, 2011 at 4:10 PM, Sean P. DeNigris wrote: > > Tudor Girba-2 wrote >> >> Could you provide more information? Or maybe an example? >> > Sure. Thanks for the push to write tests :) > > I just uplo

Re: [Pharo-project] GUI Testing Library

2011-11-23 Thread Sean P. DeNigris
Tudor Girba-2 wrote > > Could you provide more information? Or maybe an example? > Sure. Thanks for the push to write tests :) I just uploaded a new version with some simple tests. Here is a snippet: testSimulateCmdKeystroke | ws | ws := Workspace open. self simulateKey

Re: [Pharo-project] GUI Testing Library

2011-11-23 Thread Guillermo Polito
On Tue, Nov 22, 2011 at 10:09 PM, Sean P. DeNigris wrote: > > This is fun! I integrated with Keymapping, so now you can write: >self simulateKeyStrokes: 'Object'. >self simulateKeyStroke: $s command. > Haha! great :) I'll freeze an stable version soon.

Re: [Pharo-project] GUI Testing Library

2011-11-23 Thread Alexandre Bergel
Hi Sean, This is very valuable. Currently it is really hard to test GUI in Pharo. One problem I faced several times is that GUI are not uniformly managed: some GUI widgets use of exceptions (which is cool), some other are blocking the currently thread (which is not cool). For example, I can wri

Re: [Pharo-project] GUI Testing Library

2011-11-23 Thread Tudor Girba
I am quite interested, as well. I am not sure I understand how to reproduce your approach, though. Could you provide more information? Or maybe an example? Cheers, Doru On Wed, Nov 23, 2011 at 11:54 AM, Igor Stasenko wrote: > On 23 November 2011 02:09, Sean P. DeNigris wrote: >> >> Sean P. D

Re: [Pharo-project] GUI Testing Library

2011-11-23 Thread Igor Stasenko
On 23 November 2011 02:09, Sean P. DeNigris wrote: > > Sean P. DeNigris wrote >> >> So far the API adds... >> > > This is fun! I integrated with Keymapping, so now you can write: >        self simulateKeyStrokes: 'Object'. >        self simulateKeyStroke: $s command. > > To play, doit: > Nice! It

Re: [Pharo-project] GUI Testing Library

2011-11-22 Thread Sean P. DeNigris
Sean P. DeNigris wrote > > So far the API adds... > This is fun! I integrated with Keymapping, so now you can write: self simulateKeyStrokes: 'Object'. self simulateKeyStroke: $s command. To play, doit: > Gofer new > squeaksource: 'ShortWays'; > pa

[Pharo-project] GUI Testing Library

2011-11-22 Thread Sean P. DeNigris
I'm starting to put together some helpers for UI testing. What's out there already? I started simulating keyboard events. It seems like the place to hook is ActiveHand>>handleEvent:. This way, it will take into account the keyboard focus and route the event the way it would for a real event. Does