Job interviews4:24
Job interviews · QA / software tester · Intermediate
QA Tester: Explaining a Test Script and a Logمقابلة مختبِر برمجيات: شرح سكريبت اختبار وقراءة سجل
- Hatem
- Reem
0:00 / 4:24
Transcript
- HatemHi, Reem. Can you hear me, and can you see the script on my screen?
- ReemYes, I can hear you, and I can see the script. Thank you for the call.
- HatemI am Hatem, from the automation team. First I want to hear about your experience, and then we will look at this short script together.
- ReemSure. I have worked as a manual tester for four years. I have tested web and mobile apps for an online school.
- HatemHave you written any automated tests before?
- ReemYes, a few. I have written about ten small checks for a login page, and I have run them every night for three months.
- HatemWhat have you learned from that?
- ReemI have learned that a good check is short and has one clear purpose. I have also learned to keep the names clear.
- HatemGood. Now look at the script. Can you explain it in plain words?
- ReemOf course. First, the script opens the login page. Then it types a user name and a password and clicks the button. At the end it checks that the welcome message is on the page.
- HatemWhat happens if the message is not there?
- ReemThe test stops and says failed. It also writes a line in the log, so we can see which step went wrong.
- HatemHere is the log of the last run. Please read the steps to me.
- ReemStep one, open the page, passed in about one second. Step two, type the name, passed. Step three, click the button, passed. Step four failed: the message was not found after five seconds.
- HatemWhy do you think step four failed?
- ReemI am not sure yet. I have seen two reasons before. Maybe the message is really missing, or maybe the page was slow and the test looked too early.
- HatemHow would you check which one it is?
- ReemFirst I will open the page by hand and do the same steps. If I see the message, then it is probably not missing, and the test may need a better wait. I will also check how long the message takes to appear.
- HatemWhat do you mean by a better wait?
- ReemInstead of waiting a fixed time, the test can wait until the message appears, with a maximum time, for example ten seconds.
- HatemHave you used that idea before?
- ReemYes, I have. I have changed a fixed wait to a smarter wait in two of my checks, and the failures from slow pages have stopped.
- HatemTell me about a time an automated test gave you a wrong result.
- ReemLast spring, one of my night checks failed every Monday. I thought the app was broken, so I opened a report. Then I looked at the log and saw the date of the test data. The data was old on Mondays, because a weekend job had not finished. I told the team, we moved the job earlier, and the Monday failures stopped. Since then, I have always checked the data first.
- HatemWhat did you do to stop it happening again?
- ReemI added one line to my notes: check the test data before you blame the app. I have also asked the team to tell me when a data job changes.
- HatemHave you worked with developers on test code?
- ReemYes, I have. I have asked a developer to review my checks, and he has shown me how to make them shorter.
- HatemWhat do you want to improve?
- ReemI want to write clearer messages when a test fails. Sometimes I write a short message, and it is not enough for other people.
- HatemHow do you write a test summary after a run?
- ReemI write three short lines: what I ran, what failed, and what I will do next.
- HatemDo you have any questions for me?
- ReemYes. How does your team decide which manual tests to automate first?
- HatemWe start with the checks that we repeat every day and that are easy to describe, like a login page.
- ReemThat makes sense. Thank you for the call, Hatem.