Tech Mahindra
Guruswamy Associates Interview Questions and Answers
Q1. How to implement POM framework pattern
POM framework pattern can be implemented by creating separate classes for each page and storing locators and methods in them.
Identify the web pages and create a separate class for each page
Store the locators and methods related to that page in its respective class
Create a separate class for common methods and utilities
Use inheritance to access the methods and locators from parent classes
Use TestNG or JUnit to execute the tests
Example: LoginPage.java, HomePage.java, BasePage.j...read more
Q2. How to write xpath in selenium?
XPath in Selenium is used to locate elements on a web page using XML path expression.
Use // to select nodes in the document from the current node that match the selection no matter where they are
Use / to select nodes in the document from the root node that match the selection
Use @ to select attributes
Use text() to select the text of the element
Examples: //input[@id='username'] to locate an input element with id 'username'
Q3. who to analyse test requirement
Test requirements should be analyzed by the test lead or a team of testers.
The test lead should review the project requirements and identify the testing needs.
The test lead should collaborate with the development team to ensure that the requirements are testable.
The test lead should prioritize the testing requirements based on risk and impact.
The test lead should document the testing requirements and communicate them to the testing team.
The testing team should review and prov...read more
Q4. what is Maven framework
Maven is a build automation tool used primarily for Java projects.
Maven uses a Project Object Model (POM) to manage dependencies and build process
It can download required dependencies automatically from a central repository
Maven can also generate reports and documentation for the project
Example: mvn clean install command builds and packages the project
Example: pom.xml file contains project configuration and dependencies
Q5. What is RTM and what is its uses?
RTM stands for Requirements Traceability Matrix. It is a document that links requirements to test cases to ensure all requirements are covered.
RTM helps in ensuring all requirements are covered by test cases
It provides traceability between requirements and test cases
RTM helps in tracking the progress of testing based on requirements
It assists in identifying any gaps in test coverage
Example: If a requirement states 'User should be able to login', RTM will show which test cases...read more
Q6. Dictionary and how to use it?
A dictionary is a collection of words and their definitions, typically organized alphabetically.
A dictionary is used to look up the meanings of words.
It can also provide information on pronunciation, usage, and etymology.
Dictionaries can be physical books or online resources.
Examples: Merriam-Webster, Oxford English Dictionary
Q7. Difference between Icollection and ILIST?
IList is a collection interface that allows duplicate elements and maintains the order, while ICollection is a base interface for all collections.
IList extends ICollection interface.
IList allows duplicate elements and maintains the order, while ICollection does not guarantee order.
IList has additional methods like Insert, RemoveAt, etc., which are not present in ICollection.
Q8. what is TestNG framework
TestNG is a testing framework for Java that supports various testing types and provides advanced features.
TestNG supports unit, functional, end-to-end, and integration testing
It provides annotations for test configuration, grouping, and sequencing
TestNG allows parallel execution of tests and generates detailed reports
It supports data-driven testing and parameterization
TestNG integrates with build tools like Maven and Gradle
Example: @Test annotation is used to mark a method as...read more
Q9. Data types on c#
Data types in C# include int, string, bool, double, etc.
C# has various data types like int, string, bool, double, char, etc.
Each data type has a specific range and memory allocation.
Examples: int num = 10; string name = 'John'; bool isTrue = true;
Interview Process at Guruswamy Associates
Reviews
Interviews
Salaries
Users/Month