Infosys
10+ Royal Crown Laminates Interview Questions and Answers
Q1. When will a defect have high severity and low priority?
A defect can have high severity and low priority when it affects critical functionality but can be easily worked around.
High severity due to impact on critical functionality
Low priority because there is a workaround available
Example: Spelling mistake in a non-critical error message
Q2. Remove duplicates from a String java program?
Use a HashSet to remove duplicates from a String in Java.
Create a HashSet to store unique characters.
Iterate through the String and add each character to the HashSet.
Convert the HashSet back to a String to get the result.
Q3. Write syntax for Taking Screenshot in Selenium
Taking a screenshot in Selenium can be done using the getScreenshotAs method.
Use WebDriver's getScreenshotAs method to capture the screenshot
Save the screenshot to a file using File class
Handle exceptions using try-catch block
Q4. java code to identify duplicates in given string
Java code to identify duplicates in a given string
Convert the string into an array of characters
Use a HashMap to store each character and its frequency
Iterate through the array and check if the character already exists in the HashMap
If it does, increment the frequency count, if not, add it to the HashMap
Finally, iterate through the HashMap and print out the characters with frequency greater than 1
Q5. What is priority and severity
Priority and severity are used to classify the impact and importance of a defect in software testing.
Priority determines the order in which defects should be fixed, based on business needs.
Severity indicates the impact of a defect on the system or users.
Priority is usually set by the product owner or business stakeholders.
Severity is typically determined by the testing team based on the impact on functionality.
Examples: A critical defect in payment processing would have high ...read more
Q6. What is API testing?
API testing is a type of software testing that involves testing APIs directly to ensure they meet functionality, reliability, performance, and security requirements.
API testing involves testing the functionality, reliability, performance, and security of APIs.
It focuses on verifying the communication and data exchange between different software systems.
API testing can be done at different levels such as unit testing, integration testing, and end-to-end testing.
Tools like Post...read more
Q7. Find repeated words in sentence
Use a hash map to find repeated words in a sentence.
Split the sentence into words using space as delimiter
Create a hash map to store word frequencies
Iterate through the words and update the frequencies in the hash map
Identify words with frequency greater than 1 as repeated words
Q8. Post and patch difference
Post is used to create a new resource, while patch is used to update an existing resource.
Post is used to create a new resource in the server.
Patch is used to update an existing resource in the server.
Post request typically includes all the data needed to create the resource, while patch request only includes the data that needs to be updated.
Post requests are idempotent, meaning multiple identical requests will have the same effect as a single request, while patch requests a...read more
Q9. Oops used in automation
Oops concepts are not directly used in automation testing, but understanding them can help in writing better test scripts.
Understanding object-oriented programming concepts can help in writing efficient and maintainable test scripts
Encapsulation, inheritance, and polymorphism can be applied in test automation to improve code reusability and readability
For example, using inheritance to create a base test class with common methods for different test cases
Q10. Explain framework
A testing framework is a set of guidelines, coding standards, concepts, processes, practices, project hierarchies, modularity, reporting mechanisms, and tool support for writing automated tests.
Provides a structure for organizing test scripts and test data
Offers reusable functions and libraries for common testing tasks
Helps in generating test reports and managing test execution
Supports integration with other tools and technologies
Examples: Selenium, JUnit, TestNG
Interview Process at Royal Crown Laminates
Top Automation Tester Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month