Spokalyالإنجليزية تبدأ من السمع
مقابلات العمل · مختبِر برمجيات (تستر) · متوسّط

مقابلة مختبِر برمجيات: حالات اختبار لصفحة تسجيل الدخولQA Tester: Test Cases for a Login Page

  • Samar
  • Mazen
0:00 / 5:13
الشريط الملوّن مقسوم حسب المتكلّم، فترى من يتحدّث ومتى.

النص

  1. Samar
    Hi Mazen, sorry for the two-minute delay. The plan is simple: I will share my screen, and then I will ask you to design some test cases.
  2. Mazen
    No problem at all. I can see your screen clearly. It looks like a login page.
  3. Samar
    Yes. Today I want to see how you think, not only what you know. I will ask you to design test cases for this page.
  4. Mazen
    Sure. Before I start, may I ask what the page has?
  5. Samar
    Good question. There is an email field, a password field, a Log in button, and a Forgot password link. The rule says the password must have between eight and twenty characters.
  6. Mazen
    Thank you. I will start with the normal case, and then I will move to the cases that can break.
  7. Samar
    Go ahead. What is your first test case?
  8. Mazen
    The first one should be a valid login. I enter a correct email and a correct password, I click Log in, and I should go to the account page.
  9. Samar
    Good. And what would you test next?
  10. Mazen
    I would test a wrong password with a correct email. The page should show a clear message, and it should not let me in. Then I would try an empty email and an empty password.
  11. Samar
    What would you expect for the empty fields?
  12. Mazen
    I would expect a message next to each empty field. If the page only says error, the user will not know what to fix.
  13. Samar
    Now think about the password rule. It must have eight to twenty characters. Which lengths would you try?
  14. Mazen
    I would try the boundary values, the edges of the rule. Seven characters, which is one too short. Eight, which is the smallest allowed. Twenty, which is the longest allowed. And twenty-one, which is one too long.
  15. Samar
    Why those four, and not, for example, fifteen?
  16. Mazen
    Because problems often appear at the edges. If the rule is written with a small mistake, fifteen will pass, but seven or twenty-one will show it.
  17. Samar
    That is a good reason. Now, what if a user types spaces at the end of the email?
  18. Mazen
    I would test it. I think the page should accept it, but I am not sure. The requirement does not say. I would ask the product owner, and then I would write the answer in the test case.
  19. Samar
    Good. Here is a harder one. What happens after five wrong passwords in a row?
  20. Mazen
    I do not know yet. The rule you showed me does not say. I would ask what the team wants, for example a short wait or a locked account, and then I would write test cases for that rule.
  21. Samar
    I like that you did not guess. Now look at the Forgot password link. How would you test it?
  22. Mazen
    First I would click it and check that it opens the right page. Then I would try an email that has an account, and an email that has no account. For both, I would read the message on the screen as a user would, and I would ask myself if it is clear.
  23. Samar
    Thank you. Now a few questions about you. You have two years of experience. Where do you feel strong?
  24. Mazen
    I am good at writing clear test cases, and I like to ask questions before I test. My weak point is explaining results to people who are not testers. I use too many technical words.
  25. Samar
    What are you doing about that?
  26. Mazen
    Every week I explain one bug to a friend who is not a tester, in simple words. It is slow, but I improve each time.
  27. Samar
    Good. Tell me about a time a test case you wrote was wrong.
  28. Mazen
    Last year I wrote a case for a discount code. I expected ten percent, but the rule was ten percent only for orders above a certain amount. The test failed, and I thought it was a bug. I asked the analyst, and she explained the rule. After that, I changed my case, and now I read the rule again before I write the expected result.
  29. Samar
    That is honest, and you learned from it.
  30. Mazen
    Thank you. May I ask how the team writes test cases? In a document, or in a tool?
  31. Samar
    In a shared table. Each case has a title, steps, and the expected result. A second person reads every case before we run it.
  32. Mazen
    That sounds useful. And what would my first task be?
  33. Samar
    You would write cases for a new sign-up page, and a senior tester would review them with you.
  34. Mazen
    That sounds good to me. Thank you for the clear task today.
  35. Samar
    Thank you, Mazen. We will write to you by next Wednesday.
  36. Mazen
    Thank you. Goodbye.