Infosys
NLEY Consultants Interview Questions and Answers
Q1. How do we automate the Multiple pages in API testing
To automate multiple pages in API testing, use test scripts to navigate through different endpoints and validate responses.
Create test scripts to call different API endpoints for each page
Use data-driven testing to iterate through multiple pages with different inputs
Implement assertions to validate responses from each page
Utilize automation tools like Postman or Selenium for API testing
Q2. Java program to alternate words in a string
Java program to alternate words in a string
Split the input string into an array of words
Iterate through the array and alternate the words
Join the modified array back into a single string
Q3. Difference between TOSCA and Selenium
TOSCA is a comprehensive test automation tool that supports multiple technologies, while Selenium is specifically for web applications.
TOSCA is a model-based test automation tool that allows for end-to-end testing of various technologies and applications.
Selenium is a widely used open-source tool specifically designed for automating web applications.
TOSCA provides a more comprehensive solution with features like test case design, test data management, and reporting.
Selenium r...read more
Q4. Interface vs abstraction
Interface defines a contract for a class, while abstraction hides the implementation details.
Interface is a blueprint of a class that defines what methods a class must implement.
Abstraction is a concept where only the necessary details are shown and the rest are hidden.
Interfaces can be implemented by multiple classes, while abstraction is achieved through abstract classes or interfaces.
Example: Interface - 'Runnable' in Java, Abstraction - Abstract class in C#.
Q5. Java Code for reverse string
Java code to reverse a string using StringBuilder
Create a StringBuilder object with the input string
Use the reverse() method of StringBuilder to reverse the string
Convert the reversed StringBuilder object back to a string using toString()
Q6. Maximzise screen in webpage
To maximize screen in a webpage, use CSS properties like 'width: 100%' and 'height: 100vh'.
Set 'width: 100%' to make the content fill the entire width of the screen
Use 'height: 100vh' to make the content fill the entire height of the viewport
Consider using media queries for responsive design
Q7. Explain your framework
My framework is a data-driven framework that uses Selenium WebDriver and TestNG for automated testing.
Uses Selenium WebDriver for interacting with web elements
Utilizes TestNG for test case management and reporting
Employs data-driven approach for test data separation and reusability
Interview Process at NLEY Consultants
Top Automation Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month