Vineet, I've been traveling to conferences for the past few weeks and could not reply to most of the emails.
It seems that you're forking off another thread where the application runs, while SWTBot also runs on the same thread. Is there a reason to do this? It is recommended that SWTBot tests and the UI run on different threads. Also because the tests and UI run in different threads need to synchronize before the tests start. This is so that the SWTBot tests do not start before the actual application starts, which may be your case. Either sleep for a few seconds, depending on the size of your application. Or my personal favourite, a wait for condition which Vincent recently provided a patch for. I publish binaries every couple of nights here: http://swtbot.sourceforge.net/artifacts/trunk in case you're interested in Vincent's patch. -- Ketan On 03-Oct-08, at 1:49 PM, Vincent Mahe wrote: > Veneet a écrit : >> >> Hi Guys,, >> >> >> >> As no reply has been sent from Ketan...from the past Few days >> >> I would request any one to reply to This Thread >> >> cause i urgently need Help on how to Activate a shell >> http://www.nabble.com/file/p19793596/Successful%2BOUTPUT.png >> >> >> i need to know why ami gettinga widget not found exception When i >> try to >> Click on the Button In the Shell named "Hi" >> > > I proposed a new "ShellIsActive" condition for the waitUntil() > function which has been added to the SVN. > > Getting last version of SWTBot from SVN, you may be able to write: > > bot.waitUntil(Conditions.shellIsActive("Hi"), 5000); > bot.button("Press me").click(); > > So your test wait for the dialog before it search the button. >> i have used one of Ketans Example to write A complete Test Code >> >> 1.Which Creates an ew Java Project >> 2. Insert a Helloworld.java file >> 3. Edit the FIle >> 4.Execute it >> 5.Opening The shell with Text "Hi" >> >> as soon as i open the Shell >> >> >> i call >> >> bot.shell("Hi").activate(); >> bot.button("Press me").click(); >> >> it throws a WidgetNotFoundException saying it cannot locate the >> Shell >> >> >> >> >> >> Reply at the Earlliest >> >> >> Thanx in Advance >> >> >> B >> bbye >> >> >> >> >> >> >> >> >> >> **************************************************************************** >> >> >> Veneet wrote: >> >>> hi guys >>> >>> could you kindly tellme how to test my SWtT application >>> >>> on Eclipse 3.4(ganymede) >>> >>> Since all the Examples provided on the Site are for Plugin Projects >>> >>> I am new To The Testing Scenario >>> >>> so any code snippets or Links will be very helpful >>> >>> REPLY::At the Eariest >>> >>> >>> bye >>> >>> >>> p.s: thanks Ketan >>> >>> >>> >>> Warm Regards >>> >>> Veneet Raina >>> Member Technical Team >>> TBS >>> >>> "We are what we repeatedly do. Excellence, then, is not an act, >>> but a >>> habit." - Aristotle >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win >>> great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in >>> the >>> world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> SWTBot-users mailing list >>> SWTBot-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/swtbot-users >>> http://swtbot.org/ - a functional testing tool for SWT/Eclipse >>> >>> >>> >>> >> > > > -- > Cordialement > > Vincent MAHÉ > > Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org > IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France > Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ SWTBot-users mailing list SWTBot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/swtbot-users http://swtbot.org/ - a functional testing tool for SWT/Eclipse