Accenture
10+ Interview Questions and Answers
Q1. Different Annotations in TestNG, Collections in java, Xpath for a check box in a table which is before the username, what is Maven, Jenkins CI/CD tool, Different browsers on which you automated
The question covers TestNG annotations, Java collections, Xpath, Maven, Jenkins, and browser automation.
TestNG annotations include @Test, @BeforeTest, @AfterTest, etc.
Java collections include ArrayList, HashMap, HashSet, etc.
Xpath is used to locate elements in XML or HTML documents.
Maven is a build automation tool used for Java projects.
Jenkins is a CI/CD tool used for continuous integration and delivery.
Different browsers for automation include Chrome, Firefox, Safari, etc.
Q2. Difference between Before Test and Before Method, How link happens between feature and step definition in Cucumber
Explaining the difference between Before Test and Before Method and how link happens between feature and step definition in Cucumber.
Before Test runs once before all the tests in a test suite while Before Method runs before each test method
Before Test is used for setting up the environment for the entire test suite while Before Method is used for setting up the environment for each test method
In Cucumber, the link between feature and step definition is established through the...read more
Q3. How to handle page frames in selenium Automation?
Page frames can be handled in Selenium Automation using switchTo() method.
Use driver.switchTo().frame() method to switch to a particular frame.
Use driver.switchTo().defaultContent() method to switch back to the main content.
Frames can be identified using id, name, index or WebElement.
Example: driver.switchTo().frame("frameName");
Example: driver.switchTo().frame(0);
Q4. How to fetch sales data from database for annual report
Use SQL query to fetch sales data from database for annual report
Write a SQL query to select sales data from the database
Filter the data based on the date range for the annual report
Aggregate the sales data to calculate total sales for the year
Consider grouping the data by month or quarter for better analysis
Q5. What is bug? How you report it?
A bug is an error or defect in software that causes it to malfunction. It is reported by documenting the issue and its impact.
A bug is a deviation from expected behavior
It can be caused by coding errors, design flaws, or environmental factors
To report a bug, document the issue with steps to reproduce and expected vs actual results
Include screenshots or videos if possible
Assign severity and priority levels based on impact and urgency
Q6. How to find the annual profit from a chart
To find the annual profit from a chart, calculate the difference between total revenue and total expenses for the year.
Identify the total revenue generated in a year from the chart.
Determine the total expenses incurred during the same period.
Subtract the total expenses from the total revenue to calculate the annual profit.
Annual Profit = Total Revenue - Total Expenses
Q7. How to run test using maven comment
To run tests using Maven, use the 'mvn test' command in the terminal.
Navigate to the project directory in the terminal
Run the 'mvn test' command to execute all tests in the project
View the test results in the terminal or generated reports
Q8. what are the oops concepts?
OOPs concepts are fundamental principles of object-oriented programming such as inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features.
Q9. What are Action modes
Action modes are different modes in which an action can be performed in a software application.
Action modes define how a specific action will be executed within the software.
Examples of action modes include edit mode, view mode, delete mode, etc.
Q10. How to read property file
To read a property file, use Java's Properties class to load the file and retrieve values using keys.
Use Properties class to load the property file
Retrieve values using keys
Handle exceptions like FileNotFoundException or IOException
Q11. explain test strategy
Test strategy is a high-level plan to achieve testing objectives and goals.
Test strategy outlines the approach to be taken for testing a particular system or product.
It includes the scope of testing, resources needed, timelines, and risks involved.
Test strategy helps in identifying the testing methods, techniques, and tools to be used.
It also defines the entry and exit criteria for testing phases.
Example: A test strategy for a mobile application may include testing on differe...read more
More about working at Accenture
Top HR Questions asked in null
Interview Process at null
Top Test Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month