مقابلات العمل5:13
مقابلات العمل · مختبِر برمجيات (تستر) · متوسّط
مقابلة مختبِر برمجيات: حالات اختبار لصفحة تسجيل الدخولQA Tester: Test Cases for a Login Page
- Samar
- Mazen
0:00 / 5:13
النص
- SamarHi 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.
- MazenNo problem at all. I can see your screen clearly. It looks like a login page.
- SamarYes. Today I want to see how you think, not only what you know. I will ask you to design test cases for this page.
- MazenSure. Before I start, may I ask what the page has?
- SamarGood 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.
- MazenThank you. I will start with the normal case, and then I will move to the cases that can break.
- SamarGo ahead. What is your first test case?
- MazenThe 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.
- SamarGood. And what would you test next?
- MazenI 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.
- SamarWhat would you expect for the empty fields?
- MazenI would expect a message next to each empty field. If the page only says error, the user will not know what to fix.
- SamarNow think about the password rule. It must have eight to twenty characters. Which lengths would you try?
- MazenI 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.
- SamarWhy those four, and not, for example, fifteen?
- MazenBecause 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.
- SamarThat is a good reason. Now, what if a user types spaces at the end of the email?
- MazenI 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.
- SamarGood. Here is a harder one. What happens after five wrong passwords in a row?
- MazenI 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.
- SamarI like that you did not guess. Now look at the Forgot password link. How would you test it?
- MazenFirst 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.
- SamarThank you. Now a few questions about you. You have two years of experience. Where do you feel strong?
- MazenI 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.
- SamarWhat are you doing about that?
- MazenEvery week I explain one bug to a friend who is not a tester, in simple words. It is slow, but I improve each time.
- SamarGood. Tell me about a time a test case you wrote was wrong.
- MazenLast 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.
- SamarThat is honest, and you learned from it.
- MazenThank you. May I ask how the team writes test cases? In a document, or in a tool?
- SamarIn a shared table. Each case has a title, steps, and the expected result. A second person reads every case before we run it.
- MazenThat sounds useful. And what would my first task be?
- SamarYou would write cases for a new sign-up page, and a senior tester would review them with you.
- MazenThat sounds good to me. Thank you for the clear task today.
- SamarThank you, Mazen. We will write to you by next Wednesday.
- MazenThank you. Goodbye.