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 26842 - Window's Title isn't always constructed well
Summary: Window's Title isn't always constructed well
Status: CLOSED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2002-08-28 11:17 UTC by dmladek
Modified: 2008-12-23 09:05 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test failed 'cause of bad Window's title (44.71 KB, image/png)
2002-08-28 11:18 UTC, dmladek
Details
jemmy.log (18.20 KB, text/plain)
2002-08-28 11:19 UTC, dmladek
Details
testStatus.log (2.60 KB, text/plain)
2002-08-28 11:20 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2002-08-28 11:17:07 UTC
NB3.4 RC2, NBdev4.0
happened on Solaris, linux with various jdk1.4
===============================================

This bug is one of those which is hard to describe
even
reproduce. And for normal work you could easy use
to live with. But for automatical test it is bug
with P1.
I'd like if it could be solved ASAP, so could we
agree on P2?

Well, Automatical test for JavaCVS module
(part of javacvs module) sometimes fails after
looking for dialog with tose titles:
 -CVS Output [Status -testfile.java]
  it means if you invoke cvs->Status command on a
  'testfile.java'...the command output is placed
  in a window with mentioned title. BUT SOMETIMES
  the TITLE is ONLY !!!!
  -CVS Output [?]
  and that's BAD :-(
it happens also for others CVS's commands like AFAIK:
 -log,
 -annotate

I'm attaching the snpashot (when command failure,
also jammy.log and testStatus.log
the mentioned testStatus() testCase you could
found
at:http://javacvs.netbeans.org/source/browse/javacvs/test/qa-functional/src/validation/JavaCVSValidationTest.java?rev=1.9.10.7&content-type=text/x-cvsweb-markup&sortby=rev&only_with_tag=release34
Comment 1 dmladek 2002-08-28 11:18:53 UTC
Created attachment 7228 [details]
Test failed 'cause of bad Window's title
Comment 2 dmladek 2002-08-28 11:19:57 UTC
Created attachment 7229 [details]
jemmy.log
Comment 3 dmladek 2002-08-28 11:20:41 UTC
Created attachment 7230 [details]
testStatus.log
Comment 4 dmladek 2002-08-28 11:25:42 UTC
I'd like to mention that after test finished, I performed another
cvs->Status on another file.
The output has been docket into previous frame.
So now the Window has correct title and contains 2 TAB
(each was holding the output of Status command of different file).
Switching between those 2 TABs...was changing the Windows title, but
always correctly...


But don't think that it happens only when those actions are performed
automaticaly! It also happens by hand...
Comment 5 dmladek 2002-08-28 11:29:21 UTC
CC'ing the vcscore
Comment 6 _ mihmax 2002-08-31 00:11:33 UTC
There's the related isuue:
http://www.netbeans.org/issues/show_bug.cgi?id=26811

Maybe they are the same, but QA just doesn't "see" that 
the contents of the window is all-grey.
Comment 7 mslama 2002-09-02 14:01:16 UTC
Hmm. P2 and not reproducible? Window title contains name of selected
top component in square brackets. If selected top component is null
question mark is put there instead of tc name. Without way to
reproduce (at least using automatic test) I cannot find why top
component is not selected.
Comment 8 dmladek 2002-09-02 14:45:55 UTC
This is P2 'cause it occures very often and breaks automatical test
for version control modules eg. JavaCVSValidationTest.java
You could see daily results on http://beetle.czech/automatedtests/xtest/

I know that now it is hard to find solution....but if you include some
debug's messages... we could be faraway,can't we?;-)


Comment 9 Peter Zavadsky 2002-11-13 08:52:53 UTC
Please, let me know where is the test and how to run it, thanks.
Comment 10 Peter Zavadsky 2002-11-14 10:51:09 UTC
Pleaes provide the exact steps how to get and try out the test,
otherwise I can't do anyting with it. Closing it up to that time.
Comment 11 dmladek 2002-11-14 11:29:55 UTC
Hi Peter,
excuse me I didn't answer your previous question:-(
I was investigating if publishing on netbeans.org site of latest
test's result will be corrected soon, so I could point you here,
instead our internal web, but seems it won't:-(((

So, if you look here,please:
http://ffjqa.czech.sun.com/automatedtests/xtest/netbeans_dev/netbeans-qa-functional.html
And see a few latest results on SunOS-5.8-sparc for JavaCVS module,
you'll get mi true that it happens regulary.

And how to execute this tests?
Checkout javacvs module from cvs.netbeas.org
Find JavaCVSValidationTest.java
(javacvs/test/qa-functional/src/org/validation)

How to set your testing environment, please read
http://testtools.netbeans.org/
here, you could get all appropriate info

or I could try to tell you all steps which I do for setting my env.:
also checkout jemmy, jelly modules and compile them
you need download xtestdistribution ->you need mount from it
all junit*jars (or you could autoupdate junit, optionaly jemmysupport
& jemmy & testools modules)
http://xtest.netbeans.org/Download/license-xtest-distribution.html
mount also core, openide, terminalemulator, vcscore, javacvs, cvslib
jars.

you need eddit jour junit.properties file :here is the example:
----
nbjunit.workdir=/home.local/danielm/junit/tests/workdir
nbjunit.diff.impl=org.netbeans.junit.diff.NativeDiff
nbjunit.diff.impl.CmdLine=/usr/bin/diff -bw %TESTFILE% %PASSFILE%
----

and then execute internaly JavaCVSValidationTest
or you could executed via Xtest harness (as automation test are
executed, but again I please you to read xtest.netbeans.org site
how to set up it)


Is it all clear? Don't hesitate to ask for other clarifications:)
Comment 12 Peter Zavadsky 2002-11-14 13:17:30 UTC
Thanks, I'll try to set it up.
Comment 13 dmladek 2002-11-14 16:22:35 UTC
I have make one's excuse for reopening this issue.
I had to be overworked too:-) I was thinking that this issue
was a bug  which I enter a few days ago with P4/P5 priority.
And this issue #28592 is very similar to this...:-)
But it happens only on Solaris 8 on CDE Win.Manager...

It's quite senceless to continue work on this bug 'cause (without
any explicit fixes) seems that issue disappeared...

So, I'm closing it as WORKS FOR ME, and let's focus on issue #28592
(if you have a time...it not so serrious as this one probably was,
and it is P4-P5 only on Solaris...)

-Dan