Cognizant Recent Interview Questions and Answers
Cognizant Recent Interview Questions and Answers
Round 1
An automation testing framework is a structured set of guidelines to create and execute test
scripts efficiently. Common frameworks include:
Data-Driven Framework: Tests are driven by external data sources like Excel or CSV files.
Page Object Model (POM): Helps create maintainable and reusable code by separating test
scripts from the locators.
Collaborating with developers, business analysts, and stakeholders during sprint planning
and review.
Writing and executing test cases, raising defects, and revalidating fixes.
Push: After committing changes locally, I use git push origin <branch> to upload changes to
the remote repository.
Pull: To sync the latest updates, I use git pull origin <branch> to fetch and merge remote
changes.
Yes, frameworks like BDD (Behavior-Driven Development) with tools like Cucumber can be
used, which allow writing tests in plain English. This approach enhances collaboration with
non-technical stakeholders.
Difference between implicit wait and explicit wait?
Implicit Wait: Sets a global wait time for all elements (e.g.,
driver.manage().timeouts().implicitlyWait(time, unit);).
Explicit Wait: Waits for a specific condition to occur before proceeding (e.g.,
WebDriverWait).
Automation script runs sometimes and gets stuck. How to solve it?
Use explicit waits for dynamic elements or debug the script using logs.
Overloading: Same method name, different parameters, within the same class.
Use explicit wait for specific, dynamic conditions like waiting for elements to be clickable.
Perform CRUD operations, verify response codes, and handle edge cases.
Status codes:
Round 2
Provide a concise explanation of your most recent project, focusing on its objectives, your
role, tools used, and contributions.
Sort 2nd column in a web table and get 4th row value:
Locate the table rows using XPath and write logic to sort based on the 2nd column.
Process ResultSet.
Encapsulation
Bundling data and methods that operate on the data into a single unit (class).
Ensures data security by restricting access through access modifiers (private, public,
protected).
Inheritance
Enables a class (child) to inherit properties and behavior from another class (parent).
Polymorphism
Abstraction
Hides implementation details and exposes only essential features to the user.
Round 3
I am looking for a role that offers more challenging opportunities to expand my technical
skills and contribute to impactful projects.
A test automation engineer, mentoring a team, contributing to quality delivery, and driving
innovative solutions.