API Test Cases for FSM System: FSTPO

API test cases for FSM system

Name Of The System

FSM

Module Name

FSM

No Of Sprint

Not Applicable

Testing Methodologies

Agile Methodology

Platform

Postman Api

Test Case Design By

Yathish M

Client Representative:

eGov_FSM

Reviewed By

Abinash Sahoo

Test Environment

UAT

Test Case Version

V1.3

Project Start Date

1/1/2023

Project End Date

3/15/2023

Test Name

HTTP Method

Target URL_UAT

Type

Test Case

Test Data

Body

Expected Status Code

Expected Response

Actual Status Code

Actual Response

Status

Comments

Login

POST

Verify that HTTP Status code is 200 OK

username:QACE password:eGov@123 userType:EMPLOYEE tenantId:pg.citya scope:read grant_type:password

PASS

Verify that the response is valid JSON

PASS

Verify that response is with body

PASS

Verify that the reposne has token generated and is not null

PASS

Enter valid username, password and validate

Username : QACE Password: eGov@123

200 OK

200 OK

{ "access_token": "fe5da908-e539-468e-98a2-6ff13c79bfe5", "token_type": "bearer", "refresh_token": "34bc2b40-1fab-4465-b451-e341f56d4110", "expires_in": 3599,

PASS

Enter invalid username, valid password and validate

Username : QACW Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, invalid password and validate

Username : QACE Password: egov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invalid username, invalid password and validate

Username : QACAS Password: egov@456

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invaid Username address format and validate

Username : QACE Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Don't enter username , password and validate.

Username : NA Password: NA

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid tenent id

pg.citya

200 OK

PASS

Enter Invalid tenent id

pb.amruitsir

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that without basic auth , request fails

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that Time Taken by Request is less than 2000 ms

Emp Application Creation

POST

Verify that HTTP Status code is 200 OK

{ "fsm": { "citizen": { "name": "Venu", "mobileNumber": "9686652441", "gender": "MALE" }, "tenantId": "pg.citya", "source": "TELEPHONE", "additionalDetails": { "tripAmount": 930 }, "propertyUsage": "RESIDENTIAL.INDEPENDENT_HOUSE", "vehicleCapacity": 1000, "pitDetail": {}, "address": { "tenantId": "pg.citya", "city": "City A", "pincode": 143002, "slumName": null, "locality": { "code": "JLC477", "name": "Gali No,. 2 To Gali No. 6" }, "geoLocation": {} }, "noOfTrips": 1, "paymentPreference": null, "advanceAmount": "100" }, "workflow": null, "RequestInfo": { "apiId": "Rainmaker", "authToken": "b94c1db8-e110-4aae-a50b-e689df7878d6", "userInfo": { "id": 5616, "uuid": "0e01e2f7-c4e6-4d1b-9513-a3db669a21b0", "userName": "QACE", "name": "UAT Creater", "mobileNumber": "9988889899", "emailId": "", "locale": null, "type": "EMPLOYEE", "roles": [ { "name": "FSM Employee Application Creator", "code": "FSM_CREATOR_EMP", "tenantId": "pg.citya" } ], "active": true, "tenantId": "pg.citya", "permanentCity": null }, "msgId": "1678444981551|en_IN", "plainAccessRequest": {} } }

PASS

Verify that the response is valid JSON

PASS

Verify that response is with body

PASS

Verify that the reposne has token generated and is not null

Enter valid username, password and validate

Username : QACE Password: eGov@123

200 OK

200 OK

{ "totalCount": null, "responseInfo": { "apiId": "Rainmaker", "ver": null, "ts": null, "resMsgId": "uief87324", "msgId": "1678444981551|en_IN", "status": "successful" },

PASS

Enter invalid username, valid password and validate

Username : QACW Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, invalid password and validate

Username : QACE Password: egov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invalid username, invalid password and validate

Username : QACAS Password: egov@456

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invaid Username address format and validate

Username : QACE Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Don't enter username , password and validate.

Username : NA Password: NA

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid tenent id

pg.citya

200 OK

Enter Invalid tenent id

pb.amruitsir

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify with valid Access Token

4a467cb5-e9c0-4878-bf77-5e4b8c70fe30

200 OK

200 OK

PASS

Verify with Invalid Access Token

4878-bf77-5e4b8c70fe30

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter the valid Advance Amount

465

200 OK

200 OK

PASS

Enter invalid Advance amount

0

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid Property Usage

RESIDENTIAL.INDEPENDENT_HOUSE

200 OK

200 OK

PASS

Enter Invalid Property Usage

RESIDENTIAL.INDEPENDENT

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that without basic auth , request fails

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that Time Taken by Request is less than 2000 ms

Application Search

POST

Verify that HTTP Status code is 200 OK

{ "RequestInfo": { "apiId": "Rainmaker", "authToken": "b94c1db8-e110-4aae-a50b-e689df7878d6", "msgId": "1678445147748|en_IN", "plainAccessRequest": {} } }

PASS

Verify that the response is valid JSON

PASS

Verify that response is with body

PASS

Verify that the reposne has token generated and is not null

Enter valid username, password and validate

Username : QACE Password: eGov@123

200 OK

200 OK

{ "totalCount": 1, "responseInfo": { "apiId": "Rainmaker", "ver": null, "ts": null, "resMsgId": "uief87324", "msgId": "1678445147748|en_IN", "status": "successful"

PASS

Enter invalid username, valid password and validate

Username : QACW Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, invalid password and validate

Username : QACE Password: egov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invalid username, invalid password and validate

Username : QACAS Password: egov@456

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invaid Username address format and validate

Username : QACE Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Don't enter username , password and validate.

Username : NA Password: NA

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid tenent id

pg.citya

200 OK

Enter Invalid tenent id

pb.amruitsir

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that without basic auth , request fails

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify with Invalid Access Token

4878-bf77-5e4b8c70fe30

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter the valid Advance Amount

465

200 OK

200 OK

PASS

Enter invalid Advance amount

0

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid Property Usage

RESIDENTIAL.INDEPENDENT_HOUSE

200 OK

200 OK

PASS

Enter Invalid Property Usage

RESIDENTIAL.INDEPENDENT

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify with valid Access Token

4a467cb5-e9c0-4878-bf77-5e4b8c70fe30

200 OK

200 OK

PASS

Bill Generation

POST

Verify that HTTP Status code is 201 Created

{ "RequestInfo": { "apiId": "Rainmaker", "authToken": "9fc929ae-1224-4e8d-85fc-015e3279af61", "msgId": "1678445328628|en_IN", "plainAccessRequest": {} } }

PASS

Verify that the response is valid JSON

PASS

Verify that response is with body

PASS

Verify that the reposne has token generated and is not null

PASS

Enter valid username, password and validate

Username : QACE Password: eGov@123

201 Created

201 Created

"ResposneInfo": null, "Bill": [ { "id": "2a54440a-57cb-423a-989b-5afdf2702b15", "userId": "aa312168-b768-4216-83a7-8138f0ce9449", "mobileNumber": "9686652441", "payerName": "Venu", "payerAddress": null, "payerEmail": null, "status": "ACTIVE",

PASS

Enter invalid username, valid password and validate

Username : QACW Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, invalid password and validate

Username : QACE Password: egov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invalid username, invalid password and validate

Username : QACAS Password: egov@456

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invaid Username address format and validate

Username : QACE Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Don't enter username , password and validate.

Username : NA Password: NA

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid tenent id

pg.citya

201 Created

Enter Invalid tenent id

pb.amruitsir

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that without basic auth , request fails

500 Internal Server Error

{ "ResponseInfo": null, "Errors": [ { "code": "BadRequest", "message": "400 : [{\"ResponseInfo\":null,\"Errors\":[{\"code\":\"InvalidAccessTokenException\",\"message\":\"An unhandled exception occurred on the server\",\"description\":\"Invalid Access Token Exception\",\"params\":null}]}]", "description": "400 : [{\"ResponseInfo\":null,\"Errors\":[{\"code\":\"InvalidAccessTokenException\",\"message\":\"An unhandled exception occurred on the server\",\"description\":\"Invalid Access Token Exception\",\"params\":null}]}]", "params": null } ] }

500 Internal Server Error

{ "ResponseInfo": null, "Errors": [ { "code": "BadRequest", "message": "400 : [{\"ResponseInfo\":null,\"Errors\":[{\"code\":\"InvalidAccessTokenException\",\"message\":\"An unhandled exception occurred on the server\",\"description\":\"Invalid Access Token Exception\",\"params\":null}]}]", "description": "400 : [{\"ResponseInfo\":null,\"Errors\":[{\"code\":\"InvalidAccessTokenException\",\"message\":\"An unhandled exception occurred on the server\",\"description\":\"Invalid Access Token Exception\",\"params\":null}]}]", "params": null } ] }

PASS

Enter Valid Consumer Code

1013-FSM-2023-03-17-004125

Enter Invalid consumerCode

1234-FSM-2023-03-17-004125

Verify with Invalid Access Token

4878-bf77-5e4b8c70fe30

Verify with valid Access Token

4a467cb5-e9c0-4878-bf77-5e4b8c70fe30

201 Created

201 Created

PASS

Coll Collect Payment

POST

Verify that HTTP Status code is 200 OK

{ "Payment": { "mobileNumber": "9686652441", "paymentDetails": [ { "businessService": "FSM.TRIP_CHARGES", "billId": "972add20-6651-4e3f-a246-45b20f8ce086", "totalDue": 930, "totalAmountPaid": 100 } ], "tenantId": "pg.citya", "totalDue": 930, "totalAmountPaid": 100, "paymentMode": "CASH", "payerName": "Venu", "paidBy": "OWNER" }, "RequestInfo": { "apiId": "Rainmaker", "authToken": "9fc929ae-1224-4e8d-85fc-015e3279af61", "userInfo": { "id": 5612, "uuid": "3b68ca59-27fc-4005-a95f-cc6224d4aad4", "userName": "QACOLL", "name": "FSM COLLECTOR", "mobileNumber": "7897865232", "emailId": null, "locale": null, "type": "EMPLOYEE", "roles": [ { "name": "FSM Payment Collector", "code": "FSM_COLLECTOR", "tenantId": "pg.citya" } ], "active": true, "tenantId": "pg.citya", "permanentCity": null }, "msgId": "1678445402391|en_IN", "plainAccessRequest": {} } }

a

PASS

Verify that the response is valid JSON

PASS

Verify with the valid bill id :

972add20-6651-4e3f-a246-45b20f8ce086

200 OK

PASS

Verify with invalid bill Id :

342add20-6651-4e3f-a246-45b20f8ce086

PASS

Verify that the reposne has token generated and is not null

PASS

Enter valid amount due

465

200 OK

200 OK

200 OK

PASS

Enter invalid amount due

0

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, password and validate

Username : QACOLL Password: eGov@123

200 OK

200 OK

200 OK

PASS

Enter invalid username, valid password and validate

Username : QACW Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, invalid password and validate

Username : QACE Password: egov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invalid username, invalid password and validate

Username : QACAS Password: egov@456

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invaid Username address format and validate

Username : QACE Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Don't enter username , password and validate.

Username : NA Password: NA

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid tenent id

pg.citya

200 OK

200 OK

PASS

Enter Invalid tenent id

pb.amruitsir

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that without basic auth , request fails

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that Time Taken by Request is less than 2000 ms

Emp Assign DSO

POST

Verify that HTTP Status code is 200 OK

{ "RequestInfo": { "apiId": "Rainmaker", "authToken": "5b37bca9-c115-403d-a01c-20eb15d607ab", "userInfo": { "id": 5614, "uuid": "42675078-e37d-4701-bb2a-5eb3edb52de6", "userName": "QAEE", "name": "Das", "mobileNumber": "7878787812", "emailId": "", "locale": null, "type": "EMPLOYEE", "roles": [ { "name": "FSM Employee Application Editor", "code": "FSM_EDITOR_EMP", "tenantId": "pg.citya" } ], "active": true, "tenantId": "pg.citya", "permanentCity": "City A" }, "msgId": "1678445560406|en_IN", "plainAccessRequest": {} } }

{ "responseInfo": { "apiId": "Rainmaker", "ver": null, "ts": null, "resMsgId": "uief87324", "msgId": "1678445560406|en_IN", "status": "successful"

PASS

Verify that the response is valid JSON

PASS

Verify that response is with body

PASS

Verify that the reposne has token generated and is not null

200 OK

200 OK

200 OK

PASS

Verify with the valid bill id :

972add20-6651-4e3f-a246-45b20f8ce086

400 Bad Request

400 Bad Request

400 Bad Request

PASS

Verify with invalid bill Id :

342add20-6651-4e3f-a246-45b20f8ce086

PASS

Enter valid Application number

1013-FSM-2023-03-17-004125

200 OK

200 OK

200 OK

PASS

Verify Application Status is Valid

PENDING_APPL_FEE_PAYMENT

200 OK

200 OK

200 OK

PASS

Enter invalid Application number

1234-FSM-2023-03-17-004125

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invalid username, valid password and validate

Username : QACW Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, invalid password and validate

Username : QACE Password: egov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invalid username, invalid password and validate

Username : QACAS Password: egov@456

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invaid Username address format and validate

Username : QACE Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Don't enter username , password and validate.

Username : NA Password: NA

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid tenent id

pg.citya

200 OK

Enter Invalid tenent id

pb.amruitsir

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that without basic auth , request fails

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Emp Assign Vehicle

POST

Verify that HTTP Status code is 200 OK

{ "RequestInfo": { "apiId": "Rainmaker", "authToken": "5b37bca9-c115-403d-a01c-20eb15d607ab", "userInfo": { "id": 5614, "uuid": "42675078-e37d-4701-bb2a-5eb3edb52de6", "userName": "QAEE", "name": "Das", "mobileNumber": "7878787812", "emailId": "", "locale": null, "type": "EMPLOYEE", "roles": [ { "name": "FSM Employee Application Editor", "code": "FSM_EDITOR_EMP", "tenantId": "pg.citya" } ], "active": true, "tenantId": "pg.citya", "permanentCity": "City A" }, "msgId": "1678445623548|en_IN", "plainAccessRequest": {} } }

{ "responseInfo": { "apiId": "Rainmaker", "ver": null, "ts": null, "resMsgId": "uief87324", "msgId": "1678445560406|en_IN", "status": "successful"

PASS

Verify that the response is valid JSON

PASS

Verify that response is with body

PASS

Verify that the reposne has token generated and is not null

PASS

Verify with the valid bill id :

972add20-6651-4e3f-a246-45b20f8ce086

200 OK

200 OK

200 OK

PASS

Verify with invalid bill Id :

342add20-6651-4e3f-a246-45b20f8ce086

400 Bad Request

400 Bad Request

400 Bad Request

PASS

Enter valid Application number

1013-FSM-2023-03-10-003997

200 OK

200 OK

200 OK

PASS

Enter invalid Application number

1234-FSM-2023-03-10-003997

400 Bad Request

400 Bad Request

400 Bad Request

PASS

Enter Valid Vehicle ID

1b71435b-ff13-47e2-a480-7fd1b866a336

200 OK

200 OK

200 OK

PASS

Enter invalid Vehicle ID

5b71435b-ff13-47e2-a480-7fd1b866a336

400 Bad Request

400 Bad Request

400 Bad Request

PASS

Enter Valid DSO ID

5454afaf-f646-4f04-aee6-86a1ce821404

200 OK

200 OK

200 OK

PASS

Enter invalid DSO ID

4454afaf-f646--aee6-86a1ce821404

400 Bad Request

400 Bad Request

400 Bad Request

PASS

Enter Valid createdDate

1678965772000

200 OK

200 OK

200 OK

PASS

Enter valid lastModifiedDate

1678965772000

200 OK

200 OK

200 OK

PASS

Enter Valid createdDate

16789657720123

400 Bad Request

400 Bad Request

400 Bad Request

PASS

Enter valid lastModifiedDate

16789657720121

400 Bad Request

400 Bad Request

400 Bad Request

PASS

Enter valid username, password and validate

Username : QAEE Password: eGov@123

200 OK

200 OK

200 OK

PASS

Enter invalid username, valid password and validate

Username : QACW Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, invalid password and validate

Username : QACE Password: egov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invalid username, invalid password and validate

Username : QACAS Password: egov@456

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invaid Username address format and validate

Username : QACE Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Don't enter username , password and validate.

Username : NA Password: NA

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid tenent id

pg.citya

200 OK

Enter Invalid tenent id

pb.amruitsir

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that without basic auth , request fails

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that Time Taken by Request is less than 2000 ms

Emp Update Trips

POST

Verify that HTTP Status code is 200 OK

{ "fsm": { "citizen": { "id": 15972, "uuid": "9b7247bf-63bc-49d1-a2f2-3bc4d9e6be2d", "userName": "e11ba3b5-35f0-4b43-82eb-eabb1be0f88e", "name": "Venu", "password": null, "mobileNumber": "9686652441", "tenantId": "pg", "salutation": null, "emailId": null, "altContactNumber": null, "pan": null, "aadhaarNumber": null, "permanentAddress": null, "permanentCity": null, "permanentPinCode": null, "correspondenceCity": null, "correspondencePinCode": null, "active": true, "dob": null, "pwdExpiryDate": 1659614260000, "locale": null, "type": "CITIZEN", "signature": null, "accountLocked": false, "roles": [ { "id": null, "name": "Citizen", "code": "CITIZEN", "tenantId": "pg" } ], "bloodGroup": null, "identificationMark": null, "photo": null, "createdBy": "5616", "createdDate": 1678444983000, "lastModifiedBy": "5616", "lastModifiedDate": 1678444983000, "otpReference": null, "gender": "MALE" }, "id": "bb1a58ca-dbf8-49ea-98c2-b137653e184d", "tenantId": "pg.citya", "applicationNo": "1013-FSM-2023-03-10-003997", "description": null, "accountId": "9b7247bf-63bc-49d1-a2f2-3bc4d9e6be2d", "additionalDetails": { "tripAmount": 930 }, "applicationStatus": "DSO_INPROGRESS", "source": "TELEPHONE", "sanitationtype": null, "propertyUsage": "RESIDENTIAL.INDEPENDENT_HOUSE", "vehicleType": null, "noOfTrips": 2, "vehicleCapacity": "1000", "status": null, "vehicleId": "1b71435b-ff13-47e2-a480-7fd1b866a336", "vehicle": null, "dsoId": "5454afaf-f646-4f04-aee6-86a1ce821404", "dso": null, "possibleServiceDate": 1678406400000, "pitDetail": { "type": null, "id": "81e80746-c7cb-45a1-a429-2928aff20d12", "tenantId": "pg.citya", "height": 0, "length": 0, "width": 0, "diameter": 0, "distanceFromRoad": 0, "auditDetails": { "createdBy": "0e01e2f7-c4e6-4d1b-9513-a3db669a21b0", "lastModifiedBy": "42675078-e37d-4701-bb2a-5eb3edb52de6", "createdTime": 1678444983296, "lastModifiedTime": 1678445622567 }, "additionalDetails": null }, "address": { "tenantId": "pg.citya", "doorNo": null, "plotNo": null, "id": "e734d52f-b3ed-4ee2-b0d2-f3fc485461a9", "landmark": null, "city": "City A", "district": null, "region": null, "state": null, "country": null, "pincode": "143002", "additionalDetails": "{\"tripAmount\": 930}", "auditDetails": { "createdBy": "0e01e2f7-c4e6-4d1b-9513-a3db669a21b0", "lastModifiedBy": "42675078-e37d-4701-bb2a-5eb3edb52de6", "createdTime": 1678444983296, "lastModifiedTime": 1678445622567 }, "buildingName": null, "street": null, "slumName": null, "locality": { "code": "JLC477", "name": "Gali No,. 2 To Gali No. 6", "label": "Locality", "latitude": null, "longitude": null, "children": [], "materializedPath": null }, "geoLocation": { "id": "1a6b169f-dc50-435b-8714-2006dcf970d3", "latitude": 0, "longitude": 0, "additionalDetails": null } }, "auditDetails": { "createdBy": "0e01e2f7-c4e6-4d1b-9513-a3db669a21b0", "lastModifiedBy": "42675078-e37d-4701-bb2a-5eb3edb52de6", "createdTime": 1678444983296, "lastModifiedTime": 1678445622567 }, "wasteCollected": null, "completedOn": 0, "advanceAmount": 100, "applicationType": "Adhoc Service", "oldApplicationNo": null, "paymentPreference": null }, "workflow": { "action": "UPDATE" }, "RequestInfo": { "apiId": "Rainmaker", "authToken": "5b37bca9-c115-403d-a01c-20eb15d607ab", "userInfo": { "id": 5614, "uuid": "42675078-e37d-4701-bb2a-5eb3edb52de6", "userName": "QAEE", "name": "Das", "mobileNumber": "7878787812", "emailId": "", "locale": null, "type": "EMPLOYEE", "roles": [ { "name": "FSM Employee Application Editor", "code": "FSM_EDITOR_EMP", "tenantId": "pg.citya" } ], "active": true, "tenantId": "pg.citya", "permanentCity": "City A" }, "msgId": "1678445709769|en_IN", "plainAccessRequest": {} } }

{ "responseInfo": { "apiId": "Rainmaker", "ver": null, "ts": null, "resMsgId": "uief87324", "msgId": "1678445560406|en_IN", "status": "successful"

PASS

Verify that the response is valid JSON

PASS

Verify that response is with body

PASS

Verify that the reposne has token generated and is not null

PASS

Verify with the valid bill id :

972add20-6651-4e3f-a246-45b20f8ce086

200 OK

200 OK

PASS

Verify with invalid bill Id :

342add20-6651-4e3f-a246-45b20f8ce086

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid Application ID

91c4de55-b373-4984-baac-a38cfcc5cf61

200 OK

200 OK

PASS

Enter invalid Application ID

34c4de55-b373-4984-a38cfcc5cf61

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid Account ID

3da8988e-ca3d-45f6-a386-21942bbd6323

200 OK

200 OK

PASS

Enter Invalid Account ID

91c4de55-b373-4984-baac-a38cfcc5cf61

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid Vehicle ID

1b71435b-ff13-47e2-a480-7fd1b866a336

200 OK

200 OK

PASS

Enter invalid Vehicle ID

5b71435b-ff13-47e2-a480-7fd1b866a336

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid DSO ID

5454afaf-f646-4f04-aee6-86a1ce821404

200 OK

200 OK

PASS

Enter invalid DSO ID

4454afaf-f646--aee6-86a1ce821404

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid Application number

1013-FSM-2023-03-10-003997

200 OK

200 OK

PASS

Enter invalid Application number

2345-FSM-2023-03-10-003997

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid createdDate

1678965772000

200 OK

200 OK

200 OK

PASS

Enter valid lastModifiedDate

1678965772000

200 OK

200 OK

200 OK

PASS

Enter Valid createdDate

16789657720123

400 Bad Request

400 Bad Request

400 Bad Request

PASS

Enter valid lastModifiedDate

16789657720121

400 Bad Request

400 Bad Request

400 Bad Request

PASS

Enter Valid PossibleServiceDate

1679031498000

200 OK

200 OK

200 OK

PASS

Enter Invalid PossibleServiceDate

1439031498000

400 Bad Request

400 Bad Request

400 Bad Request

PASS

Enter valid username, password and validate

Username : QACE Password: eGov@123

200 OK

200 OK

200 OK

PASS

Enter invalid username, valid password and validate

Username : QACW Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, invalid password and validate

Username : QACE Password: egov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invalid username, invalid password and validate

Username : QACAS Password: egov@456

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invaid Username address format and validate

Username : QACE Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Don't enter username , password and validate.

Username : NA Password: NA

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid tenent id

pg.citya

200 OK

Enter Invalid tenent id

pb.amruitsir

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that without basic auth , request fails

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Emp Complete Request

POST

Verify that HTTP Status code is 200 OK

{ "fsm": { "citizen": { "id": 15972, "uuid": "9b7247bf-63bc-49d1-a2f2-3bc4d9e6be2d", "userName": "e11ba3b5-35f0-4b43-82eb-eabb1be0f88e", "name": "Venu", "password": null, "mobileNumber": "9686652441", "tenantId": "pg", "salutation": null, "emailId": null, "altContactNumber": null, "pan": null, "aadhaarNumber": null, "permanentAddress": null, "permanentCity": null, "permanentPinCode": null, "correspondenceCity": null, "correspondencePinCode": null, "active": true, "dob": null, "pwdExpiryDate": 1659614260000, "locale": null, "type": "CITIZEN", "signature": null, "accountLocked": false, "roles": [ { "id": null, "name": "Citizen", "code": "CITIZEN", "tenantId": "pg" } ], "bloodGroup": null, "identificationMark": null, "photo": null, "createdBy": "5616", "createdDate": 1678444983000, "lastModifiedBy": "5616", "lastModifiedDate": 1678444983000, "otpReference": null, "gender": "MALE" }, "id": "bb1a58ca-dbf8-49ea-98c2-b137653e184d", "tenantId": "pg.citya", "applicationNo": "1013-FSM-2023-03-10-003997", "description": null, "accountId": "9b7247bf-63bc-49d1-a2f2-3bc4d9e6be2d", "additionalDetails": { "tripAmount": 930, "receivedPayment": "PAYED_IN_CASH" }, "applicationStatus": "DSO_INPROGRESS", "source": "TELEPHONE", "sanitationtype": null, "propertyUsage": "RESIDENTIAL.INDEPENDENT_HOUSE", "vehicleType": null, "noOfTrips": 2, "vehicleCapacity": "1000", "status": null, "vehicleId": "39b6e3ae-0192-4609-bcbd-1ad199f0e6ac", "vehicle": null, "dsoId": "327b3f5e-dcea-40a3-b698-22ecd7b7997e", "dso": null, "possibleServiceDate": 1678406400000, "pitDetail": { "type": null, "id": "81e80746-c7cb-45a1-a429-2928aff20d12", "tenantId": "pg.citya", "height": 0, "length": 0, "width": 0, "diameter": 0, "distanceFromRoad": 0, "auditDetails": { "createdBy": "0e01e2f7-c4e6-4d1b-9513-a3db669a21b0", "lastModifiedBy": "42675078-e37d-4701-bb2a-5eb3edb52de6", "createdTime": 1678444983296, "lastModifiedTime": 1678445990014 }, "additionalDetails": null }, "address": { "tenantId": "pg.citya", "doorNo": null, "plotNo": null, "id": "e734d52f-b3ed-4ee2-b0d2-f3fc485461a9", "landmark": null, "city": "City A", "district": null, "region": null, "state": null, "country": null, "pincode": "143002", "additionalDetails": "{\"tripAmount\": 930, \"receivedPayment\": \"PAYED_IN_CASH\"}", "auditDetails": { "createdBy": "0e01e2f7-c4e6-4d1b-9513-a3db669a21b0", "lastModifiedBy": "42675078-e37d-4701-bb2a-5eb3edb52de6", "createdTime": 1678444983296, "lastModifiedTime": 1678445990014 }, "buildingName": null, "street": null, "slumName": null, "locality": { "code": "JLC477", "name": "Gali No,. 2 To Gali No. 6", "label": "Locality", "latitude": null, "longitude": null, "children": [], "materializedPath": null }, "geoLocation": { "id": "1a6b169f-dc50-435b-8714-2006dcf970d3", "latitude": 0, "longitude": 0, "additionalDetails": null } }, "auditDetails": { "createdBy": "0e01e2f7-c4e6-4d1b-9513-a3db669a21b0", "lastModifiedBy": "42675078-e37d-4701-bb2a-5eb3edb52de6", "createdTime": 1678444983296, "lastModifiedTime": 1678445990014 }, "wasteCollected": "1000", "completedOn": 1678406400000, "advanceAmount": 100, "applicationType": "Adhoc Service", "oldApplicationNo": null, "paymentPreference": null }, "workflow": { "action": "COMPLETED" }, "RequestInfo": { "apiId": "Rainmaker", "authToken": "933fb74e-7b98-4587-aca1-f05122fb998b", "userInfo": { "id": 5614, "uuid": "42675078-e37d-4701-bb2a-5eb3edb52de6", "userName": "QAEE", "name": "Das", "mobileNumber": "7878787812", "emailId": "", "locale": null, "type": "EMPLOYEE", "roles": [ { "name": "FSM Employee Application Editor", "code": "FSM_EDITOR_EMP", "tenantId": "pg.citya" } ], "active": true, "tenantId": "pg.citya", "permanentCity": "City A" }, "msgId": "1678446002729|en_IN", "plainAccessRequest": {} } }

{ "responseInfo": { "apiId": "Rainmaker", "ver": null, "ts": null, "resMsgId": "uief87324", "msgId": "1678445560406|en_IN", "status": "successful"

PASS

Verify that the response is valid JSON

PASS

Verify that response is with body

PASS

Verify that the reposne has token generated and is not null

PASS

Verify with the valid bill id :

972add20-6651-4e3f-a246-45b20f8ce086

200 OK

200 OK

PASS

Verify with invalid bill Id :

342add20-6651-4e3f-a246-45b20f8ce086

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid Application ID

91c4de55-b373-4984-baac-a38cfcc5cf61

200 OK

200 OK

PASS

Enter invalid Application ID

34c4de55-b373-4984-a38cfcc5cf61

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid Account ID

3da8988e-ca3d-45f6-a386-21942bbd6323

200 OK

200 OK

PASS

Enter Invalid Account ID

91c4de55-b373-4984-baac-a38cfcc5cf61

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid Vehicle ID

1b71435b-ff13-47e2-a480-7fd1b866a336

200 OK

200 OK

PASS

Enter invalid Vehicle ID

5b71435b-ff13-47e2-a480-7fd1b866a336

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid DSO ID

5454afaf-f646-4f04-aee6-86a1ce821404

200 OK

200 OK

PASS

Enter invalid DSO ID

4454afaf-f646--aee6-86a1ce821404

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter Valid PossibleServiceDate

1679031498000

200 OK

200 OK

PASS

Enter Invalid PossibleServiceDate

1439031498000

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid Application number

1013-FSM-2023-03-10-003997

200 OK

200 OK

PASS

Enter invalid Application number

2345-FSM-2023-03-10-003997

400 Bad Request

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, password and validate

Username : QACE Password: eGov@123

200 OK

200 OK

200 OK

PASS

Enter invalid username, valid password and validate

Username : QACW Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid username, invalid password and validate

Username : QACE Password: egov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invalid username, invalid password and validate

Username : QACAS Password: egov@456

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter invaid Username address format and validate

Username : QACE Password: eGov@123

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Don't enter username , password and validate.

Username : NA Password: NA

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Enter valid tenent id

pg.citya

200 OK

Enter Invalid tenent id

pb.amruitsir

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Verify that without basic auth , request fails

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

400 Bad Request

{ "error": "invalid_request", "error_description": "Invalid login credentials" }

PASS

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.