./basic.case
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/functions/settings
click id=allow_api
click id=allow_get_api
type id=api_secret_key testas
click id=api_login_redirect_to_main
click id=api_allow_registration
clickAndWait name=commit
verifyText id=status Settings saved
open /billing/permissions/list?group_type=accountant
type id=name group1
type id=description all necesary permissions
clickAndWait css=input[type="image"]
verifyText id=status Group was created
type id=name group2
clickAndWait css=input[type="image"]
verifyText id=status Group was created
type id=name group3
clickAndWait css=input[type="image"]
verifyText id=status Group was created
type id=name group4
clickAndWait css=input[type="image"]
verifyText id=status Group was created
clickAndWait css=img[alt="Edit"]
click id=invoices_manage_2
click id=see_financial_data_2
clickAndWait name=commit
verifyText id=status Group was updated
open /billing/permissions/list?group_type=accountant
clickAndWait id=edit_link_2
click id=see_financial_data_1
click id=invoices_manage_1
clickAndWait name=commit
verifyText id=status Group was updated
open /billing/permissions/list?group_type=accountant
clickAndWait id=edit_link_3
click id=see_financial_data_0
click id=invoices_manage_1
clickAndWait name=commit
verifyText id=status Group was updated
open /billing/permissions/list?group_type=accountant
clickAndWait id=edit_link_4
click id=see_financial_data_0
click id=invoices_manage_2
clickAndWait name=commit
verifyText id=status Group was updated
open /billing/users/edit/4
select id=accountant_type_select label=group1
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open /billing/api/credit_note_create?u=admin&p=admin1&test=1&hash=11111111111
verifyText css=error Incorrect hash
open /billing/api/credit_note_create?u=admin&p=admi&user_id=2&test=1&hash=c857cb96bbc8428f6c7ec80d6700859ae1de1173
verifyText css=error Bad login
open /billing/api/credit_note_create?u=admin&p=admin1&user_id=5&price=77&issue_date=1300040000&test=1&hash=6931829e1191e97dff9a76883f4864d2336999a9
verifyTextNotPresent css=error User was not found
open /billing/api/credit_note_create?u=admin&p=admin1&user_id=100&price=77&issue_date=1300040000&test=1&hash=4eebd31230e812307125a6d1e4c8aed4eccf2929
verifyTextNotPresent css=error User was not found
open /billing/api/credit_note_create?u=user&p=user&user_id=2&test=1&hash=c857cb96bbc8428f6c7ec80d6700859ae1de1173
verifyText css=error Bad login
open billing/api/credit_note_create?u=admin&p=admin1&price=23&issue_date=1300040000&comment=comment1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyText css=error User was not found
open billing/api/credit_note_create?u=admin&p=admin1&user_id=3&issue_date=1300040000&number=123&test=1&hash=722dc966fe7446eb6ad575daa956311753ce04ac
verifyText css=error Credit note was not created
open billing/api/credit_note_create?u=admin&p=admin1&user_id=2&price=100&comment=comment2&number=10&test=1&hash=e806b5baa15f9a08ab027094ad6eaaa0362b28b3
verifyText css=error Credit note was not created
open billing/api/credit_note_create?u=admin&p=admin1&price=23&user_id=sdfasd&issue_date=1330040000comment=comment1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyText css=error User was not found
open billing/api/credit_note_create?u=admin&p=admin1&price=wefh&user_id=3&issue_date=1350040000&number=123&test=1&hash=722dc966fe7446eb6ad575daa956311753ce04ac
verifyText css=status Credit note was created
open billing/api/credit_note_create?u=admin&p=admin1&issue_date=sadfasd&user_id=2&price=100&comment=comment2&number=10&test=1&hash=e806b5baa15f9a08ab027094ad6eaaa0362b28b3
verifyText css=error Credit note was not created
open billing/api/credit_note_create?u=admin&p=admin1&user_id=3&price=23&issue_date=1350044000&comment=comment1&test=1&hash=7843823941fca74449cbff5d042838d0122bf340
verifyText css=status Credit note was created
open billing/api/credit_note_create?u=admin&p=admin1&user_id=3&price=32&issue_date=1350440000&number=123&test=1&hash=722dc966fe7446eb6ad575daa956311753ce04ac
verifyText css=status Credit note was created
open billing/api/credit_note_create?u=admin&p=admin1&user_id=2&price=100&issue_date=1351040000&comment=comment2&number=10&test=1&hash=e806b5baa15f9a08ab027094ad6eaaa0362b28b3
verifyText css=status Credit note was created
open billing/api/credit_note_create?u=reseller&p=reseller1&user_id=5&price=77&issue_date=1350140000&test=1&hash=6931829e1191e97dff9a76883f4864d2336999a9
verifyText css=status Credit note was created
open billing/api/credit_note_create?u=reseller&p=reseller1&user_id=5&price=88&issue_date=1350040900&test=1&hash=6931829e1191e97dff9a76883f4864d2336999a9
verifyText css=status Credit note was created
open billing/api/credit_note_create?u=accountant&p=accountant1&user_id=2&price=77&issue_date=1330040000&test=1&hash=c857cb96bbc8428f6c7ec80d6700859ae1de1173
verifyText css=status Credit note was created
open billing/api/credit_note_create?u=accountant&p=accountant1&user_id=3&price=88&issue_date=1340040000&test=1&hash=7843823941fca74449cbff5d042838d0122bf340
verifyText css=status Credit note was created
open /billing/users/edit/4
select id=accountant_type_select label=group2
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open billing/api/credit_note_create?u=accountant&p=accountant1&user_id=2&price=77&issue_date=1330040000&test=1&hash=c857cb96bbc8428f6c7ec80d6700859ae1de1173
verifyText css=error Bad login
open billing/api/credit_note_create?u=accountant&p=accountant1&user_id=3&price=88&issue_date=1340040000&test=1&hash=7843823941fca74449cbff5d042838d0122bf340
verifyText css=error Bad login
open /billing/users/edit/4
select id=accountant_type_select label=group3
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open billing/api/credit_note_create?u=accountant&p=accountant1&user_id=2&price=77&issue_date=1330040000&test=1&hash=c857cb96bbc8428f6c7ec80d6700859ae1de1173
verifyText css=error Bad login
open billing/api/credit_note_create?u=accountant&p=accountant1&user_id=3&price=88&issue_date=1340040000&test=1&hash=7843823941fca74449cbff5d042838d0122bf340
verifyText css=error Bad login
open /billing/users/edit/4
select id=accountant_type_select label=group4
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open billing/api/credit_note_create?u=accountant&p=accountant1&user_id=2&price=77&issue_date=1330040000&test=1&hash=c857cb96bbc8428f6c7ec80d6700859ae1de1173
verifyText css=error Bad login
open billing/api/credit_note_create?u=accountant&p=accountant1&user_id=3&price=88&issue_date=1340040000&test=1&hash=7843823941fca74449cbff5d042838d0122bf340
verifyText css=error Bad login
open billing/api/credit_notes?u=admin&p=admin1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
waitForTextPresent 3 Fri Oct 12 14:06:40 +0300 2012 123 0.0 0.0 3 Fri Oct 12 15:13:20 +0300 2012 comment1 23.0 23.0 3 Wed Oct 17 05:13:20 +0300 2012 123 32.0 32.0 2 Wed Oct 24 03:53:20 +0300 2012 10 comment2 100.0 100.0 2 Fri Feb 24 01:33:20 +0200 2012 77.0 77.0 3 Mon Jun 18 20:20:00 +0300 2012 88.0 88.0
verifyTextPresent 0.0
verifyTextPresent 23.0
verifyTextPresent 32.0
verifyTextPresent 100.0
verifyTextPresent 77.0
verifyTextPresent 88.0
open billing/api/credit_notes?u=admin&p=admin1&user_id=3&test=1&hash=7843823941fca74449cbff5d042838d0122bf340
verifyTextPresent 0.0
verifyTextPresent 23.0
verifyTextPresent 32.0
verifyTextPresent 88.0
open billing/api/credit_notes?u=admin&p=admin1&credit_note_id=4&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 2 Wed Oct 24 03:53:20 +0300 2012 10 comment2 100.0 100.0
open billing/api/credit_notes?u=admin&p=admin1&user_id=5&test=1&hash=6931829e1191e97dff9a76883f4864d2336999a9
verifyElementNotPresent css=credit_notes
open billing/api/credit_notes?u=admin&p=admin1&credit_note_id=6&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyElementNotPresent css=credit_notes
open billing/api/credit_notes?u=reseller&p=reseller1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 5 Sat Oct 13 17:53:20 +0300 2012 77.0 77.0 5 Fri Oct 12 14:21:40 +0300 2012 88.0 88.0
open billing/api/credit_notes?u=reseller&p=reseller1&credit_note_id=6&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 5 Fri Oct 12 14:21:40 +0300 2012 88.0 88.0
open billing/api/credit_notes?u=reseller&p=reseller1&credit_note_id=1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyElementNotPresent css=credit_notes
open billing/api/credit_notes?u=accountant&p=accountant1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Fri Oct 12 14:06:40 +0300 2012 123 3 Fri Oct 12 15:13:20 +0300 2012 comment1 3 Wed Oct 17 05:13:20 +0300 2012 123 2 Wed Oct 24 03:53:20 +0300 2012 10 comment2 2 Fri Feb 24 01:33:20 +0200 2012 3 Mon Jun 18 20:20:00 +0300 2012
verifyElementNotPresent css=price
verifyElementNotPresent css=price_with_vat
verifyElementNotPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&user_id=3&test=1&hash=7843823941fca74449cbff5d042838d0122bf340
verifyTextPresent 3 Fri Oct 12 14:06:40 +0300 2012 123 3 Fri Oct 12 15:13:20 +0300 2012 comment1 3 Wed Oct 17 05:13:20 +0300 2012 123 3 Mon Jun 18 20:20:00 +0300 2012
verifyElementNotPresent css=price
verifyElementNotPresent css=price_with_vat
verifyElementNotPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=4&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 2 Wed Oct 24 03:53:20 +0300 2012 10 comment2
verifyElementNotPresent css=price
verifyElementNotPresent css=price_with_vat
verifyElementNotPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&user_id=5&test=1&hash=6931829e1191e97dff9a76883f4864d2336999a9
verifyElementNotPresent css=credit_notes
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=6&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyElementNotPresent css=credit_notes
open /billing/users/edit/4
select id=accountant_type_select label=group3
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open billing/api/credit_notes?u=accountant&p=accountant1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Fri Oct 12 14:06:40 +0300 2012 123 3 Fri Oct 12 15:13:20 +0300 2012 comment1 3 Wed Oct 17 05:13:20 +0300 2012 123 2 Wed Oct 24 03:53:20 +0300 2012 10 comment2 2 Fri Feb 24 01:33:20 +0200 2012 3 Mon Jun 18 20:20:00 +0300 2012
verifyElementNotPresent css=price
verifyElementNotPresent css=price_with_vat
verifyElementNotPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&user_id=3&test=1&hash=7843823941fca74449cbff5d042838d0122bf340
verifyTextPresent 3 Fri Oct 12 14:06:40 +0300 2012 123 3 Fri Oct 12 15:13:20 +0300 2012 comment1 3 Wed Oct 17 05:13:20 +0300 2012 123 3 Mon Jun 18 20:20:00 +0300 2012
verifyElementNotPresent css=price
verifyElementNotPresent css=price_with_vat
verifyElementNotPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=4&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 2 Wed Oct 24 03:53:20 +0300 2012 10 comment2
verifyElementNotPresent css=price
verifyElementNotPresent css=price_with_vat
verifyElementNotPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&user_id=5&test=1&hash=6931829e1191e97dff9a76883f4864d2336999a9
verifyElementNotPresent css=credit_notes
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=6&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyElementNotPresent css=credit_notes
open /billing/users/edit/4
select id=accountant_type_select label=group2
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open billing/api/credit_notes?u=accountant&p=accountant1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Fri Oct 12 14:06:40 +0300 2012 123 0.0 0.0 3 Fri Oct 12 15:13:20 +0300 2012 comment1 23.0 23.0 3 Wed Oct 17 05:13:20 +0300 2012 123 32.0 32.0 2 Wed Oct 24 03:53:20 +0300 2012 10 comment2 100.0 100.0 2 Fri Feb 24 01:33:20 +0200 2012 77.0 77.0 3 Mon Jun 18 20:20:00 +0300 2012 88.0 88.0
verifyElementPresent css=price
verifyElementPresent css=price_with_vat
verifyElementPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&user_id=3&test=1&hash=7843823941fca74449cbff5d042838d0122bf340
verifyTextPresent 3 Fri Oct 12 14:06:40 +0300 2012 123 0.0 0.0 3 Fri Oct 12 15:13:20 +0300 2012 comment1 23.0 23.0 3 Wed Oct 17 05:13:20 +0300 2012 123 32.0 32.0 3 Mon Jun 18 20:20:00 +0300 2012 88.0 88.0
verifyElementPresent css=price
verifyElementPresent css=price_with_vat
verifyElementPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=4&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
waitForTextPresent 2 Wed Oct 24 03:53:20 +0300 2012 10 comment2 100.0 100.0
verifyElementPresent css=price
verifyElementPresent css=price_with_vat
verifyElementPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&user_id=5&test=1&hash=6931829e1191e97dff9a76883f4864d2336999a9
verifyElementNotPresent css=credit_notes
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=6&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyElementNotPresent css=credit_notes
open /billing/users/edit/4
select id=accountant_type_select label=group1
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open billing/api/credit_notes?u=accountant&p=accountant1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Fri Oct 12 14:06:40 +0300 2012 123 0.0 0.0 3 Fri Oct 12 15:13:20 +0300 2012 comment1 23.0 23.0 3 Wed Oct 17 05:13:20 +0300 2012 123 32.0 32.0 2 Wed Oct 24 03:53:20 +0300 2012 10 comment2 100.0 100.0 2 Fri Feb 24 01:33:20 +0200 2012 77.0 77.0 3 Mon Jun 18 20:20:00 +0300 2012 88.0 88.0
verifyElementPresent css=price
verifyElementPresent css=price_with_vat
verifyElementPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&user_id=3&test=1&hash=7843823941fca74449cbff5d042838d0122bf340
verifyTextPresent 3 Fri Oct 12 14:06:40 +0300 2012 123 0.0 0.0 3 Fri Oct 12 15:13:20 +0300 2012 comment1 23.0 23.0 3 Wed Oct 17 05:13:20 +0300 2012 123 32.0 32.0 3 Mon Jun 18 20:20:00 +0300 2012 88.0 88.0
verifyElementPresent css=price
verifyElementPresent css=price_with_vat
verifyElementPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=4&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
waitForTextPresent 2 Wed Oct 24 03:53:20 +0300 2012 10 comment2 100.0 100.0
verifyElementPresent css=price
verifyElementPresent css=price_with_vat
verifyElementPresent css=pay_date
open billing/api/credit_notes?u=accountant&p=accountant1&user_id=5&test=1&hash=6931829e1191e97dff9a76883f4864d2336999a9
verifyElementNotPresent css=credit_notes
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=6&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyElementNotPresent css=credit_notes
open billing/api/credit_note_update?u=admin&p=admin&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
waitForTextPresent Bad login
open billing/api/credit_note_update?u=user&p=user1&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
waitForTextPresent Bad login
open billing/api/credit_note_update?u=admin&p=admin&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c
waitForTextPresent Incorrect hash
open billing/api/credit_note_update?u=admin&p=admin1&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=admin&p=admin1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 32.0 32.0
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=admin&p=admin1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment 32.0 32.0
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 32.0000 USD
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 32.0000 USD
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=5&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open billing/api/credit_note_update?u=accountant&p=accountant1&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment 32.0 32.0
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment 32.0 32.0
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 32.0000 USD
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 32.0000 USD
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
waitForTextPresent 0.0000 USD
open /billing/users/edit/4
select id=accountant_type_select label=group2
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open billing/api/credit_note_update?u=accountant&p=accountant1&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment 32.0 32.0
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment 32.0 32.0
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open /billing/users/edit/4
select id=accountant_type_select label=group2
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open billing/api/credit_note_update?u=accountant&p=accountant1&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment 32.0 32.0
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment 32.0 32.0
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open /billing/users/edit/4
select id=accountant_type_select label=group3
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open billing/api/credit_note_update?u=accountant&p=accountant1&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open /billing/users/edit/4
select id=accountant_type_select label=group4
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open billing/api/credit_note_update?u=accountant&p=accountant1&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&comment=updated_comment&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open billing/api/credit_notes?u=accountant&p=accountant1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent 3 Wed Oct 17 05:13:20 +0300 2012 123 updated_comment
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=accountant&p=accountant1&credit_note_id=3&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/edit/5
waitForTextPresent 0.0000 USD
open billing/api/credit_note_update?u=reseller&p=reseller1&credit_note_id=5&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
waitForTextPresent Credit note was updated
open /billing/users/edit/5
waitForTextPresent 0.0000 USD
open billing/api/credit_note_update?u=reseller&p=reseller1&credit_note_id=5&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
waitForTextPresent Credit note was updated
open /billing/users/edit/5
waitForTextPresent 77.0000 USD
open billing/api/credit_note_update?u=reseller&p=reseller1&credit_note_id=5&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
waitForTextPresent Credit note was updated
open /billing/users/edit/5
waitForTextPresent 77.0000 USD
open billing/api/credit_note_update?u=reseller&p=reseller1&credit_note_id=5&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
waitForTextPresent Credit note was updated
open /billing/users/edit/5
waitForTextPresent 0.0000 USD
open billing/api/credit_note_update?u=reseller&p=reseller1&credit_note_id=1&status=unpaid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open /billing/api/credit_note_delete?u=admin&p=admin1&test=1&hash=11111111111
verifyText css=error Incorrect hash
open /billing/api/credit_note_delete?u=admin&p=admi&credit_note_id=2&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyText css=error Bad login
open /billing/api/credit_note_delete?u=admin&p=admin1&credit_note_id=6&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyText css=error Credit note was not found
open /billing/api/credit_note_delete?u=admin&p=admin1&credit_note_id=100&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open /billing/api/credit_note_delete?u=user&p=user&credit_note_id=2&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyText css=error Bad login
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open billing/api/credit_note_delete?u=admin&p=admin1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=admin&p=admin1&credit_note_id=3&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/3
verifyTextPresent 32.0000 USD
open billing/api/credit_note_delete?u=admin&p=admin1&credit_note_id=2&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was deleted
open /billing/users/edit/3
verifyTextPresent 32.0000 USD
open billing/api/credit_note_delete?u=admin&p=admin1&credit_note_id=3&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was deleted
open /billing/users/edit/3
verifyTextPresent 0.0000 USD
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/edit/5
verifyTextPresent 0.0000 USD
open billing/api/credit_note_update?u=reseller&p=reseller1&credit_note_id=5&status=paid&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was updated
open /billing/users/edit/5
verifyTextPresent 77.0000 USD
open billing/api/credit_note_delete?u=reseller&p=reseller1&credit_note_id=6&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was deleted
open /billing/users/edit/5
verifyTextPresent 77.0000 USD
open billing/api/credit_note_delete?u=reseller&p=reseller1&credit_note_id=5&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was deleted
open /billing/users/edit/5
verifyTextPresent 0.0000 USD
open billing/api/credit_note_delete?u=reseller&p=reseller1&credit_note_id=8&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyText css=error Credit note was not found
open /billing/api/credit_note_delete?u=accountant&p=accountant1&test=1&hash=11111111111
verifyText css=error Incorrect hash
open /billing/api/credit_note_delete?u=accountant&p=admi&credit_note_id=2&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyText css=error Bad login
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/edit/4
select id=accountant_type_select label=group4
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open /billing/api/credit_note_delete?u=accountant&p=accountant1&credit_note_id=8&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Bad login
open /billing/users/edit/4
select id=accountant_type_select label=group3
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open /billing/api/credit_note_delete?u=accountant&p=accountant1&credit_note_id=7&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Bad login
open /billing/users/edit/4
select id=accountant_type_select label=group2
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open /billing/api/credit_note_delete?u=accountant&p=accountant1&credit_note_id=4&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Bad login
open /billing/users/edit/4
select id=accountant_type_select label=group1
clickAndWait css=#confirm_without_message > input[name="commit"]
verifyText id=status User's settings succesfully changed: Test Accountant
open /billing/api/credit_note_delete?u=accountant&p=accountant1&credit_note_id=1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was deleted
open /billing/api/credit_note_delete?u=accountant&p=accountant1&credit_note_id=100&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found
open billing/api/credit_note_delete?u=accountant&p=accountant1&test=1&hash=30d0f117301d1f5cfbe27045206c0c2de95e2ac0
verifyTextPresent Credit note was not found