summaryrefslogtreecommitdiff
path: root/testautomation/math
diff options
context:
space:
mode:
Diffstat (limited to 'testautomation/math')
-rw-r--r--[-rwxr-xr-x]testautomation/math/optional/includes/m_101_.inc33
-rw-r--r--testautomation/math/optional/includes/m_105.inc12
-rw-r--r--[-rwxr-xr-x]testautomation/math/optional/includes/m_106_.inc0
-rwxr-xr-xtestautomation/math/required/includes/m_001_.inc6
-rw-r--r--[-rwxr-xr-x]testautomation/math/required/includes/m_002_.inc0
-rw-r--r--[-rwxr-xr-x]testautomation/math/required/includes/m_003_.inc0
-rw-r--r--[-rwxr-xr-x]testautomation/math/required/includes/m_004_.inc0
-rw-r--r--[-rwxr-xr-x]testautomation/math/required/includes/m_005_.inc14
-rw-r--r--[-rwxr-xr-x]testautomation/math/required/includes/m_006_.inc0
-rw-r--r--[-rwxr-xr-x]testautomation/math/required/includes/m_007_.inc3
-rw-r--r--[-rwxr-xr-x]testautomation/math/required/includes/m_010_.inc0
-rw-r--r--[-rwxr-xr-x]testautomation/math/required/includes/m_020_.inc0
12 files changed, 31 insertions, 37 deletions
diff --git a/testautomation/math/optional/includes/m_101_.inc b/testautomation/math/optional/includes/m_101_.inc
index 989857403..6c24b196a 100755..100644
--- a/testautomation/math/optional/includes/m_101_.inc
+++ b/testautomation/math/optional/includes/m_101_.inc
@@ -243,7 +243,7 @@ endcase
testcase tFilePassword
dim i,x as integer
dim sTemp as string
- const cFilterCount = 4
+ const cFilterCount = 3
dim sFilterName as string
dim sFilter as string
dim sFilterExt() as string
@@ -269,7 +269,6 @@ testcase tFilePassword
if x <> cFilterCount then warnlog " The Filter count is wrong! Have to be ("+cFilterCount+"), but are: "+x
' Check: (1): Open Office Formula (.oof)
' Check: (2): MathML 1.01 (.mml)
-' Check: (5): StarMath 5.0 (.smf)
' Check: (6): StarOffice 6.0/7 Formula (.sxm)
'/// check if any other then gMathFilter is password able; and if gMathFilter is password able ///'
@@ -281,7 +280,8 @@ testcase tFilePassword
if Passwort.isEnabled then
if NOT((instr(sTemp,gMathFilter) = 1)OR(instr(sTemp," (.sxm)") > 1)) then
if (4=i) then
- warnlog "#i112895# (" + i + "/" + x +"): '"+sTemp+"' Password Checkbox: Enabled"
+ '#i112895#
+ warnlog "(" + i + "/" + x +"): '"+sTemp+"' Password Checkbox: Enabled"
else
warnlog "(" + i + "/" + x +"): '"+sTemp+"' Password Checkbox: Enabled"
endif
@@ -302,7 +302,7 @@ function TBOloadFormulaFromFile () as string
'///+ take formula out of command window ///
'///+ save it into a variable ///
'/// close dokument ///
- Call hFileOpen ( ConvertPath(gTesttoolPath + "math/optional/input/101_1.sxm") )
+ Call hFileOpenLocally ( ConvertPath(gTesttoolPath + "math/optional/input/101_1.sxm") )
kontext "dokumentwriter"
try
EditSelectAllMath
@@ -344,8 +344,7 @@ testcase tFilePrint
goto endsub
endif
- Call hFileOpen ( ConvertPath(gTesttoolPath + "math/optional/input/101_2.sxw") )
- TBOmakeWriteable()
+ Call hFileOpenLocally ( ConvertPath(gTesttoolPath + "math/optional/input/101_2.sxw") )
'/// find the translated formula in the document and get the language it belongs to ///'
'///+ compare it to the officelanguage ///'
@@ -581,28 +580,6 @@ testcase tFilePrint
endcase
-function TBOmakeWriteable()
- ' check if writeable! (especially for HTML Doks!!)
- sleep (3)
- try
- UseBindings
- FormatStyleBold
- sleep 2
- FormatStyleBold
- catch
- '/// make document writeable :-)///'
- kontext "Funktionsleiste"
- printlog "ReadOnly, changed it to writeable."
- Bearbeiten.click
- kontext
- if active.exists (5) then
- Printlog " active, accessrights ?!: '"+active.GetText+"'"
- active.yes
- endif
- endcatch
- sleep (3)
-end function
-
function isCheckedWarnAlienFormat (optional bChange as boolean)
dim uno
dim ap
diff --git a/testautomation/math/optional/includes/m_105.inc b/testautomation/math/optional/includes/m_105.inc
index e7b97e705..48e45c41e 100644
--- a/testautomation/math/optional/includes/m_105.inc
+++ b/testautomation/math/optional/includes/m_105.inc
@@ -408,7 +408,8 @@ testcase tToolsCatalog
SymboleMath.close
catch
if ((2=i)AND(11=j))then
- warnlog "#i42011# Expected: Timeout on closing Tools->Catalog with this character. (" + i + "/" + iSymbolSets + ")(" + j + "/" + x(i) + ")"
+ '#i42011#
+ warnlog "Expected: Timeout on closing Tools->Catalog with this character. (" + i + "/" + iSymbolSets + ")(" + j + "/" + x(i) + ")"
else
warnlog "Not Expected! Timeout on closing Tools->Catalog with this character. (" + i + "/" + iSymbolSets + ")(" + j + "/" + x(i) + ")"
endif
@@ -448,12 +449,12 @@ testcase tToolsCatalog
'///+ insert the copied text into the document ///'
DocumentWriter.typeKeys "<Mod1 End> - " + sTemp + ": " + j + "<Tab>"
sAllSymbols = sAllSymbols + sTemp
- listAppend(lAllSymbols(), rTrim(sTemp))
+ listAppend(lAllSymbols(), rtrim(sTemp))
next j
next i
- if (listCount(lAllSymbols()) <> 106) then
- warnlog "There have to be 106 Symbols, but there are: " + listCount(lAllSymbols())
+ if (listCount(lAllSymbols()) <> 108) then
+ warnlog "There have to be 108 Symbols, but there are: " + listCount(lAllSymbols())
endif
' TODO: check sAllSymbols for not allowed characters!
listCopy(lAllSymbols(),lAllSymbolsSort())
@@ -570,7 +571,8 @@ testcase tToolsCatalogNew
try
SymbolSet.select "TBOnewSymbolSet"
catch
- qaerrorlog "#i64504# Symbol set name is not saved on exiting OOo"
+ 'i64504
+ qaerrorlog "Symbol set name is not saved on exiting OOo"
SymbolSet.select ""
endcatch
SymbolSet.setText "TBOnewSymbolSet"
diff --git a/testautomation/math/optional/includes/m_106_.inc b/testautomation/math/optional/includes/m_106_.inc
index 6136ebfde..6136ebfde 100755..100644
--- a/testautomation/math/optional/includes/m_106_.inc
+++ b/testautomation/math/optional/includes/m_106_.inc
diff --git a/testautomation/math/required/includes/m_001_.inc b/testautomation/math/required/includes/m_001_.inc
index 7ddffee84..85546a0e2 100755
--- a/testautomation/math/required/includes/m_001_.inc
+++ b/testautomation/math/required/includes/m_001_.inc
@@ -205,7 +205,8 @@ testcase tmFilePassword
if ( SpeichernDlg.exists( 2 ) ) then
Dateiname.SetText Datei$
if (Passwort.IsChecked <> TRUE) then
- Warnlog "#i36015# Password has to be checked! :-("
+ '#i36015#
+ Warnlog "Password has to be checked! :-("
Passwort.Check
printlog "will be forced checked no!"
endif
@@ -255,7 +256,8 @@ testcase tmFilePassword
Kontext "SpeichernDlg"
Dateiname.SetText Datei$
if (Passwort.IsChecked <> TRUE) then
- Warnlog "#i36015# Password has to be checked! :-("
+ '#i36015#
+ Warnlog "Password has to be checked! :-("
Passwort.Check
printlog "will be forced checked no!"
endif
diff --git a/testautomation/math/required/includes/m_002_.inc b/testautomation/math/required/includes/m_002_.inc
index eff8ba5b8..eff8ba5b8 100755..100644
--- a/testautomation/math/required/includes/m_002_.inc
+++ b/testautomation/math/required/includes/m_002_.inc
diff --git a/testautomation/math/required/includes/m_003_.inc b/testautomation/math/required/includes/m_003_.inc
index 152fd1429..152fd1429 100755..100644
--- a/testautomation/math/required/includes/m_003_.inc
+++ b/testautomation/math/required/includes/m_003_.inc
diff --git a/testautomation/math/required/includes/m_004_.inc b/testautomation/math/required/includes/m_004_.inc
index 8f49d5633..8f49d5633 100755..100644
--- a/testautomation/math/required/includes/m_004_.inc
+++ b/testautomation/math/required/includes/m_004_.inc
diff --git a/testautomation/math/required/includes/m_005_.inc b/testautomation/math/required/includes/m_005_.inc
index d9c773ef7..a7884f29f 100755..100644
--- a/testautomation/math/required/includes/m_005_.inc
+++ b/testautomation/math/required/includes/m_005_.inc
@@ -67,6 +67,17 @@ testcase tToolsCatalog
'/// Click Button 'Modify' ///'
Modify.Click
sleep 1
+ '/// cancel dialog 'Edit Symbols' ///'
+ EditSymbols.Cancel
+ ' since cws tl82 - dev300m88 we need to go into dialog again to get the others buttons
+ Kontext "SymboleMath"
+ printlog "count of 'Symbol set' :" + Symbolset.GetItemCount
+ '/// click button 'Edit...' ///'
+ Bearbeiten.Click
+ Kontext "EditSymbols"
+ '/// select last item in listbox 'Font' ///'
+ Font.Select (Font.GetItemCount)
+ sleep 1
'/// Click Button 'Delete' ///'
Delete.Click
sleep 1
@@ -287,7 +298,8 @@ testcase tToolsExtensionManager
ExtensionSoftwareLicenseAgreement.CANCEL
kontext
if active.exists(5) then
- qaerrorlog "#i73307# Alzheimer feature extension licensing '" + active.getText + "'"
+ '#i73307#
+ warnlog "Alzheimer feature extension licensing '" + active.getText + "'"
active.ok
endif
endif
diff --git a/testautomation/math/required/includes/m_006_.inc b/testautomation/math/required/includes/m_006_.inc
index cea7bb704..cea7bb704 100755..100644
--- a/testautomation/math/required/includes/m_006_.inc
+++ b/testautomation/math/required/includes/m_006_.inc
diff --git a/testautomation/math/required/includes/m_007_.inc b/testautomation/math/required/includes/m_007_.inc
index fc8269c05..0b4c7c759 100755..100644
--- a/testautomation/math/required/includes/m_007_.inc
+++ b/testautomation/math/required/includes/m_007_.inc
@@ -121,7 +121,8 @@ testcase tmHelpContents
Printlog "HelpAbout: '" + HelpAbout.GetItemCount +"'"
catch
Index.Click
- qaErrorLog "#i55563# Used Index Button"
+ '#i55563#
+ warnlog "Used Index Button"
Printlog "HelpAbout: '" + HelpAbout.GetItemCount +"'"
endcatch
try
diff --git a/testautomation/math/required/includes/m_010_.inc b/testautomation/math/required/includes/m_010_.inc
index 7f3cd8944..7f3cd8944 100755..100644
--- a/testautomation/math/required/includes/m_010_.inc
+++ b/testautomation/math/required/includes/m_010_.inc
diff --git a/testautomation/math/required/includes/m_020_.inc b/testautomation/math/required/includes/m_020_.inc
index ae79e2430..ae79e2430 100755..100644
--- a/testautomation/math/required/includes/m_020_.inc
+++ b/testautomation/math/required/includes/m_020_.inc