ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Ticket URL
2
Feature NameSend Money
3
SprintS10
4
Tested By
5
Test Result (Passed/Failed)Passed-10/10
Failed-0/10
6
7
Test Case IdModule/ Test ScenarioTest Case TitlePrerequsitesSteps/ActionsExpected ResultTest DataActual ResultStatusRemarks
8
TC01AuthenticationAdmin LoginAdmin credentials are valid.Send POST request to {{baseUrl}/user/login with admin email and password.Status 200, returns a valid token and "Login successful" message.{"email": "admin@dmoney.com", "password": "1234"}login SuccessfulPassed
9
TC02User OnboatdingCreate AgentAdmin is logged in (Auth Token) & secret key is set by script. All values are randomely genrated by the scriptPOST {{baseUrl}/user/create with role: Agent and required details.Status 201, User created successfully with Agent role.{
"name": "{{name}}",
"email": "{{email}}",
"password": "{{user-password}}",
"phone_number": "{{phoneNo}}",
"nid": "{{NID}}",
"role":{{role}}
}
User created successfullyPassed
10
TC03Create Customer 1Admin is logged in (Auth Token) & secret key is set by scriptPOST {{baseUrl}/user/create with role: Customer and unique phone/email.Status 201, First customer account created.{
"name": "{{name}}",
"email": "{{email}}",
"password": "{{user-password}}",
"phone_number": "{{phoneNo}}",
"nid": "{{NID}}",
"role":{{role}}
}
User created successfullyPassed
11
TC04Create Customer 2Admin is logged in (Auth Token) & secret key is set by scriptPOST {{baseUrl}/user/create with role: Customer and unique phone/email.Status 201, Second customer account created.{
"name": "{{name}}",
"email": "{{email}}",
"password": "{{user-password}}",
"phone_number": "{{phoneNo}}",
"nid": "{{NID}}",
"role":{{role}}
}
User created successfullyPassed
12
TC05Create MerchantAdmin is logged in (Auth Token) & secret key is set by scriptPOST {{baseUrl}/user/create with role: Customer and unique phone/email.Status 201, Merchant account created successfully.{
"name": "{{name}}",
"email": "{{email}}",
"password": "{{user-password}}",
"phone_number": "{{phoneNo}}",
"nid": "{{NID}}",
"role":{{role}}
}
User created successfullyPassed
13
TC06Create a random user with duplicate phone numberAdmin is logged in.POST /user/create with role: Merchant and required details.User already exists{
"name": "ABC123",
"email": "xxx@gmail.com",
"password": "1234",
"phone_number": "01234567892",
"nid": "012wert123456",
}
User not createdPassed
14
TC07Send MoneySystem Deposit to Agent1. Sytem user is logged in
2.SYSTEM account has funds.
1.Add System Auth token & secret key from collection variable
2. POST /transaction/deposit from SYSTEM to Agent (Amount: 5000 TK).
Status 200, Balance credited to Agent, "Deposit successful".{
"from_account": "SYSTEM",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
15
TC08Agent Deposit to Customer 1Agent has sufficient balance.POST /transaction/deposit from Agent phone to Customer 1 phone.Status 200, Customer 1 balance increases; Agent balance decreases.{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
16
TC09Verify Agent BalanceAgent has performed transactions.1. Save a agent number as collection variable from dmoney portal
2. GET /transaction/balance/{Agent_Phone} using Agent's token.
Status 200, Balance matches the expected remaining amount.As expectedPassed
17
TC10Send Money customer to customersender must have sufficient balance.POST /transaction/sendmoney from Customer 1 to Customer 2.Status 200, Funds transferred from C1 to C2 successfully.{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
18
TC11Customer WithdrawalCustomer has balance; Agent exists.POST /transaction/withdraw from Customer to Agent (e.g., 500 TK).Status 200, Withdrawal successful, trnxId generated.{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
19
TC11Verify Customer BalanceCustomer 1 performed Withdrawal/P2P.1. Save a agent number as collection variable from dmoney portal
2.GET /transaction/balance/{Customer1_Phone}.
Status 200, Current balance matches (Initial + Deposit - Send - Withdraw).{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
20
TC12SearchSearch Transaction by IDA valid transaction ID exists.GET /transaction/search/{trnxId} using the ID from the withdrawal.Status 200, returns specific transaction details matching the ID.
each trxID should have single transaction
{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
Multiple transaction details came upDefect
21
TC13paymentPayment to MerchantCustomer 2 has sufficient balance.POST /transaction/payment from Customer 2 to Merchant.Status 200, Payment successful, Merchant balance updated.{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
22
TC14check balanceVerify Merchant BalanceMerchant received payment.GET /transaction/balance/{Merchant_Phone}.Status 200, Balance reflects the payment received from Customer 2.{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
23
TC15check balanceCheck Customer StatementCustomer 2 performed transactions.GET /transaction/statement/{Customer2_Phone}.Status 200, returns a list of all transactions for Customer 2.{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
24
TC16Negative: Deposit below LimitAgent balance is sufficient.POST /transaction/deposit with amount 5 TK (Minimum is 10).Status 400, Error: "Minimum deposit amount is 10 TK".{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
25
TC17Negative: Insufficient BalanceCustomer 1 balance is low.POST /transaction/sendmoney with amount greater than current balance.Status 208, Error: "Insufficient balance".{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
26
TC18Unauthorized AccessNo Auth Token or invalid token used.Attempt to check any account balance without a valid Bearer token in the header.Status 401 (Unauthorized); Access denied.{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
27
TC19Exceed Range Limit (Upper)SYSTEM account has funds.Attempt to deposit 10,001 TK from SYSTEM to Agent (Limit: 10,000 TK).Status 400/406; Error: "Amount exceeds maximum limit."{
"from_account": "0123456789",
"to_account": "123456789",
"amount": 50000
}
As expectedPassed
28
TC20Invalid Recipient AccountSender has balance; Recipient is not registered.Attempt to "Send Money" from a Customer to a non-existent phone number (e.g., 01000000000).Status 404; Error: "Account not found" or "Recipient does not exist."{
"from_account": "0123456789",
"to_account": "00000,
"amount": 50000
}
As expectedPassed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100