-
Notifications
You must be signed in to change notification settings - Fork 0
New Test
Paver Test
Struttura generale:
\testdep
\src
\config
\constant
\lib
\res
\task
\tester
\venv
I test tramite paver vengono chiamati con il comando: tester.NomeCartella.NomeFile.NomeTask Es. tester.registration.registration.users_registration
All'interno di task sono presenti le cartelle contenenti i file json che rappresentano i task. Le cartelle presenti sono:
- registration
- account_state_level
- payment
- internal_payment
- withdraw
- socialmq
- notificationmq
- promocode
- batchs
- balance_limit_override
Contiene i seguenti task:
tester.registration.registration.backoffice_user_login tester.registration.registration.anon_user_registration tester.registration.registration.named_user_registration tester.registration.registration.anon_merchant_registration tester.registration.registration.named_merchant_registration tester.registration.registration.batch_users_registration tester.registration.registration.named_merchant_social_registration
Vengono effettuate varie registrazioni con tute le tipologie di utenze:
- anon user
- named user
- anon merchant
- named merchant
Contiene i seguenti task:
tester.account_state_level.account_state.state_activities
Il test è consistito nei seguenti step:
- Verifica che lo stato per l'utente appena creato sia done
- Set state to close in attesa dell'errore perchè il balance non è inferiore al limite per la chiusura
- Azzero il balance tramite un pagamento
- Set state to blocked and done da backoffice
- Chiusura account con state closed
Contiene i seguenti task: tester.payment.payment.p2pPayment tester.payment.payment.merchantPayment tester.payment.payment.maximum_amount_week tester.payment.payment.maximum_amount_single_transaction tester.payment.payment.maximum_amount_year_recharges
Vengono effettuati pagamenti merchant-remote e p2p-pay tra vari utenti con la verifica dei limiti.
-
Verifica del limite settimanale A paga 900 euro a B A paga 100 euro a B --- Errore limite settimanale A paga 99.9 euro a B A paga 1 euro a B --- Errore limite settimanale
-
Verifica delle ricariche ricevute durante l'anno solare A paga 900 euro E B paga 900 euro E C paga 701 euro E --- Errore limite annuo D paga 700 euro E
-
Verifica singola transazione A paga 1000 euro a B -> controllo nel pagante --> 'Rifiutato pagamento di 1000.0 Euro. Oltrepassato limite transazione (1000.0 Euro)' A paga 1000 euro a B -> controllo nel beneficiario --> 'Rifiutato pagamento'
Contiene i seguenti task: tester.internal_payment.internal_payment.internal_account_payment
Esegue un pagamento di 10000 euro con beneficiario e pagante account interni per verificare che i limiti non vengano applicati.
Contiene i seguenti task: tester.withdraw.withdraw.withdraw_nu_ferilli
Il test è consistito nei seguenti step:
- Esegue un withdrow con un named user
- Verifica fee
Contiene i seguenti task: tester.socialmq.socialmq.social_share
Il test è consistito nei seguenti step:
1.Creating Flask server to simulate FB and TW responses 2.Creating RabbitMQ connection 3.Sending Data to RabbitMQ 4.Waiting and verify for receiving calls
Contiene i seguenti task:
tester.notificationmq.notificationmq.notification_maximum_debit_transaction
Il test è consistito nei seguenti step:
1.Execute a payment with maximum debit transaction
2.Check in core_acc_notification
3.Creating Flask server to simulate responses
4.Creating RabbitMQ connection
5.Sending Data to RabbitMQ
6.Waiting and verify for receiving calls
Contiene i seguenti task:
tester.promocode.promocode.promobadge
Il test attualmente è consistito nei seguenti step di base (da completare):
1.Check if Promo Code Can be Used
2.Create Promocode
3.Promocode Info
4.Assegnazione
5.Delete Promocode
Contiene i seguenti task:
tester.batchs.batch.first
Il test attualmente è consistito nei seguenti step (da completare con la verifica dell'SDD):
1.Start copy procedure of batch file in path_banca_input
2.Inizializzazione pulizia database
3.Check initial amount
4.Copy batch file
5.Check amount for conto_ordinario_transito, conto_moneta, conto_moneta_sospesi, conto_moneta_transito and users
Contiene i seguenti task:
tester.balance_limit_override.balance_limit_override.backoffice_limit_override
Attualmente da completare