diff --git a/tests/system/shared/classes.py b/tests/system/shared/classes.py
index d7ba25101e9..43aa5836129 100644
--- a/tests/system/shared/classes.py
+++ b/tests/system/shared/classes.py
@@ -112,21 +112,22 @@ class ViewConstants:
@staticmethod
def getToolTipForViewTab(viewTab):
if viewTab == ViewConstants.WELCOME:
- return ur'Switch to Welcome mode (Ctrl\+|\u2303)1'
+ toolTip = ur'Switch to Welcome mode (Ctrl\+|\u2303)%d'
elif viewTab == ViewConstants.EDIT:
- return ur'Switch to Edit mode (Ctrl\+|\u2303)2'
+ toolTip = ur'Switch to Edit mode (Ctrl\+|\u2303)%d'
elif viewTab == ViewConstants.DESIGN:
- return ur'Switch to Design mode (Ctrl\+|\u2303)3'
+ toolTip = ur'Switch to Design mode (Ctrl\+|\u2303)%d'
elif viewTab == ViewConstants.DEBUG:
- return ur'Switch to Debug mode (Ctrl\+|\u2303)4'
+ toolTip = ur'Switch to Debug mode (Ctrl\+|\u2303)%d'
elif viewTab == ViewConstants.PROJECTS:
- return ur'Switch to Projects mode (Ctrl\+|\u2303)5'
+ toolTip = ur'Switch to Projects mode (Ctrl\+|\u2303)%d'
elif viewTab == ViewConstants.ANALYZE:
- return ur'Switch to Analyze mode (Ctrl\+|\u2303)6'
+ toolTip = ur'Switch to Analyze mode (Ctrl\+|\u2303)%d'
elif viewTab == ViewConstants.HELP:
- return ur'Switch to Help mode (Ctrl\+|\u2303)7'
+ toolTip = ur'Switch to Help mode (Ctrl\+|\u2303)%d'
else:
return None
+ return toolTip % (viewTab + 1)
class SubprocessType:
QT_WIDGET=0