This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 31142 - Tests fail on Scrolling Exception
Summary: Tests fail on Scrolling Exception
Status: CLOSED INVALID
Alias: None
Product: qa
Classification: Unclassified
Component: Jellytools (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-17 11:09 UTC by pfelenda
Modified: 2003-04-23 14:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Added exception (2.40 KB, text/plain)
2003-02-17 11:11 UTC, pfelenda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pfelenda 2003-02-17 11:09:29 UTC
While using big properties file opened in Editor
my test fail.
Exception is in attach.
Comment 1 pfelenda 2003-02-17 11:11:21 UTC
Created attachment 8986 [details]
Added exception
Comment 2 Jiri Skrivanek 2003-02-17 12:01:34 UTC
There is bad value in data/big_file.properties. It already contains
key "key7" and that's why your test case fails. See screen shots of
your test cases. There is an Error dialog in task bar.
Additionally you should change method in PropertiesEditorOperator this
way, because it can throw NPE otherwise:

    public void propertiesEditorClickNewPropertyButton() {
        JButtonOperator jButtonOperator = new JButtonOperator(
                                     new EditorWindowOperator(),
                                     this.BUTTON_NAME_NEW_PROPERTY);
        jButtonOperator.pushNoBlock();
        new QueueTool().waitEmpty();
    }

Also you don't need to catch any jemmy exception (line 153). It
already does JellyTestCase for you and it reports whole stack trace,
so it is easier to track concrete line where an exception was thrown.
Comment 3 pfelenda 2003-02-18 10:19:12 UTC
[200302180100]
Reopening this issue, bacause I saw this issue on today's build.

There was changed content of  properties file used
in my test.


Comment 4 Jiri Skrivanek 2003-02-18 13:08:32 UTC
Timeout expires because it is big file and it takes an incredible
amount of time to scroll to the beginning of the file. To increase
timeout write the following in
PropertiesEditorOperator.selectPropertiesFileItem() method:

  JTableOperator jTableOperator = new JTableOperator(jTable);
  jTableOperator.getTimeouts().
            setTimeout("JScrollBarOperator.WholeScrollTimeout",
                       240000);
  jTableOperator.clickOnCell(rowNumber,1);

But much more better would be to modify test case. For example, close
editor after new keys are created and re-open it. It will open file at
the beginning, so no scrolling is needed.
Comment 5 pfelenda 2003-04-23 12:58:15 UTC
Verified in dev 20030423.