Interview questions [Automation,Manual,Api and mobile]

 Manual Testing Interview Questions:

1.Test Pyramid

The testing pyramid is a concept that groups software tests into three different categories. 1.Manual tests,UI/UX tests,Integration tests,Unit tests This helps developers and QA professionals ensure higher quality, reduce the time it takes to find the root cause of bugs, and build a more reliable test suite.



1.What is diff b/w smoke,sanity,regression.upgrade,happy path,system and system integration testing


2.Different types of testings

3.Testcase writing techniques 

1.RTM

4.what is RTM did u involve in designing RTM

5.what is BVA,Risk-based testing,adhoc,monkey,transition,

6.Different testing documents u prepared from starting to completion of project

7.What is version and build with difference

8.Mention the challenges u faced in the manual testing

9.what is Testplan did u involve in testplans,test documents,test cases

10.what is stub and driver

11.High priority and low severity and low priority and high severity scenarios

12.Bug life cycle, deferred in bug life cycle,STLC,SDLC

13.which Test metrics u followed in ur project and collected metrics during project.

14.Daily status report,weekly status report,Monthly status report,dev status reports templates

15.diff b/w bug and defect

16.any severe bug u left anytime in the project and how to overcome that with ur manager

17.Non functional testing types and functional testing types

18.explain ur application

19.Create a test case template in the excel sheet

20.What is meant by test coverage

21.bug leakage and bug release and defect leakage

22.seven principles of testing and basic prinicples of testing

23.whitebox and blackbox testing

24.Some real time scenarios test summary reports,daily summary reports


Agile interview questions :


1.Difference between agile and scrum,scrum framework

2.Impediment,retrospective,product backlog,sprint backlog,velocity,priciples of agile

3.iteration and refractoring in agile,burnup and burn down chart,roles in scrum,agile frameworks

4.adv and dis adv of agile


Java Interview questions:


1.oops concepts in java explain with example

2.write a program for palindrome

3.write a program for reversal of string

4.what is public static void main in java

5.what is class,object and method and differences

6.Typecasting in java

7.for loops in the framework u used

8.write a program to print * in triangle from 1 to 5 in a triangle

9.different types of exceptions in java

10.variables in java,data types with examples,keywords in java e.g:try,throw,throws,extends,break,switch,public

   private,static,final,finally,protected,while

11.Java ifelse,switch,for loop,while loop,break,continue

12.Method,constructor,static keyword

13.Access modifiers with examples,wrapper class,call by value,inheritance

14.can we acheive inheritance in java,polymorphism with example,Method overloading and overriding

15.is java pass by value or pass by reference

16.distinct and unique,mapping in java,instance variable in java,linked hash set,concatenation in java,string ,string buffer,string builder,

17.hierarchy and different types of constructor, write a code for constructor,

18.questions on try and catch blocks

19.sets in java

Java oops concept questions

• Basics programming question- reverse string, how to traverse in a table, split string.

• window handles, character count in a string.

• Array vs array list, list, map, set

• wait, glue in cucumber, runner class in cucumber, tags, TestNG, extent report.

• Define your framework (This question has been asked in every interview)

• Agile, Scenario-based ques related to project and many more.



How to upload a file in Selenium WebDriver?


Using sendkeys() or Robot class method. Locate the text box and set the file path using sendkeys() and click on submit button.


WebElement browse =driver.findElement(By.id("uploadfile"));

browse.sendKeys("D:\\STS\\UploadFile.txt");


#Interview - How to login to any site if it is showing an Authentication Pop-Up for Username and Password?


To handle authentication pop-ups, verify its appearance and then handle them using an explicit wait command.


WebDriverWait wait = new WebDriverWait(driver, 10);

Alert alert = wait.until(ExpectedConditions.alertIsPresent());

alert.authenticateUsing(new UserAndPassword(<username>, <password>));


Difference between final, finally and finalize

• Oops concepts and the multiple inheritance concept. How to achieve multiple inheritance?

• TestNG annotations, Priorities of TestNG tests, Order of execution of tests, Groups, Group of groups, Include and exclude concepts, Data provider, Invocation count, Parallel testing

• Cucumber: What is BDD and TDD, Types of frameworks, how is keyword stored in Keyword driven framework, Data handling code using Apache POI, Scenarios, Scenario outline, Background, Examples keyword, Testrunner file, Plugins in Testrunner, Monochrome in Testrunner, Dryrun in Testrunner, Strict in Testrunner, Glue in Testrunner, what is Maven and how to skip the scenarios in Cucumber, Hooks concepts.

• MANAGERIAL ROUND: It was some scenario-based questions, latest tools used, Collection concepts.



Selenium:

Selenium Architecture

• Switching between the tabs (Get Window Handle and Get Window Handles and Return Type of both Handlers).

• Element Locators: Xpath, CSS Selector etc... (Learn all locators)

• Wait times (Implicit, explicit, Fluent waits) and Differences and their Syntaxes.

• Challenges faced during automation.

• When will you decide the particular test case to be automated?

• Get, Navigate Methods.

• Action classes, Alert Classes, Auto It, How to Download and upload using Selenium.

• Selecting values from Dropdown.

• Differences between IDE, Webdriver.

• How to initialize the Webdriver and what is the Webdriver.

• Handling exceptions in selenium.

• Entire about TestNG And their Annotations grouping, prioritizing. How to achieve parallel execution.

• Version control system like GIT and Commands like Rebase, commit, pushing, pulling and creating the branch name.

• CI/CD tools like Jenkins (learn this thoroughly)

• How to avoid Merge conflicts like pipeline is getting failed why and how.

APPIUM

• How to find elements and asked about native, hybrid and web apps.

• Simulators, Emulators and Real devices,

• Native Frameworks like XCUI Automator for IOS and UI Automator for Android.

• ADB Commands.

• Rest API: Response codes.

Core Java:

• Oops concepts and their usage in selenium automation.

• Static, Final, Finally, Finalize, Try, catch, Throw and Throws and their differences.

• Abstract and Interfaces differences.

• Entire about collections like list set map and Hashmap Hashtable differences.

• Why string is immutable and difference between string buffer and string builder.

• Constructor and in oops method overriding and over loading.

• Association, Aggregation and composition.

Coding:

• Reverse of a string.

• Removing the duplicate characters from a given string.

• Star programs.

• Factorial of a given number.



• Asked about final keyword and sent one program and asked output for same.

• Asked about constructors and types

• Asked to write program for reversing a string.

• Asked to write program to eliminate repeating character from string.

• Asked about static keyword, where we use and purpose

• OOPs concept and where I implemented in my framework

• In selenium, she asked me regarding windows handling

• Asked about assertion and types

• Asked how to handle drop-down

• Parallel execution of test cases in TestNG

• Asked questions on DDT framework (Data Providers)

• Asked about my project and roles

• Why I am looking for change

• Asked me any challenge (can be related to work or team member) I faced during my working span

• What are your career goals, where I wanted to be in next 5 Years?

• Asked my ratings in past 3 Years of my work

• Gave me hypothetical situation and me what will be my approach


They will ask our career profile

• Projects which we are into

• Technical questions on selenium, Cucumber, json mostly tools and frameworks you have used.

• Java string Manipulation

• Feature file creation (BDD framework) using cucumber

• Click, dropdown, selecting a text, screenshot functions in selenium

• Write a feature file for logging to Gmail

• XPath using CSS locator, object, class name

• Hashmap java program

• Reverse String java program

• Waits in selenium

• Selenium architecture

• Team Handling questions.

• Test data preparation

• RTM, client services questions


Java oops concept questions

• Basics programming question- reverse string, how to traverse in a table, split string.

• window handles, character count in a string.

• Array vs array list, list, map, set

• wait, glue in cucumber, runner class in cucumber, tags, TestNG, extent report.

• Define your framework (This question has been asked in every interview)

• Agile, Scenario-based ques related to project and many more....



Testing Question

• API Status Code

• Put or POST Method

• Webservice vs API

• Monolithic vs Microservice

• Write Test Cases based on some scenario

• Capital Market Related

• Investment Banking

• SQL Queries (Joins, Sub-query, Update, DML, DDL)

• Test Scenario Real-Time

• How will you manage team?

• Team Related and Some Behavioural


OOPs concept

• Program to display first non-repetitive character in a string

• Program using TreeSet for sorting weekdays

• Window handling

• iframes

• Parent, ancestor Xpath live examples

• Live coding

• Scenario: Go to google and search Stop watch online, click on start, use wait and then stop

• Print the value in the stop watch

• Jenkins

• Agile

• Selenium Grid



Selenium interview questions:


1.Implicit,explicit and fluent waits with written code

2.assert/verify with code

3.types of clicks with code/types of alerts with code/switch between frames/webtable handling/windows handling

4.how to run failed test cases without running the testng-failed.xml file

5.annotations in testng and order of the testng and priority in testng

6.which order will execute when we dont give any priority in testng

7.groups in testng,exclude,include in testng,parameters in testng

8.parallel execution in testng,dataprovidors in testng,

9.how to run testng.xml file from command prompt and covert the xml to bat file

10.invocation count in testng

11.enable and disable a testcase in testng

12.assertions in testng ,

13.oops concepts used in selenium framework with examples

14.selenium code to read data from the excel sheet and write data in the excel sheet

15.broken links in selenium code

16.how to access all the images in page using selenium

17.different types of xpaths like Following

Ancestor,Contains()

Using OR & AND

Starts-with function

Text()

Child

Preceding

Following-sibling

Parent

Self

Descendant

18.css selector syntax

19.absolute and relative xpaths

20.javascript executor code and robot class and actions class and diff types of clicks

21.handling alerts in selenium,exceptions in selenium and how to handle

22.sync in selenium,explain framework structure of ur project

23.dependencies in pom.xml,why we use maven and maven surefire plugin,reporting in selenium,screenshot ,logging in selenium

24.properities file in selenium,retryanalyzer in selenium

25.Sikuli and Autoit


Tell me about yourself.

• What is the project you worked on?

• Project related question why did you opt for a particular licensed tool over various open-source tools in market.

• Explain oops concepts with examples.

• Difference between abstract classes and interface.

• Why multiple inheritance is not supported by java.

• How to overcome multiple inheritance problems in java.

• Gave a java program related to inheritance and asked me to the output.

• How to execute tests parallelly without the help of TestNG.

• What is docker and difference between docker and selenium grid.

• Explain BDD framework and its significance.

• What are hooks in BDD and where to use it?

• Usage of DataProvider in BDD.

• How to run a testcase with multiple data in BDD.

• What is feature file and step definition file and how to integrate both.

• Difference between arraylist and LinkedList

• Write a java program to remove duplicate values in a static array.

• Difference between hash map and hash table.

• What is API and what are different types of authentication methods used in API.

• How will you integrate Jenkins and git?

• How will you have multiple windows handles in a browser using selenium?

• What are the different types of waits in selenium?

• What are all locators present in selenium?

• Basic git commands.

• What is maven and why do we use it.

• Gave me a scenario to automate - There are three dropdowns Country dropdown, State dropdown, city dropdown with select tag. State dropdown appears into DOM once country is selected and city dropdown appears into DOM once state is selected. so, once city dropdown appears print out the values in the city dropdown which starts with A or a.

• Explain about defect life cycle.

• Why are looking out for job even though you have multiple offers.

• Who will decide which testcases to automate and which testcases not to automate?

• How testcases which needs to be automated are assigned to a resource.

• Explain STLC.

• Difference between driver.quit and driver.close.

• Disadvantages of selenium.

• Gave me a java program and asked me to tell the output and also explain each and every line of code.

• Write a program to swap two numbers without a temporary variable.

• What are the fields which are necessary when raising a defect?

• Difference between priority and severity of the defects.

• Explain agile methodologies.

• How to automate captcha.

• Are there any scenarios where you are not able to automate application?



 Tell me about yourself.

• Frameworks and tools used in your experience.

• Explain OOPS concept in detail with examples.

• Gave me a scenario to automate and asked to write the script in VBscript and Selenium.

• Difference between severity and priority of the defects.

• Gave me a java program and asked me the output.

• How will you establish a database connection in UFT and Selenium?

• Will you work in any other technology other than selenium?

• How did you handle exceptions in your project?

• Explain different frameworks you worked on.

• Given an opportunity are you willing to work in manual testing also.

• Willing to relocate and salary discussion.



Api testing:


1.CRUD operations in api

2.diff between put and post

3.status codes in the api

4.collections in postman

5.variables /core components of http


Jmeter:


1.api testing using jmeter

2.Regular Expressions/protocols/Samplers & Thread Groups/types of processor/Assertion in JMeter/ execution order of Test Elements/


Mobile Testing interview questions manual:


1.Different types of mobile testing,port testing,compatibility testing

2.adb commands all

3.android features and ios features

4.how u authenticate ur login in mobile devices

5.interruptions,non functional mobile testing

6.simulator / emulator

7.db for mobile testing,push notifications in mobile testing

8.different tools used for network logs and crashes identifications

9.shift right and shift left testing

10.apk and ipa files distribution,google fire base

11.beta testing,uat,build upload to stores

12.accessbility testing in mobile 

13.appium dependencies


Comments