Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » RCP with SWTBOT(RCP with SWTBOT)
RCP with SWTBOT [message #529734] Tue, 27 April 2010 03:11 Go to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
HI All,

I'm new to start with SWTBot. I have installed eclipse galileo and org.eclipse.swtbot.eclipse-2.0.0.536-dev-e34. I have never used it before. I have to test one RCP based Application. Please let me know how to start it.

let us consider the sample Hello RCP application in RCP.
how to test that Hello RCP application.

Please help me and let me know the way to test it.

Thanks and Regards,
Yogeshkumar.S
Re: RCP with SWTBOT [message #529736 is a reply to message #529734] Tue, 27 April 2010 03:21 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
yogeshkumar wrote on Mon, 26 April 2010 23:11
HI All,

I'm new to start with SWTBot. I have installed eclipse galileo and org.eclipse.swtbot.eclipse-2.0.0.536-dev-e34. I have never used it before. I have to test one RCP based Application. Please let me know how to start it.

let us consider the sample Hello RCP application in RCP.
how to test that Hello RCP application.

Please help me and let me know the way to test it.

Thanks and Regards,
Yogeshkumar.S

Re: RCP with SWTBOT [message #529884 is a reply to message #529734] Tue, 27 April 2010 14:21 Go to previous messageGo to next message
Pascal G is currently offline Pascal GFriend
Messages: 157
Registered: July 2009
Senior Member
Geez, calm down. It's not by spamming the newsgroup in the middle of
night (for most users) that you'll get an answer.....

You can start with the User guide [1], which contains two five minutes
screencast for starters.

[1] http://wiki.eclipse.org/SWTBot/UsersGuide
--
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/

*Because performance matters.*
Re: RCP with SWTBOT [message #530251 is a reply to message #529884] Thu, 29 April 2010 06:33 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Dear Pascal,

Thank you for the reply.

I have followed the userguide mentioned by you.

I am struggling in one point ,(ie) they run the testcase against SWTBot Test in Run configuration,

I dont have the SWTBot Test in my Run configurations.
Please let me know how to configure that.

Please help me in fixing the issue.

Thanks and Regards,
Yogeshkumar.S

Re: RCP with SWTBOT [message #530277 is a reply to message #529734] Thu, 29 April 2010 08:09 Go to previous messageGo to next message
Richard Adams is currently offline Richard AdamsFriend
Messages: 77
Registered: July 2009
Location: Edinburgh
Member
There is also a tutorial about SWTBot specifically working with the RCP mail example app here:

http://richardadams606blog.blogspot.com/


which also covers running as an ant task as well


Richard




Re: RCP with SWTBOT [message #530285 is a reply to message #530277] Thu, 29 April 2010 08:41 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Dear Richard Adams,

Thanks a lot for your reply, very kind of you..

I have followed your Tutorial mentioned below:

http://richardadams606blog.blogspot.com/2010_04_01_archive.h tml

I am facing some problem while execution of the same.

Step 1: working fine, I'm able to launch the application.

Step 2: Since i want to test frrom stand alone,I left the same(please let me whether i am correct).

Step 3 : I have followed all the process of step 3,If i want to run against 'mail.product' its working fine(sorry but i didnt understand how its testing and what its testing,it simply loads the product), else if I am running the same class in junit it says widget not found.

Step 4: I left..


Please help me in fixing this issues.

Thanks and Regards,
Yogeshkumar.S
Re: RCP with SWTBOT [message #530312 is a reply to message #529734] Thu, 29 April 2010 10:25 Go to previous messageGo to next message
Richard Adams is currently offline Richard AdamsFriend
Messages: 77
Registered: July 2009
Location: Edinburgh
Member
Hi Yogeshkumar,
I've updated step 3 on the tutorial by adding screenshots on how to set up the launch configuration to run the tests.

Richard


Re: RCP with SWTBOT [message #530333 is a reply to message #530312] Thu, 29 April 2010 12:13 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Dear Richards,

Thanks for your support.

I am struggling in one point ,(ie) you run the testcase against SWTBot Test in Run configuration,

I dont have the SWTBot Test in my Run configurations.
Please let me know how to configure that.

Please help me in fixing the issue.

Thanks and Regards,
Yogeshkumar.S


Re: RCP with SWTBOT [message #530360 is a reply to message #530333] Thu, 29 April 2010 13:42 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Did you download[1] and install SWTBot in your IDE from the download
manager[2] ?

--
Ketan
ketan.padegaonkar.name | eclipse.org/swtbot

[1] - http://eclipse.org/swtbot/downloads.php
[2] -
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.user/tasks/tasks-124.htm

On 4/29/10 5:13 AM, yogeshkumar wrote:
> Dear Richards,
>
> Thanks for your support.
>
> I am struggling in one point ,(ie) you run the testcase against SWTBot
> Test in Run configuration,
>
> I dont have the SWTBot Test in my Run configurations.
> Please let me know how to configure that.
>
> Please help me in fixing the issue.
>
> Thanks and Regards,
> Yogeshkumar.S
>
>
>
Re: RCP with SWTBOT [message #530537 is a reply to message #529734] Fri, 30 April 2010 05:07 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Dear Ketan,

I have installed softwares from

http://download.eclipse.org/technology/swtbot/ganymede/dev-b uild/update-site

I have installed

SWTBot for Eclipse Testing

SWTBot for SWT Testing

but still i am not able to see the SWTBot Test in my Run configurations.

Please help me in fixing the issue.

Thanks and Regards,
Yogeshkumar.S






Re: RCP with SWTBOT [message #530538 is a reply to message #530537] Fri, 30 April 2010 05:17 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Yogesh,

You need to install SWTBot IDE Support for the run configuration to appear.

See http://swtbot.org/doc/ for more information. This documentation is
still work in progress so let me know if I'm missing something.

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot


On 4/29/10 10:07 PM, yogeshkumar wrote:
> Dear Ketan,
>
> I have installed softwares from
>
> http://download.eclipse.org/technology/swtbot/ganymede/dev-b uild/update-site
>
> I have installed
>
> SWTBot for Eclipse Testing
>
> SWTBot for SWT Testing
>
> but still i am not able to see the SWTBot Test in my Run configurations.
>
> Please help me in fixing the issue.
>
> Thanks and Regards,
> Yogeshkumar.S
>
>
>
>
>
>
>
Re: RCP with SWTBOT [message #530540 is a reply to message #530538] Fri, 30 April 2010 05:56 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Dear Ketan,

Thanks a lot for your support.

When i tried to install

SWTBOT IDE support

I'm facing error like

An error occurred during the org.eclipse.equinox.internal.provisional.p2.engine.phases.Ch eckTrust phase.
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.pha ses.CheckTrust, operand=, action=).
Cannot connect to keystore.
Uninitialized keystore


Please help me in fixing this issue.

Thanks and Regards,
Yogeshkumar.S
Re: RCP with SWTBOT [message #530541 is a reply to message #530538] Fri, 30 April 2010 05:57 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Dear Ketan,

Thanks a lot for your support.

When i tried to install

SWTBOT IDE support

I'm facing error like

An error occurred during the org.eclipse.equinox.internal.provisional.p2.engine.phases.Ch eckTrust phase.
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.pha ses.CheckTrust, operand=, action=).
Cannot connect to keystore.
Uninitialized keystore


Please help me in fixing this issue.

Thanks and Regards,
Yogeshkumar.S
Re: RCP with SWTBOT [message #530546 is a reply to message #530540] Fri, 30 April 2010 06:11 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Chances are you're using a non-sun JDK. Try installing java 1.6 from
http://java.sun.com/javase/downloads/widget/jdk6.jsp

Could you also provide the output of running 'java -version' on the
command line ?

Also see for more information
http://wiki.eclipse.org/IRC_FAQ#When_I_try_to_install_a_plug -in.2C_I_get_a_.22Cannot_connect_to_keystore..22_error.2C_wh at_should_I_do.3F

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot

On 4/29/10 10:56 PM, yogeshkumar wrote:
> Dear Ketan,
>
> Thanks a lot for your support.
>
> When i tried to install
>
> SWTBOT IDE support
>
> I'm facing error like
>
> An error occurred during the
> org.eclipse.equinox.internal.provisional.p2.engine.phases.Ch eckTrust
> phase.
> session context was:(profile=PlatformProfile,
> phase=org.eclipse.equinox.internal.provisional.p2.engine.pha
> ses.CheckTrust, operand=, action=).
> Cannot connect to keystore.
> Uninitialized keystore
>
>
> Please help me in fixing this issue.
>
> Thanks and Regards,
> Yogeshkumar.S
Re: RCP with SWTBOT [message #530559 is a reply to message #530546] Fri, 30 April 2010 07:46 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Dear Ketan,

please find my output for the command java -version

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode)

please also find the configuration details in my eclipse

java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\tptp.runtime.allInOne.win32.win32.x86-TPT P-4.6.2\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201 .R35x_v20090715.jar
java.class.version=50.0
java.endorsed.dirs=C:\Program Files\Java\jre6\lib\endorsed
java.ext.dirs=C:\Program Files\Java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home=C:\Program Files\Java\jre6
java.io.tmpdir=C:\DOCUME~1\syogesh\LOCALS~1\Temp\
java.library.path=C:\tptp.runtime.allInOne.win32.win32.x86-T PTP-4.6.2\eclipse;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\syste m32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOW S\System32\Wbem;C:\Documents and Settings\All Users\Application Data\lotus\notes\data\;C:\WINDOWS\system32\WindowsPowerShell \v1.0;C:\Program Files\Java\jdk1.6.0_02\bin;C:\DUKE CODE AND DOCUMENT\apache-ant-1.8.0-bin\apache-ant-1.8.0\bin;
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.6.0_13-b03
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.6
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/

java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.6.0_13
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=11.3-b02


Thanks and Regards,
Yogeshkumar.S

[Updated on: Fri, 30 April 2010 07:53]

Report message to a moderator

Re: RCP with SWTBOT [message #530576 is a reply to message #530559] Fri, 30 April 2010 08:29 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Dear Ketan,

I am able to install the SWTBOT Ide

when i try to run the file against SWTBOT test, Its throwing error like

An internal error occurred during: "Launching New_configuration".
org.eclipse.pde.internal.ui.launcher.LaunchPluginValidator.g etPluginsToRun(Lorg/eclipse/debug/core/ILaunchConfiguration; )Ljava/util/Map;


Please help me in resolving this.

Thanks and Regards,
Yoegshkumar.S
icon14.gif  Re: RCP with SWTBOT [message #530591 is a reply to message #530576] Fri, 30 April 2010 09:27 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Hi Richards/ketan,

Thanks a lot for your support,

My first sample with RCP mail has worked.

Please let me know how to take screenshot for each testcase.

Thanks and Regards,
Yogeshkumar.S



Re: RCP with SWTBOT [message #530593 is a reply to message #530576] Fri, 30 April 2010 09:15 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

It looks like the version of PDE you have in your Eclipse is not compatible with this version of SWTBot.
Which version of PDE do you have?

yogeshkumar a écrit :
> Dear Ketan,
>
> I am able to install the SWTBOT Ide
>
> when i try to run the file against SWTBOT test, Its throwing error like
>
> An internal error occurred during: "Launching New_configuration".
> org.eclipse.pde.internal.ui.launcher.LaunchPluginValidator.g
> etPluginsToRun(Lorg/eclipse/debug/core/ILaunchConfiguration;
> )Ljava/util/Map;
>
>
> Please help me in resolving this.
>
> Thanks and Regards,
> Yoegshkumar.S


--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: RCP with SWTBOT [message #530687 is a reply to message #530591] Fri, 30 April 2010 14:13 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Hey,

Great to hear that things worked for you.

Would you like to share what you had to do to make it work so someone
else who has similar problems can find the solution ?

I've updated the same doc with info on screenshots.

-- Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot


On 4/30/10 2:27 AM, yogeshkumar wrote:
> Hi Richards/ketan,
>
> Thanks a lot for your support,
>
> My first sample with RCP mail has worked.
>
> Please let me know how to take screenshot for each testcase.
>
> Thanks and Regards,
> Yogeshkumar.S
>
>
>
>
Re: RCP with SWTBOT [message #530934 is a reply to message #530687] Mon, 03 May 2010 05:54 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Dear Ketan,

My VM was pointing to some other version of JRE, So i got the error mentioned below.

An internal error occurred during: "Launching New_configuration".
> org.eclipse.pde.internal.ui.launcher.LaunchPluginValidator.g
> etPluginsToRun(Lorg/eclipse/debug/core/ILaunchConfiguration;
> )Ljava/util/Map;


To fix the error,

I made the configuration to vm to point it to the corresponding JDK:javaw.exe.

I had a look in to the document mentioned below

http://swtbot.org/doc/

Sorry , I was not able to find the process for taking the screenshot for the testcase,

Please help me in taking the screenshot for the testcase.

Thanks and Regards,
Yogeshkumar.S
Re: RCP with SWTBOT [message #531052 is a reply to message #530934] Mon, 03 May 2010 14:10 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
http://swtbot.org/doc/#_investigating_test_failures

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot


On 5/2/10 10:54 PM, yogeshkumar wrote:
> Dear Ketan,
>
> My VM was pointing to some other version of JRE, So i got the error
> mentioned below.
>
> An internal error occurred during: "Launching New_configuration".
>> org.eclipse.pde.internal.ui.launcher.LaunchPluginValidator.g
>> etPluginsToRun(Lorg/eclipse/debug/core/ILaunchConfiguration;
>> )Ljava/util/Map;
>
>
> To fix the error,
>
> I made the configuration to vm to point it to the corresponding
> JDK:javaw.exe.
>
> I had a look in to the document mentioned below
>
> http://swtbot.org/doc/
>
> Sorry , I was not able to find the process for taking the screenshot for
> the testcase,
>
> Please help me in taking the screenshot for the testcase.
>
> Thanks and Regards,
> Yogeshkumar.S
>
Re: RCP with SWTBOT [message #531234 is a reply to message #531052] Tue, 04 May 2010 09:22 Go to previous messageGo to next message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Dear Ketan,

I follow the same

@RunWith(SWTBotJunit4ClassRunner.class)

Sorry, But I was not able to see the screenshot folder in my project.

Please help me in fixing this issue.

Thanks and Regards,
Yogeshkumar.S
Re: RCP with SWTBOT [message #531259 is a reply to message #531234] Tue, 04 May 2010 10:58 Go to previous message
yogeshkumar  is currently offline yogeshkumar Friend
Messages: 22
Registered: April 2010
Junior Member
Hi,

I am facing a new problem.

I am using Eclipse Ganymade and I have installed SWTBOT from the below mentioned site.

http://download.eclipse.org/technology/swtbot/ganymede/dev-b uild/update-site/

The problem I am facing here is:

I have created a new plugin project,In MANIFEST.MF, in dependency page,If i try to add swtbot configuration,
It was not showing any SWTBOT configuration.
I tried searching using *swtbot

What might be the problem.

Please help me in resolving this.

Thanks and Regards,
Yogeshkumar.S
Previous Topic:Using SWT Bot with GMF - GEF
Next Topic:Headless junit4 runner can't find my plug-in
Goto Forum:
  


Current Time: Fri Apr 19 12:42:31 GMT 2024

Powered by FUDForum. Page generated in 0.03421 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top