Q7

Table without listeners is not recorded on OSX.

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.2.8
  • Fix Version/s: 1.3.x
  • Component/s: Runtime
  • Labels:
    None
  • Environment:
    osx
  • Test Mode:
    Manual

Description

If table is created with following code:

Table table = new Table(generalClient, SWT.CHECK | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
for (int i = 1; i < 4; i++) {
     TableItem item = new TableItem(table, SWT.NONE);
     item.setText("option" + i);
}

And there is no listeners added to table, so EventTable internal structure is not created, then no commands are recorded for this table.

Probable could be same situations for some other controls.

Activity

Hide
komaz added a comment - 31/Oct/12 3:01 PM

What about asserting its contents? If it works, then I would consider it as a feature, not a bug

Show
komaz added a comment - 31/Oct/12 3:01 PM What about asserting its contents? If it works, then I would consider it as a feature, not a bug
Hide
Andrey Sobolev added a comment - 31/Oct/12 5:09 PM

It is a bug:

Lets assume user have such table and OK button. Each half of second it look for selection and enable button.
Then we try to record such UI, we will not record selection in table, so testcase could not be recorded.

Show
Andrey Sobolev added a comment - 31/Oct/12 5:09 PM It is a bug: Lets assume user have such table and OK button. Each half of second it look for selection and enable button. Then we try to record such UI, we will not record selection in table, so testcase could not be recorded.
Hide
komaz added a comment - 01/Nov/12 4:34 PM

And this implies to mac os x only?

Show
komaz added a comment - 01/Nov/12 4:34 PM And this implies to mac os x only?
Hide
komaz added a comment - 07/Nov/12 11:25 AM

the plan is to add/remove listener on table creation to force event table creation

Show
komaz added a comment - 07/Nov/12 11:25 AM the plan is to add/remove listener on table creation to force event table creation
Hide
komaz added a comment - 07/Nov/12 11:25 AM

also need to check whether this applies to other widgets

Show
komaz added a comment - 07/Nov/12 11:25 AM also need to check whether this applies to other widgets

People

Vote (0)
Watch (0)

Dates

  • Created:
    30/Oct/12 5:51 PM
    Updated:
    16/Jan/13 5:48 PM