Tech Mahindra
10+ The Pirimid Interview Questions and Answers
Q1. What are Java Collections you have used in your Project ?
I have used Java Collections such as ArrayList, HashMap, and HashSet in my project.
ArrayList: Used to store and manipulate a list of elements.
HashMap: Used to store key-value pairs for efficient retrieval.
HashSet: Used to store unique elements without duplicates.
Q2. How you can reslove merge conflicts in git ? Share your experience ?
Resolve merge conflicts in git by using git commands and tools.
Use 'git status' to identify conflicted files
Open conflicted file(s) in text editor and resolve conflicts manually
Use 'git add' to stage resolved files
Commit changes using 'git commit'
Use 'git merge --abort' to abort merge if needed
Q3. 2.WAP to provide String without duplicates.(Each character repeated only once) eg: "Hello World" => "Helo Wrd"; Hint:Use Set (Linked hashset)
The program removes duplicates from a given string using a Set data structure.
Create a LinkedHashSet to maintain the order of characters while removing duplicates
Iterate through each character in the input string and add it to the set
Convert the set back to a string and return the result
Q4. For File uploads how can you handle in selenium ?
File uploads in Selenium can be handled using the sendKeys() method to input the file path.
Use the sendKeys() method to input the file path in the file upload field
Make sure the file path is correct and accessible
Verify the file upload by checking for the presence of the uploaded file on the page
Q5. Identify test scenarios, write test cases
Test scenarios and cases are identified based on requirements and specifications.
Identify functional and non-functional requirements
Create test scenarios based on requirements
Write test cases for each scenario
Include positive and negative test cases
Consider boundary conditions and edge cases
Perform exploratory testing
Use automation tools for repetitive tests
Q6. 1. Explain Automation project structure 2. Explanation for TestNG annotations 3. Exception Handling
Automation project structure involves organizing test scripts, resources, and configurations. TestNG annotations are used to control the flow of test methods. Exception handling is used to manage errors during test execution.
Automation project structure includes organizing test scripts, resources, and configurations in a systematic manner.
TestNG annotations like @Test, @BeforeMethod, @AfterMethod are used to control the flow of test methods and set up/tear down operations.
Exc...read more
Q7. Explain about your Framework ?
My framework is a combination of tools, libraries, coding standards, and guidelines used for automation testing.
My framework is based on the Page Object Model design pattern.
It uses Selenium WebDriver for browser automation.
It includes test data management using Excel or CSV files.
It has reporting capabilities using tools like ExtentReports or Allure.
It supports parallel execution of test cases using TestNG or JUnit.
Q8. What is data structure and Enum
Data structure is a way of organizing and storing data in a computer so that it can be accessed and used efficiently. Enum is a data type that consists of a set of named values.
Data structure can be linear or non-linear
Examples of data structures include arrays, linked lists, stacks, queues, trees, and graphs
Enums are used to define a set of named constants
Examples of enums include days of the week, months of the year, and colors
Q9. query to find the sum of price per product name for last month
Use SQL query with GROUP BY clause to find sum of price per product name for last month
Use SQL query with GROUP BY clause to group by product name
Filter the data for last month using WHERE clause
Sum the price column for each product name
Q10. Git comands what you have used
Various Git commands used for version control and collaboration
git clone: to clone a repository from a remote server
git add: to stage changes for commit
git commit: to save changes to the local repository
git push: to push changes to a remote repository
git pull: to fetch and merge changes from a remote repository
git branch: to create, list, delete, or switch branches
git merge: to merge changes from one branch into another
git log: to view commit history
git status: to see the sta...read more
Q11. Find xpath,design pom classes,test classes,etc.
To find xpath, design POM classes and test classes for Senior Test Engineer role.
Use browser developer tools to inspect elements and find xpath
Design POM classes to represent web pages and their elements
Create test classes to write test cases and execute them
Use testing frameworks like TestNG or JUnit for test automation
Use tools like Selenium WebDriver for browser automation
Q12. What is Object and classes
Objects are instances of classes that encapsulate data and behavior. Classes are templates for creating objects.
Objects are created from classes using the 'new' keyword.
Classes define the properties and methods that objects will have.
Objects can interact with each other through their methods and properties.
Inheritance allows classes to inherit properties and methods from parent classes.
Polymorphism allows objects to take on multiple forms or behaviors.
Example: A class 'Car' c...read more
Q13. what is integration testing
Integration testing is a type of testing where individual units are combined and tested as a group to ensure they work together correctly.
Integration testing verifies the interactions between different components/modules of a system.
It helps in detecting issues related to communication between units, data flow, and interfaces.
Examples include testing the integration of a database with a web application, or testing the integration of different software modules in a system.
Inte...read more
Q14. test technique's and methodology
Test techniques and methodologies are essential for ensuring thorough testing of software applications.
Test techniques refer to the approach or strategy used to design and execute tests, such as boundary value analysis, equivalence partitioning, and exploratory testing.
Test methodologies are the overall process or framework for managing testing activities, such as Agile, Waterfall, and DevOps.
It is important for a Senior Test Engineer to be familiar with a variety of test tec...read more
Q15. Mobile testing concepts for Android
Mobile testing concepts for Android involve testing on various devices, OS versions, screen sizes, and network conditions.
Testing on different Android devices to ensure compatibility
Testing on various OS versions to check for compatibility and performance
Testing on different screen sizes to ensure proper layout and functionality
Testing under different network conditions to assess performance and reliability
Q16. Automation concepts for iOS
Automation concepts for iOS involve using tools like Appium, XCUITest, and XCTest to automate testing of iOS applications.
Use Appium for cross-platform testing of iOS apps
XCUITest is Apple's native UI testing framework for iOS apps
XCTest is Apple's unit testing framework for iOS apps
Top HR Questions asked in The Pirimid
Interview Process at The Pirimid
Top Senior Test Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month