summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--reg-suite/ChangeLog8
-rw-r--r--reg-suite/checkbox.py32
-rw-r--r--reg-suite/checkmenuitem.py40
-rw-r--r--reg-suite/combobox.py64
-rw-r--r--reg-suite/menu.py22
-rw-r--r--reg-suite/pagetablist.py22
-rw-r--r--reg-suite/pushbutton.py8
-rw-r--r--reg-suite/radiomenuitem.py42
-rw-r--r--reg-suite/reg-suite.xml404
-rw-r--r--reg-suite/regression.py16
-rw-r--r--reg-suite/regression.pycbin1969 -> 0 bytes
-rw-r--r--reg-suite/spinbutton.py12
-rw-r--r--reg-suite/table.py48
-rw-r--r--reg-suite/text.py100
14 files changed, 256 insertions, 562 deletions
diff --git a/reg-suite/ChangeLog b/reg-suite/ChangeLog
new file mode 100644
index 0000000..a80c8c6
--- /dev/null
+++ b/reg-suite/ChangeLog
@@ -0,0 +1,8 @@
+2007-05-04 Nagappan A <anagappan@novell.com>
+
+ * checkbox.py, checkmenuitem.py, combobox.py, menu.py:
+ pagetablist.py, pushbutton.py, radiomenuitem.py, reg-suite.xml:
+ regression.py, spinbutton.py, table.py, text.py: Updated to work
+ with latest gedit and LDTP.
+
+ * regression.pyc: Removed.
diff --git a/reg-suite/checkbox.py b/reg-suite/checkbox.py
index 4ce8d2e..06adb44 100644
--- a/reg-suite/checkbox.py
+++ b/reg-suite/checkbox.py
@@ -48,20 +48,20 @@ try:
open_pref()
if guiexist (pref) != 1:
log ('Gedit Preferences Window not open','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if check (pref,chkbox) != 1:
log ('Check failed','cause')
- raise LdtpExecutionError (0)
- time.sleep (2)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (2)
if verifycheck (pref,chkbox) != 1:
log ('Checkbox not checked','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if verifyuncheck (pref,chkbox) != 0:
log ('Checkbox not checked','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('check')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('check')
@@ -69,17 +69,17 @@ log ('uncheck','teststart')
try:
if uncheck (pref,chkbox) != 1:
log ('UnCheck failed','cause')
- raise LdtpExecutionError (0)
- time.sleep (2)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (2)
if verifyuncheck (pref,chkbox) != 1:
log ('Checkbox not unchecked','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if verifycheck (pref,chkbox) != 0:
log ('Checkbox not unchecked','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('uncheck')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('uncheck')
@@ -87,18 +87,18 @@ log ('click on checkbox','teststart')
try:
pres = verifycheck (pref,chkbox)
click (pref,chkbox)
- time.sleep (2)
+ #time.sleep (2)
if verifycheck (pref,chkbox) == pres:
log ('Click did not function properly','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
click (pref,chkbox)
- time.sleep (2)
+ #time.sleep (2)
if verifycheck (pref,chkbox) != pres:
log ('Click did not function properly','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
click (pref,'btnClose')
waittillguinotexist (pref)
except:
testfail ('click on checkbox')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('click on checkbox')
diff --git a/reg-suite/checkmenuitem.py b/reg-suite/checkmenuitem.py
index 641e4c9..fb6154a 100644
--- a/reg-suite/checkmenuitem.py
+++ b/reg-suite/checkmenuitem.py
@@ -39,17 +39,17 @@ log ('menucheck','teststart')
try:
if menucheck ('*gedit','mnuView;mnuStatusbar') != 1:
log ('Undefined return value','cause')
- raise LdtpExecutionError (0)
- time.sleep (2)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (2)
if verifymenucheck ('*gedit','mnuView;mnuStatusbar') != 1:
log ('verifymenucheck - Check Menu item not checked','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if verifymenuuncheck ('*gedit','mnuView;mnuStatusbar') != 0:
log ('verifymenuuncheck - Check Menu item not checked','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('menucheck')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('menucheck')
@@ -58,17 +58,17 @@ log ('menuuncheck','teststart')
try:
if menuuncheck ('*gedit','mnuView;mnuStatusbar') != 1:
log ('Undefined return value','cause')
- raise LdtpExecutionError (0)
- time.sleep (2)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (2)
if verifymenuuncheck ('*gedit','mnuView;mnuStatusbar') != 1:
log ('verifymenuuncheck - Check Menu item not checked','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if verifymenucheck ('*gedit','mnuView;mnuStatusbar') != 0:
log ('verifymenucheck - Check Menu item not checked','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('menuuncheck')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('menuuncheck')
@@ -77,22 +77,20 @@ try:
curstate = verifymenucheck ('*gedit','mnuView;mnuStatusbar')
if selectmenuitem ('*gedit','mnuView;mnuStatusbar') != 1:
log ('Undefined return value','cause')
- raise LdtpExecutionError (0)
- time.sleep (2)
- if verifymenucheck ('*gedit','mnuView;mnuStatusbar') == curstart:
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (2)
+ if verifymenucheck ('*gedit','mnuView;mnuStatusbar') == curstate:
log ('verifymenucheck - Check Menu item not inverted','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
curstate = verifymenucheck ('*gedit','mnuView;mnuStatusbar')
if selectmenuitem ('*gedit','mnuView;mnuStatusbar') != 1:
log ('Undefined return value','cause')
- raise LdtpExecutionError (0)
- time.sleep (2)
- if verifymenucheck ('*gedit','mnuView;mnuStatusbar') == curstart:
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (2)
+ if verifymenucheck ('*gedit','mnuView;mnuStatusbar') == curstate:
log ('verifymenucheck - Check Menu item not inverted 2nd time','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('selectmenuitem on checkmenu')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('selectmenuitem on checkmenu')
-
-
diff --git a/reg-suite/combobox.py b/reg-suite/combobox.py
index 1c69cf4..28b5c2f 100644
--- a/reg-suite/combobox.py
+++ b/reg-suite/combobox.py
@@ -53,18 +53,16 @@ log ('comboselect','teststart')
try:
if guiexist (pref) == 0:
open_pref()
- if selecttab (pref,'ptl0','Syntax Highlighting') == 0:
+ if selecttab (pref,'ptl0','Syntax Highlighting') != 1:
log ('Unable to select tab','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if comboselect (pref,'cboHighlightmode',value) != 1:
log ('Undefined return value','cause')
- raise LdtpExecutionError (0)
- if verifyselect (pref,'cboHighlightmode', value) != 1:
- log ('Option not selected','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ verifyselect (pref,'cboHighlightmode', value)
except:
testfail ('comboselect')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('comboselect')
@@ -73,19 +71,17 @@ try:
file_name = tempfile.NamedTemporaryFile()
if capturetofile (pref,'cboHighlightmode',file_name.name) != 1:
log ('Undefined return Value','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
contents = file_name.file.read().split('\n')[:-1]
for value in contents:
comboselect (pref,'cboHighlightmode',value)
- time.sleep (1)
- if verifyselect (pref,'cboHighlightmode', value) != 1:
- log ('Option not selected','cause')
- raise LdtpExecutionError (0)
+ #time.sleep (1)
+ verifyselect (pref,'cboHighlightmode', value)
click (pref,'btnClose')
file_name.close ()
except:
testfail ('capturetofile')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('capturetofile')
@@ -98,37 +94,33 @@ try:
waittillguiexist ('*Find')
if capturetofile ('*Find','cboSearchfor',file_name.name) != 1:
log ('Undefined return Value','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
contents = file_name.file.read().split('\n')
for value in contents:
if selectindex ('*Find', 'cboSearchfor', index) != 1:
log ('Undefined return value','cause')
- raise LdtpExecutionError (0)
- time.sleep (1)
- if verifyselect ('*Find', 'cboSearchfor', value) != 1:
- log ('Option not selected','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (1)
+ verifyselect ('*Find', 'cboSearchfor', value)
except:
testfail ('selectindex')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('selectindex')
log ('settextvalue on combobox','teststart')
try:
- if guiexist ('*Find') != 0:
+ if guiexist ('*Find') != 1:
log ('Find window not open','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError ('Find window not open')
if settextvalue ('*Find','cboSearchfor', text) != 1:
log ('settextvalue failed','cause')
- raise LdtpExecutionError (0)
- time.sleep (0)
- if verifyselect ('*Find', 'cboSearchfor', text) != 1:
- log ('Option not selected','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError ('settextvalue failed')
+ #time.sleep (0)
+ verifyselect ('*Find', 'cboSearchfor', text)
except:
testfail ('settextvalue on combobox')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('settextvalue on combobox')
@@ -136,14 +128,14 @@ log ('showlist','teststart')
try:
if showlist ('*Find','cboSearchfor') != 1:
log ('Undefined return value','cause')
- raise LdtpExecutionError (0)
- time.sleep (1)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (1)
if verifyshowlist ('*Find','cboSearchfor') != 1:
log ('List not being shown','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError ('List not being shown')
except:
testfail ('showlist')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('showlist')
@@ -151,13 +143,13 @@ log ('hidelist','teststart')
try:
if hidelist ('*Find','cboSearchfor') != 1:
log ('Undefined return value','cause')
- raise LdtpExecutionError (0)
- time.sleep (1)
+ raise LdtpExecutionError ('Undefined return value')
+ #time.sleep (1)
if verifyhidelist ('*Find','cboSearchfor') != 1:
log ('List still being shown','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError ('List still being shown')
click ('*Find','btnClose')
except:
testfail ('hidelist')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('hidelist')
diff --git a/reg-suite/menu.py b/reg-suite/menu.py
index 0ef9b54..0c77330 100644
--- a/reg-suite/menu.py
+++ b/reg-suite/menu.py
@@ -44,7 +44,7 @@ try:
# listsubmenus ('*gedit','mnuView;mnuHighlightMode')
except:
testfail ('listsubmenus')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('listsubmenus')
@@ -52,22 +52,22 @@ log ('doesmenuitemexist','teststart')
try:
if doesmenuitemexist ('*gedit','mnuFile;mnuNew') != 1:
log ('File-->New is reported as non existent','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if doesmenuitemexist ('*gedit','mnuFile;mnuTESTVALUE') != 0:
log ('non existent item reported as existent','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if doesmenuitemexist ('*gedit','mnuFile') != 0:
log ('File is reported as end node','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
## Long Heirarchy
# http://bugzilla.gnome.org/show_bug.cgi?id=351802
# if doesmenuitemexist ('*gedit','mnuView;mnuHighlightMode;mnuNormal') != 1 or \
# doesmenuitemexist ('*gedit','mnuView;mnuHighlightMode;mnuSources;mnuC') != 1:
# log ('Long Heirarchy is reported as non existent','cause')
-# raise LdtpExecutionError (0)
+# raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('doesmenuitemexist')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('doesmenuitemexist')
@@ -86,9 +86,9 @@ testpass ('doesmenuitemexist')
# # break
# # if not flag:
# # log ('New Tab not opened','cause')
-# # raise LdtpExecutionError (0)
+# # raise LdtpExecutionError (str (traceback.format_exc ()))
# else:
-# raise LdtpExecutionError(0)
+# raise LdtpExecutionError(str (traceback.format_exc ()))
# if doesmenuitemexist ('*gedit','mnuFile;mnuClose') == 1:
# selectmenuitem ('*gedit','mnuFile;mnuClose')
# time.sleep (5)
@@ -100,10 +100,10 @@ testpass ('doesmenuitemexist')
# # flag = False
# # break
# # if flag:
-# # raise LdtpExecutionError (0)
+# # raise LdtpExecutionError (str (traceback.format_exc ()))
# else:
-# raise LdtpExecutionError(0)
+# raise LdtpExecutionError(str (traceback.format_exc ()))
# except:
# testfail ('selectmenuitem')
-# raise LdtpExecutionError (0)
+# raise LdtpExecutionError (str (traceback.format_exc ()))
# testpass ('selectmenuitem')
diff --git a/reg-suite/pagetablist.py b/reg-suite/pagetablist.py
index b1c3264..adc4f27 100644
--- a/reg-suite/pagetablist.py
+++ b/reg-suite/pagetablist.py
@@ -50,10 +50,10 @@ try:
count = gettabcount (pref,'ptl0')
if count != tab_count:
log ('number of tabs do not tally','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('tab list count')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('tab list count')
@@ -63,27 +63,27 @@ try:
obj = [ x for x in getobjectlist(pref) if x.startswith ('ptab')]
if selecttab (pref,'ptl0','View') == 0:
log ('Unable to select tab','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if selecttab (pref,'ptl0','Editor') == 0:
log ('Unable to select tab','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if selecttab (pref,'ptl0','Font & Colors') == 0:
log ('Unable to select tab','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if selecttab (pref,'ptl0','Syntax Highlighting') == 0:
log ('Unable to select tab','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if selecttab (pref,'ptl0','Plugins') == 0:
log ('Unable to select tab','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
# for tab in obj:
# if selecttab (pref,'ptl0',tab[4:]) == 0:
# log ('Unable to select tab','cause')
-# raise LdtpExecutionError (0)
+# raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('selecttab')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('selecttab')
@@ -92,10 +92,10 @@ try:
for ind in range (tab_count):
if selecttabindex (pref,'ptl0',ind) == 0:
log ('Unable to select tab','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
click (pref,'btnClose')
waittillguinotexist (pref)
except:
testfail ('selecttabindex')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('selecttabindex')
diff --git a/reg-suite/pushbutton.py b/reg-suite/pushbutton.py
index 5c590dc..57335f3 100644
--- a/reg-suite/pushbutton.py
+++ b/reg-suite/pushbutton.py
@@ -47,10 +47,10 @@ try:
flag = False
if flag:
log ('Also clicking unavailable buttons','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('click on push button')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('click on push button')
@@ -60,8 +60,8 @@ try:
waittillguinotexist ('*DocumentStatistics')
if guiexist ('*DocumentStatistics') == 1:
log ('Dialog did not close','cause')
- raise LdtpExecutionErro (0)
+ raise LdtpExecutionErro (str (traceback.format_exc ()))
except:
testfail ('enterstring on push button')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('enterstring on push button')
diff --git a/reg-suite/radiomenuitem.py b/reg-suite/radiomenuitem.py
index f29dc38..de2c946 100644
--- a/reg-suite/radiomenuitem.py
+++ b/reg-suite/radiomenuitem.py
@@ -36,52 +36,52 @@ except:
try:
click ('*Evolution*','tbtnMail')
- time.sleep (3)
+ #time.sleep (3)
selectrowpartialmatch ('*Evolution*','ttblMailFolderTree','Inbox')
- waittillguiexist ('*Evolution-Inbox*')
+ waittillguiexist ('*Evolution*')
except:
log ('Could not set up initial Conditions in Evolution','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
log ('menucheck on radiomenuitem','teststart')
try:
- time.sleep (3)
- if menucheck ('*Evolution-Inbox*','mnuView;mnuCurrentView;mnuBySubject') != 1:
+ #time.sleep (3)
+ if menucheck ('*Evolution*','mnuView;mnuCurrentView;mnuBySubject') != 1:
log ('Undefined return value','cause')
- raise LdtpExecutionError (0)
- time.sleep (2)
- if verifymenucheck ('*Evolution-Inbox*','mnuView;mnuCurrentView;mnuBySubject') != 1:
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (2)
+ if verifymenucheck ('*Evolution*','mnuView;mnuCurrentView;mnuBySubject') != 1:
log ('verifymenucheck - Radio Menu item not checked','cause')
- raise LdtpExecutionError (0)
- if verifymenuuncheck ('*Evolution-Inbox*','mnuView;mnuCurrentView;mnuBySubject') != 0:
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ if verifymenuuncheck ('*Evolution*','mnuView;mnuCurrentView;mnuBySubject') != 0:
log ('verifymenuuncheck - Radio Menu item not checked','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('menucheck on radiomenuitem')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('menucheck on radiomenuitem')
log ('selectmenuitem on radiomenuitem','teststart')
try:
- if selectmenuitem ('*Evolution-Inbox*',
+ if selectmenuitem ('*Evolution*',
'mnuView;mnuCurrentView;mnuBySender') != 1:
log ('Undefined return value','cause')
- raise LdtpExecutionError (0)
- time.sleep (2)
- if verifymenucheck ('*Evolution-Inbox*',
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (2)
+ if verifymenucheck ('*Evolution*',
'mnuView;mnuCurrentView;mnuBySender') != 1:
log ('verifymenucheck - Radio Menu item not inverted','cause')
- raise LdtpExecutionError (0)
- if verifymenuuncheck ('*Evolution-Inbox*',
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ if verifymenuuncheck ('*Evolution*',
'mnuView;mnuCurrentView;mnuBySender') != 0:
log ('verifymenuuncheck - Radio Menu item not inverted','cause')
- raise LdtpExecutionError (0)
- selectmenuitem ('*Evolution-Inbox*', 'mnuView;mnuCurrentView;mnuMessages')
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ selectmenuitem ('*Evolution*', 'mnuView;mnuCurrentView;mnuMessages')
except:
testfail ('selectmenuitem on radiomenuitem')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('selectmenuitem on radiomenuitem')
close_evo()
diff --git a/reg-suite/reg-suite.xml b/reg-suite/reg-suite.xml
index 4a2f24d..144692d 100644
--- a/reg-suite/reg-suite.xml
+++ b/reg-suite/reg-suite.xml
@@ -1,350 +1,138 @@
-<?xml version='1.0' encoding='utf-8'?>
-<!-- XML Logging -->
<ldtp>
-<warning>testcaseid entry not present - skipping</warning>
-<warning>comment entry not present - skipping</warning>
-<group name="Executing-group1">
+<group name="group1">
<script name="text.py">
-<datafilename>textvalue.xml</datafilename>
-<error>Unable to update context: *gedit in appmap</error>
<test name="settextvalue">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="gettextvalue">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="verifysettext">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<cause>Verify set text value failed</cause>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<cause>Verify set text value failed</cause>
<pass>1</pass>
</test>
<test name="stateenabled">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<info>Successfully completed</info>
-<info>State Enabled</info>
<pass>1</pass>
</test>
<test name="appendtext">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="getcharactercount">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="getcursorposition">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="inserttext">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="cuttext">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="pastetext">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="copytext">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="pastetext">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="deletetext">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="cursorposition">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
<test name="verifypartialmatch">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<cause>Verify partial match failed</cause>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<cause>Verify partial match failed</cause>
<pass>1</pass>
</test>
<test name="selecttextbyname">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
<pass>1</pass>
</test>
</script>
-<groupstatus>1 test scripts passed of 1</groupstatus>
+<timeinfo start="00:03:33 AM on 08-Feb-2007" elapsed="0:0:10"></timeinfo>
</group>
-<warning>testcaseid entry not present - skipping</warning>
-<warning>comment entry not present - skipping</warning>
-<group name="Executing-group2">
-<debug>Data file maynot be present</debug>
+<groupsstatus total="1" pass="1" fail="0"></groupsstatus>
+<group name="group2">
<script name="menu.py">
-<warning>data xml tag missing</warning>
<test name="listsubmenus">
-<info>New</info>
-<info>Open...</info>
-<info>Open Location...</info>
-<info>Save</info>
-<info>Save As...</info>
-<info>Revert</info>
-<info>Page Setup...</info>
-<info>Print Preview</info>
-<info>Print...</info>
-<info>1. bst-1.cpp</info>
-<info>2. kripa</info>
-<info>3. INSTALL</info>
-<info>4. README</info>
-<info>5. sources-list.txt</info>
-<info>Close</info>
-<info>Quit</info>
-<info>Empty</info>
-<info>Toolbar</info>
-<info>Statusbar</info>
-<info>Side Pane</info>
-<info>Bottom Pane</info>
-<info>Highlight Mode</info>
-<info>Empty</info>
<pass>1</pass>
</test>
<test name="doesmenuitemexist">
-<debug>Object definition mnuTESTVALUE not found in appmap</debug>
-<debug>Object definition mnuTESTVALUE not found in appmap</debug>
-<error>ldtp-gui.c - 1077 - Unable to find object name: mnuTESTVALUE in appmap</error>
-<cause>Unable to get gui handle mnuTESTVALUE menu.c 252</cause>
-<cause>Unable to get gui handle menu.c 204</cause>
<pass>1</pass>
</test>
</script>
-<groupstatus>1 test scripts passed of 1</groupstatus>
+<timeinfo start="00:03:43 AM on 08-Feb-2007" elapsed="0:0:10"></timeinfo>
</group>
-<warning>testcaseid entry not present - skipping</warning>
-<warning>comment entry not present - skipping</warning>
-<group name="Executing-group3">
-<debug>Data file maynot be present</debug>
+<groupsstatus total="1" pass="1" fail="0"></groupsstatus>
+<group name="group3">
<script name="pushbutton.py">
-<warning>data xml tag missing</warning>
-<test name="click-on-push-button">
-<debug>Object definition *DocumentStatistics not found in appmap</debug>
-<error>Unable to update context: *DocumentStatistics in appmap</error>
-<debug>Object definition *DocumentStatistics not found in appmap</debug>
-<error>Unable to update context: *DocumentStatistics in appmap</error>
-<debug>Object definition *DocumentStatistics not found in appmap</debug>
-<debug>Object definition btn123 not found in appmap</debug>
-<debug>Object definition btn123 not found in appmap</debug>
-<error>ldtp-gui.c - 1077 - Unable to find object name: btn123 in appmap</error>
+<test name="click on push button">
<pass>1</pass>
</test>
-<test name="enterstring-on-push-button">
+<test name="enterstring on push button">
<pass>1</pass>
</test>
</script>
-<groupstatus>1 test scripts passed of 1</groupstatus>
+<timeinfo start="00:03:54 AM on 08-Feb-2007" elapsed="0:0:12"></timeinfo>
</group>
-<warning>testcaseid entry not present - skipping</warning>
-<warning>comment entry not present - skipping</warning>
-<group name="Executing-group4">
-<debug>Data file maynot be present</debug>
+<groupsstatus total="1" pass="1" fail="0"></groupsstatus>
+<group name="group4">
<script name="checkbox.py">
-<warning>data xml tag missing</warning>
-<error>XML &quot;&quot; file not found</error>
+<ERROR>XML "" file not found</ERROR>
<test name="check">
-<debug>Object definition *Pref* not found in appmap</debug>
-<error>Unable to update context: *Pref* in appmap</error>
-<debug>Object definition *Pref* not found in appmap</debug>
-<error>Unable to update context: *Pref* in appmap</error>
-<debug>Object definition *Pref* not found in appmap</debug>
<pass>1</pass>
</test>
<test name="uncheck">
<pass>1</pass>
</test>
-<test name="click-on-checkbox">
+<test name="click on checkbox">
<pass>1</pass>
</test>
</script>
-<groupstatus>1 test scripts passed of 1</groupstatus>
+<timeinfo start="00:04:07 AM on 08-Feb-2007" elapsed="0:0:16"></timeinfo>
</group>
-<warning>testcaseid entry not present - skipping</warning>
-<warning>comment entry not present - skipping</warning>
-<group name="Executing-group5">
-<debug>Data file maynot be present</debug>
+<groupsstatus total="1" pass="1" fail="0"></groupsstatus>
+<group name="group5">
<script name="checkmenuitem.py">
-<warning>data xml tag missing</warning>
<test name="menucheck">
-<warning>Check Menu Item is already checked</warning>
<pass>1</pass>
</test>
<test name="menuuncheck">
<pass>1</pass>
</test>
-<test name="selectmenuitem-on-checkmenu">
-<pass>0</pass>
+<test name="selectmenuitem on checkmenu">
+<pass>1</pass>
</test>
-<error>stopping this group execution</error>
-<cause>0</cause>
</script>
-<groupstatus>0 test scripts passed of 1</groupstatus>
+<timeinfo start="00:04:23 AM on 08-Feb-2007" elapsed="0:0:5"></timeinfo>
</group>
-<warning>testcaseid entry not present - skipping</warning>
-<warning>comment entry not present - skipping</warning>
-<group name="Executing-group6">
-<debug>Data file maynot be present</debug>
+<groupsstatus total="1" pass="1" fail="0"></groupsstatus>
+<group name="group6">
<script name="spinbutton.py">
-<warning>data xml tag missing</warning>
-<error>XML &quot;&quot; file not found</error>
+<ERROR>XML "" file not found</ERROR>
<test name="getvalue">
-<debug>Property label not found in appmap</debug>
-<debug>Object definition sbtnSOMETHINGNOTPRESENT not found in appmap</debug>
-<debug>Object definition sbtnSOMETHINGNOTPRESENT not found in appmap</debug>
-<error>ldtp-gui.c - 1077 - Unable to find object name: sbtnSOMETHINGNOTPRESENT in appmap</error>
<pass>1</pass>
</test>
<test name="setvalue">
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
<pass>1</pass>
</test>
</script>
-<groupstatus>1 test scripts passed of 1</groupstatus>
+<timeinfo start="00:04:29 AM on 08-Feb-2007" elapsed="0:0:15"></timeinfo>
</group>
-<warning>testcaseid entry not present - skipping</warning>
-<warning>comment entry not present - skipping</warning>
-<group name="Executing-group7">
-<debug>Data file maynot be present</debug>
+<groupsstatus total="1" pass="1" fail="0"></groupsstatus>
+<group name="group7">
<script name="radiomenuitem.py">
-<warning>data xml tag missing</warning>
-<debug>Object definition *Evolution-* not found in appmap</debug>
-<error>Unable to update context: *Evolution-* in appmap</error>
-<debug>Object definition *Evolution not found in appmap</debug>
-<error>Unable to update context: *Evolution in appmap</error>
-<debug>Object definition *Evolution-* not found in appmap</debug>
-<error>Unable to update context: *Evolution-* in appmap</error>
-<debug>Object definition *Evolution-* not found in appmap</debug>
-<debug>Object definition *Evolution-Inbox* not found in appmap</debug>
-<test name="menucheck-on-radiomenuitem">
-<cause>Radio menu item already checked</cause>
-<pass>1</pass>
-</test>
-<test name="selectmenuitem-on-radiomenuitem">
-<cause>Radio menu item already checked</cause>
-<pass>1</pass>
-</test>
+<ERROR>stopping this group execution</ERROR>
+<CAUSE>"u'click failed: Unable to find object name in application map</CAUSE>
</script>
-<groupstatus>1 test scripts passed of 1</groupstatus>
+<timeinfo start="00:04:44 AM on 08-Feb-2007" elapsed="0:0:16"></timeinfo>
</group>
-<warning>testcaseid entry not present - skipping</warning>
-<warning>comment entry not present - skipping</warning>
-<group name="Executing-group8">
-<debug>Data file maynot be present</debug>
+<groupsstatus total="1" pass="0" fail="1"></groupsstatus>
+<group name="group8">
<script name="table.py">
-<warning>data xml tag missing</warning>
-<debug>Object definition *Evolution not found in appmap</debug>
-<error>Unable to update context: *Evolution in appmap</error>
-<error>XML &quot;&quot; file not found</error>
+<ERROR>XML "" file not found</ERROR>
<test name="getrowcount">
-<debug>Object definition frmEvolution-* not found in appmap</debug>
-<debug>Object definition frmEvolution-* not found in appmap</debug>
-<debug>Object definition *EvolutionPreferences not found in appmap</debug>
-<error>Unable to update context: *EvolutionPreferences in appmap</error>
-<debug>Object definition *EvolutionPreferences not found in appmap</debug>
-<error>Unable to update context: *EvolutionPreferences in appmap</error>
-<debug>Object definition *EvolutionPreferences not found in appmap</debug>
-<error>Unable to update context: *EvolutionPreferences in appmap</error>
-<debug>Object definition *EvolutionPreferences not found in appmap</debug>
-<error>Unable to update context: *EvolutionPreferences in appmap</error>
-<debug>Object definition *EvolutionPreferences not found in appmap</debug>
-<error>Unable to update context: *EvolutionPreferences in appmap</error>
-<debug>Object definition *EvolutionPreferences not found in appmap</debug>
-<error>Unable to update context: *EvolutionPreferences in appmap</error>
-<debug>Object definition *EvolutionPreferences not found in appmap</debug>
<pass>1</pass>
</test>
<test name="getcellvalue">
@@ -363,130 +151,38 @@
<pass>1</pass>
</test>
</script>
-<groupstatus>1 test scripts passed of 1</groupstatus>
+<timeinfo start="00:05:01 AM on 08-Feb-2007" elapsed="0:0:7"></timeinfo>
</group>
-<warning>testcaseid entry not present - skipping</warning>
-<warning>comment entry not present - skipping</warning>
-<group name="Executing-group9">
-<debug>Data file maynot be present</debug>
+<groupsstatus total="1" pass="1" fail="0"></groupsstatus>
+<group name="group9">
<script name="combobox.py">
-<warning>data xml tag missing</warning>
-<error>XML &quot;&quot; file not found</error>
+<ERROR>XML "" file not found</ERROR>
<test name="comboselect">
-<debug>Property label not found in appmap</debug>
-<debug>Property label_by not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
<pass>1</pass>
</test>
<test name="capturetofile">
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
<pass>1</pass>
</test>
<test name="selectindex">
-<debug>Object definition *Find not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<debug>Property label not found in appmap</debug>
-<cause>Verify set text value failed</cause>
-<cause>Verify Combo box SetTextValue action failed</cause>
-<cause>verify Combo box select action failed</cause>
-<cause>Option not selected</cause>
+<pass>1</pass>
+</test>
+<test name="settextvalue on combobox">
+<pass>1</pass>
+</test>
+<test name="showlist">
+<CAUSE>List not being shown</CAUSE>
<pass>0</pass>
</test>
-<error>stopping this group execution</error>
-<cause>0</cause>
+<ERROR>stopping this group execution</ERROR>
+<CAUSE>'Traceback (most recent call last):\n File "combobox.py", line 135, in &lt;module&gt;\n raise LdtpExecutionError (str (traceback.format_exc ()))\nLdtpExecutionError: \'Traceback (most recent call last):\\n File "/usr/local/bin/ldtprunner", line 296, in executescript\\n appmapfile = scriptelements.getElementsByTagName (\\\'appmapfile\\\')[0]\\nIndexError: list index out of range\\n\'\n'</CAUSE>
</script>
-<groupstatus>0 test scripts passed of 1</groupstatus>
+<timeinfo start="00:05:08 AM on 08-Feb-2007" elapsed="2:2:12"></timeinfo>
</group>
-<warning>testcaseid entry not present - skipping</warning>
-<warning>comment entry not present - skipping</warning>
-<group name="Executing-group10">
-<debug>Data file maynot be present</debug>
+<groupsstatus total="1" pass="0" fail="1"></groupsstatus>
+<group name="group10">
<script name="closeall.py">
-<warning>data xml tag missing</warning>
-<debug>Object definition *Question not found in appmap</debug>
</script>
-<groupstatus>1 test scripts passed of 1</groupstatus>
+<timeinfo start="00:07:21 AM on 08-Feb-2007" elapsed="0:0:4"></timeinfo>
</group>
+<groupsstatus total="1" pass="1" fail="0"></groupsstatus>
</ldtp>
diff --git a/reg-suite/regression.py b/reg-suite/regression.py
index d2c4eee..2921f09 100644
--- a/reg-suite/regression.py
+++ b/reg-suite/regression.py
@@ -35,7 +35,7 @@ def check_open (app_name='gedit'):
launchapp (app_name,1)
waittillguiexist ('*gedit')
if guiexist ('*gedit') !=1:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
return
@@ -47,14 +47,14 @@ def close_gedit ():
def open_evo():
- if guiexist ('*Evolution-*') != 1:
+ if guiexist ('*Evolution*') != 1:
launchapp ('evolution',1)
- time.sleep (2)
+ #time.sleep (2)
if guiexist ('*Evolution') == 1:
- click ('*Evolution','btnNo')
- waittillguiexist ('*Evolution-*')
- if guiexist ('*Evolution-*') !=1:
- raise LdtpExecutionError (0)
+ click ('*Evolution', 'btnNo')
+ waittillguiexist ('*Evolution*')
+ if guiexist ('*Evolution*') != 1:
+ raise LdtpExecutionError (str (traceback.format_exc ()))
return
@@ -69,7 +69,7 @@ def open_pref ():
waittillguiexist ('*Pref*')
if guiexist ('*Pref*') == 0:
log ('Preferences Window could not be opened','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
return
diff --git a/reg-suite/regression.pyc b/reg-suite/regression.pyc
deleted file mode 100644
index cb2db70..0000000
--- a/reg-suite/regression.pyc
+++ /dev/null
Binary files differ
diff --git a/reg-suite/spinbutton.py b/reg-suite/spinbutton.py
index 1af7cb8..c8dabd7 100644
--- a/reg-suite/spinbutton.py
+++ b/reg-suite/spinbutton.py
@@ -47,7 +47,7 @@ try:
open_pref()
if guiexist (pref) != 1:
log ('Gedit Preferences Window not open','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
tab = getvalue (pref,'sbtnTabwidth')
flag = True
try:
@@ -56,10 +56,10 @@ try:
flag = False
if flag:
log ('get value works for non present objects','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('getvalue')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('getvalue')
@@ -70,15 +70,15 @@ try:
if int(getvalue (pref,'sbtnTabwidth')) != tab_width: #and \
# verifysetvalue (pref,'sbtnTabwidth',tab_width) == 1:
log ('Spin Button value not set','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
setvalue (pref,'sbtnTabwidth',tab)
if getvalue (pref,'sbtnTabwidth') != tab:# and \:
# verifysetvalue (pref,'sbtnTabwidth',tab) == 1:
log ('Spin Button value not set to initial value','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('setvalue')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('setvalue')
click (pref, 'btnClose')
diff --git a/reg-suite/table.py b/reg-suite/table.py
index 28a3acc..b840538 100644
--- a/reg-suite/table.py
+++ b/reg-suite/table.py
@@ -38,39 +38,39 @@ data_object = LdtpDataFileParser (datafilename)
rows = data_object.gettagvalue ('rowcount')
-evo_win = 'frmEvolution-*'
+evo_win = '*Evolution*'
pref = '*EvolutionPreferences'
acnt_tab = 'tblMailAccounts'
log ('getrowcount','teststart')
try:
- selectmenuitem (evo_win,'mnuEdit;mnuPreferences')
+ selectmenuitem (evo_win, 'mnuEdit;mnuPreferences')
if waittillguiexist (pref) == 0:
log ('Preferences Window not open yet','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
row_count = getrowcount (pref, acnt_tab)
if rows != [] and rows != row_count:
log ('No of rows does not match with input','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('getrowcount')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('getrowcount')
acnts = []
-log ('getcellvalue','teststart')
+log ('getcellvalue', 'teststart')
try:
for index in range (row_count):
val = getcellvalue (pref, acnt_tab, index, 1)
## http://bugzilla.gnome.org/show_bug.cgi?id=352220
# if verifytablecell (pref, acnt_tab, index, 1, val) == 0:
# log ('problem in getcellvalue','cause')
-# raise LdtpExecutionError (0)
+# raise LdtpExecutionError (str (traceback.format_exc ()))
acnts.append (val)
except:
testfail ('getcellvalue')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('getcellvalue')
@@ -79,15 +79,15 @@ try:
for index in range (row_count):
if selectrowindex (pref, acnt_tab, index) != 1:
log ('Unable to select index','cause')
- raise LdtpExecutionError (0)
- time.sleep (1)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (1)
if gettablerowindex (pref, acnt_tab, acnts[index]) != index:
log ('Index not selected','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('selectrowindex')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('selectrowindex')
@@ -97,15 +97,15 @@ try:
for acnt in acnts:
if doesrowexist (pref, acnt_tab, acnt) == 1 and selectrow (pref, acnt_tab, acnt) != 1:
log ('Unable to select row','cause')
- raise LdtpExecutionError (0)
- time.sleep (1)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (1)
if gettablerowindex (pref, acnt_tab, acnt) != index:
log ('Index not selected','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
index += 1
except:
testfail ('selectrow')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('selectrow')
@@ -113,14 +113,14 @@ log ('selectlastrow','teststart')
try:
if selectlastrow (pref,acnt_tab) != 1:
log ('selectlastrow failed','cause')
- raise LdtpExecutionError (0)
- time.sleep (1)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (1)
if gettablerowindex (pref, acnt_tab, acnt) != (len (acnts)-1):
log ('Index not selected','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('selectlastrow')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('selectlastrow')
@@ -129,13 +129,13 @@ try:
for index in range (row_count):
if uncheckrow (pref, acnt_tab, index) == 0:
log ('Unable to uncheck row','cause')
- raise LdtpExecutionError (0)
- time.sleep (2)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
+ #time.sleep (2)
if checkrow (pref, acnt_tab, index) == 0:
log ('Unable to check row','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('checkrow')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('checkrow')
click (pref,'btnClose')
diff --git a/reg-suite/text.py b/reg-suite/text.py
index 31dbe6d..71a43ab 100644
--- a/reg-suite/text.py
+++ b/reg-suite/text.py
@@ -69,13 +69,13 @@ except:
log ('settextvalue','teststart')
try:
if settextvalue ('*gedit','txt0',text) == 0:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if verifysettext ('*gedit','txt0',text) == 0:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('settextvalue')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('settextvalue')
@@ -83,10 +83,10 @@ log ('gettextvalue','teststart')
try:
present_text = gettextvalue ('*gedit','txt0')
if present_text != text:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('gettextvalue')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('gettextvalue')
@@ -95,20 +95,20 @@ try:
present_text = gettextvalue ('*gedit','txt0')
if verifysettext ('*gedit','txt0',present_text) != 1:
log ('Text present but says not present','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if verifysettext ('*gedit','txt0',present_text+'123') != 0:
log ('Text not present but says present','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if verifysettext ('*gedit','txt0',present_text[:-1]) != 0:
log ('Text not present but says present','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
# http://bugzilla.gnome.org/show_bug.cgi?id=351227
# if verifysettext ('*gedit','txt0','') != 0 and present_text != '':
# log ('Text not present but says present','cause')
-# raise LdtpExecutionError (0)
+# raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('verifysettext')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass('verifysettext')
@@ -116,12 +116,12 @@ log ('stateenabled','teststart')
try:
if istextstateenabled ('*gedit','txt0') == 0:
log ('State Disabled','info')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
else:
log ('State Enabled','info')
except:
testfail ('stateenbled')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('stateenbled')
@@ -129,12 +129,12 @@ log ('appendtext','teststart')
try:
present_text = gettextvalue ('*gedit','txt0')
if appendtext ('*gedit','txt0',text) == 0:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if gettextvalue ('*gedit','txt0') != present_text+text:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('appendtext')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('appendtext')
@@ -142,20 +142,20 @@ log ('getcharactercount','teststart')
try:
present_text = gettextvalue ('*gedit','txt0')
if getcharcount ('*gedit','txt0') != len(present_text):
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('getcharactercount')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('getcharactercount')
log ('getcursorposition','teststart')
try:
if getcharcount ('*gedit','txt0') != getcursorposition ('*gedit','txt0'):
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('getcursorposition')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('getcursorposition')
@@ -167,13 +167,13 @@ else:
log ('inserttext','teststart')
try:
if inserttext ('*gedit', 'txt0', insert_pos, insert_text) == 0:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if gettextvalue ('*gedit','txt0') != new_text:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('inserttext')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('inserttext')
@@ -189,17 +189,17 @@ try:
if cut_stop < cut_start or cut_start > length or cut_stop > length:
log ('Input not proper','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
new_text = present_text[:cut_start]+present_text[cut_stop:]
cut_text = present_text[cut_start:cut_stop]
if cuttext ('*gedit','txt0',cut_start, cut_stop) == 0:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if gettextvalue ('*gedit','txt0') != new_text:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('cuttext')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('cuttext')
@@ -209,13 +209,13 @@ try:
new_text = present_text[:cut_start]+cut_text+present_text[cut_start:]
if pastetext ('*gedit','txt0',cut_start) == 0:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if gettextvalue ('*gedit','txt0') != new_text:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('pastetext')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('pastetext')
@@ -224,7 +224,7 @@ try:
length = getcharcount ('*gedit','txt0')
if cut_stop < cut_start or cut_start > length:
log ('Input not proper','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if cut_stop > length:
cut_stop = length-1
@@ -232,12 +232,12 @@ try:
copy_text = present_text[cut_start:cut_stop]
if copytext ('*gedit','txt0',cut_start, cut_stop) == 0:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if gettextvalue ('*gedit','txt0') != present_text:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('copytext')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('copytext')
@@ -247,13 +247,13 @@ try:
new_text = present_text[:cut_start]+copy_text+present_text[cut_start:]
if pastetext ('*gedit','txt0',cut_start) == 0:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if gettextvalue ('*gedit','txt0') != new_text:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('pastetext')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('pastetext')
@@ -268,24 +268,24 @@ try:
if delete_stop == []:
if delete_start+1 <= length:
log ('Not enough text on screen','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
delete_stop = delete_start + 1
else:
delete_stop = int (delete_stop[0])
if delete_stop < delete_start or delete_start > length or delete_stop > length:
log ('Input not proper','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
new_text = present_text[:delete_start]+present_text[delete_stop:]
if deletetext ('*gedit','txt0',delete_start, delete_stop) == 0:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if gettextvalue ('*gedit','txt0') != new_text:
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('deletetext')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('deletetext')
@@ -295,7 +295,7 @@ try:
setcursorposition ('*gedit','txt0',0)
if getcursorposition ('*gedit','txt0') != 0:
log ('Unable to Set Cursor position to 0','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if length == 0:
val = 0
else:
@@ -303,15 +303,15 @@ try:
setcursorposition ('*gedit','txt0',val)
if getcursorposition ('*gedit','txt0') != val:
log ('Unable to Set Cursor position to end of sentence','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
val = length/2
setcursorposition ('*gedit','txt0',val)
if getcursorposition ('*gedit','txt0') != val:
log ('Unable to Set Cursor position to middle of sentence','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('cursorposition')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('cursorposition')
@@ -323,16 +323,16 @@ try:
if verifypartialmatch ('*gedit','txt0',
present_text[middle:random.randint (middle, length-1)]) != 1:
log ('Does not do correct matching','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if verifypartialmatch ('*gedit','txt0',text+'123') != 0:
log ('Does not check for overflow','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
if verifypartialmatch ('*gedit','txt0','123'+text) != 0:
log ('Does not check for overflow','cause')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
except:
testfail ('cursorposition')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('cursorposition')
@@ -343,7 +343,7 @@ try:
setcursorposition ('*gedit','txt0',0)
except:
testfail ('selecttextbyname')
- raise LdtpExecutionError (0)
+ raise LdtpExecutionError (str (traceback.format_exc ()))
testpass ('selecttextbyname')