Add office photos
Cognizant logo
Engaged Employer

Cognizant

Verified
3.7
based on 50.5k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
QA Engineer
Clear (1)

10+ Cognizant QA Engineer Interview Questions and Answers

Updated 18 Jul 2024

Q1. reverse string, find duplicate character in a string

Ans.

Reverse a string and find duplicate characters in it.

  • Use built-in functions like reverse() and count() in Python.

  • Loop through the string and compare each character with the rest of the string to find duplicates.

  • Create a dictionary to store the count of each character and return the duplicates.

  • Convert the string to an array, reverse it, and join it back to get the reversed string.

Add your answer
right arrow

Q2. How to identify an dynamically changing object

Ans.

Dynamically changing objects can be identified by using unique attributes like ID, class, or XPath.

  • Inspect the object in the DOM to find unique identifiers like ID, class, or XPath

  • Use tools like Chrome Developer Tools or Firebug to identify dynamic changes

  • Monitor changes in the object's attributes or properties during automation testing

Add your answer
right arrow

Q3. how to fetch data from xls

Ans.

To fetch data from xls, use a library like Apache POI or OpenPyXL.

  • Use a library like Apache POI or OpenPyXL to read data from xls files

  • Identify the sheet and cell range to read data from

  • Iterate through the rows and columns to extract the data

  • Handle any formatting or data type conversions as needed

Add your answer
right arrow

Q4. Wait in Selenium. type of waits.

Ans.

Types of waits in Selenium include implicit, explicit, and fluent waits.

  • Implicit waits wait for a certain amount of time before throwing an exception if an element is not found.

  • Explicit waits wait for a certain condition to be met before proceeding with the next step.

  • Fluent waits wait for a certain condition to be met within a specified time frame.

  • Examples of conditions include element visibility, element clickability, and text presence.

  • Examples of time frames include seconds...read more

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

Q5. What is your experience in Automation?

Ans.

I have 3 years of experience in Automation testing using tools like Selenium and Appium.

  • Developed automated test scripts for web applications using Selenium WebDriver

  • Performed mobile automation testing using Appium for iOS and Android applications

  • Integrated automation scripts with continuous integration tools like Jenkins

Add your answer
right arrow

Q6. dynamic element how to search

Ans.

Dynamic elements can be searched using unique attributes like ID, class, name, or XPath.

  • Use ID attribute if it's unique and static

  • Use class attribute if it's unique and dynamic

  • Use name attribute if it's unique and static

  • Use XPath if other attributes are not unique or not available

Add your answer
right arrow

Q7. framework used in your previous project

Ans.

We used Selenium WebDriver with TestNG framework for automated testing in our previous project.

  • Selenium WebDriver was used for automating web application testing

  • TestNG framework was used for test case management and execution

  • Integration with Jenkins for continuous integration

  • Page Object Model design pattern was implemented for better test maintenance

Add your answer
right arrow

Q8. How to remove duplicate data

Ans.

To remove duplicate data, use data structures like sets or hashmaps to store unique values.

  • Use a set to store unique values and then convert it back to an array

  • Iterate through the array and check if the value already exists in the set before adding it

  • Use a hashmap to store values as keys and their occurrences as values, then filter out values with occurrences greater than 1

Add your answer
right arrow

Q9. How to identify a table

Ans.

A table can be identified by its structure, typically consisting of rows and columns.

  • Look for a grid-like structure with rows and columns

  • Check for headings or labels for each column

  • Tables often contain data organized in a structured format

Add your answer
right arrow

Q10. Types of selectors

Ans.

Selectors are used in automation testing to locate web elements on a page.

  • Types of selectors include ID, class, name, tag name, link text, partial link text, xpath, and css selector.

  • ID selector: #elementId

  • Class selector: .className

  • Name selector: [name='elementName']

  • Tag name selector: tagName

  • Link text selector: link=exactLinkText

  • Partial link text selector: partialLink=partialLinkText

  • XPath selector: //xpathExpression

  • CSS selector: css=cssSelector

Add your answer
right arrow

More about working at Cognizant

Back
Awards Leaf
AmbitionBox Logo
Top Rated Mega Company - 2024
Awards Leaf
Awards Leaf
AmbitionBox Logo
Top Rated IT/ITES Company - 2024
Awards Leaf
HQ - Teaneck. New Jersey., United States (USA)
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 Cognizant QA Engineer

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

Top QA Engineer Interview Questions from Similar Companies

TCS Logo
3.7
 • 19 Interview Questions
Accenture Logo
3.8
 • 18 Interview Questions
Bolt.Earth Logo
3.8
 • 11 Interview Questions
IBM Logo
4.0
 • 10 Interview Questions
Capgemini Logo
3.7
 • 10 Interview Questions
View all
Recently Viewed
INTERVIEWS
Accenture
10 top interview questions
REVIEWS
Kansai Nerolac Paints
No Reviews
INTERVIEWS
TCS
10 top interview questions
DESIGNATION
LIST OF COMPANIES
Toshiba Transmission & Distribution Systems
Overview
COMPANY BENEFITS
Toshiba Transmission & Distribution Systems
No Benefits
SALARIES
Toshiba Transmission & Distribution Systems
No Salaries
DESIGNATION
INTERVIEWS
Foxit
10 top interview questions
REVIEWS
Apmosys Technologies
No Reviews
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