Skip to main content



      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 06:55 Go to next message
Eclipse UserFriend
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 08:35 Go to previous message
Eclipse UserFriend
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: Sun May 18 04:16:14 EDT 2025

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

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

Back to the top