Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Problem with SWTBotEclipseEdittor
Problem with SWTBotEclipseEdittor [message #33070] Wed, 22 April 2009 13:57 Go to next message
santhosh ram is currently offline santhosh ramFriend
Messages: 6
Registered: July 2009
Junior Member
Hi ,

After changing the perspective to that of my plug-in, I am creating a
project and then i am trying to write some code in the file.
For this i am using the following code

SWTBotEclipseEditor fileEditor=bot.editor("Filename");
fileEditor.setText("This is test Text");

but the test is failing at the line bot.editor("Filename"); throwing
exception

" org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundExcep tion : Could
not find any control inside view Filename."

I tried this with the java project. In that case it is working fine.But in
the case of my plug-in it is throwing this exception.

I didn't understand what could be the reason for this.
Any pointers for this will be higly helpful to me.

thanks in advance.
Santhosh
Re: Problem with SWTBotEclipseEdittor [message #33247 is a reply to message #33070] Thu, 23 April 2009 06:43 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
You need to provide the filename as 'filename.extension'. In case of
errors, you'll also find some screenshots in the screenshots folder
useful for diagnosing.

-- Ketan

santhosh ram wrote:
> Hi ,
>
> After changing the perspective to that of my plug-in, I am creating
> a project and then i am trying to write some code in the file.
> For this i am using the following code
>
> SWTBotEclipseEditor fileEditor=bot.editor("Filename");
> fileEditor.setText("This is test Text");
>
> but the test is failing at the line bot.editor("Filename"); throwing
> exception
>
> " org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundExcep tion :
> Could not find any control inside view Filename."
>
> I tried this with the java project. In that case it is working fine.But
> in the case of my plug-in it is throwing this exception.
>
> I didn't understand what could be the reason for this. Any pointers for
> this will be higly helpful to me.
>
> thanks in advance.
> Santhosh
>
>
>
Re: Problem with SWTBotEclipseEdittor [message #33422 is a reply to message #33247] Fri, 24 April 2009 05:18 Go to previous messageGo to next message
santhosh ram is currently offline santhosh ramFriend
Messages: 6
Registered: July 2009
Junior Member
Ketan Padegaonkar wrote:

> You need to provide the filename as 'filename.extension'. In case of
> errors, you'll also find some screenshots in the screenshots folder
> useful for diagnosing.

> -- Ketan

> santhosh ram wrote:
>> Hi ,
>>
>> After changing the perspective to that of my plug-in, I am creating
>> a project and then i am trying to write some code in the file.
>> For this i am using the following code
>>
>> SWTBotEclipseEditor fileEditor=bot.editor("Filename");
>> fileEditor.setText("This is test Text");
>>
>> but the test is failing at the line bot.editor("Filename"); throwing
>> exception
>>
>> " org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundExcep tion :
>> Could not find any control inside view Filename."
>>
>> I tried this with the java project. In that case it is working fine.But
>> in the case of my plug-in it is throwing this exception.
>>
>> I didn't understand what could be the reason for this. Any pointers for
>> this will be higly helpful to me.
>>
>> thanks in advance.
>> Santhosh
>>
>>
>>
hi ketan,

Thanks for the reply. I am providing the filename as
"FileName.extension" only. Even then the exception is thrown.

Is there any issues with the SWTBotEclipseEditor that it can
identify only the editors which are implemented by extending a particular
class or such? As it is not able to identify my editor.

I didn't find the screenshots folder in my current directory. Where
can i find that. For that i need to do any additional configuration?

Please throw some light on these aspects.

Regards,
Santhosh
Re: Problem with SWTBotEclipseEdittor [message #34139 is a reply to message #33070] Thu, 30 April 2009 12:57 Go to previous message
Galina Bocheva is currently offline Galina BochevaFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

I had the same problem and it appeared that the editor I am trying to
write in is some kind of graphical editor. That was the reason why no
controls were found.
Previous Topic:Can't test RCP application
Next Topic:Off action for a while...
Goto Forum:
  


Current Time: Tue Oct 15 00:20:41 GMT 2024

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

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

Back to the top