Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot tests for an SWTBrowser component(SWTBot tests for an SWTBrowser component)
SWTBot tests for an SWTBrowser component [message #1695923] Wed, 20 May 2015 10:55 Go to next message
Dhanya Pradeep is currently offline Dhanya PradeepFriend
Messages: 4
Registered: July 2013
Junior Member
Hi,

In my RCP application I've a View which embeds an SWTBrowser that loads an html page. The UI thus created uses html UI elements as well as UI components provided by jQuery library.

Do we have support in SWTBot for testing the UI elements in an html? Unfortunately I did not find much information on this topic online.

It would be of great help if I can get some pointers.

Thanks,
Dhanya
Re: SWTBot tests for an SWTBrowser component [message #1695942 is a reply to message #1695923] Wed, 20 May 2015 12:35 Go to previous message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
You can use a unit testing framework for JavaScript inside the Browser instance.
QUnit is used by jquery, for example.

When the JavaScript tests have finished, you need to get the results back to JUnit (I am assuming you use JUnit). You can install a BrowserFunction to talk to the QUnit runtime inside the Browser instance.

Dhanya Pradeep wrote on Wed, 20 May 2015 12:55
Hi,

In my RCP application I've a View which embeds an SWTBrowser that loads an html page. The UI thus created uses html UI elements as well as UI components provided by jQuery library.

Do we have support in SWTBot for testing the UI elements in an html? Unfortunately I did not find much information on this topic online.

It would be of great help if I can get some pointers.

Thanks,
Dhanya

Previous Topic:SWTBot run application in another mode then exported apllication
Next Topic:org.eclipse.swt.SWTError: No more handles
Goto Forum:
  


Current Time: Wed Apr 24 16:34:08 GMT 2024

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

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

Back to the top