assertj / assertj/assertj-swing

Fest slows down while testing with swingx jxtreetable

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
import from fest-swing
Dominant language
Java
Stars
121
Forks
52
PR merge metrics
No merged PRs in 30d

Description

_Issue by **[Sethuraman](https://github.com/Sethuraman)** from Thursday Jun 13, 2013 at 17:25 GMT_
_Originally opened as https://github.com/alexruiz/fest-swing-1.x/issues/20_

---

I am not sure how to explain this. But I'll try.. Fest slows down to crawl while working with JXTreeTable of swingx. It doesn't slow down initially. It works fine for a while, but after a while when the same actions are repeated it slows down badly.

Here's a video of it slowing down.

http://screencast.com/t/liNttCw2In0w

At times 0.39s to 0.40 a set of operations are performed. These are done when there is one row in the JXTreeTable.

At time 0.49 to end of recording the same operation is repeated but there are now 3 rows in the table, it takes very long for the mouse to click.

I have attached a screenshot taken at the time when fest slows down, which attempts to explain it more

![screenshot_13_06_13_10_39_pm](https://f.cloud.github.com/assets/1607090/649814/93421956-d44d-11e2-9656-2a30c2252039.png)

This is the code that does the work:

Step 1) Selecting a node from the tree is done as below:

``` java
JTreeFixture folioTreeFixture = importShareholders.panel("treePanel").tree("folioTree");

folioTreeFixture.separator("~");
folioTreeFixture.selectPath(new StringWrapper("Shareholders", true)+"~"+
(ShareType.isEquity(shareType) ? new StringWrapper("Equity Folios", true) : new StringWrapper("Preference Folios", true))+"~"+
new FolioTreeRep(folio.getName(),folioNo, shareType).toString());
```

Step 2) Searching and selecting a row from the JXTreeTable

``` java
int selectRow=-1;
JTableFixture table=importShareholders.table("historyTable");
for(int i=0;i

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.