Important SDET(Software Development Engineer Testing) Interview Question
QA
- Explain life cycle of a bug
- What is regression testing? How is it different from functional testing?
- Difference between whitebox and black box testing
- What is A/B testing?
- What is smoke testing? Difference with Sanity testing?
- How can we perform credit card authorization testing?
- How do we test a multi channel application? Especially when the integration points are not in place with downstream systems?
- What is end to end testing?
- How can we test a webservice?
- How can we form a request in Jmeter, hit a service and read the response?
- Difference between unit, integration and QA testing
- What is included in a test plan?
- what is boundary analysis with an example
- What is negative testing? Create 5 negative test cases for email validation
- What is backend testing?
- How do you perform XML validation?
- What are the basic elements you put down while reporting a bug?
- Create 5 test cases for placing an order in an ecommerce website using PayPal as payment type
- Write 5 P1 test cases for shopping cart on an ecom website.
- Write 5 P1 testcases for a user profile page on an ecom website.
- Write 5 P1 test cases for a Ship confirmation email sent from an ecom website to a customer
Mobile
- What are the different types of apps ?
- What is the difference between Native and Hybrid app
- How can app be installed on IOS devices?
- What are the app formats for IOS and Android
- What is the difference between Desktop and mobile testing
- How to install local IOS and Android builds to device
- Mention what are the common bugs found while mobile testing
- What is the approach to test different screen size
- What is the approach to test different device/OS version
DB (Exact queries are not needed in answers. A high level approach will do)
- In an EMPLOYEE table having EMPLOYEE ID and DEPT ID, find department with max employees
- CASE..WHEN..THEN statement in SQL
- Write a query to find salary of an employee using join between EMPLOYEE and SALARY tables
- Difference between innerjoin and outerjoin
- PL/SQL – high level
- Explain trigger and its difference between a PL/SQL
- Nosql vs RDBMS, with an example
- Is it possible to have primary key and foreign key in mongo db
- How to find data in a mongodb collection
- Find state with max stores in a STORES table (with the columns - store id, storename, city, state, zip)
- How to ensure that child records are deleted when parent with foreign key constraint is deleted
- Difference between truncating and deleting a table
- Query to find number of records in a table
- Possible to have more than one column as primary key?
- Difference between WHERE and HAVING clauses
- What is difference between count(1) and count(*).
- Find number of non-null records in a column
- Find number of null records in a column
UNIX (exact syntaxes are not required. Keywords would be enough)
- Unix commands for :
- changing directories
- listing files
- finding keywords in a file
- changing file permissions
- tailing
- Create a shell script to display a menu to a user
- Get current directory
- Find keyword in a file
- List files starting with the word Sears in a directory
- Find wordcount in a file
- Schedule a shell script to run every 30 seconds
- How to connect to a unix server from another unix server
- Difference between ftp and scp
- How to find a string from a set of files?
- How to find files which are modified 15 mins before?
- How to list all running processes in a server and stop it?
- Finding file names which start with the letter A in a directory
JAVA
- How to convert json to a hashmap
- Explain how to implement multi-threading
- Explain race condition and how to avoid it
- Diff between string, string buffer and string builder
- Difference between hashmap, hashtable, concurrent hashmap and treemap
- Possible to have duplicate key in a hashmap? Explain
- Execute a query and get the results of the query into a hashmap with column names as the keys and column values as the values
- Explain class casting
- Explain polymorphism and encapsulaiton
- Sort an arraylist
- Sort a map with integer as keys and string as values based on length of its values
- Difference between abstract class and interface
- Difference between final, finalize and finally
- What happens when a line of code in finally block has an exception?
- What is an iterator? Where can it be used?
- What is a Set? How is it different from arraylist?
- Mail contents of a file using java
- How is hashmap different from an array list?
- Difference between hashmap and treemap?
- How would you read a file and write to a new file?
- Explain try-catch logic?
- What is Finally block? You are executing a try block, with no exceptions. Will it go to finally?
- Why do we need getters and setters?
- How to iterate through a hashmap
- How to find common elements between 2 array lists
SELENIUM
- How to handle popups in selenium?
- What is Page Object Model (POM) & Page Factory in Selenium?
- What are the differenttypes of wait and when to use what?
- What are the operating systems and browsers supported by Selenium?
- What is the default port for Selenium and can it be customized?
- What is the use of Capabilities class?
- What is the difference between Remote Webdriver and Webdriver?
- How to use JavaScript with Selenium WebDriver using Java?
- What is the diffrence between assert and verify?
- What are the different types of locators in Selenium and which one is preferred?
PROBLEM SOLVING
- Open file containing alphanumeric phone numbers, convert them to numbers ((eg: 1-800-GO-PIZZA to 18004674992)and write them to a different text file
- Find difference between two text files which have data similar in structure
- You have Order Items table and orders table. Orderitems table could have many records for an order. How to find the orders that have exactly 2 items in them? OrderId is the foreign key in orderitems table.
- Find duplicate numbers in a Textfile with 20000 six digit numbers. On finding duplicates, write them in another textfile with number of occurances.
- Find missing number from an array that is supposed to contain 1-100 numbers
MISC
- Difference between RESTful service and SOAP service
- Schedule an executable jar to run every 30 seconds in a Windows server
- Using regular expession, find $ amount in a string which appears after the $ character
- What is continuous integration?
- Convert xml to json?