Issue 104601 - testautomation:: Warning for missing file which exists
Summary: testautomation:: Warning for missing file which exists
Status: CLOSED FIXED
Alias: None
Product: QA
Classification: Unclassified
Component: testscripts (show other issues)
Version: current
Hardware: PC Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: helge.delfs
QA Contact: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-29 11:16 UTC by merschmann
Modified: 2013-08-07 15:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description merschmann 2009-08-29 11:16:08 UTC
Windows XP. OOo 3.1.1 en-us with german languagepack
While executing f_first.bas a warning came up:

tToolsOptionsImprovementProgram
Update test for the tools/options dialog of the OOo Improvement Program
global::tools::includes::required::t_files.inc::hDeleteFile():Deleting file
failed: C:\Dokumente und
Einstellungen\Customer\Anwendungsdaten\OpenOffice.org\3\user\temp\feedback\Current.csv
Improvement Program tabpage
Text import dialog
Warnung: No warning for missing file: C:\Dokumente und
Einstellungen\Customer\Anwendungsdaten\OpenOffice.org\3\user\temp\feedback\Current.csv

I checked after the test and the file is there.
Comment 1 Joost Andrae 2009-09-28 08:49:41 UTC
reassigning to Helge
Comment 2 joerg.skottke 2009-09-28 09:23:52 UTC
This is a known issue with no real solution this far.
Reason: Builds provided by Sun always have the Improvement Program enabled and
the tab-page in tools/options is visible. The API does not offer any way to
retrieve the real state of the Improvement program yet because the only way to
know about it's state is to ask the API whether the tab-page is enabled or not.
And there exists no mehod for that yet.

Currently i'm tracking progress in issue 104246.
Comment 3 joerg.skottke 2009-09-28 09:30:39 UTC
Ah, i see another problem here which i was not aware of: If the improvement
program is not enabled, not such file should exist.

In this special case you apparently started the office manually at least twice
accepting to participate in the usage tracking program. Then you started the
autotest causeing the file to be present. Please wipe your user configuration
before running the test.
Comment 4 joerg.skottke 2009-09-28 09:37:32 UTC
I just checked the test code. Usually it deletes the file automatically (the log
even states that deleting failed). Maybe the test has a problem with the
accessrights to the file?
Comment 5 joerg.skottke 2009-09-28 09:47:57 UTC
I modified the test to exit when a logfile is found (after attempting to delete
it). Following warning will be printed along with the path to the file:
warnlog( "Logfile present, it could not be deleted. Please check path and
accessrights" )
printlog( "Path: " & cLogFile )

Fix is done on CWS jskhgpilot4, target 3.2, adding this task to the CWS.
Comment 6 joerg.skottke 2009-09-28 11:42:58 UTC
Fixed.
Comment 7 joerg.skottke 2009-10-01 10:32:25 UTC
Verified.
Comment 8 helge.delfs 2010-01-07 06:20:06 UTC
closed due to integrated into MWS