Commits

Anonymous committed 51570de

cws tl74: #108359#

Comments (0)

Files changed (1)

testautomation/graphics/optional/includes/global/g_tools.inc

     Dim sWord as string
     Dim sChangedWord as string
     Dim sReplaceWord as string
+    Dim sAlternativeText as string
     Dim sExt as string
     Dim ZaehlerBedeutung
 
             Alternatives.Select 1
 
             printlog "check if the selected alternative apprear in the ReplaceWith field."
-            if ( ReplaceWith.getText() <> Alternatives.getSeltext(1,3) ) then
-                warnlog "the text is no transfered to the ReplaceWith field."
+
+            sAlternativeText = Alternatives.getSeltext(1,3)
+            'remove the part in the () if there is any
+            if( Instr(sAlternativeText, "(") <> 0 ) then
+                sAlternativeText = left(sAlternativeText, Instr(sAlternativeText, "(") - 2 )
+            endif
+
+            if ( ReplaceWith.getText() <> sAlternativeText ) then
+                warnlog "the text is no transfered to the ReplaceWith field. " +_
+                "ReplaceWith = "  + ReplaceWith.getText() + ", Alternative = " + sAlternativeText
             else
                 printlog "the text is transfered to the ReplaceWith field."
             endif
     try
         ExtrasThesaurusDraw
     catch
-        PrintLog "the Thesaurus is correctly not available"
+        printlog "the Thesaurus is correctly not available"
         call hCloseDocument
         goto endsub
     endcatch
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.