Test Cases
Test Cases

Test Cases

Published
Published August 11, 2022
Min Read
10 min read
Author
Auf
 
 
The best techniques for learning is sharing what you have learned.
 
disclaimer: ini adalah cara gue cerita

Intro

Sebelum bahas ke User Acceptance Test (UAT) lu harus ngerti dulu gimana mahamin konsep logika true positive, true negative, false positive dan false negative.
notion image
penjelasan singkatnya bisa dibaca pada tabel di bawah ini
Positive
Negative
TRUE
Skenario: benar, hasil sesuai Login: username & password benar Hasil: berhasil login dan masuk ke dashboard
Skenario: benar, hasil tidak sesuai Login: username & password benar Hasil: tidak berhasil login
FALSE
Skenario: salah, hasil sesuai Login: username/password salah Hasil: tidak berhasil login dengan output sesuai
Skenario: salah, hasil tidak sesuai Login: username/password salah Hasil: berhasil login dengan output tidak sesuai
Klo true positif dan false positif jika hasilnya sesuai maka pada UAT nanti hasil test result-nya akan di-accept, kebalikannya klo true negatif dan false negatif maka di UAT hasil test result-nya akan di-reject.
Apa itu UAT? aktivitas pengujian yang tujuannya untuk tahu apakah produk yang sedang/telah dikembangkan sesuai dengan kebutuhan/requirements user ato nggak. Ya intinya gitulah wkwkwkwk

Contoh Tabel UAT

Contoh tabel UAT versi gue
 

Test Case

Disini gue bakal nulisin test objective apa aja yang bakal dilakuin dalam suatu test based on requirementnya.

Example Test Case

Misal klo ada case sign up kaya di bawah ini:
  • Password must be at least 6 characters
  • Password must include uppercase and lowercase letters
  • Password must be alphanumeric
  • Password must include at least one special character
kira-kira apa aja test objective-nya?
klo versi gue gini si..
  • Verify registration using valid data [leave phone number empty]
  • Verify registration using valid data [Enter a valid phone number empty]
  • Verify registration while leaving username field empty
  • Verify registration while leaving password field empty
  • Verify registration while leaving email field empty
  • Verify registration using very short username "hi"
  • Verify registration using an already used username
  • Verify registration using a non-latin username [arabic or russian]
  • Verify registration using a short password [Ab12#]
  • Verify registration using a password that doesn't include lowercase letters [ABC12#]
  • Verify registration using a password that doesn't include uppercase letters [abc12#]
  • Verify registration using a password that doesn't include any letters [12312#]
  • Verify registration using a password that doesn't include any numbers [Abcab#]
  • Verify registration using a password that doesn't include any special characters [Abc123]
  • Verify registration using an invalid format in the email filed
  • Verify registration using an already used email address
  • Verify that the phone number field only accepts numbers [it doesn't accept special characters or letters]
  • Verify registration using a very short phone number [1234]
hmmmm banyak ye 😃

Test Case Sign Up Facebook

Klo form sign up-nya facebook gini kira2 test objectivenya apa aja cuy?
notion image
klo kata gue kira2 gini lah
  • Verify registration using valid data [leave phone number empty]
  • Verify registration using valid data [Enter a valid phone number empty]
  • Verify registration while leaving username field empty
  • Verify registration while leaving password field empty
  • Verify registration while leaving email field empty
  • Verify registration using very short username "hi"
  • Verify registration using an already used username
  • Verify registration using a non-latin username [arabic or russian]
  • Verify registration using a short password [Ab12#]
  • Verify registration using a password that doesn't include lowercase letters [ABC12#]
  • Verify registration using a password that doesn't include uppercase letters [abc12#]
  • Verify registration using a password that doesn't include any letters [12312#]
  • Verify registration using a password that doesn't include any numbers [Abcab#]
  • Verify registration using a password that doesn't include any special characters [Abc123]
  • Verify registration using an invalid format in the email filed
  • Verify registration using an already used email address
 

Test Case Log in Facebook

Next markicob bikin test case buat loginnya
notion image
gini test casenya menurut gue
  • Verify registration using valid data [leave phone number empty]
  • Verify registration using valid data [Enter a valid phone number empty]
  • Verify registration while leaving username field empty
  • Verify registration while leaving password field empty
  • Verify registration while leaving email field empty
  • Verify registration using very short username "hi"
  • Verify registration using an already used username
  • Verify registration using a non-latin username [arabic or russian]
  • Verify registration using a short password [Ab12#]
  • Verify registration using a password that doesn't include lowercase letters [ABC12#]
  • Verify registration using a password that doesn't include uppercase letters [abc12#]
  • Verify registration using a password that doesn't include any letters [12312#]
  • Verify registration using a password that doesn't include any numbers [Abcab#]
  • Verify registration using a password that doesn't include any special characters [Abc123]
  • Verify registration using an invalid format in the email filed
  • Verify registration using an already used email address

Conclusion

Developer UX is important for promoting and marketing your work, which can in turn lead to very real consequences, as getting noticed for your open source contributions is definitely one of the best ways to gain notoriety and land big job opportunities as a software engineer.
I hope some of the techniques I’ve covered help you to promote your open source projects. If you’ve found this article useful and end up creating a snazzy screenshot or animated demo, add a comment linking to your project and let me know!
And as always, don’t forget to spread the ❤️… in the form of beautiful coding demos, of course!
 

 
 
👋🏾
Hello Readers, I’m still tryna to get job in QA role, if you have any information job vacancies about this file please contact me. You can check my resume here