diff options
-rwxr-xr-x | testautomation/dbaccess/optional/includes/ctrl_General.inc | 2 | ||||
-rwxr-xr-x | testautomation/dbaccess/optional/includes/ctrl_Wizards.inc | 8 | ||||
-rwxr-xr-x | testautomation/dbaccess/tools/controltools.inc | 8 | ||||
-rwxr-xr-x | testautomation/graphics/optional/includes/global/export_graphic_2.inc | 12 | ||||
-rwxr-xr-x | testautomation/graphics/optional/includes/global/g_format.inc | 2 | ||||
-rwxr-xr-x | testautomation/graphics/optional/includes/impress/i_us_present.inc | 8 | ||||
-rw-r--r-- | testautomation/writer/optional/includes/loadsave/w_loadsave.inc | 212 | ||||
-rwxr-xr-x | testautomation/writer/optional/includes/redlining/w_redlining2.inc | 23 | ||||
-rwxr-xr-x | testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc | 5 | ||||
-rwxr-xr-x | testautomation/writer/optional/input/import/html.html (renamed from testautomation/writer/optional/input/import/html/html.html) | 0 |
10 files changed, 165 insertions, 115 deletions
diff --git a/testautomation/dbaccess/optional/includes/ctrl_General.inc b/testautomation/dbaccess/optional/includes/ctrl_General.inc index 485b78971c76..5fc684f8f540 100755 --- a/testautomation/dbaccess/optional/includes/ctrl_General.inc +++ b/testautomation/dbaccess/optional/includes/ctrl_General.inc @@ -1027,7 +1027,7 @@ testcase tAddFields Liste.TypeKeys "<DOWN>" , 4, true sControlName2 = Liste.getSelText if sControlName1 <> sControlName2 then - warnlog "#i98316# The control name is not the same as the fieldname." + qaerrorlog "#i98316# The control name is not the same as the fieldname." endif sleep (2) diff --git a/testautomation/dbaccess/optional/includes/ctrl_Wizards.inc b/testautomation/dbaccess/optional/includes/ctrl_Wizards.inc index fbeab1c4f1d1..11cae40e2689 100755 --- a/testautomation/dbaccess/optional/includes/ctrl_Wizards.inc +++ b/testautomation/dbaccess/optional/includes/ctrl_Wizards.inc @@ -120,7 +120,7 @@ testcase tGroupBoxWithDatasource printlog "set the table TT_Control" Content.setText("TT_Control") 'WORKAROUND: for bug 106538 - TabDataForm.TypeKeys "<RETURN>" , true + Content.TypeKeys "<RETURN>" , true Kontext "ControlPropertiesDialog" ControlPropertiesDialog.Close sleep(3) @@ -246,7 +246,7 @@ testcase tGroupBoxWithDatasource sleep(1) HelpURL.setText "HID:123456" sleep(1) - TabGeneralControl.TypeKeys "<RETURN>" + HelpURL.TypeKeys "<RETURN>",true sleep(1) Kontext "ControlPropertiesDialog" ControlPropertiesDialog.close @@ -284,7 +284,7 @@ testcase tGroupBoxWithDatasource sleep(1) HelpURL.setText "HID:1234567" sleep(1) - TabGeneralControl.TypeKeys "<RETURN>" + HelpURL.TypeKeys "<RETURN>",true sleep(1) Kontext "ControlPropertiesDialog" ControlPropertiesDialog.close @@ -324,7 +324,7 @@ testcase tGroupBoxWithDatasource 'sleep(1) HelpURL.setText "HID:12345678" 'sleep(1) - TabGeneralControl.TypeKeys "<RETURN>" + HelpURL.TypeKeys "<RETURN>",true sleep(1) Kontext "ControlPropertiesDialog" ControlPropertiesDialog.close diff --git a/testautomation/dbaccess/tools/controltools.inc b/testautomation/dbaccess/tools/controltools.inc index f7614cba40b3..3c7e2b3287a8 100755 --- a/testautomation/dbaccess/tools/controltools.inc +++ b/testautomation/dbaccess/tools/controltools.inc @@ -136,6 +136,7 @@ function fSetControlProperty(sControlType, sPropertyName, sPropertyValue as stri ControlPropertiesTabControl.setPage TabDataControl Kontext "TabDataControl" CellBound.setText(sPropertyValue) + CellBound.typeKeys("<RETURN>",true) Kontext "ControlPropertiesTabControl" ControlPropertiesTabControl.setPage TabGeneralControl elseif sPropertyName = "CellRange" then @@ -143,6 +144,7 @@ function fSetControlProperty(sControlType, sPropertyName, sPropertyValue as stri ControlPropertiesTabControl.setPage TabDataControl Kontext "TabDataControl" CellRange.setText(sPropertyValue) + CellRange.typeKeys("<RETURN>",true) Kontext "ControlPropertiesTabControl" ControlPropertiesTabControl.setPage TabGeneralControl elseif sPropertyName = "CurrSymPosition" then @@ -167,7 +169,7 @@ function fSetControlProperty(sControlType, sPropertyName, sPropertyValue as stri elseif sPropertyName = "DefaultValue" then TabGeneralControl.MouseDown 1,1,1,true sleep(1) - TabGeneralControl.TypeKeys "<TAB>" , 10 , true + TabGeneralControl.TypeKeys "<TAB>" , 11 , true sleep(1) TabGeneralControl.TypeKeys sPropertyValue , true sleep(1) @@ -196,6 +198,7 @@ function fSetControlProperty(sControlType, sPropertyName, sPropertyValue as stri HelpText.setText(sPropertyValue) elseif sPropertyName = "HelpURL" then HelpURL.setText(sPropertyValue) + HelpURL.TypeKeys "<RETURN>",true elseif sPropertyName = "HiddenValue" then HiddenValue.setText(sPropertyValue) elseif sPropertyName = "HideSelection" then @@ -225,6 +228,7 @@ function fSetControlProperty(sControlType, sPropertyName, sPropertyValue as stri Multiselection.select(Cint(sPropertyValue)) elseif sPropertyName = "NameText" then NameText.setText(sPropertyValue) + NameText.typeKeys("<RETURN>",true) elseif sPropertyName = "Navigation" then Navigation.select(Cint(sPropertyValue)) elseif sPropertyName = "NavigationBar" then @@ -826,4 +830,4 @@ function fOpenMoreControlsToolBar MoreControls.Click Kontext "MoreControls" endif -end function +End function diff --git a/testautomation/graphics/optional/includes/global/export_graphic_2.inc b/testautomation/graphics/optional/includes/global/export_graphic_2.inc index 033a27b05eae..50909fcaff62 100755 --- a/testautomation/graphics/optional/includes/global/export_graphic_2.inc +++ b/testautomation/graphics/optional/includes/global/export_graphic_2.inc @@ -468,21 +468,25 @@ testcase tPDF ' Check if the file size is the same when exporting via toolbar and file/export ' if the size different then the options are not used when exporting via the toolbar if (iFileSize(1) <> iFileSize(2)) then - Warnlog ("Diffrence in filesize for file 1 and 2") + qaerrorlog "i100919: pdf export: different file size when exporting with file/export or button" + 'Warnlog ("Diffrence in filesize for file 1 and 2") endif ' print optimized if (iFileSize(5) <> iFileSize(6)) then - Warnlog ("Diffrence in filesize for file 5 and 6") + qaerrorlog "i100919: pdf export: different file size when exporting with file/export or button" + 'Warnlog ("Difference in filesize for file 5 and 6") endif ' press optimized if (iFileSize(9) <> iFileSize(10)) then - Warnlog ("Diffrence in filesize for file 9 and 10") + qaerrorlog "i100919: pdf export: different file size when exporting with file/export or button" + 'Warnlog ("Difference in filesize for file 9 and 10") endif if (iFileSize(1) > iFileSize(5)) then - Warnlog ("Filesize for file 1 is greater then for file 5. The compression level doesn't work.") + qaerrorlog "i100919: pdf export: different file size when exporting with file/export or button" + 'Warnlog ("Filesize for file 1 is greater then for file 5. The compression level doesn't work.") endif if (iFileSize(5) > iFileSize(9)) then Warnlog ("Filesize for file 5 is greater then for file 9. The compression level doesn't work.") diff --git a/testautomation/graphics/optional/includes/global/g_format.inc b/testautomation/graphics/optional/includes/global/g_format.inc index 6492d05422e9..59a2d49fd53d 100755 --- a/testautomation/graphics/optional/includes/global/g_format.inc +++ b/testautomation/graphics/optional/includes/global/g_format.inc @@ -937,7 +937,7 @@ testcase tiFormat3D_Effekte next i Printlog "- Check 3d shadow and surface angle" Drei_DSchatten.Click '/// check 3d shadow ///' - Papierneigung.SetText "90" + Papierneigung.SetText "90 degree(s)" vert = Papierneigung.getText Zuweisen.Click '/// assign shadow ///' gMouseClick 90,90 '/// deselect object ///' diff --git a/testautomation/graphics/optional/includes/impress/i_us_present.inc b/testautomation/graphics/optional/includes/impress/i_us_present.inc index 4fd1ed58fda4..34cf4f0f5543 100755 --- a/testautomation/graphics/optional/includes/impress/i_us_present.inc +++ b/testautomation/graphics/optional/includes/impress/i_us_present.inc @@ -589,8 +589,12 @@ testcase i_us_presentation6 '/// 9. Q&A Slide ///' InsertSlide 'No 6 WaitSlot (1000) - DocumentImpress.TypeKeys "Q&A<TAB>" + kontext "DocumentImpress" + DocumentImpress.TypeKeys "<TAB>" + DocumentImpress.TypeKeys "<RETURN>" + DocumentImpress.TypeKeys "Q&A" WaitSlot (1000) + kontext "DocumentImpress" DocumentImpress.TypeKeys "<SHIFT HOME>" Kontext "TextObjectbar" if TextObjectbar.Exists = FALSE then @@ -598,7 +602,7 @@ testcase i_us_presentation6 end if WaitSlot (2000) Printlog "- Change size of font" - Schriftgroesse.Select (25) + Schriftgroesse.Select "26" Schriftgroesse.TypeKeys "<RETURN>" Fett.Click kontext "DocumentImpress" diff --git a/testautomation/writer/optional/includes/loadsave/w_loadsave.inc b/testautomation/writer/optional/includes/loadsave/w_loadsave.inc index 955f5dd68f0a..6e9e54a6925b 100644 --- a/testautomation/writer/optional/includes/loadsave/w_loadsave.inc +++ b/testautomation/writer/optional/includes/loadsave/w_loadsave.inc @@ -45,14 +45,20 @@ testcase tExportAllReadableFormatsIntoODF + if iSprache <> 1 then + QAErrorlog "#100970#test only support english language" + goto endsub + endif + Dim AvailableFilters( 35 ) as String Dim TemplateFilterFile as String - Dim CurrentFile as String Dim ImportFileList ( 300 ) as String Dim ExportFileList ( 300 ) as String Dim WorkDirectory as String Dim ImportDir as String Dim SavedCorrectly as Boolean + Dim sExportFilter as string + Dim sExportFile as string Dim i as Integer TemplateFilterFile = ConvertPath ( gTesttoolPath + "writer\optional\input\filterlist.txt") @@ -63,95 +69,107 @@ testcase tExportAllReadableFormatsIntoODF GetFileList ( WorkDirectory, "*.*", ExportFileList() ) if KillFileList ( ExportFileList() ) <> TRUE then Warnlog "Couldn't delete all Files in Output-Directory, the followings are still there:" - for i=1 to FileList(0) - printlog " <> " & FileList(i) + for i=1 to FehlerListe(0) + printlog " <> " & FehlerListe(i) next i + goto endsub end if end if app.Mkdir WorkDirectory - Printlog " Read the directory with files we wish to import." - GetFileList ( ImportDir, "*.*", ImportFileList() ) - printlog " Done." - - Printlog " Choose a filter." - For i = 1 to listCount(ImportFileList()) - currentfile = ImportFileList(i) - try - Call hFileOpen ( ImportFileList(i), false ) - - Kontext "TextImport" - if TextImport.Exists then - TextImport.Ok - end if - - Kontext "Filterauswahl" - if Filterauswahl.Exists then - Filterauswahl.Cancel - end if - - Kontext "AsciiFilterOptionen" - if AsciiFilterOptionen.Exists then AsciiFilterOptionen.Ok - Kontext "SecurityWarning" - if SecurityWarning.Exists(3) then SecurityWarning.Ok - Kontext "DocumentWriter" - if DocumentWriter.Exists(3) then - Do until DocumentWriter.StatusIsProgress = false - wait 500 - Loop - else - Kontext "DocumentCalc" - if DocumentCalc.Exists(3) then - Do until DocumentCalc.StatusIsProgress = false - wait 500 - Loop - else - Warnlog "Neither DocumentWriter or DocumentCalc existed? Some other dialogue in focus?" - end if - end if - - ' Check for macro alert - Kontext "SecurityWarning" - if SecurityWarning.Exists then - if inStr(currentfile,"sw40") = false then - QAErrorlog "Macro-Security Warning is up though document should have no macro! Macro disabled" - end if - SecurityWarning.Cancel - end if - Sleep 1 - - Kontext "AlienWarning" - if AlienWarning.Exists then AlienWarning.Ok - - Printlog " Exporting file: " + ImportFileList(CurrentFile) - - Printlog " Save as ( ODF )" - printlog (ConvertPath (WorkDirectory + "ExportedFile" + i)) - Call hFileSaveAsWithFilterKill (ConvertPath (WorkDirectory + "ExportedFile" + i), "writer8") - - Printlog " Close file." - Call hCloseDocument - - Printlog " Open Saved File." - Call hFileOpenWithFilter (ConvertPath (WorkDirectory + "ExportedFile" + i), "writer8", false) - - ' Check for macro alert - Kontext "SecurityWarning" - if SecurityWarning.Exists then - if inStr(currentfile,"sw40") = false then - QAErrorlog "Macro-Security Warning is up though document should have no macro! Macro disabled" - end if - SecurityWarning.Cancel - end if - Sleep 1 - - printlog " Close all open files." - Do Until GetDocumentCount = 0 - Call hCloseDocument - Loop - catch - Warnlog "Error with file: " + ImportFileList(i) - endcatch + Printlog "- Read the directory with files we wish to import." + GetFileList ( ImportDir, "*.*", ImportFileList() ) + printlog "- Done." + + printlog "- Start loading files in list" + For i = 1 to listCount(ImportFileList()) + printlog "- " & i & ". load: " & ImportFileList(i) + Call hFileOpen ( ImportFileList(i) ) + printlog "- done" + + Kontext "TextImport" + if TextImport.Exists then + TextImport.Ok + printlog "- Text import dialog passed" + end if + + Kontext "Filterauswahl" + if Filterauswahl.Exists then + Filterauswahl.Cancel + printlog "- Filterdialog passed" + end if + + Kontext "AsciiFilterOptionen" + if AsciiFilterOptionen.Exists then + AsciiFilterOptionen.Ok + printlog "- ASCII-Filter dialog passed" + end if + + Kontext "SecurityWarning" + if SecurityWarning.Exists(3) then + SecurityWarning.Ok + printlog "- Security warning passed" + end if + + Kontext "DocumentWriter" + if DocumentWriter.Exists(3) then + Do until DocumentWriter.StatusIsProgress = false + wait 500 + Loop + else + Kontext "DocumentCalc" + if DocumentCalc.Exists(3) then + Do until DocumentCalc.StatusIsProgress = false + wait 500 + Loop + else + Warnlog "Neither DocumentWriter or DocumentCalc existed? Some other dialogue in focus?" + end if + end if + + ' Check for macro alert + Kontext "SecurityWarning" + if SecurityWarning.Exists then + if inStr(ImportFileList(i),"sw40") = false then + QAErrorlog "Macro-Security Warning is up though document should have no macro! Macro disabled" + end if + SecurityWarning.Cancel + end if + Sleep 1 + + Kontext "AlienWarning" + if AlienWarning.Exists then + AlienWarning.Ok + printlog "- Alien warning passed" + endif + + sExportFile = WorkDirectory & "ExportedFile" & i & ".odf" + Printlog "- Save as : " & ConvertPath ( sExportFile ) + if hFileSaveAsWithFilterKill (sExportFile, "writer8") = true then + printlog "- done" + printlog "- close file" + Call hCloseDocument + + Printlog "- Open previous saved file" + Call hFileOpenWithFilter (sExportFile, "writer8") + printlog "- done" + ' Check for macro alert + Kontext "SecurityWarning" + if SecurityWarning.Exists then + if inStr(ImportFileList(i),"sw40") = false then + QAErrorlog "Macro-Security Warning is up though document should have no macro! Macro disabled" + end if + SecurityWarning.Cancel + end if + Sleep 1 + else + Warnlog "Unable to save file: " & sExportFile + endif + + printlog "- Close all open files." + Do Until GetDocumentCount = 0 + Call hCloseDocument + Loop next i 'File endcase @@ -160,6 +178,11 @@ endcase testcase tExportAllReadableFormatsIntoThemselves + if iSprache <> 1 then + QAErrorlog "#100970#test only support english language" + goto endsub + endif + Dim AvailableFilters( 35 ) as String Dim TemplateFilterFile as String Dim SavedCorrectly as Boolean @@ -191,7 +214,7 @@ testcase tExportAllReadableFormatsIntoThemselves end if app.Mkdir sWorkDirectory - For iCurrentFileIndex = 1 to 17 + For iCurrentFileIndex = 1 to 16 select case iCurrentFileIndex case 1 : sCurrentFile = "xml2.odt" sCurrentFilter = "writer8" @@ -221,12 +244,12 @@ testcase tExportAllReadableFormatsIntoThemselves sCurrentFilter = "StarOffice XML (Writer)" case 14 : sCurrentFile = "winw97.doc" sCurrentFilter = "MS Word 97" - case 15 : sCurrentFile = "html/html.html" - sCurrentFilter = "HTML (StarWriter)" - case 16 : sCurrentFile = "winword6.doc" + case 15 : sCurrentFile = "winword6.doc" sCurrentFilter = "MS Word 95" - case 17 : sCurrentFile = "wintext.txt" + case 16 : sCurrentFile = "wintext.txt" sCurrentFilter = "Text (encoded)" + case 17 : sCurrentFile = "html.html" + sCurrentFilter = "HTML (StarWriter)" 'TODO: 18-23 not applyable. Can be opened, but saving in the format is not supported. @@ -353,6 +376,11 @@ endcase testcase tExportTop5FormatsIntoTop5 + if iSprache <> 1 then + QAErrorlog "#100970#test only support english language" + goto endsub + endif + Dim ExportFileList(300) as String Dim sWorkDirectory as String Dim sImportDir as String @@ -381,7 +409,7 @@ testcase tExportTop5FormatsIntoTop5 app.Mkdir sWorkDirectory '// Start of the LOAD-Loop - For iCurrentLoadFileIndex = 1 to 5 + For iCurrentLoadFileIndex = 1 to 4 Select case iCurrentLoadFileIndex case 1 : sCurrentLoadFile = "xml2.odt" sCurrentLoadFilter = "writer8" @@ -391,7 +419,7 @@ testcase tExportTop5FormatsIntoTop5 sCurrentLoadFilter = "MS Word 97" case 4 : sCurrentLoadFile = "rtf.rtf" sCurrentLoadFilter = "Rich Text Format" - case 5 : sCurrentLoadFile = "html\html.html" + case 5 : sCurrentLoadFile = "html.html" sCurrentLoadFilter = "HTML (StarWriter)" End select diff --git a/testautomation/writer/optional/includes/redlining/w_redlining2.inc b/testautomation/writer/optional/includes/redlining/w_redlining2.inc index e84f452d4a6f..b8060adb8456 100755 --- a/testautomation/writer/optional/includes/redlining/w_redlining2.inc +++ b/testautomation/writer/optional/includes/redlining/w_redlining2.inc @@ -443,14 +443,21 @@ testcase tAcceptReject_6 Autor.Check Sleep 2 '/// + Select Author2 - AutoListe.Select 2 - Sleep 2 - '/// + Select tabpage 'List' /// - TabControl.SetPage TabListe - Sleep 2 - '/// + Select 'Accept All'/// - AlleAkzeptieren.Click - Sleep 2 + try + AutoListe.Select 2 + catch + QAErrorlog "#i99937#Change of author (User name) disregarded when changed during Office session" + Redlining.Close + Call hCloseDocument + goto endsub + endcatch + Sleep 2 + '/// + Select tabpage 'List' /// + TabControl.SetPage TabListe + Sleep 2 + '/// + Select 'Accept All'/// + AlleAkzeptieren.Click + Sleep 2 '/// + Close Redlining dialog Redlining.Close diff --git a/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc b/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc index feb959bd5870..6d7309ae132b 100755 --- a/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc +++ b/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc @@ -73,7 +73,10 @@ testcase i64991 end if Call sMakeReadOnlyDocumentEditable '/// Now Execute Macro 'Main' in Node 'i64991'->'check_page_style' - printlog "- execute macro" + Kontext "SecurityWarning" + if SecurityWarning.Exists(2) then SecurityWarning.OK + + printlog "- execute macro" ToolsMacrosRunMacro ' Sometimes it lasts long until dialog is shown For i = 1 to 15 diff --git a/testautomation/writer/optional/input/import/html/html.html b/testautomation/writer/optional/input/import/html.html index 77569bd90be6..77569bd90be6 100755 --- a/testautomation/writer/optional/input/import/html/html.html +++ b/testautomation/writer/optional/input/import/html.html |