Infosys
20+ Raymond Lifestyle Limited Interview Questions and Answers
Q1. 3. What are different types of waits in selenium.
Different types of waits in Selenium include implicit, explicit, and fluent waits.
Implicit wait: waits for a certain amount of time before throwing an exception if the element is not found
Explicit wait: waits for a certain condition to be met before proceeding with the next step
Fluent wait: waits for a certain condition to be met within a specified time frame, polling at regular intervals
Examples: WebDriverWait, ExpectedConditions
Q2. 2.How to execute test cases in parallel.
Test cases can be executed in parallel by using tools like Selenium Grid or TestNG.
Use a tool like Selenium Grid to distribute test cases across multiple machines
Use TestNG to run tests in parallel by specifying the number of threads
Ensure that the test cases are independent and do not have any dependencies
Use a continuous integration tool like Jenkins to manage and execute parallel tests
Monitor the test execution and analyze the results to identify any issues
Parallel executi...read more
Q3. 1. Automation Framework used in project.
We used a hybrid automation framework that combined data-driven and keyword-driven approaches.
The framework was built using Selenium WebDriver and TestNG.
We used Excel sheets to store test data and Apache POI library to read/write data from/to Excel.
The framework had reusable functions and libraries for common actions like login, logout, etc.
We also used Jenkins for continuous integration and execution of automated tests.
The framework was designed to be scalable and maintaina...read more
Q4. how to handle broken links in selenium
To handle broken links in Selenium, we can use the HTTPURLConnection class to check the response code of the link.
Get all the links on the page using findElements() method
Iterate through each link and get the href attribute
Create a URL object for the href attribute
Open a connection using HTTPURLConnection class
Get the response code using getResponseCode() method
If the response code is not 200, mark the link as broken
Q5. Which method you use to remove spaces in the string
One method to remove spaces in a string is by using the replace() method in JavaScript.
Use the replace() method with a regular expression to replace all spaces with an empty string
Example: str.replace(/\s/g, '') will remove all spaces from the string 'hello world'
Another method is to use the split() method to split the string by spaces and then join the array elements without spaces
Q6. What kind of bugs you will encounter in API testing
Common bugs in API testing include incorrect data formats, authentication issues, and performance problems.
Incorrect data formats such as missing or incorrect parameters
Authentication issues like invalid tokens or permissions
Performance problems such as slow response times or timeouts
Q7. Write java locator to get all elements in the webpage
Use Selenium WebDriver to find all elements on a webpage using Java locators
Use findElements method to locate all elements on the webpage
Use By class to specify the locator strategy (e.g. By.xpath, By.id, By.className)
Store the located elements in a List
Q8. 4.Limitation of selenium.
Selenium has limitations in handling non-web-based applications and requires technical expertise.
Selenium cannot automate desktop applications or mobile apps
It requires technical knowledge to handle dynamic web elements
Selenium scripts can be brittle and require maintenance
It cannot handle CAPTCHA or OTP verification
Selenium does not have built-in reporting capabilities
Q9. How to check the password is encrypted
Check the password encryption by verifying the hashing algorithm used and comparing the encrypted password with a known hash value.
Check the hashing algorithm used to encrypt the password (e.g. MD5, SHA-256)
Compare the encrypted password with a known hash value for the same password
Ensure that the encryption process is irreversible, meaning the original password cannot be easily obtained from the encrypted version
Q10. Where u used oops concepts in ur framework
I used OOPs concepts in my framework for creating reusable components, inheritance, and encapsulation.
Used inheritance to create a base test class with common methods and properties
Implemented encapsulation to hide the internal details of the test cases
Utilized polymorphism for creating different types of test cases using the same interface
Q11. 5.Enum in java.
Enum is a special data type in Java used to define a set of constants.
Enums can be used to create a set of related constants that can be used throughout the code.
Enums can have constructors, methods, and fields like a regular class.
Enums can be used in switch statements.
Example: enum Color { RED, GREEN, BLUE }
Example: Color c = Color.RED;
Q12. how postman helps for api testing
Postman helps in API testing by providing a user-friendly interface to send requests, automate testing, and analyze responses.
Postman allows testers to easily send requests to APIs and view responses in a user-friendly interface.
It provides features for automating API testing, such as creating test scripts and running collections of tests.
Postman also offers tools for analyzing responses, including detailed logs and test reports.
It supports various authentication methods, env...read more
Q13. Http operation you worked on
I have worked on Http operations for testing web applications.
I have experience in testing Http GET, POST, PUT, DELETE methods.
I have tested Http status codes like 200, 404, 500, etc.
I have used tools like Postman and RestAssured for Http testing.
I have tested Http requests and responses for RESTful APIs.
I have worked on Http cookies and sessions testing.
Example: I tested Http operations for a banking web application.
Example: I tested Http operations for an e-commerce web app...read more
Q14. How to get URL of webpage
To get the URL of a webpage, you can use the window.location object in JavaScript.
Use window.location.href to get the full URL of the webpage
Use window.location.hostname to get the domain of the webpage
Use window.location.pathname to get the path of the webpage
Use window.location.protocol to get the protocol of the webpage (http or https)
Q15. Why string immutable in java ?
String is immutable in Java to ensure security, thread safety, and optimization.
Immutable strings prevent accidental modification of data.
Immutable strings can be safely shared among multiple threads.
Immutable strings allow for efficient memory allocation and caching.
Immutable strings are used in various security-related operations.
Immutable strings enable the use of string pooling for optimization.
Q16. Agile Process (Agile vs Waterfall model)
Agile is iterative and flexible, while Waterfall is sequential and rigid.
Agile involves continuous feedback and adaptation, while Waterfall follows a linear approach.
Agile allows for changes throughout the development process, while Waterfall requires detailed planning upfront.
Agile promotes collaboration and communication among team members, while Waterfall has distinct phases with limited interaction.
Agile is better suited for projects with evolving requirements, while Wate...read more
Q17. Threads in soap ui
Threads in SoapUI are used to simulate concurrent user requests to a web service.
Threads allow for testing the performance and scalability of a web service
Multiple threads can be created to simulate concurrent user requests
Each thread can have its own set of test data and assertions
Thread properties can be configured in the SoapUI project settings
Q18. How to handle POPUPS
Handle popups by using automation tools, handling alerts, switching to popup windows, and using explicit waits.
Use automation tools like Selenium to handle popups
Handle alerts using switchTo().alert() method
Switch to popup windows using switchTo().window() method
Use explicit waits to ensure popup elements are loaded before interacting with them
Q19. What is polymorphism
Polymorphism is the ability of a function or method to behave differently based on the object it is called with.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
It enables a single interface to be used for different data types or classes.
Examples include method overloading and method overriding in object-oriented programming.
Q20. What is interface
An interface in programming is a contract that defines the methods that a class must implement.
Interfaces in programming are used to define a set of methods that a class must implement.
They provide a way to achieve abstraction and multiple inheritance in programming languages.
Interfaces are used to define the behavior of a class without specifying how it is implemented.
In languages like Java, classes can implement multiple interfaces to inherit the behavior of each interface....read more
Q21. Selenium vs Selenium Webdriver
Selenium is a suite of tools for web automation testing, while Selenium WebDriver is a tool specifically for automating web browsers.
Selenium is a suite of tools that includes Selenium WebDriver, Selenium IDE, and Selenium Grid.
Selenium WebDriver is a tool for automating web browsers and is the most commonly used component of Selenium.
Selenium WebDriver allows testers to write tests in various programming languages like Java, Python, C#, etc.
Selenium WebDriver provides a more...read more
Q22. what is postman
Postman is a popular API testing tool used for testing and debugging APIs.
Postman allows users to send requests to APIs and receive responses
It provides a user-friendly interface for creating and managing API requests
Postman can be used for automated testing of APIs
It supports various request types such as GET, POST, PUT, DELETE, etc.
Q23. Describe Your Framework
My framework is a data-driven framework using Selenium WebDriver and TestNG for automated testing.
Data-driven approach for test data management
Integration of Selenium WebDriver for web automation
Utilization of TestNG for test case management and reporting
Q24. Locators in Selenium
Locators in Selenium are used to identify web elements on a webpage for automation testing purposes.
Locators include ID, class name, name, tag name, link text, partial link text, and xpath.
ID is the most efficient locator as it is unique for each element.
Xpath is powerful but can be slow and brittle if not used correctly.
Using CSS selectors is preferred over xpath for better performance.
Locators can be used with findElement() and findElements() methods in Selenium.
Top HR Questions asked in Raymond Lifestyle Limited
Interview Process at Raymond Lifestyle Limited
Top Automation Test Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month