Skip to main content



      Home
Home » Eclipse Projects » SWTBot » SWTBot run application in another mode then exported apllication(Correct run configuration for SWTBot )
SWTBot run application in another mode then exported apllication [message #1694742] Thu, 07 May 2015 09:38 Go to next message
Eclipse UserFriend
Dear All

I try to find a solutions for the following problem.
Preconsitons
- I have legacy RCP Application
- I've install corresponded SWTBot plugin to Eclipse (Luna 4.4.1)
- I wrote simple test for checking preference page of my application (via JUnit4)

When I run SWTBot plugin via Run As menu (using Run As SWTBot test) I observe that preference page of my application is difference in comparison with Preference Page when I run apllication via product file. Under SWT it contains a lot of options that are not displayed in usual mode. I suppose the SWTBot starts my application in difference mode or with difference options. Could anybody to help in resolving this problem. Main question is what is correct mode for start application under SWTBot. Why prefernce page demonstrate difference behavior in case I start unit test under SWTBot and in case I started application that previousluIy is exported. Suppose also that problem is hidden in JUnit runner may be.

Thank you in advance
Alex

[Updated on: Fri, 08 May 2015 03:51] by Moderator

Re: SWTBot run application in another mode the exported apllication [message #1694951 is a reply to message #1694742] Sun, 10 May 2015 11:52 Go to previous message
Eclipse UserFriend
On 07/05/2015 15:38, Alex Gor wrote:
> Dear All
>
> I try to find a solutions for the following problem. Preconsitons
> - I have legacy RCP Application
> - I've install corresponded SWTBot plugin to Eclipse (Luna 4.4.1)
> - I wrote simple test for checking preference page of my application
> (via JUnit4)
>
> When I run SWTBot plugin via Run As menu (using Run As SWTBot test) I
> observe that preference page of my application is difference in
> comparison with Preference Page when I run apllication via product file.
> Under SWT it contains a lot of options that are not displayed in usual
> mode. I suppose the SWTBot starts my application in difference mode or
> with difference options. Could anybody to help in resolving this
> problem. Main question is what is correct mode for start application. I
> suppose also that problem is hidden in JUnit runner may be.
> Thank you in advance
> Alex

Hi

in your launch configuration, have you specified to run your product or
are you using the default? In the latter case, it will run org.eclipse.sdk

hope this helps
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
Previous Topic:What SWTBOT tests exist for Eclipse?
Next Topic:SWTBot tests for an SWTBrowser component
Goto Forum:
  


Current Time: Tue May 20 22:26:29 EDT 2025

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

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

Back to the top