This test
- logs in,
- checks JavaScript functionality,
- checks precision settings,
- checks wrong / correct input,
- checks changing of existing data,
- checks entering various vouchers,
- and checks table functionality.
Cash Book | ||
open | test/selenium/prepare.php?what=cashBookStart | |
open | index.php?state=logout | |
type | mailLogin | test@ea-geier.at |
type | passLogin | testpass |
clickAndWait | buttonLogin | |
verifyElementNotPresent | name=cashbook | |
open | test/selenium/prepare.php?what=cashBookCreateClient | |
open | index.php | |
verifyElementPresent | name=cashbook | |
clickAndWait | name=cashbook | |
verifyElementPresent | name=newcashbookitem | |
clickAndWait | name=newcashbookitem | |
type | numAmount | 120 |
verifyValue | numAmount | 120,00 |
verifyValue | numAmountDist | 100,00 |
verifyValue | numAmountTax | 20,00 |
type | numAmountDist | 109,09 |
verifyValue | numAmountTax | 10,91 |
verifyValue | txtTax | 10 |
type | numAmountTax | 7.5 |
verifyValue | numAmountTax | 7,50 |
verifyValue | numAmountDist | 112,50 |
verifyValue | txtTax | x |
select | txtTax | 0 % |
verifyValue | numAmountTax | 0,00 |
verifyValue | numAmountDist | 120,00 |
clickAndWait | config | |
clickAndWait | clientconfiglink | |
type | numNumberDecimal | 3 |
select | txtNumberSeperator | label=. |
clickAndWait | buttonClientConfig | |
clickAndWait | cashbook | |
clickAndWait | newcashbookitem | |
type | numAmount | 120 |
verifyValue | numAmount | 120.000 |
clickAndWait | config | |
clickAndWait | clientconfiglink | |
type | numNumberDecimal | 2 |
select | txtNumberSeperator | label=, |
clickAndWait | buttonClientConfig | |
clickAndWait | cashbook | |
clickAndWait | newcashbookitem | |
clickAndWait | buttonSaveCashBookItem | |
verifyElementPresent | css=div.error | |
type | txtID | B1 |
type | txtName | Miete |
type | txtDate | 1.7 |
select | abcInOut | value=out |
select | txtCashBank | label=Bank |
type | numAmount | 265,00 |
select | txtDistributor | label=Miete |
select | txtTax | value=10 |
clickAndWait | buttonSaveCashBookItem | |
verifyElementPresent | id=itemsaved | |
storeValue | id=numID | itemID |
type | numAmount | 285,22 |
clickAndWait | buttonSaveCashBookItem | |
verifyElementPresent | id=itemsaved | |
verifyValue | id=numID | ${itemID} |
clickAndWait | name=cashbook | |
clickAndWait | //td[3] | |
click | numSaveTemplate[] | |
type | txtDate | 01.01.2007 |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | newcashbookitem | |
click | numSaveTemplate[] | |
type | txtID | B2 |
type | txtName | Telefon |
type | txtDate | 15.1 |
select | abcInOut | label=Ausgangsbeleg |
select | txtCashBank | label=Bank |
type | numAmount | 46,22 |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | newcashbookitem | |
type | txtID | K3 |
type | txtName | Barverkauf |
click | numSaveTemplate[] | |
type | txtDate | 20.1 |
type | numAmount | 120,00 |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | newcashbookitem | |
clickAndWait | name=cashbook | |
clickAndWait | //td[2] | |
type | txtID | K1 |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | newcashbookitem | |
type | txtID | K2 |
type | txtName | Briefmarken |
type | txtDate | 23.1 |
select | abcInOut | label=Ausgangsbeleg |
type | numAmount | 11,00 |
select | txtDistributor | label=sonstiges |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | name=cashbook | |
clickAndWait | //tr[3]/td[3] | |
select | txtDistributor | label=EU |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | name=cashbook | |
clickAndWait | newcashbookitem | |
type | txtID | B3 |
type | txtName | AR1-1 Muller |
type | txtDate | 24.1 |
select | txtCashBank | label=Bank |
type | numAmount | 290,00 |
select | txtDistributor | label=EU-UID |
select | txtTax | label=0 % |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | newcashbookitem | |
selectAndWait | numTemplate | label=Miete |
type | txtID | B4 |
type | txtDate | 01.02.2007 |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | newcashbookitem | |
selectAndWait | numTemplate | label=Telefon |
type | txtID | B5 |
type | txtDate | 15.02.2007 |
type | numAmount | 52,80 |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | newcashbookitem | |
selectAndWait | numTemplate | label=Barverkauf |
type | txtDate | 22.02.2007 |
type | numAmount | 390,00 |
type | txtID | K4 |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | name=cashbook | |
clickAndWait | //td[3] | |
type | txtID | K3 |
clickAndWait | buttonSaveCashBookItem | |
clickAndWait | name=cashbook | |
selectAndWait | txtCashBank | label=Kassa |
selectAndWait | txtCashBank | label=Bank |
selectAndWait | txtCashBank | label=Brutto |
selectAndWait | txtMonth | label=01.2007 |
selectAndWait | txtMonth | label=02.2007 |
selectAndWait | txtMonth | label=Datum |
selectAndWait | txtDistributor | label=Eingang |
selectAndWait | txtDistributor | label=Ausgang |
selectAndWait | txtDistributor | label=Miete |
selectAndWait | txtDistributor | label=Netto |
clickAndWait | link=Beleg | |
clickAndWait | link=Bezeichnung | |
clickAndWait | link=Einstellungen | |
type | numLinesPerPage | 4 |
clickAndWait | buttonUserConfig | |
type | txtUserName | Test |
clickAndWait | buttonUserConfig | |
clickAndWait | link=Kassa-Bank | |
clickAndWait | link=2 | |
clickAndWait | link=< | |
open | test/selenium/prepare.php?what=cashBookStop |