Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » More wait conditions
More wait conditions [message #1767722] Mon, 10 July 2017 10:27
Aparna Argade is currently offline Aparna ArgadeFriend
Messages: 44
Registered: October 2010
Member
SWTBot already has many wait conditions. The Conditions code is extensible and we can have custom conditions. I have implemented following additional wait conditions for my requirements-
1. TableHasMinimumRows
Sometimes it's difficult to predict exact number of rows, so TableHasRows cannot be used.
There can be cases where the table can be assumed to be valid if it displays some minimum rows (as a header). Mostly initial background processing takes time. But after the table displays initial lines, the rest of the data appears appears quickly.

2. WidgetHasMinimumRows (can be used for SWTBot Table, NatTable, Tree, TreeItem, etc. by using java reflection for rowCount()). If this is in place then TableHasMinimumRows is not required.

3. WidgetHasMinimumLines (can be used for Editor,StyledText by using reflection for LineCount())

4. LabelHasValue (e.g. to test Progress/status in 'Progress Information' dialogs).

Do you think that the above conditions could be commonly used by the community?
If yes, I would like to contribute.
Thanks,
Aparna
Previous Topic:StartupRecorder.openRecorder fails with NPE
Next Topic:SWTBot and Dependency Injection
Goto Forum:
  


Current Time: Fri Nov 16 09:58:32 GMT 2018

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

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

Back to the top