API_Python_QA_BEVAN - theheapdump/kite-webapp GitHub Wiki

  1. Exception Trace should not be captured by interceptor
  2. DB corrupt / state corrupt
  3. It has to automated - No Manual
  4. Python
  5. Take an API -> (A) . All UI Features - > capture backend call from browser {request body + URI }

PATH_TB_UI_SIGNIN = "/tb/ui/v1/users/login"; - body 4th

PATH_TB_UI_SIGNUP = "/tb/ui/v1/users/register"; - body 4th

PATH_TB_UI_RESEND_OTP = "/tb/ui/v1/users/emailotp"; - body 5th

PATH_TB_UI_CONSUME_OTP = "/tb/ui/v1/users/otp"; - body 5th

PATH_TB_UI_RESET_PASSWD = "/tb/ui/v1/users/reset"; 6th

PATH_TB_UI_OTP_VERIFY = "/tb/ui/v1/users/verify"; 6th

PATH_TB_UI_RESET_PASSWORD = "/tb/ui/v1/users/passwd"; 7th

PATH_TB_UI_PROFILE = "/tb/ui/v1/actions/users/profile"; 7th

PATH_TB_UI_BROKER = "/tb/ui/v1/actions/users/broker"; 8th

PATH_TB_UI_LOGOUT = "/tb/ui/v1/actions/users/logout"; - 8th

---------------- 2 days buffer --------------

(B) Figure out request body {POST / PUT} / query param {GET} as applicable for all above

(C) Take each API ->

(D) Make all possible cases of request body

(E) For each API :

tetscase1 = { } tetscase2 = { } tetscase3 = { }

tetscase .. n = { }

(F) Execute all test cases for all APIs

GOAL -> should not get 500 ISE in any test case

-> all tests should either GET 401 / 403 / 405 / 200 OK (STATUS : SUCCESS) / 200 OK(STATUS : ERROR)

[{ "ref": "TRADMIN1234", "phnNum": 9736826282, "email": "[email protected]", "passwd": "asdfgh", "cnfmPasswd": "asdfgh" },

{ "ref": "TRADMIN1234", "phnNum": 9736826282, "email": "[email protected]", "passwd": "asdfgh", "cnfmPasswd": "asdfgh" }, { "ref": "TRADMIN1234", "phnNum": 9736826282, "email": "[email protected]", "passwd": "asdfgh", "cnfmPasswd": "asdfgh" }]

for each in array -> execute test case : check 200 OK status not NULL and one of SUCCESS / ERROR
status_message not NULL