~ubuntu-branches/ubuntu/lucid/skrooge/lucid

« back to all changes in this revision

Viewing changes to tests/suite_squish/tst_create_account/test.py

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2010-02-07 19:00:01 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100207190001-apq0bzl80p0tyr8s
Tags: 0.6.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
    source(findFile("scripts", "skrooge_functions.py"))
3
3
    initSimple()
4
4
    
5
 
    waitForObject(":kContextList.Banque et Compte_ListWidgetItem")
6
 
    mouseClick(":kContextList.Banque et Compte_ListWidgetItem", 157, 35, 0, Qt.LeftButton)
7
 
    waitForObject(":kAccountCreatorBank_KLineEdit")
8
 
    mouseClick(":kAccountCreatorBank_KLineEdit", 47, 16, 0, Qt.LeftButton)
9
 
    waitForObject(":kAccountCreatorBank_KLineEdit")
10
 
    type(":kAccountCreatorBank_KLineEdit", "BANK1")
11
 
    waitForObject(":kAccountCreatorAccount_KLineEdit")
12
 
    mouseClick(":kAccountCreatorAccount_KLineEdit", 87, 20, 0, Qt.LeftButton)
13
 
    waitForObject(":kAccountCreatorAccount_KLineEdit")
14
 
    type(":kAccountCreatorAccount_KLineEdit", "CPT1")
15
 
    waitForObject(":kAccountCreatorBankNumber_KLineEdit")
16
 
    mouseClick(":kAccountCreatorBankNumber_KLineEdit", 361, 14, 0, Qt.LeftButton)
17
 
    waitForObject(":kAccountCreatorBankNumber_KLineEdit")
18
 
    type(":kAccountCreatorBankNumber_KLineEdit", "123456")
19
 
    waitForObject(":kAccountCreatorBankNumber_KLineEdit")
20
 
    type(":kAccountCreatorBankNumber_KLineEdit", "<Tab>")
21
 
    waitForObject(":kAccountCreatorAgencyNumber_KLineEdit")
22
 
    type(":kAccountCreatorAgencyNumber_KLineEdit", "789")
23
 
    waitForObject(":kAccountCreatorNumber_KLineEdit")
24
 
    mouseClick(":kAccountCreatorNumber_KLineEdit", 35, 8, 0, Qt.LeftButton)
25
 
    waitForObject(":kAccountCreatorNumber_KLineEdit")
26
 
    type(":kAccountCreatorNumber_KLineEdit", "123")
27
 
    waitForObject(":kAutoHiddenFrame.Ajouter_KPushButton")
28
 
    clickButton(":kAutoHiddenFrame.Ajouter_KPushButton")
29
 
    waitForObject(":kAccountCreatorAccount_KLineEdit")
30
 
    mouseClick(":kAccountCreatorAccount_KLineEdit", 87, 16, 0, Qt.LeftButton)
31
 
    waitForObject(":kAccountCreatorAccount_KLineEdit")
32
 
    type(":kAccountCreatorAccount_KLineEdit", "<Correction>")
33
 
    waitForObject(":kAccountCreatorAccount_KLineEdit")
34
 
    type(":kAccountCreatorAccount_KLineEdit", "<2>")
35
 
    waitForObject(":kAccountCreatorBank_KLineEdit")
36
 
    sendEvent("QMouseEvent", ":kAccountCreatorBank_KLineEdit", QEvent.MouseButtonPress, 158, 16, Qt.LeftButton, 0)
37
 
    waitForObject(":kAccountCreatorBank_KLineEdit")
38
 
    sendEvent("QMouseEvent", ":kAccountCreatorBank_KLineEdit", QEvent.MouseButtonRelease, 158, 16, Qt.LeftButton, 1)
39
 
    waitForObject(":kAccountCreatorBank_KLineEdit")
40
 
    type(":kAccountCreatorBank_KLineEdit", "<Correction>")
41
 
    waitForObject(":kAccountCreatorBank_KLineEdit")
42
 
    type(":kAccountCreatorBank_KLineEdit", "2")
43
 
    waitForObject(":kAutoHiddenFrame.Modifier_KPushButton")
44
 
    clickButton(":kAutoHiddenFrame.Modifier_KPushButton")
45
 
    waitForObject(":kAccountCreatorAddress_KLineEdit")
46
 
    mouseClick(":kAccountCreatorAddress_KLineEdit", 192, 12, 0, Qt.LeftButton)
47
 
    waitForObject(":kAccountCreatorAddress_KLineEdit")
48
 
    type(":kAccountCreatorAddress_KLineEdit", "A")
49
 
    waitForObject(":kAccountCreatorComment_KLineEdit")
50
 
    mouseClick(":kAccountCreatorComment_KLineEdit", 101, 12, 0, Qt.LeftButton)
51
 
    waitForObject(":kAccountCreatorComment_KLineEdit")
52
 
    type(":kAccountCreatorComment_KLineEdit", "C")
53
 
    waitForObject(":kAutoHiddenFrame.Modifier_KPushButton")
54
 
    clickButton(":kAutoHiddenFrame.Modifier_KPushButton")
55
 
    waitForObject(":Numéro de banque_HeaderViewItem")
56
 
    openContextMenu(":Numéro de banque_HeaderViewItem", 134, 11, 2)
57
 
    waitForObject(":Sans nom [modifié] - skrooge_SKGMainPanel")
58
 
    sendEvent("QCloseEvent", ":Sans nom [modifié] - skrooge_SKGMainPanel")
59
 
    waitForObject(":Question - Skrooge.Ne pas enregistrer_KPushButton")
60
 
    clickButton(":Question - Skrooge.Ne pas enregistrer_KPushButton")
 
5
    waitForObject(":Untitled [modified] - skrooge_KTabBar")
 
6
    type(":Untitled [modified] - skrooge_KTabBar", "<Ctrl+2>")
 
7
    
 
8
    bookmarkAndRemoveCurrentPage()
 
9
    
 
10
    waitForObject(":kAccountCreatorBank_KLineEdit")
 
11
    mouseClick(":kAccountCreatorBank_KLineEdit", 19, 13, 0, Qt.LeftButton)
 
12
    waitForObject(":kAccountCreatorBank_KLineEdit")
 
13
    type(":kAccountCreatorBank_KLineEdit", "A")
 
14
    waitForObject(":kAccountCreatorAccount_KLineEdit_2")
 
15
    mouseClick(":kAccountCreatorAccount_KLineEdit_2", 210, 11, 0, Qt.LeftButton)
 
16
    waitForObject(":kAccountCreatorAccount_KLineEdit_2")
 
17
    type(":kAccountCreatorAccount_KLineEdit_2", "A")
 
18
    waitForObject(":Skrooge bank plugin.Add_KPushButton")
 
19
    clickButton(":Skrooge bank plugin.Add_KPushButton")
 
20
    
 
21
    waitForObject(":Untitled [modified] - skrooge.Open report_QToolButton")
 
22
    clickButton(":Untitled [modified] - skrooge.Open report_QToolButton")
 
23
      
 
24
    waitForObject(":splitter.kFilterEdit_KLineEdit")
 
25
    sendEvent("QKeyEvent", ":splitter.kFilterEdit_KLineEdit", QEvent.KeyPress, 87, 23, 67108864, "", False, 1)
 
26
    waitForObject(":kAccountCreatorAccount_KLineEdit_2")
 
27
    mouseClick(":kAccountCreatorAccount_KLineEdit_2", 123, 16, 0, Qt.LeftButton)
 
28
    waitForObject(":kAccountCreatorAccount_KLineEdit_2")
 
29
    type(":kAccountCreatorAccount_KLineEdit_2", "2")
 
30
    waitForObject(":Skrooge bank plugin.Modify_KPushButton")
 
31
    clickButton(":Skrooge bank plugin.Modify_KPushButton")
 
32
    waitForObject(":Skrooge bank plugin.Edition_QToolButton")
 
33
    clickButton(":Skrooge bank plugin.Edition_QToolButton")
 
34
    waitForObject(":Skrooge bank plugin.Edition_QToolButton")
 
35
    clickButton(":Skrooge bank plugin.Edition_QToolButton")
 
36
    waitForObject(":Skrooge bank plugin_KLineEdit")
 
37
    mouseClick(":Skrooge bank plugin_KLineEdit", 60, 10, 0, Qt.LeftButton)
 
38
    waitForObject(":Skrooge bank plugin_KLineEdit")
 
39
    type(":Skrooge bank plugin_KLineEdit", "d")
 
40
    waitForObject(":Skrooge bank plugin_KLineEdit")
 
41
    type(":Skrooge bank plugin_KLineEdit", "<Backspace>")
 
42
    waitForObject(":Skrooge bank plugin.kAccountTableViewEdition_SKGTableView")
 
43
    mouseClick(":Skrooge bank plugin.kAccountTableViewEdition_SKGTableView", 592, 121, 0, Qt.LeftButton)
 
44
    
 
45
    undo()
 
46
    
 
47
    redo()    
 
48
    
 
49
    waitForObject(":Untitled [modified] - skrooge_SKGMainPanel")
 
50
    sendEvent("QCloseEvent", ":Untitled [modified] - skrooge_SKGMainPanel")
 
51
    waitForObject(":Question – Skrooge.Do not save_KPushButton")
 
52
    sendEvent("QMouseEvent", ":Question – Skrooge.Do not save_KPushButton", QEvent.MouseButtonPress, 42, 15, Qt.LeftButton, 0)
 
53
    waitForObject(":Question – Skrooge.Do not save_KPushButton")
 
54
    sendEvent("QMouseEvent", ":Question – Skrooge.Do not save_KPushButton", QEvent.MouseButtonRelease, 42, 15, Qt.LeftButton, 1)
 
55
 
61
56