summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatrickgu <patrickgu>2006-03-02 07:57:58 +0000
committerpatrickgu <patrickgu>2006-03-02 07:57:58 +0000
commit46723e791714e4c3d1e26d5f4d39436728793b71 (patch)
tree08646af3e66b8821d4e5002803c9e9dc51adab84
parentebd3deb651f1ff8ae27976b219fc72a4cac327dd (diff)
Comments remap, undoremap, setcontext ...
-rw-r--r--evolution/del_task.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/evolution/del_task.py b/evolution/del_task.py
index 23bc3c0..0b4caa1 100644
--- a/evolution/del_task.py
+++ b/evolution/del_task.py
@@ -55,19 +55,22 @@ try:
waittillguiexist('frmEvolution-Tasks')
summary = read_data()
- remap('evolution','frmEvolution-Tasks')
- no_rows_b4deleting = getrowcount ('frmEvolution-Tasks', 'tblTaskTable')
+ #remap('evolution','frmEvolution-Tasks')
+ no_rows_b4deleting = getrowcount ('frmEvolution-Tasks', 'tblTasks')
- if selectrowpartialmatch ('frmEvolution-Tasks', 'tblTaskTable', summary[0]) == 1:
+ #if selectrowpartialmatch ('frmEvolution-Tasks', 'tblTasks', summary[0]) == 1:
+ # selectrowpartialmatch doesn't work: 333090
+
+ if selectrow ('frmEvolution-Tasks', 'tblTasks', summary[0]) == 1:
log('The specified task has been deleted','info')
click('frmEvolution-Tasks', 'btnDelete')
waittillguiexist('dlgEvolutionQuery')
- remap('evolution','dlgEvolutionQuery')
+ #remap('evolution','dlgEvolutionQuery')
time.sleep(3)
click('dlgEvolutionQuery','btnDelete')
- undoremap('evolution','dlgEvolutionQuery')
- remap('evolution','frmEvolution-Tasks')
- no_rows_afterdeleting = getrowcount ('frmEvolution-Tasks', 'tblTaskTable')
+ #undoremap('evolution','dlgEvolutionQuery')
+ #remap('evolution','frmEvolution-Tasks')
+ no_rows_afterdeleting = getrowcount ('frmEvolution-Tasks', 'tblTasks')
if no_rows_afterdeleting == no_rows_b4deleting -1:
print 'The task has been deleted'
time.sleep(3)
@@ -78,7 +81,7 @@ try:
else:
print 'Unable to select a task with the given summary'
log('unable to select the task','error')
- undoremap('evolution','frmEvolution-Tasks')
+ #undoremap('evolution','frmEvolution-Tasks')
except:
log('Unable to delete a Task','error')
log('Delete a task','testend')