Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:38 Go to next message
Alex Gor is currently offline Alex GorFriend
Messages: 159
Registered: November 2014
Location: Russia
Senior Member
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 07:51]

Report message to a moderator

Re: SWTBot run application in another mode the exported apllication [message #1694951 is a reply to message #1694742] Sun, 10 May 2015 15:52 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
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 Mar 19 04:13:37 GMT 2024

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

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

Back to the top