Test Automation Associate Interview Questions

3,425 test automation associate interview questions shared by candidates

1. Access modifiers in java with practical answer and use 2. Abstract and interface practical use 3. Collections questions and its practical use in current framework 4. Selenium question on xpath and find dynamic xpath of cricket score board of india flag 5. Find particular element position from the Table in selenium 6. Program on Java - a) Print city pyramid b) Find the unique languages name from the array c) Find the second largest element of the array d) Find the sum of the element which have count 1 in array
avatar

Test Automation Engineer

Interviewed at Globant

3.6
Jul 30, 2021

1. Access modifiers in java with practical answer and use 2. Abstract and interface practical use 3. Collections questions and its practical use in current framework 4. Selenium question on xpath and find dynamic xpath of cricket score board of india flag 5. Find particular element position from the Table in selenium 6. Program on Java - a) Print city pyramid b) Find the unique languages name from the array c) Find the second largest element of the array d) Find the sum of the element which have count 1 in array

I was asked some questions like below. Two or 3 questions were incorrect. Panel is inexperienced in automation even if you tell them the right answer they want to hear what they know. 1. How would you handle dynamic Xpath ? Xpath was as following: '//div[@ID='abc-64613216543'/div[1]/div[1]/input[1]']'. in this xpath they said ID is changing every time page gets refreshed. My Answer: Xpath is not changing because except nodes only id is changing so Xpath location would remain same. so in this question I only need to find that changing id's numeric portion. So I told them first of all I would find a parent tag or xpath then will get id of the first child's tag. It is obvious that there will be something above this xpath. so I wrote:List<WebElement> le = driver.findElement(By.id("")).findElements(By.tagName("div")); String xid = le.get(0).getAttribute("ID"); String xpath = "'//div[@ID='"+xid+"'/div[1]/div[1]/input[1]'"; This can solve their query very well. But they were not able to understand becauase they might have different way to do that. 2. A date calendar was given and i was suppose to set value in it. But value field is label which is not editable. so they asked me how many times I would click on the calander's month/year button to set the date. Date was: 1-aug-2016 and I was suppose to set 30-July-2016. I told them this kind of popup is javascript/jquery popup and we need not to click on any button inside that popup because in every month/year days location get changed. even if I set the required date using mouse click then this approach will fail in future. So I told them to set value attribute = 30-July-2016 of that tag. But they keep on saying that label control is not editable. We can do anything with a website with the help of jsexecutor if control is readonly = true, we can set readonly= false. I did it myself hundred of time and it works. 3. Asked some sql queries, like follow select, delete, truncate, update. 4. Asked me difference between truncate and delete ans: 1. Truncate is faster than delete 2. Truncate deletes all rows from a table. 3. Truncate need not any where close. 4. Truncate reset the table. further question on this: What is the main difference in these two commands ? I was looking at the interviewer face. all these difference are the main but they were expecting some other reason which they know. and they they asked if there is a primary key on this table then what will happen with the id table. I explained: IF there is a primary key and we delete a row then user can enter same id number but if there is an identity set with the primary key then if we delete a row then next new id value will be deleted id + 1. But they again don't under stand. 5. What frame work are you using: and: Module based + data driven. I explained them the structure like: Module libraries. Common functions: field highlight, db interaction, locator etc Script feeding: properties file, text, excel or sql db etc. Test output: testng report. then one of them asked why are you using common function ? I was again looking at their faces with open jaws. 6. Analytical questions: what is the center of the table where we were sitting ? It was round table and anybody can tell where it is. You have 8 balls which is the lightest one ?find in two attempts this question might need more time to solve I did not answer it in 2 mins. but when I sit in my car I had the answer. sometime we need time to think. this is the question which I did not answer except all.
avatar

Senior Automation Tester

Interviewed at BD

3.8
Aug 3, 2016

I was asked some questions like below. Two or 3 questions were incorrect. Panel is inexperienced in automation even if you tell them the right answer they want to hear what they know. 1. How would you handle dynamic Xpath ? Xpath was as following: '//div[@ID='abc-64613216543'/div[1]/div[1]/input[1]']'. in this xpath they said ID is changing every time page gets refreshed. My Answer: Xpath is not changing because except nodes only id is changing so Xpath location would remain same. so in this question I only need to find that changing id's numeric portion. So I told them first of all I would find a parent tag or xpath then will get id of the first child's tag. It is obvious that there will be something above this xpath. so I wrote:List<WebElement> le = driver.findElement(By.id("")).findElements(By.tagName("div")); String xid = le.get(0).getAttribute("ID"); String xpath = "'//div[@ID='"+xid+"'/div[1]/div[1]/input[1]'"; This can solve their query very well. But they were not able to understand becauase they might have different way to do that. 2. A date calendar was given and i was suppose to set value in it. But value field is label which is not editable. so they asked me how many times I would click on the calander's month/year button to set the date. Date was: 1-aug-2016 and I was suppose to set 30-July-2016. I told them this kind of popup is javascript/jquery popup and we need not to click on any button inside that popup because in every month/year days location get changed. even if I set the required date using mouse click then this approach will fail in future. So I told them to set value attribute = 30-July-2016 of that tag. But they keep on saying that label control is not editable. We can do anything with a website with the help of jsexecutor if control is readonly = true, we can set readonly= false. I did it myself hundred of time and it works. 3. Asked some sql queries, like follow select, delete, truncate, update. 4. Asked me difference between truncate and delete ans: 1. Truncate is faster than delete 2. Truncate deletes all rows from a table. 3. Truncate need not any where close. 4. Truncate reset the table. further question on this: What is the main difference in these two commands ? I was looking at the interviewer face. all these difference are the main but they were expecting some other reason which they know. and they they asked if there is a primary key on this table then what will happen with the id table. I explained: IF there is a primary key and we delete a row then user can enter same id number but if there is an identity set with the primary key then if we delete a row then next new id value will be deleted id + 1. But they again don't under stand. 5. What frame work are you using: and: Module based + data driven. I explained them the structure like: Module libraries. Common functions: field highlight, db interaction, locator etc Script feeding: properties file, text, excel or sql db etc. Test output: testng report. then one of them asked why are you using common function ? I was again looking at their faces with open jaws. 6. Analytical questions: what is the center of the table where we were sitting ? It was round table and anybody can tell where it is. You have 8 balls which is the lightest one ?find in two attempts this question might need more time to solve I did not answer it in 2 mins. but when I sit in my car I had the answer. sometime we need time to think. this is the question which I did not answer except all.

Technical Aptitude -- all manual testing and java questions,no need to prepare the test is very easy. They select 7/10 candidates from every batch of aptitude round. 2] Technical interview - dynamic keyword in C#, run time and compiletime polymorphism, Dictionary collection using foreach block to iterate values in dictionary, if there are 2 interfaces having same method and one class implements it what will happen. Abstract class. Insert query for Employee table with name and salary. Webservice vs API. Write a program to printthe below pattern: * * * * * * * * * *
avatar

Test Automation Engineer

Interviewed at Fiserv

3
Feb 12, 2018

Technical Aptitude -- all manual testing and java questions,no need to prepare the test is very easy. They select 7/10 candidates from every batch of aptitude round. 2] Technical interview - dynamic keyword in C#, run time and compiletime polymorphism, Dictionary collection using foreach block to iterate values in dictionary, if there are 2 interfaces having same method and one class implements it what will happen. Abstract class. Insert query for Employee table with name and salary. Webservice vs API. Write a program to printthe below pattern: * * * * * * * * * *

Refer the commonly asked questions for JAVA and a Selenium from any of the website. Even 2014 internet content will be sufficient to crack the technical interviews. No need to get yourself updated with latest and emerging technologies.
avatar

Test Automation Engineer

Interviewed at Barclays

4
Feb 1, 2018

Refer the commonly asked questions for JAVA and a Selenium from any of the website. Even 2014 internet content will be sufficient to crack the technical interviews. No need to get yourself updated with latest and emerging technologies.

Viewing 461 - 470 interview questions

Glassdoor has 3,425 interview questions and reports from Test automation associate interviews. Prepare for your interview. Get hired. Love your job.