You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By specification, 2xx dan 3xx itu kan bukan error, 4xx itu kalau user error, 5xx itu kalau server error.
Kalau user "intentionaly" pengen test error 404 gimana ?
Atau kalau user pengen test REST delete yang return harus 204 gimana ?
Dimana setia value-value diatas semuanya bisa menjadi list atau range
Exact value : sebuah angka yang pasti, contoh "200", yang berarti hanya nilai 200 yang valid.
List value : beberapa angka yang pasti, contoh "200,204", yang berarti hanya nilai 200 dan 204 yang valid.
Value range : sebuah kumpulan angka, contoh "200-300", yang berarti hanya nilai antara 200, 201, 202,...,300 yang valid.
Value range lessthan : sebuah angka lebih kecil dari. Contoh "-200" . yang berarti hanya nilai lebih kecil dari 200 inklusif yang valid.
Value range greaterthen : sebiah angka lebih besar dari. Contoh "300-". yang berarti hanya nilai lebih besar dari 300 inklusif yang valid.
Semua ini bisa di kombinasikan dalam sebuah list dipisah koma ',' .
Untuk responseCode, responseTimeSec, responseSize ini semua sifatnya 1..* didalam expect
Boleh ada minimal 1. Kalau expect nya kosong, maka json nya gak valid.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Sekarang alert itu formatnya begini:
By specification, 2xx dan 3xx itu kan bukan error, 4xx itu kalau user error, 5xx itu kalau server error.
Kalau user "intentionaly" pengen test error 404 gimana ?
Atau kalau user pengen test REST delete yang return harus 204 gimana ?
Gw saran:
Dimana setia value-value diatas semuanya bisa menjadi list atau range
Semua ini bisa di kombinasikan dalam sebuah list dipisah koma ',' .
Untuk
responseCode
,responseTimeSec
,responseSize
ini semua sifatnya 1..* didalamexpect
Boleh ada minimal 1. Kalau
expect
nya kosong, maka json nya gak valid.Beta Was this translation helpful? Give feedback.
All reactions