https://bz.apache.org/ooo/show_bug.cgi?id=125174
Sandeep <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #5 from Sandeep <[email protected]> --- I am adding my comments based on my interpretation, reasoning and results from replication ------------------------------------------------------------------------------ Version: OO 4.2.0 AOO420m1(Build:9800) - Rev. 1692551 OS: Windows 7 Professional SP1 RAM : 8GB Minimal programs running including Notepad++, Word 2010, OO Writer I ran different tests ---------------------------------------------------------------------------------- Test 1: Objective is to replicate using the same idea as ES did in original bug report but with some helpful data points bout File extension, # of Lines, # of string styled, Time delay Prerequisite: 1. A file with .odt extension and lines ~20K is already created (CDTMyOOFile.odt). All text data is there copied pasted from notepaad++ file. So no default formatting 2. Data is chosen such that there are aat lest 50+ instances of different strings that can be styled ---------------------------------------------------------------------------------- Steps: 1. Open OO Writer and the file CDTMyOOFile.odt 2. Use Ctrl+F open "Find & Replace" dialogue 3. In "Search For" box, enter a string of your choice say "11 Kaner, Cem, Improving the Maintainability of Automated Test SuitesA Context-Driven Approach to Automation in Testing" 4. click Find All, once the search string is selected (all such test strings in the file), close the "Find & Replace" dialogue. 5. Once dialogue gets closed, hit F11 (or from menu bar, select Format > Styles & Formatting ) to open Style and Formatting window, select 6th option which is "Heading1', click it. 6. Make sure that you see that currently selected string is styled as Heading1 7. Now close this window, Do not save and hit F5 to open Navigator (or from menu bar Select View > Navigator). You should see that all 50+ instances of the string under test are styled as Heading1 8. Hit Ctrl + S and save the document as .odt extension (CDTMyOOFileTest.odt) on a drive of your choice having sufficient space. Close the OO Writer 9. Wait for 60 seconds and reopen the OO and then open the CDTMyOOFileTest.odt file 10. Do not make changes and use "Save As" to save the file and name it as "CDTMyOOFileTest_001_NewSuffix.odt". Save it and close the OO 12. Reopen the document As per user's observations: ---------------------------- 1. Most of the styles shouldn't be there As per test results: -----------------------------: All styles are there. Not a single style is changed -- End Of Test 1----- Test 2: Objective is to replicate using a modified idea as ES did in original bug report but with some helpful data points bout File extension, # of Lines, # of string styled, Time delay plus styling more lines in the file and then using save As + Reopen ------------------------------------------------------------------------------- Prerequisite: 1. A file with .odt extension and lines ~20K is already created (CDTMyOOFile.odt). All text data is there copied pasted from notepaad++ file. So no default formatting 2. Data is chosen such that there are aat lest 50+ instances of different strings that can be styled ---------------------------------------------------------------------------------- Steps: 1. Open OO Writer and the file CDTMyOOFile.odt 2. Use Ctrl+F open "Find & Replace" dialogue 3. In "Search For" box, enter a string of your choice say "11 Kaner, Cem, Improving the Maintainability of Automated Test SuitesA Context-Driven Approach to Automation in Testing" 4. click Find All, once the search string is selected (all such test strings in the file), close the "Find & Replace" dialogue. 5. Once dialogue gets closed, hit F11 (or from menu bar, select Format > Styles & Formatting ) to open Style and Formatting window, select 6th option which is "Heading1', click it. 6. Make sure that you see that currently selected string is styled as Heading1 7. Now close this window, Do not save and hit F5 to open Navigator (or from menu bar Select View > Navigator). You should see that all 50+ instances of the string under test are styled as Heading1 8. Hit Ctrl + S and save the document as .odt extension (CDTMyOOFileTest.odt) on a drive of your choice having sufficient space. Close the OO Writer 9. Wait for 60 seconds and reopen the OO and then open the CDTMyOOFileTest.odt file 10. Utilize steps 2 to 7 to have another string styled in 'Heading1'. 11. Once confirmed that new string is also styled, use Save As to save the file and name it as "CDTMyOOFileTest_001_NewSuffix.odt". Save it and close the OO 12. Open the document using OO, now you have 100+ Heading1 styles As per user's observations: ---------------------------- 1. Most of the styles shouldn't be there As per test results: -----------------------------: All styles are there. Not a single style is changed (neither earlier ones nor the new ones) -- End Of Test 2----- Test 3: Objective is to replicate based on assumption that in original bug report by ES, suffix may have meant a file extension change. Theory behind Test 3: ---------------------- 1. Formatting, Styles related issues may be observed when saving from one extension to another extension and usually not on just increasing the file name 2. Normally OO gives a warning to the user when saving from one extension to another (probably incompatible) some formatting may be lost. If this is true and user did Save As. Did he looked into the message and made a correct choice of not losing the formatting, styles? Only Heading 1 lost or different kind of heading lost from different paragraphs? ------------------------------------------------------------------------------- Prerequisite: 1. A file with .odt extension and lines ~20K is already created (CDTMyOOFile.odt). All text data is there copied pasted from notepaad++ file. So no default formatting 2. Data is chosen such that there are aat lest 50+ instances of different strings that can be styled ---------------------------------------------------------------------------------- Steps: 1. Open OO Writer and the file CDTMyOOFile.odt 2. Use Ctrl+F open "Find & Replace" dialogue 3. In "Search For" box, enter a string of your choice say "11 Kaner, Cem, Improving the Maintainability of Automated Test SuitesA Context-Driven Approach to Automation in Testing" 4. click Find All, once the search string is selected (all such test strings in the file), close the "Find & Replace" dialogue. 5. Once dialogue gets closed, hit F11 (or from menu bar, select Format > Styles & Formatting ) to open Style and Formatting window, select 6th option which is "Heading1', click it. 6. Make sure that you see that currently selected string is styled as Heading1 7. Now close this window, Do not save and hit F5 to open Navigator (or from menu bar Select View > Navigator). You should see that all 50+ instances of the string under test are styled as Heading1 8. Hit Ctrl + S and save the document as .odt extension (CDTMyOOFileTest.odt) on a drive of your choice having sufficient space. Close the OO Writer 9. Wait for 60 seconds and reopen the OO and then open the CDTMyOOFileTest.odt file 10. Utilize steps 2 to 7 to have another string styled in 'Heading1'. 11. Once confirmed that new string is also styled, use Save As to save the file and name it as "CDTMyOOFileTest.doc". Accept the formatting loss relted warning and save the document 12. Now open the the .doc document using OO, now you have 100+ Heading1 styles As per user's observations: ---------------------------- 1. Most of the styles shouldn't be there As per test results: -----------------------------: All styles are there. Not a single style is changed (neither earlier ones nor the new ones) -- End Of Test 3----- -- Attached evidences------ 1. Test 1 - Test 2 - Test 3 Replication Results.doc 2. CDTMyOOFileTest.odt Other Follow-up tests that could be run: 1.Vary the number of lines 50K+ and changing styles of 10% of paragraphs (e.g. 500) with Heading1, Heaading2 and others (equal distribution) 2. Stress the RAM to see if opening file when RAM is a constraint – However I cannot this test as of now 3. Save the file, do an un-install / install and Reopen -- You are receiving this mail because: You are the assignee for the issue.
