First Round Introduction 1) Stepping Numbers 2) Define test strategy and test plan 3) Design test cases for desktop cloud application Second round 1) More questions on my project as I worked on automation framework development for few months. In depth questions were asked as I explained one of my projects in detail. 2) Design test cases and automation framework for postpaid customers. 3) Amazon Leadership questions. Third round 1) More questions on my projects(In depth). 2) Define test cases for product recommendation on amazon checkout page 3) Find the elements in a sorted row wise and column wise matrix. Fourth Round 1) Introduction 2) Count the number of islands 3) Max Increasing path in matrix. 4) Leadership principle questions Fifth round 1) Introduction and questions on my project 2) Similar to trapping rain water problem 3) Evaluate the expression 4) Amazon Leadership principle questions Time complexity and optimization were asked for all the above problems.
Sdet Interview Questions
4,405 sdet interview questions shared by candidates
clone a linked list merge sort a linked list
Mostly about the technical questions.
Online assignment with two coding questions. Online assignment with two coding questions.
tell us about yourself first
1. Cp questions 2. Design an cache mechanism
1. Tell me about your day to day activities. 2. Write code to calculate the factorial of any input number E.g n!=n x (n-1) x (n-2) x.... x 1 5!=5x4x3x2x1 = 120 Solved it using integer. Then asked me do the factorial of 100. The result was 0. Ques: Do you know why it is 0? Ans: I solved it using int. Factorial of 100 is more than max value of int. Need to use different data type like float, double. 3. /* You are given two integer lists nums1 and nums2. Merge nums1 and nums2 into a single list sorted in descending order. list1=[3,9,5] list2 = [6,1,4] expected o/p = [9,6,5,4,3,1] Solved it using list.addAll() and then Collections.reverseOrder(). Follow up: Is there a better way to add the values in a list? Yes, taking an array and then put everything from array to the list. Follow up: If you have duplicates and I want to remove the duplicates, and then sort in descending order, how can I do that? Ans: I will use a TreeSet. Add all elements of the lists to set. And then reverse it using Collections.reverse() method. 4. Write a SQL query for a report that provides the following information for each person in the Person table, regardless if there is an address for each of those people: FirstName, LastName, City, State Person Table: +-------------+----------------+ | Column Name | Type | +-------------+----------------+ | PersonId | int | | FirstName | varchar | | LastName | varchar | +-------------+-----------------+ PersonId is the primary key column for this table. Address Table: +-------------+----------------+ | Column Name | Type | +-------------+----------------+ | AddressId | int | | PersonId | int | | City | varchar | | State | varchar | +-------------+---------+ AddressId is the primary key column for this table. 5. What types of frameworks did you use for UI? Explain the design you followed. Explained framework using POM. 6. Explain your design pattern of API framework. 7. What’s the difference between POST and PUT? 8. What types of authentications have you used? 9. What’s the difference between 401 and 403? 10. When you get a 400 in a POST call, what do you check first? 11. What are the different types of exceptions you handled in selenium? Explained noSuchElementFound exception and different types of waits including Thread.sleep(), implicitWait, WebDriverWait() with expected condition. 12. How do you handle state element exception? I know we are already running over time, but I have a few questions if you have some time. 1. What are the challenges you face day to day in this job? Interviewer: we have a lot of test cases. We are using Java, Selenium for automation. I won’t say it is a challenge. But now we want to do a lot of API testing and unit testing i.e. shift left in addition to UI tests. Me: That’s really a great approach. This is the testing strategy I follow. I use the strategic test pyramid approach. About 60-70% tests should be covered in unit testing. Then 20-25% in API testing as it is really fast to run. Core business logics should be tested via API. I have 1400+ test cases which take just 6min to run in pipeline. Only about 5% test cases should be automated in UI specially which are not testable via API, and end-to-end test cases. Cause a sing UI test case can take as much as 10min to run which is very costly to maintain. 2. What are the next steps in the hiring process?
1. Write a function to get highest sum of two number of a given array. 2. In a file there are are several words along with string "Temperature of Pune is 30 Degree", Write a script/function to print City and Temp of the city. 3. Get the highest sum of a given array. I don't remember other two question. But it was easy, like above.
How would you design a good automation framework
DSA Medium level questions to solve
Viewing 1931 - 1940 interview questions