Premium Employer

i

This company page is being actively managed by Infosys Team. If you also belong to the team, you can get access from here

Infosys Verified Tick

Compare button icon Compare button icon Compare
3.6

based on 38.3k Reviews

Filter interviews by

Infosys Automation Test Analyst Interview Questions and Answers

Updated 14 May 2021

Infosys Automation Test Analyst Interview Experiences

1 interview found

I applied via LinkedIn and was interviewed in Nov 2020. There were 5 interview rounds.

Interview Questionnaire 

3 Questions

  • Q1. Testng framework,use of testng annotations
  • Q2. Maven
  • Q3. Polymorphism, Collection framework

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare indepth concepts of framework,java basic concepts.

Automation Test Analyst Jobs at Infosys

View all

Interview questions from similar companies

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Explain tosca commander
  • Ans. 

    Tosca Commander is a test automation tool used for end-to-end testing of software applications.

    • Tosca Commander allows testers to create and execute automated test cases without the need for coding.

    • It provides a visual interface for creating test cases using drag-and-drop functionality.

    • Test cases in Tosca Commander can be easily maintained and reused for regression testing.

    • It supports integration with various test manag...

  • Answered by AI

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Recruitment Consulltant and was interviewed in Sep 2023. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Its complete from Project and resume. They asked many questions from project scenario and gave some scenario's to write automation script.
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
-

I applied via Walk-in and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - Technical 

(8 Questions)

  • Q1. Can you introduce yourself?
  • Ans. 

    I am a Senior Automation Test Engineer with 5+ years of experience in designing and implementing automated testing frameworks.

    • 5+ years of experience in automation testing

    • Proficient in designing and implementing automated testing frameworks

    • Strong knowledge of testing tools like Selenium, Appium, and JUnit

    • Experience in creating test scripts and executing test cases

    • Ability to analyze test results and identify defects

  • Answered by AI
  • Q2. What is the syntax for using driver.findElement in Selenium?
  • Ans. 

    The syntax for using driver.findElement in Selenium is driver.findElement(By locator)

    • Use driver.findElement(By locator) to locate a single element on the web page

    • Specify the locator strategy (e.g. By.id, By.name, By.xpath) to identify the element

    • Example: WebElement element = driver.findElement(By.id("username"));

  • Answered by AI
  • Q3. What are the different types of assertions, and what is the syntax for a hard assertion in TestNG?
  • Ans. 

    Different types of assertions and syntax for hard assertion in TestNG

    • Types of assertions: Hard assertions and Soft assertions

    • Syntax for hard assertion in TestNG: Assert.assertEquals(expected, actual)

  • Answered by AI
  • Q4. What types of wait mechanisms are utilized in your project?
  • Ans. 

    Types of wait mechanisms include implicit wait, explicit wait, fluent wait, and thread.sleep.

    • 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.

    • Fluent wait: Waits for a condition to be true with a specified polling frequency.

    • Thread.sleep: Pauses the execution for a specified amount of time.

  • Answered by AI
  • Q5. How do you manage frames in Selenium?
  • Ans. 

    Frames in Selenium can be managed using switchTo() method to navigate between frames.

    • Use driver.switchTo().frame() method to switch to a frame by index, name or WebElement

    • Use driver.switchTo().defaultContent() method to switch back to the main content

    • Use driver.switchTo().parentFrame() method to switch to the parent frame

  • Answered by AI
  • Q6. How do you remove duplicates from an array?
  • Ans. 

    Use a Set data structure to remove duplicates from an array of strings.

    • Create a Set from the array to automatically remove duplicates

    • Convert the Set back to an array to get the unique values

  • Answered by AI
  • Q7. What is the difference between List, Set, and Map collections in Java?
  • Ans. 

    List, Set, and Map are different types of collections in Java used to store and manipulate groups of objects.

    • List is an ordered collection that allows duplicate elements. Example: ArrayList, LinkedList

    • Set is a collection that does not allow duplicate elements. Example: HashSet, TreeSet

    • Map is a collection of key-value pairs where each key is unique. Example: HashMap, TreeMap

  • Answered by AI
  • Q8. What actions would you take if there is a mismatch between user stories and application functionality?
  • Ans. 

    I would analyze the user stories and application functionality to identify the root cause of the mismatch and work towards resolving it.

    • Review the user stories and application functionality to understand the discrepancies

    • Communicate with stakeholders to clarify requirements and expectations

    • Update test cases and automation scripts to align with the corrected user stories

    • Collaborate with developers to address any underly

  • Answered by AI
Round 2 - Technical 

(4 Questions)

  • Q1. What is your relevant experience, and what are your roles and responsibilities in your current company?
  • Ans. 

    I have over 5 years of experience in automation testing, with a focus on creating and executing test scripts for web applications.

    • Developing automation test scripts using tools like Selenium and TestNG

    • Creating test plans and test cases based on requirements

    • Executing test cases and reporting defects

    • Collaborating with developers and QA team to ensure quality of the product

    • Participating in Agile ceremonies such as sprint

  • Answered by AI
  • Q2. Can you provide a specific scenario from your previous project, and detail the feature file step definitions while demonstrating how to run the scenario with different sets of data?
  • Ans. 

    Demonstrating feature file step definitions with different sets of data in a previous project scenario

    • Create a feature file with a scenario outline that includes placeholders for different sets of data

    • Write step definitions that use the placeholders to run the scenario with different data sets

    • Use data tables or examples in the feature file to provide the different sets of data

    • Run the scenario with different data sets t...

  • Answered by AI
  • Q3. What approach can be used to count the number of URLs in an HTML page using Selenium and open the URL that contains your name?
  • Ans. 

    To count URLs in an HTML page using Selenium and open the URL containing your name, you can use a combination of Selenium WebDriver methods and regular expressions.

    • Use Selenium WebDriver to navigate to the HTML page and retrieve its source code

    • Use regular expressions to identify and count the URLs in the source code

    • Iterate through the list of URLs to find the one containing your name

    • Use Selenium WebDriver to open the U

  • Answered by AI
  • Q4. How can you separate letters and digits from a string in Java? Please provide the Java code for this task.
  • Ans. 

    Use regular expressions to separate letters and digits from a string in Java.

    • Use the String class's split() method with a regular expression to separate letters and digits.

    • Create a regular expression pattern that matches either letters or digits.

    • Store the separated letters and digits in separate arrays.

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Cognizant Senior Automation Test Engineer interview:
  • Java oops
  • Selenium
  • Cucumber
Interview preparation tips for other job seekers - Review fundamental concepts, practice coding daily, and utilize free websites for practice. Be well-versed in the roles and responsibilities of your current or previous projects, and answer confidently.
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I was interviewed in Dec 2024.

Round 1 - Technical 

(7 Questions)

  • Q1. Write code to implement and explicit wait in Selenium
  • Q2. Write code to implement Robot class in java
  • Q3. How would you locate the Xpath for the "Today's Deal" menu item on Amazon
  • Q4. What will be the memory allocation for the code String str1 = "Automation"; String str2 = new String("Automation");
  • Q5. What is the difference between str1==str2 and str1.equals(str2)
  • Q6. Meaning of status code 401 and 502
  • Q7. Print first 4 letter and last 4 letter of String str="www.amazon.com"
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Technical 

(10 Questions)

  • Q1. What is the output of below code class Animal{ Animal(){ System.out.println("animal is created") } class Dog extends Animal{ Dog(){ System.out.println("Dog is created")} class TestSuper4{ pub...
  • Ans. 

    The output of the code will be 'animal is created' followed by 'Dog is created'.

    • The code defines a class Animal with a constructor that prints 'animal is created'.

    • It also defines a class Dog that extends Animal, with a constructor that prints 'Dog is created'.

    • In the main method, an instance of Dog is created, which will trigger the constructors of both Animal and Dog classes.

  • Answered by AI
  • Q2. Output of this : System.out.println(10+20+"Hello"+30+40) - Explain
  • Q3. Output of this : String name="Hello"; name=name+"There"; system.out.println(name)
  • Ans. 

    The output will be 'HelloThere'

    • Concatenation of 'Hello' and 'There' results in 'HelloThere'

    • The final string is printed using System.out.println()

  • Answered by AI
  • Q4. StringBuffer buffer=new StringBuffer("Hello") buffer.append("There"); System.out.println(buffer);
  • Ans. 

    The code creates a StringBuffer object with 'Hello' and appends 'There' to it before printing the final string.

    • StringBuffer is mutable, so the original 'Hello' string can be modified

    • The append() method adds the specified string to the end of the buffer

    • The final output will be 'HelloThere'

  • Answered by AI
  • Q5. Which is valid or invalid a. ChromeDriver driver=new ChromeDriver(); b. WebDriver driver=new ChromeDriver(); c. WebDriver driver2=new WebDriver(); driver2=new ChromeDriver();
  • Ans. 

    Option a is valid, option b is valid, option c is invalid.

    • Option a is valid because ChromeDriver is a subclass of WebDriver, so it can be assigned to a WebDriver reference.

    • Option b is valid because ChromeDriver is a subclass of WebDriver, so it can be instantiated using a WebDriver reference.

    • Option c is invalid because WebDriver is an interface and cannot be instantiated directly. It can only be used as a reference typ

  • Answered by AI
  • Q6. Program to sort the input in descending order without using inbuild method/functions
  • Ans. 

    Sort input array of strings in descending order without using inbuilt functions

    • Iterate through the array and compare each element with the rest to find the largest element

    • Swap the largest element with the first element, then repeat the process for the remaining elements

    • Continue this process until the array is sorted in descending order

  • Answered by AI
  • Q7. Difference between findElement and findElements
  • Ans. 

    findElement returns the first matching element on the page, while findElements returns a list of all matching elements.

    • findElement returns a single WebElement matching the locator provided

    • findElements returns a list of WebElements matching the locator provided

    • findElement will throw NoSuchElementException if no element is found, while findElements will return an empty list

  • Answered by AI
  • Q8. Difference between getwindowhandle and getwindowhandles() and what is output type
  • Ans. 

    getwindowhandle returns the handle of the current window, getwindowhandles() returns handles of all open windows

    • getwindowhandle returns a single window handle, while getwindowhandles() returns a set of window handles

    • getwindowhandle is used to switch between windows in Selenium WebDriver

    • Output type of getwindowhandle is String, while output type of getwindowhandles() is Set

Answered by AI
  • Q9. Question on finding the xpaths on website
  • Q10. Difference between String and StringBuilder?
  • Ans. 

    String is immutable, while StringBuilder is mutable and more efficient for concatenating strings.

    • String is immutable, meaning its value cannot be changed once it is created.

    • StringBuilder is mutable, allowing for modifications to the string without creating a new object.

    • StringBuilder is more efficient for concatenating multiple strings as it does not create new objects each time.

    • Example: String str = "Hello"; StringBuil

  • Answered by AI

    Skills evaluated in this interview

    Interview experience
    5
    Excellent
    Difficulty level
    Easy
    Process Duration
    Less than 2 weeks
    Result
    Selected Selected

    I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.

    Round 1 - One-on-one 

    (7 Questions)

    • Q1. Code to print the no of Times the letters present in a string
    • Ans. 

      Code to count the occurrences of each letter in a string and print the result

      • Iterate through each character in the string

      • Use a dictionary to store the count of each letter

      • Print the count of each letter at the end

    • Answered by AI
    • Q2. What are the ways to start a Appium server
    • Ans. 

      Appium server can be started using command line, programmatically in code, or using Appium desktop app.

      • Start Appium server using command line by running 'appium' command

      • Start Appium server programmatically in code using Appium server programmatically in code using AppiumDriverLocalService class

      • Start Appium server using Appium desktop app by launching the app and starting the server

    • Answered by AI
    • Q3. How to run tests parallel for mobile devices
    • Ans. 

      Tests can be run parallel for mobile devices using test automation frameworks like Appium or Espresso.

      • Use test automation frameworks like Appium or Espresso to run tests parallel for mobile devices

      • Leverage cloud-based testing platforms like Sauce Labs or BrowserStack for parallel testing on multiple devices

      • Implement parallel test execution using tools like TestNG or JUnit in combination with Appium or Espresso

      • Utilize d...

    • Answered by AI
    • Q4. How do you automate otp in mobile
    • Ans. 

      Automating OTP in mobile involves using automation tools to interact with the OTP input field and validate the received OTP.

      • Use automation tools like Appium or Espresso to interact with the OTP input field

      • Extract the OTP from the message received on the mobile device

      • Validate the extracted OTP with the OTP input field

      • Handle scenarios where OTP validation fails

    • Answered by AI
    • Q5. What are desired capabilities
    • Ans. 

      Desired capabilities are a set of properties or attributes that define the behavior of a browser or mobile device in Selenium automation testing.

      • Desired capabilities are key-value pairs that are used to configure the WebDriver instances in Selenium.

      • They can be used to set properties like browser name, version, platform, and other settings.

      • For example, setting 'browserName' to 'chrome' will launch the Chrome browser dur

    • Answered by AI
    • Q6. How do you tell appium to run tests on ios or Android devices
    • Ans. 

      To run tests on iOS or Android devices using Appium, specify the platformName capability in desired capabilities.

      • Specify platformName capability as 'iOS' for iOS devices and 'Android' for Android devices

      • Include other necessary desired capabilities like deviceName, platformVersion, appPackage, appActivity, etc.

      • Example: capabilities.setCapability('platformName', 'iOS');

    • Answered by AI
    • Q7. How to set up automation for ios devices
    • Ans. 

      Setting up automation for iOS devices involves using tools like Appium and Xcode for testing mobile applications.

      • Install Xcode on your Mac machine

      • Set up Appium for iOS automation

      • Connect your iOS device to the Mac machine

      • Create test scripts using Appium for iOS apps

      • Execute the test scripts on the connected iOS device

    • Answered by AI

    Skills evaluated in this interview

    Interview experience
    4
    Good
    Difficulty level
    Moderate
    Process Duration
    Less than 2 weeks
    Result
    Not Selected

    I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.

    Round 1 - Technical 

    (4 Questions)

    • Q1. Write java program to print sum of digits from a given string eg: "abcd23"
    • Ans. 

      Java program to print sum of digits from a given string

      • Iterate through each character in the string

      • Check if the character is a digit using Character.isDigit() method

      • Convert the digit character to integer using Character.getNumericValue() method

      • Sum up all the digits found in the string

    • Answered by AI
    • Q2. Explain oops concepts used in your framework with example?
    • Ans. 

      OOPs concepts used in the framework include inheritance, polymorphism, encapsulation, and abstraction.

      • Inheritance is used to create a parent-child relationship between classes. For example, a base class 'Page' can be inherited by 'HomePage' and 'LoginPage' classes.

      • Polymorphism allows objects of different classes to be treated as objects of a common superclass. For instance, a 'click' method can be implemented different...

    • Answered by AI
    • Q3. Explain polymorphism
    • Ans. 

      Polymorphism is the ability of a single function or method to operate on different types of data.

      • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

      • There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).

      • Example of compile-time polymorphism: function overloading in Java.

      • Example of runtime polymorphism: method overriding in Java

    • Answered by AI
    • Q4. Java program to print the sum of elements in string array eg: String[] arr = {"1","2","3"}
    • Ans. 

      Java program to print the sum of elements in a string array.

      • Convert each element in the string array to an integer using Integer.parseInt()

      • Sum up all the integers to get the total sum

    • Answered by AI

    Skills evaluated in this interview

    Interview experience
    4
    Good
    Difficulty level
    Moderate
    Process Duration
    Less than 2 weeks
    Result
    No response

    I applied via Referral and was interviewed in Jul 2024. There were 2 interview rounds.

    Round 1 - Technical 

    (3 Questions)

    • Q1. Multiple questions on Linux , how to get a process id, how to kill a process, what is difference between process and thread, what is the difference between concurrent and parallel process etc.
    • Q2. Few scenario based questions around linux systems, how will you trouble shoot if client not able to connect to servers running an appilcation.
    • Q3. Testing related questions, what is diff between Performance and Scale testing, where to use which one
    Round 2 - Technical 

    (2 Questions)

    • Q1. Coding questions basics, related to file handling, parsing files, etc.
    • Q2. Linux based questions - scenarios where multiple clients trying to write to same file, how till integrity of file be maintained and how will server manager the data does not get corrupted.
    Interview experience
    3
    Average
    Difficulty level
    -
    Process Duration
    -
    Result
    -
    Round 1 - Technical 

    (2 Questions)

    • Q1. List, lambda function, reverse string program
    • Q2. Sort the list, dictionary
    Round 2 - Technical 

    (1 Question)

    • Q1. OOP concept, Decorator, list to dictionary, Linux

    Infosys Interview FAQs

    How to prepare for Infosys Automation Test Analyst interview?
    Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Infosys. The most common topics and skills that interviewers at Infosys expect are Agile Coaching, Agile Methodology, Automation Testing, Digital Transformation and Functional Testing.
    What are the top questions asked in Infosys Automation Test Analyst interview?

    Some of the top questions asked at the Infosys Automation Test Analyst interview -

    1. Testng framework,use of testng annotati...read more
    2. Polymorphism, Collection framew...read more

    Tell us how to improve this page.

    Join Infosys Creating the next opportunity for people, businesses & communities

    Interview Questions from Similar Companies

    TCS Interview Questions
    3.7
     • 10.4k Interviews
    Accenture Interview Questions
    3.9
     • 8.1k Interviews
    Wipro Interview Questions
    3.7
     • 5.6k Interviews
    Cognizant Interview Questions
    3.8
     • 5.6k Interviews
    Capgemini Interview Questions
    3.7
     • 4.8k Interviews
    Tech Mahindra Interview Questions
    3.5
     • 3.8k Interviews
    HCLTech Interview Questions
    3.5
     • 3.8k Interviews
    Genpact Interview Questions
    3.8
     • 3k Interviews
    LTIMindtree Interview Questions
    3.8
     • 3k Interviews
    IBM Interview Questions
    4.0
     • 2.4k Interviews
    View all
    Infosys Automation Test Analyst Salary
    based on 206 salaries
    ₹3.6 L/yr - ₹10.5 L/yr
    7% less than the average Automation Test Analyst Salary in India
    View more details

    Infosys Automation Test Analyst Reviews and Ratings

    based on 12 reviews

    3.2/5

    Rating in categories

    2.8

    Skill development

    3.4

    Work-life balance

    2.0

    Salary

    3.6

    Job security

    3.1

    Company culture

    2.2

    Promotions

    3.3

    Work satisfaction

    Explore 12 Reviews and Ratings
    Automation Test Analyst

    Coimbatore

    3-5 Yrs

    Not Disclosed

    Explore more jobs
    Technology Analyst
    55.8k salaries
    unlock blur

    ₹3 L/yr - ₹11 L/yr

    Senior Systems Engineer
    50.2k salaries
    unlock blur

    ₹2.8 L/yr - ₹8 L/yr

    System Engineer
    39.3k salaries
    unlock blur

    ₹2.5 L/yr - ₹5.5 L/yr

    Technical Lead
    30.7k salaries
    unlock blur

    ₹5.2 L/yr - ₹19.5 L/yr

    Senior Associate Consultant
    27.5k salaries
    unlock blur

    ₹6.2 L/yr - ₹17.1 L/yr

    Explore more salaries
    Compare Infosys with

    TCS

    3.7
    Compare

    Wipro

    3.7
    Compare

    Cognizant

    3.8
    Compare

    Accenture

    3.8
    Compare
    Did you find this page helpful?
    Yes No
    write
    Share an Interview