CoverPhoto
Infosys logo
Premium Employer

Infosys

Verified
3.6
based on 39.4k Reviews
Filter interviews by
Automation Tester
Clear (1)

10+ Infosys Automation Tester Interview Questions and Answers

Updated 21 Jan 2025

Q1. When will a defect have high severity and low priority?

Ans.

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

Add your answer
right arrow

Q2. Remove duplicates from a String java program?

Ans.

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.

Add your answer
right arrow

Q3. Write syntax for Taking Screenshot in Selenium

Ans.

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

Add your answer
right arrow

Q4. java code to identify duplicates in given string

Ans.

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

Add your answer
right arrow
Discover Infosys interview dos and don'ts from real experiences

Q5. What is priority and severity

Ans.

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

Add your answer
right arrow

Q6. What is API testing?

Ans.

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

Add your answer
right arrow

Q7. Find repeated words in sentence

Ans.

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

Add your answer
right arrow

Q8. Post and patch difference

Ans.

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

Add your answer
right arrow

Q9. Oops used in automation

Ans.

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

Add your answer
right arrow

Q10. Explain framework

Ans.

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

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Infosys Automation Tester

based on 4 interviews
1 Interview rounds
Technical Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Automation Tester Interview Questions from Similar Companies

Accenture Logo
3.8
 • 11 Interview Questions
View all
Recently Viewed
SALARIES
Flipkart
SALARIES
Flipkart
SALARIES
Flipkart
REVIEWS
Flipkart
No Reviews
REVIEWS
Infosys
No Reviews
REVIEWS
Flipkart
No Reviews
SALARIES
Flipkart
SALARIES
Flipkart
REVIEWS
Flipkart
No Reviews
INTERVIEWS
Infosys
20 top interview questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter