i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Answering basic selenium questions including waits and exceptions.
Selenium waits include implicit, explicit, and fluent waits.
Implicit waits wait for a certain amount of time before throwing an exception.
Explicit waits wait for a certain condition to be met before proceeding.
Fluent waits wait for a certain condition to be met within a specified time frame.
Exceptions in Selenium include NoSuchElementException, TimeoutEx...
What people are saying about Cognizant
Cognizant interview questions for designations
I applied via Recruitment Consulltant and was interviewed before Jul 2023. There was 1 interview round.
A framework is a set of guidelines, tools, and libraries used to develop and maintain software applications.
Framework provides a structure for organizing code and implementing common functionalities.
It helps in reducing development time and effort by providing reusable components.
Frameworks can be categorized into different types such as data-driven, keyword-driven, and hybrid frameworks.
Examples of popular testing fra
I applied via Job Portal and was interviewed before Oct 2020. There was 1 interview round.
Hard assert is a type of assertion that stops the test execution immediately when it fails.
Hard assert is used to validate critical functionality of the application.
It is also known as 'assert' or 'assertion'.
It is used to check if the expected result matches the actual result.
If the assertion fails, the test execution stops immediately and the test case is marked as failed.
Hard assert is useful in identifying the root
I have worked on various projects involving test automation for web applications using Selenium and API testing using Postman.
Developed automated test scripts using Selenium WebDriver for regression testing of web applications
Created test suites and executed test cases using TestNG framework
Performed API testing using Postman to validate response data and status codes
Integrated test automation scripts with CI/CD pipeli...
API testing is a type of software testing that involves testing APIs directly to ensure they meet functionality, reliability, performance, and security requirements.
API testing involves testing the functionality, reliability, performance, and security of APIs.
It focuses on verifying the communication and data exchange between different software systems.
API testing can be done at different levels such as unit testing, i...
Post is used to create a new resource, while patch is used to update an existing resource.
Post is used to create a new resource in the server.
Patch is used to update an existing resource in the server.
Post request typically includes all the data needed to create the resource, while patch request only includes the data that needs to be updated.
Post requests are idempotent, meaning multiple identical requests will have t...
Priority and severity are used to classify the impact and importance of a defect in software testing.
Priority determines the order in which defects should be fixed, based on business needs.
Severity indicates the impact of a defect on the system or users.
Priority is usually set by the product owner or business stakeholders.
Severity is typically determined by the testing team based on the impact on functionality.
Examples...
I was interviewed in May 2024.
Gherkin words are keywords used in Gherkin syntax for writing test scenarios in Behavior Driven Development (BDD).
Feature
Scenario
Given
When
Then
And
But
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.
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
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.
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
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
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
I applied via Company Website and was interviewed in Jul 2024. There were 2 interview rounds.
Different types of waits include implicit, explicit, and fluent waits in automation testing.
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 in the code.
Fluent wait: Waits for a condition to be true with a specified frequency of checking.
Example: WebDriverWait in Selenium is an example of explicit w
Multiple window handles are used in automation testing to handle multiple browser windows or tabs simultaneously.
Use getWindowHandles() method to get all the window handles
Switch between window handles using switchTo().window(handle)
Close a specific window handle using driver.close()
Example: driver.getWindowHandles()
Example: driver.switchTo().window(handle)
based on 6 interviews
1 Interview rounds
based on 22 reviews
Rating in categories
Associate
72.3k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
Programmer Analyst
55.6k
salaries
| ₹2.4 L/yr - ₹9.5 L/yr |
Senior Associate
48.6k
salaries
| ₹9 L/yr - ₹27.4 L/yr |
Senior Processing Executive
28.9k
salaries
| ₹1.8 L/yr - ₹9 L/yr |
Technical Lead
17.6k
salaries
| ₹5.9 L/yr - ₹24.8 L/yr |
TCS
Infosys
Wipro
Accenture