Deloitte
Movimiento Industrial Interview Questions and Answers
Q1. There is a table of students having column status with either pass or fail. Write the syntax to show the output as some 60 pass and 40 fail.
Use SQL query to display 60 pass and 40 fail from a table of students.
Use SELECT statement with COUNT function to count the number of pass and fail statuses.
Use WHERE clause to filter out pass and fail statuses.
Use GROUP BY clause to group the statuses together.
Use CASE statement to display the count of pass and fail statuses.
Q2. There are n no. Of links having the text selenium. Write the syntax to count the text selenium from all the links
Use XPath to count the number of links with the text 'selenium'
Use XPath to locate all the links containing the text 'selenium'
Count the number of links found using the XPath expression
Q3. What are the various annotations in selenium webdriver
Annotations in Selenium WebDriver are used to provide additional information about the test methods.
Annotations help in organizing and managing test cases
Some common annotations in Selenium WebDriver are @Test, @BeforeTest, @AfterTest, @BeforeClass, @AfterClass, @BeforeMethod, @AfterMethod
Annotations are used to define the sequence of execution of test methods
Q4. Why does def keyword used in selenium
The def keyword is used in Selenium to define a function or method.
Used to define reusable code blocks
Helps in organizing code and improving readability
Allows for easier maintenance and updates
Example: def login(username, password) { //code to login }
Q5. How to handle dynamic table element
Dynamic table elements can be handled by locating the table, identifying the rows and columns, and using appropriate methods to interact with the data.
Locate the table element using a unique identifier such as class, id, or xpath
Identify the rows and columns within the table using HTML tags like and
Use methods like getText() or getAttribute() to retrieve data from the table cells
Handle dynamic changes in the table by using dynamic xpath or waiting for specific elements to lo...read more
Q6. Difference between black box and white box testing
Black box testing focuses on functionality without knowledge of internal code, while white box testing examines internal code structure.
Black box testing tests the functionality of a system without knowledge of its internal code
White box testing tests the internal code structure and logic of a system
Black box testing is more focused on end-user perspective
White box testing is more focused on developer perspective
Example: Testing a website's login functionality without knowing...read more
Q7. Difference between hard assert and soft assert
Hard assert stops the execution of the test case if it fails, while soft assert continues the execution and logs the failure.
Hard assert is used when the failure of a particular step makes the further steps irrelevant.
Soft assert is used when you want to continue with the test case execution even if some steps fail.
Hard assert is implemented using 'assert' keyword in testing frameworks like TestNG or JUnit.
Soft assert is implemented using libraries like AssertJ or TestNG's So...read more
Q8. What is POM model
POM (Page Object Model) is a design pattern used in test automation to create reusable and maintainable code by separating page objects from test scripts.
POM helps in improving test script readability and maintenance by keeping the page objects separate from test logic
Each page in the application has its own corresponding page object class, which contains all the elements and methods related to that page
Test scripts interact with the page objects to perform actions on the UI ...read more
Q9. Explain Defect life cycle
Defect life cycle is the process of identifying, reporting, fixing, retesting, and closing defects in software development.
Defect identification: Defects are identified through testing or user feedback.
Defect reporting: Defects are reported in a defect tracking tool with details like steps to reproduce, severity, and priority.
Defect fixing: Developers fix the reported defects based on the information provided.
Defect retesting: Testers verify that the fixed defects are indeed ...read more
More about working at Deloitte
Interview Process at Movimiento Industrial
Top Automation Tester Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month