CoverPhoto
Infosys logo
Premium Employer

Infosys

Verified
3.6
based on 39.7k Reviews
Filter interviews by
Sdet Automation Test Engineer
Clear (1)

Infosys Sdet Automation Test Engineer Interview Questions and Answers

Updated 8 Jan 2025

Q1. What are the different phases of the Software Testing Life Cycle (STLC)?

Ans.

STLC consists of phases like requirement analysis, test planning, test design, test execution, and test closure.

  • Requirement Analysis: Understanding the project requirements and defining the scope of testing.

  • Test Planning: Creating a test plan which includes test strategy, test objectives, and resource planning.

  • Test Design: Developing test cases and test scenarios based on requirements.

  • Test Execution: Running the test cases, reporting defects, and retesting.

  • Test Closure: Analy...read more

Add your answer
right arrow

Q2. Can you write a program that outputs a sentence in reverse?

Ans.

Yes, I can write a program that outputs a sentence in reverse.

  • Create a function that takes a string as input

  • Split the string into an array of words

  • Reverse the array

  • Join the array back into a string and return

Add your answer
right arrow

Q3. Implicit and Explicit wait, key difference and the syntax.

Ans.

Implicit and Explicit wait are used in Selenium for handling synchronization issues in test automation.

  • Implicit wait is set globally for the entire test script, while explicit wait is applied only to specific elements.

  • Implicit wait waits for a specified amount of time before throwing a NoSuchElementException, while explicit wait waits for a specific condition to be met before proceeding.

  • Syntax for implicit wait: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);...read more

Add your answer
right arrow

Q4. Java constructor oops concepts and code for swapping two numbers

Ans.

Java constructor is a special type of method used to initialize objects. Swapping two numbers can be done using a temporary variable.

  • Java constructor is used to initialize objects in a class.

  • Swapping two numbers can be done by using a temporary variable.

  • Example code for swapping two numbers using constructor:

  • public class NumberSwapper {

  • int num1;

  • int num2;

  • public NumberSwapper(int a, int b) {

  • num1 = a;

  • num2 = b;

  • }

  • public void swapNumbers() {

  • int temp = num1;

  • num1 = num2;

  • num2...read more

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

Q5. Xpath writing with parent child relation

Ans.

Xpath writing with parent child relation involves specifying the path to locate elements based on their hierarchical relationship.

  • Use '/' to specify direct child elements

  • Use '//' to specify any descendant elements

  • Use '[]' to specify conditions for selecting elements

  • Example: //div[@class='parent']/child::span

Add your answer
right arrow

Q6. Oops concepts of java

Ans.

Oops concepts of Java

  • Encapsulation: Bundling data and methods together in a class

  • Inheritance: Acquiring properties and behaviors from a parent class

  • Polymorphism: Ability to take on many forms

  • Abstraction: Hiding complex implementation details

  • Interface: Blueprint of a class that defines methods to be implemented

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 Sdet Automation Test Engineer

based on 7 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
Recently Viewed
INTERVIEWS
Siemens
10 top interview questions
JOBS
Nippon Life India Asset Management
No Jobs
CAMPUS PLACEMENT
Goa Institute of Management (GIM)
SALARIES
Wipro
INTERVIEWS
Veremax Management Services
No Interviews
SALARIES
Newton School: Pay after Placement
COMPANY BENEFITS
Tata Motors
No Benefits
COMPANY BENEFITS
Tata Motors
No Benefits
INTERVIEWS
BT E Serv
No Interviews
INTERVIEWS
Vodafone Idea
No Interviews
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