Emids Technologies Limited
10+ ML Foods Interview Questions and Answers
Q1. Difference between feature file and step definition
Feature file contains high-level scenarios written in Gherkin language, while step definitions contain the actual automation code to execute those scenarios.
Feature file is written in Gherkin language to describe high-level scenarios
Step definitions contain the actual automation code to execute the scenarios
Feature file and step definitions are linked through annotations or tags
Feature file is more readable for non-technical stakeholders, while step definitions are more techn...read more
Q2. Explain framework structure in your project
Our project follows a modular framework structure with separate layers for test cases, utilities, and configurations.
The framework is designed using a modular approach to promote reusability and maintainability.
We have separate packages for test cases, page objects, utilities, and configurations.
Test cases are written using a Page Object Model design pattern to separate test logic from page interactions.
We use TestNG as the test runner and Selenium WebDriver for browser autom...read more
Q3. Wap to remove duplicate character
A program to remove duplicate characters from an array of strings.
Iterate through each string in the array
For each string, create a new string without duplicate characters
Use a set to keep track of characters already seen
Return the array of strings with duplicates removed
Q4. Selenium explanation with gherkin
Selenium is a popular automation testing tool used for web applications, while Gherkin is a language used for writing test cases in a human-readable format.
Selenium is used for automating web browsers to test web applications.
Gherkin is a language that uses keywords like Given, When, Then to describe test scenarios in a readable format.
Selenium can be integrated with Gherkin using tools like Cucumber to write automated test cases in a behavior-driven development (BDD) approac...read more
Q5. Wap to reverse string
A function to reverse a given string
Create an empty string to store the reversed string
Iterate through the input string from end to start and append each character to the new string
Return the reversed string
Q6. Explain page object model
Page Object Model is a design pattern used in test automation to create an object repository for web UI elements.
Separates test scripts from web elements
Improves code reusability and maintainability
Enhances test readability and reduces duplication
Each web page is represented as a class
Q7. Explain oops concepts
Object-oriented programming concepts that focus on classes, objects, inheritance, encapsulation, and polymorphism.
Classes: Blueprint for creating objects with attributes and methods.
Objects: Instances of classes that contain data and behavior.
Inheritance: Ability for a class to inherit attributes and methods from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability for objects of different classes to respond ...read more
Q8. String palindrome program
A program to check if a given string is a palindrome or not.
Create a function that takes a string as input
Reverse the string and compare it with the original string
Return true if they are the same, false otherwise
Q9. Explain agile
Agile is a software development methodology that emphasizes flexibility, collaboration, and iterative development.
Agile focuses on delivering working software in short, iterative cycles called sprints.
It values customer collaboration and responding to change over following a strict plan.
Agile teams are self-organizing and cross-functional, with frequent communication and feedback.
Common agile frameworks include Scrum, Kanban, and Extreme Programming (XP).
Q10. Uses of selenium
Selenium is a popular automation testing tool used for web application testing.
Automates web browsers to test web applications
Supports multiple programming languages like Java, C#, Python
Can run tests across different browsers and operating systems
Integrates with testing frameworks like TestNG, JUnit
Used for regression testing, functional testing, and load testing
Interview Process at ML Foods
Top Senior Test Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month