From: Michael L. <yf...@bu...> - 2002-12-16 20:12:39
|
Interesting thing is that the recording the script can result in this occasionally ... it could be because of the speed of mouse clicks. I will have a look at it to determine the actual reason. from sampleappfixture import * def test(): window('Sample Dialog') select('JTabbedPane', 'Bug001 - Mike Lee') click('Show Bug Dialog') close() window('Id Collector') click('Ok') close() mike co...@th... wrote: > > Mike, > > when I run I try and play this script manually, by just doing exactly > what it does, not recording, not playing back.... just doing by hand > what I think it should do, I get the the "id not collected" dialog > box. > > The only time that I do not get the "id not collected dialog box", is > when I enter in a valid integer, before clicking ok, but if I do enter > a valid integer, then it both records and plays back fine. here is the > script that I recorded: > > from sampleappfixture import * > > def test(): > window('Sample Dialog') > select('JTabbedPane', 'Bug001 - Mike Lee') > click('Show Bug Dialog') > close() > > window('Id Collector') > click('Ok') > close() > > keep in mind that I am running on jdk1.4, but surely it can't differ > that much. > > cheers, > Charles > > > > > > Michael Lee <yf...@bu...> Sent by: To: marathon mar...@li... <mar...@li...> cc: 12/12/2002 12:35 PM Subject: [Marathonman-devel] Recorded Events and Played Events are different > > > > Hi all > > Below is the script u can run on sample app ... Run This script should > > not be causing a dialog to pop up with id collected false. > > I traced it down to the fact the marathon is not generating the same > events as swing ... > > Cause of the dialog to pop up is because scope model has not been > updated. Scope model is updated by a focus lost event from the > component > or a action listener being notified. Unfortunately during my tracing > clicking on button is not causing a permanent focus lost event to > occur. > But while recording the correct events are fired. > > Any help will be good ... thanks mike > > > from sampleappfixture import * > > def test(): > window('Sample Dialog') > select('JTabbedPane', 'Bug001 - Mike Lee') > click('Show Bug Dialog') > close() > > window('Id Collector') > click('Ok') > close() > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Marathonman-devel mailing list > Mar...@li... > https://lists.sourceforge.net/lists/listinfo/marathonman-devel > > |