i
Deloitte
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Java code to print sum of 100 numbers
Create an array of 100 numbers
Use a loop to iterate through the array and calculate the sum
Print the sum at the end
My name is John Doe. There are 1 'o' in my name.
Count the occurrences of the specified character in the name
Iterate through each character in the name and compare with the specified character
Increment a counter each time the specified character is found
To move to another tab in Selenium, switch to the desired tab using window handles.
Use getWindowHandles() to get all window handles
Switch to the desired tab using switchTo().window(handle)
Automate a test case for Makemytrip website
Use Selenium WebDriver to automate the test case
Identify the test scenario, such as searching for a flight
Write test scripts in a programming language like Java or Python
Use test data to validate the functionality of the website
Implement assertions to verify expected outcomes
Locator in Selenium is used to identify web elements on a web page.
Locators are used to find and interact with elements on a web page.
Common locators include ID, name, class name, tag name, link text, and partial link text.
XPath and CSS selectors are also commonly used locators in Selenium.
Example: driver.findElement(By.id("username"));
Action class in Selenium is used to perform complex user interactions like drag and drop, double click, etc.
Action class is part of the Selenium WebDriver API
It is used to perform advanced user interactions like drag and drop, double click, etc.
Actions class is instantiated by creating an object of Actions class and passing the WebDriver instance as a parameter
Actions class methods include moveToElement, click, context
In Selenium, the Select class is used to work with dropdown elements on a web page.
The Select class is part of the org.openqa.selenium.support.ui package
It provides methods to interact with dropdown elements such as selecting options by visible text, value, or index
To use the Select class, you first need to locate the dropdown element using a locator like ID, name, or class name
Waits in Selenium are used to synchronize the test execution with the application's behavior.
Waits help in handling synchronization issues between test scripts and web elements
Types of waits in Selenium include Implicit Wait, Explicit Wait, and Fluent Wait
Example: WebDriverWait wait = new WebDriverWait(driver, 10); wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("elementID")));
Explicit, implicit, and fluent waits are different types of waits used in automation testing to handle synchronization issues.
Explicit wait is used to wait for a certain condition to be met before proceeding with the test execution. It is defined by the tester in the code.
Implicit wait is used to wait for a certain amount of time before throwing an exception if the element is not found. It is defined globally for the e...
What people are saying about Deloitte
Automation tools are software programs used to automate testing tasks.
Selenium
Appium
TestComplete
Robot Framework
HP UFT
Cypress
Deloitte interview questions for designations
Get interview-ready with Top Deloitte Interview Questions
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
Program to find character occurances in 'Hello World'
Create a map to store character occurrences
Iterate through each character in the string and update the map
Print the character occurrences from the map
Multithreading is the ability of a CPU to execute multiple threads concurrently, allowing for better performance and resource utilization.
Multithreading allows multiple threads to run concurrently within the same process.
Each thread has its own stack and shares the same memory space.
Multithreading can improve performance by utilizing multiple CPU cores efficiently.
Examples of multithreading include running multiple tas...
TestNG annotations are used to control the flow of test methods and provide additional information about the test.
Annotations like @Test, @BeforeSuite, @AfterSuite are used to define test methods and setup/teardown methods
Annotations like @BeforeTest, @AfterTest are used to run setup/teardown methods before/after a test
Annotations like @BeforeClass, @AfterClass are used to run setup/teardown methods before/after a test...
posted on 4 Apr 2022
I was interviewed in Apr 2021.
Round duration - 60 Minutes
Round difficulty - Medium
This round started with some basic questions from Software Testing and then the interviewer started asking some questions from Automation Testing.
Explain STLC.
STLC (Software Testing Life Cycle) is a fundamental part of SDLC which is used to test software and ensure that the
quality standards are met. It generally involves both verification activities and validation activities. In this, different
activities are executed in a specific order throughout the software testing process. There are basically six different
phases in STLC. They are as follows :
1) Requirement Analysis
2) Tes...
Write the difference between Test Stub and Test Driver.
Test driver and test stub, both are types of test harness that are used to provide a simulation environment for testing
a module or component. They both are dummy modules specially created for test purposes.
Test stubs: Test stubs are used in a top-down testing approach and allow testing of the upper levels of the code when
the lower levels of the code are not developed yet. It is used as ‘called programs’ when subprogram...
What do you mean by Data flow testing?
Data flow testing is a type of structural testing that is used to analyze the flow of data in the program. In this, a
programmer can perform various tests on data values and variables. Using this testing, one can determine the
variables that are used at every stage of the program’s control flow. It helps us in the following ways:
1) Eliminate or remove variables that are never used after being declared
2) Pinpoint variable...
What is boundary value analysis?
In software, many errors occur near the edges of the range of the data values. For example, when the programmer
uses the greater-than operator (>) instead of the greater-than-or-equal-to (>=) operator, it causes the off-by-one
indexing error.
Typically, developers miss these boundary cases because they follow a happy path when developing and testing.
Boundary value analysis helps to discover the errors caused by extr...
What are the different parts of a test automation framework?
A test automation framework makes it easy to perform automation testing for your software. Here are some
components of a test automation framework.
1) Test Data Management :
i) A big problem in automation testing is generating the test data. A good test automation framework makes it easy to
build test data for the application under test.
2) Testing Libraries :
i) Managing and running the automated tests is a crucial componen...
What are some of the best practices in test automation?
Here are some of the best practices a software development and the testing team should use to ensure quality software.
1) Decide what to automate :
i) It’s not possible or practical to automate certain tests, such as usability, accessibility, exploratory testing, or non-
repetitive test cases that frequently change.
2) Assign test cases based on skill and experience :
i) When dividing test cases, take into account the skill...
How do you automate the testing of CAPTCHA?
It’s not possible to automate the testing of CAPTCHA. That is the goal behind any good CAPTCHA strategy. By
definition, a computer can’t automate it. If it could, then it’s not a good challenge that you can use in your application.
However, if you need to test an application that uses CAPTCHA, you have to work with the development team to
build a workaround or a back door that allows the automated test to bypass the CAPTC...
What is Protractor?
1) Protractor is an open-source automated testing framework that allows you to perform end-to-end testing of your web
applications. It’s built on top of WebDriverJS.
2) Protractor is developed by Google and is especially used for testing Angular applications.
3) Protractor runs the tests against the web application by running it in real web browsers.
4) It also interacts with the application like an end-user wo...
Round duration - 60 Minutes
Round difficulty - Medium
This round had questions majorly from Selenium and Cucumber.
What are the different components of Selenium?
Selenium is not a single tool or a framework. It is a suite of tools that work with each other or in isolation to provide
different types of automation testing. Here are the four major components of Selenium.
1) Selenium WebDriver
i) A collection of open-source APIs and browser-controlling code implementations that provide a concise and
straightforward programming interface.
2) Selenium Grid
i) It enables the tester to run m...
Why should Selenium be selected as a testing tool for web applications or systems?
Selenium provides the following advantages, which make it an excellent automated testing framework :
1) It is free and open-source software with a large user base and supports providing community.
2) It has cross-browser compatibility and supports multiple browsers like Google Chrome, Mozilla Firefox, Internet
Explorer, Edge, Opera, Safari, etc.
3) It supports multiple operating systems such as Windows, Linux, macOS, etc.
4...
What is meant by XPath in Selenium. Explain XPath Absolute and XPath Relative.
XPath, also defined as XML-Path (Extensible Markup Language Path), is a language used to query XML documents
and provide functionalities like locating elements in Selenium by iterating through each element in a webpage. In
XPath, data is stored in a key-value pair format similar to an HTML tag. It uses a single slash, i.e. ‘ / ’ for creating an
absolute path, and a double slash, i.e. ‘ // ’ for creating a relative path fo
Difference between Selenium and Cucumber.
Open-source testing tools, Selenium and Cucumber are both used for functional testing. However, there are some
distinctions between them.
Here are some key distinctions between Selenium and Cucumber :
1) Cucumber is a behavior-driven development automation tool that may be used with Selenium. Selenium is a web
browser automation tool for web projects (or Appium).
2) Cucumber is used for acceptance testing, while Selenium is...
Explain what are the JUnits annotation linked with Selenium?
The JUnits annotation linked with Selenium are :
1) @Before public void method() – It will perform the method () before each test, this method can prepare the test
2) @Test public void method() – Annotations @Test identifies that this method is a test method environment
3) @After public void method() - To execute a method before this annotation is used, test method must start with
test @Before
How can you run a selected test from a group of tests in Cucumber?
1) We may execute a single test from a set of tests in the Cucumber framework using the tags idea.
2) This is found in the TestRunner file's @CucumberOptions section. With the use of the @t keyword, we may tag a scenario in the feature file.
3) A scenario can have one or more tags within the feature file. We can separate test scenarios with the
assistance of tagging.
4) We must pass the value within the t...
What is grouping in the context of Cucumber?
Cucumber is unconcerned about the names of your step definition files or the order in which you place them. Instead
of maintaining all steps in a single file, we can create steps.rb file for each major action/feature. This is referred to as
grouping.
Explain briefly how Behavioral Driven Development(BDD) works?
There are majorly three steps in the working of BDD. They are as follows:-
1) Behaviour Description: We list down the features of our application first in the feature file.
2) Making the Step Definition file: The mapping between each step of the scenario defined in the feature file and a
code of the function to be executed is stored in the steps definition file.
3) Testing and running: We run the test cases to check if we ...
Round duration - 30 Minutes
Round difficulty - Easy
This is a cultural fitment testing round. HR was very frank and asked standard questions. Then we discussed about my
role.
Why should we hire you ?
Tip 1 : The cross questioning can go intense some time, think before you speak.
Tip 2 : Be open minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.
Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these round,
like what are the projects currently the company is investing, which team you are mentoring. How all is the ...
Tell me something not there in your resume.
If you get this question, it's an opportunity to choose the most compelling information to share that is not obvious from
your resume.
Example :
Strength -> I believe that my greatest strength is the ability to solve problems quickly and efficiently, which makes me
unique from others.
Ability to handle Pressure -> I enjoy working under pressure because I believe it helps me grow and become more
efficient.
Tip : Emphasiz...
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I applied via Referral and was interviewed before Jul 2019. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Mar 2022. There were 3 interview rounds.
I work on manual to automation conversion ratio by analyzing the repetitive and time-consuming manual tasks and automating them.
Identify the manual tasks that are repetitive and time-consuming
Analyze the feasibility of automating those tasks
Prioritize the tasks based on their impact on the testing process
Create a plan for automation and execute it
Regularly review and update the automation plan
Collaborate with the team
Scenario outline
Scenario outline is the key word in BDD framework to run common cases
It allows for the creation of a template scenario with placeholders for input values
The placeholders can be filled in with specific values for each test case
based on 15 reviews
Rating in categories
Consultant
32.8k
salaries
| ₹6.2 L/yr - ₹23 L/yr |
Senior Consultant
20.9k
salaries
| ₹11 L/yr - ₹42 L/yr |
Analyst
13.9k
salaries
| ₹3.8 L/yr - ₹12.6 L/yr |
Assistant Manager
9.9k
salaries
| ₹7.6 L/yr - ₹24 L/yr |
Manager
7k
salaries
| ₹15.6 L/yr - ₹52 L/yr |
Accenture
PwC
Ernst & Young
Cognizant