Upload Button Icon Add office photos
Engaged Employer

i

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

Cognizant Verified Tick

Compare button icon Compare button icon Compare
3.8

based on 47.6k Reviews

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Cognizant QA Automation Engineer Interview Questions and Answers

Updated 11 Aug 2024

Cognizant QA Automation Engineer Interview Experiences

2 interviews found

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Approached by Company and was interviewed in Feb 2024. There was 1 interview round.

Round 1 - Technical 

(5 Questions)

  • Q1. Playwright related questions
  • Q2. Scenario based questions
  • Q3. API testing and data-related
  • Q4. Difference between soft and hard assertions
  • Ans. 

    Soft assertions allow test execution to continue after a failure, while hard assertions stop the test execution immediately.

    • Soft assertions are used when you want to check multiple conditions in a test case without stopping the execution on the first failure.

    • Hard assertions are used when you want to stop the test execution immediately after a failure.

    • Soft assertions are typically used in scenarios where you want to col...

  • Answered by AI
  • Q5. How to navigate the browser
  • Ans. 

    To navigate the browser, use methods like get(), navigate().to(), navigate().back(), navigate().forward(), and navigate().refresh().

    • Use driver.get("url") to open a specific URL

    • Use driver.navigate().to("url") to navigate to a specific URL

    • Use driver.navigate().back() to navigate back to the previous page

    • Use driver.navigate().forward() to navigate forward to the next page

    • Use driver.navigate().refresh() to refresh the curr

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Cognizant QA Automation Engineer interview:
  • playwright
  • automation
Interview preparation tips for other job seekers - not received a reply from HR even I get good response from technical interview

Skills evaluated in this interview

Round 1 - Aptitude Test 
Round 2 - HR 

(8 Questions)

  • Q1. What are your salary expectations?
  • Q2. Share details of your previous job.
  • Q3. What is your family background?
  • Q4. Why should we hire you?
  • Q5. Why are you looking for a change?
  • Q6. Where do you see yourself in 5 years?
  • Q7. What are your strengths and weaknesses?
  • Q8. Tell me about yourself.

Interview Preparation Tips

Interview preparation tips for other job seekers - Basic programming question like print pattern, String reverse, prime no, Palindrome string or no.
Questions on core background or previous project experience.

Interview questions from similar companies

I applied via Naukri.com and was interviewed in May 2022. There were 3 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Basic knowledge on sql, Basic questions on manual testing, core java and automation questions
Round 2 - HR 

(2 Questions)

  • Q1. We will check communication
  • Q2. Why should hire you? Why it? Introduce yourself?
Round 3 - Behavioral 

(1 Question)

  • Q1. Basic knowledge, salary discussion

Interview Preparation Tips

Topics to prepare for Infosys QA Automation Engineer interview:
  • Manual Testing
  • Core Java
  • Selenium
Interview preparation tips for other job seekers - I am technically strong and communication is good. Looking for opportunity
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(1 Question)

  • Q1. Technical interview and HR
Round 3 - HR 

(1 Question)

  • Q1. Technical interview and HR

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare according to the topis that you mentioned in your resume

I applied via Naukri.com and was interviewed in Mar 2022. There was 1 interview round.

Round 1 - One-on-one 

(1 Question)

  • Q1. Difference between set and list? Difference between throw and throws?
  • Ans. 

    Set is an unordered collection of unique elements while list is an ordered collection of elements. Throw is used to throw an exception while throws is used to declare an exception.

    • Set does not allow duplicate elements while list can have duplicates.

    • Set does not maintain the order of elements while list maintains the order.

    • Throw is used to explicitly throw an exception in a method while throws is used to declare the exc...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Study selenium and java in depth

I applied via Recruitment Consulltant and was interviewed before Sep 2021. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. Project in which i worked, Android development
  • Q2. Appium and selenium related questions
  • Q3. Sdlc and stlc basic concepts

Interview Preparation Tips

Interview preparation tips for other job seekers - Learn basic of testing, istqb certificate prefer

I was interviewed before May 2020.

Interview Questionnaire 

1 Question

  • Q1. They asked me about Software Development and Interview was done by Junior Developer.

Interview Preparation Tips

Interview preparation tips for other job seekers - It's rude to Interview a Software QA by Developer, there is much difference between Software Automation and Software Automation Testing. IBM Employee Vishnu Priya interviewed me without basic knowledge of Software Testing and completely distracted the Interview with API Development Questions. She was dumb about Assertions in Software Testing, Assertions are a key part of Automation Testing. She was very aggressive while she was asking me the questions.
Which language QA must remember when QA worked on several tools with several languages?
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
    2-4 weeks
    Result
    Selected Selected

    I was interviewed in May 2024.

    Round 1 - Technical 

    (10 Questions)

    • Q1. Basics of Selenium(Windowhandles,Screenshot,Actions class,Selector Class,) with syntax
    • Q2. Asked to write Automation Framework architecture
    • Q3. What are the different gherkin words
    • Ans. 

      Gherkin words are keywords used in Gherkin syntax for writing test scenarios in Behavior Driven Development (BDD).

      • Feature

      • Scenario

      • Given

      • When

      • Then

      • And

      • But

    • Answered by AI
    • Q4. What we will use in plugin
    • Ans. 

      Plugins are used to extend the functionality of a software application.

      • Plugins are additional software components that can be added to an existing application to provide new features or functionalities.

      • They can be used to customize the behavior of the application without modifying its core code.

      • Examples of plugins include browser extensions, WordPress plugins, and Adobe Photoshop filters.

    • Answered by AI
    • Q5. How to run runner class
    • Ans. 

      To run a runner class, you can use a test runner tool like JUnit or TestNG in your automation testing framework.

      • Use a test runner tool like JUnit or TestNG to execute the runner class

      • Add the @RunWith annotation in JUnit or specify the runner class in TestNG XML file

      • Make sure the runner class includes the necessary setup and teardown methods for test execution

    • Answered by AI
    • Q6. Java oops, strings , exception handling
    • Q7. How to run parallel mode in testng,groups,priority
    • Ans. 

      TestNG allows running tests in parallel mode using groups and priorities.

      • Use 'parallel' attribute in testng.xml file to specify parallel mode (e.g. )

      • Use 'groups' attribute in testng.xml file to group tests that should run in parallel (e.g. )

      • Use 'priority' attribute in testng.xml file to specify the order in which tests should run (e.g.

    • Answered by AI
    • Q8. Write Merge Sort Programme
    • Ans. 

      Merge Sort is a divide and conquer algorithm that divides the input array into two halves, sorts them, and then merges them back together.

      • Divide the array into two halves recursively

      • Sort each half using Merge Sort recursively

      • Merge the sorted halves back together

    • Answered by AI
    • Q9. Write Reverse a string programme
    • Ans. 

      Program to reverse a string using array of characters

      • Create an array of characters from the input string

      • Iterate through the array in reverse order and append each character to a new string

      • Return the reversed string

    • Answered by AI
    • Q10. Write syntax of data driven testing (XSSF Workbook) Syntax
    • Ans. 

      Data driven testing syntax using XSSF Workbook

      • Create XSSFWorkbook object

      • Get the sheet from the workbook

      • Iterate through rows and columns to fetch test data

      • Use test data in your test cases

    • Answered by AI
    Round 2 - Technical 

    (1 Question)

    • Q1. Selenium basics ( window handles , screenshot,reports, file upload and download, Add extension, Headless mode)

    Interview Preparation Tips

    Interview preparation tips for other job seekers - I would say it is easy to crack Service based Companies. Just prepare all the concepts of Selenium, Java,TestNG,Maven,GitHub and basic 20 Programmes.

    For Selenium and BDD(Cucumber)Learn Rahul Shetty Udemy course
    For Java search and learn top 200 interview questions.
    Basic programmes like ( Duplicate characters,reverse string,unique characters, string anagram, Bubble sort , merge sort, quick sort and some more) .

    How I switched from my current company.
    Do’s
    Uninstall social media apps.
    Stop watching movies.
    Stop eating Junk food.
    Study at least 1-2 hours daily.
    Listen motivational songs.
    Make connections on LinkedIn.
    Make single page resume by creating on overleaf website.

    How to apply to companies.
    Don’t apply directly on company website(Big mistake)
    Send resumes to hr directly(u will get their mails on some posts on LinkedIn)
    Ask referral on LinkedIn.
    Update Naukri daily 9am and put notice period to 30 or 15days.

    Skills evaluated in this interview

    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

    Cognizant Interview FAQs

    How many rounds are there in Cognizant QA Automation Engineer interview?
    Cognizant interview process usually has 1-2 rounds. The most common rounds in the Cognizant interview process are Aptitude Test, HR and Technical.
    What are the top questions asked in Cognizant QA Automation Engineer interview?

    Some of the top questions asked at the Cognizant QA Automation Engineer interview -

    1. difference between soft and hard asserti...read more
    2. how to navigate the brow...read more
    3. playwright related questi...read more

    Tell us how to improve this page.

    Cognizant QA Automation Engineer Salary
    based on 147 salaries
    ₹3 L/yr - ₹11.9 L/yr
    At par with the average QA Automation Engineer Salary in India
    View more details

    Cognizant QA Automation Engineer Reviews and Ratings

    based on 9 reviews

    4.2/5

    Rating in categories

    4.4

    Skill development

    4.5

    Work-Life balance

    3.9

    Salary & Benefits

    4.6

    Job Security

    4.1

    Company culture

    3.5

    Promotions/Appraisal

    4.0

    Work Satisfaction

    Explore 9 Reviews and Ratings
    Associate
    72.7k salaries
    unlock blur

    ₹5.1 L/yr - ₹16 L/yr

    Programmer Analyst
    55.4k salaries
    unlock blur

    ₹2.4 L/yr - ₹9.7 L/yr

    Senior Associate
    48.3k salaries
    unlock blur

    ₹8.9 L/yr - ₹27 L/yr

    Senior Processing Executive
    28.6k salaries
    unlock blur

    ₹1.8 L/yr - ₹9 L/yr

    Technical Lead
    17.6k salaries
    unlock blur

    ₹5.9 L/yr - ₹24 L/yr

    Explore more salaries
    Compare Cognizant with

    TCS

    3.7
    Compare

    Infosys

    3.7
    Compare

    Wipro

    3.7
    Compare

    Accenture

    3.9
    Compare

    Calculate your in-hand salary

    Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
    Did you find this page helpful?
    Yes No
    write
    Share an Interview