Capgemini
10+ Cresco Maruti Interview Questions and Answers
Q1. how to fetch from hashmap? what is agile? tell about hybrid framework?
To fetch from a hashmap, use the get() method. Agile is a software development methodology. A hybrid framework combines different testing approaches.
To fetch a value from a hashmap, use the get() method with the corresponding key
Agile is a software development methodology that emphasizes iterative and incremental development
A hybrid framework in software testing combines different testing approaches, such as keyword-driven and data-driven testing
Example: HashMap
map = new Has...read more
Q2. What is Testing
Testing is the process of evaluating a system or its component(s) with the intent to find whether it satisfies the specified requirements or not.
Testing is done to identify defects or errors in the system
It involves executing a system or its component(s) with test cases
Testing can be manual or automated
Types of testing include functional, performance, security, and usability testing
Q3. difference between abstact class and interface
Abstract class is a class with implementation while interface is a contract without implementation.
Abstract class can have constructors while interface cannot
A class can implement multiple interfaces but can only inherit from one abstract class
Abstract class can have non-abstract methods while interface can only have abstract methods
Example of abstract class: Animal with method eat() implemented
Example of interface: Runnable with method run() defined
Q4. reverse a string/number of vowels in giver string
Reverse a string and count the number of vowels in the given string.
Create a function that takes a string as input
Reverse the string using built-in functions or loops
Count the number of vowels in the string using a loop or regex
Return the reversed string and the count of vowels
Q5. print the repeating substring in given string
Find and print the repeating substring in a given string.
Iterate through the string and check for repeating substrings
Use a hashmap to keep track of seen substrings
Return the repeating substrings as an array of strings
Q6. explain runner file and code for report
A runner file is used to execute test scripts and generate reports in software testing.
Runner file is a script that executes test cases written in a testing framework.
It can be used to run multiple test cases in a specific order.
The code for generating reports in a runner file typically includes functions to collect test results and format them into a readable report.
Example: In a Selenium test automation project, a runner file can be used to execute test scripts written in J...read more
Q7. types of waits in selenium
Types of waits in Selenium include implicit, explicit, and fluent waits.
Implicit wait: Waits for a certain amount of time before throwing a NoSuchElementException.
Explicit wait: Waits for a certain condition to occur before proceeding further in the code.
Fluent wait: Waits for a condition to be true with a defined polling frequency.
Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Q8. interface in selenium
Interface in Selenium is a way to define a set of methods that a class must implement.
Interface in Selenium is used to define a contract for classes that implement it.
It helps in achieving abstraction and modularity in test automation.
Example: WebDriver interface in Selenium is implemented by classes like ChromeDriver, FirefoxDriver, etc.
Q9. What is collections
Collections are data structures that store and organize multiple elements in a single unit.
Collections can store elements of the same or different data types.
Examples of collections include arrays, lists, sets, and maps.
Collections provide methods for adding, removing, and accessing elements.
Q10. Code for hashmap
A hashmap is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.
Use HashMap class in Java to create a hashmap
Use put() method to add key-value pairs
Use get() method to retrieve values based on keys
More about working at Capgemini
Top HR Questions asked in Cresco Maruti
Interview Process at Cresco Maruti
Top Software Tester Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month