i
Cognizant
Filter interviews by
Cucumber framework executes feature files using step definitions and generates reports.
Cucumber reads feature files written in Gherkin syntax
Step definitions are written in programming language
Cucumber matches steps in feature file with step definitions
Cucumber generates reports after execution
Absolute Xpath is the complete path from the root element while relative Xpath is the path from the current element.
Absolute Xpath starts with a single forward slash (/) and is used to locate an element from the root node.
Relative Xpath starts with a double forward slash (//) and is used to locate an element from the current node.
Absolute Xpath is more specific and less flexible while relative Xpath is more flexib...
Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in a subclass with the same name and parameters as a method in its superclass.
Overloading is compile-time polymorphism while overriding is runtime polymorphism.
Overloading is used to provide different implementations of the same method for different input parameters.
Overriding is used to provide a spec...
Scenario outlines are templates for scenarios with placeholders for input values.
Scenario outlines are used in BDD frameworks like Cucumber.
They allow for the creation of multiple scenarios with different input values.
Scenario outlines use placeholders like
Example: Given a
Scenario outlines are more flexible and reusable than regular s...
What people are saying about Cognizant
How to skip a specific test case in TestNG?
Use @Test(enabled = false) annotation to skip a test case
Use @Test(groups = {"skip"}) annotation and exclude the group from test execution
Use ITestResult.SKIP status to skip a test case programmatically
To select a checkbox in Selenium, locate the checkbox element and use the 'click' method.
Locate the checkbox element using any of the available locators in Selenium
Use the 'click' method to select the checkbox
Verify that the checkbox is selected using the 'isSelected' method
TakescreenShot sudo code captures the screen and saves it as an image file.
Import necessary libraries for capturing the screen and saving images
Define a function to capture the screen
Specify the file format and location to save the screenshot
Call the function to capture and save the screenshot
The get method is used to retrieve a value from a data structure, while the quit method is used to terminate a program or session.
The get method is commonly used in programming languages to access elements from arrays, lists, dictionaries, etc.
The quit method is typically used to gracefully exit a program or session, closing any open resources or connections.
Example: In Python, the get method is used to retrieve v...
Exception handling process involves identifying, catching, and handling errors in the software.
Identify potential exceptions and define exception classes
Catch exceptions using try-catch blocks
Handle exceptions appropriately, either by logging or displaying error messages
Implement a fallback mechanism to handle unexpected exceptions
Test exception handling scenarios thoroughly
TestNG annotations are executed in a specific order to ensure proper test execution.
BeforeSuite
BeforeTest
BeforeClass
BeforeMethod
Test
AfterMethod
AfterClass
AfterTest
AfterSuite
I applied via Recruitment Consulltant and was interviewed before Feb 2021. There was 1 interview round.
The get method is used to retrieve a value from a data structure, while the quit method is used to terminate a program or session.
The get method is commonly used in programming languages to access elements from arrays, lists, dictionaries, etc.
The quit method is typically used to gracefully exit a program or session, closing any open resources or connections.
Example: In Python, the get method is used to retrieve values...
TakescreenShot sudo code captures the screen and saves it as an image file.
Import necessary libraries for capturing the screen and saving images
Define a function to capture the screen
Specify the file format and location to save the screenshot
Call the function to capture and save the screenshot
Exception handling process involves identifying, catching, and handling errors in the software.
Identify potential exceptions and define exception classes
Catch exceptions using try-catch blocks
Handle exceptions appropriately, either by logging or displaying error messages
Implement a fallback mechanism to handle unexpected exceptions
Test exception handling scenarios thoroughly
Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in a subclass with the same name and parameters as a method in its superclass.
Overloading is compile-time polymorphism while overriding is runtime polymorphism.
Overloading is used to provide different implementations of the same method for different input parameters.
Overriding is used to provide a specific ...
To select a checkbox in Selenium, locate the checkbox element and use the 'click' method.
Locate the checkbox element using any of the available locators in Selenium
Use the 'click' method to select the checkbox
Verify that the checkbox is selected using the 'isSelected' method
How to skip a specific test case in TestNG?
Use @Test(enabled = false) annotation to skip a test case
Use @Test(groups = {"skip"}) annotation and exclude the group from test execution
Use ITestResult.SKIP status to skip a test case programmatically
Absolute Xpath is the complete path from the root element while relative Xpath is the path from the current element.
Absolute Xpath starts with a single forward slash (/) and is used to locate an element from the root node.
Relative Xpath starts with a double forward slash (//) and is used to locate an element from the current node.
Absolute Xpath is more specific and less flexible while relative Xpath is more flexible an...
Cucumber framework executes feature files using step definitions and generates reports.
Cucumber reads feature files written in Gherkin syntax
Step definitions are written in programming language
Cucumber matches steps in feature file with step definitions
Cucumber generates reports after execution
Scenario outlines are templates for scenarios with placeholders for input values.
Scenario outlines are used in BDD frameworks like Cucumber.
They allow for the creation of multiple scenarios with different input values.
Scenario outlines use placeholders like
Example: Given a
Scenario outlines are more flexible and reusable than regular scenar...
TestNG annotations are executed in a specific order to ensure proper test execution.
BeforeSuite
BeforeTest
BeforeClass
BeforeMethod
Test
AfterMethod
AfterClass
AfterTest
AfterSuite
I applied via Naukri.com and was interviewed in Nov 2019. There were 3 interview rounds.
I'm seeking new challenges and opportunities for growth that align with my career goals and aspirations.
Desire for professional growth: I'm looking to expand my skill set and take on more leadership responsibilities.
Seeking a better cultural fit: My current company has a different work culture than what I thrive in; I value collaboration and innovation.
Interest in new technologies: I'm excited about working with cuttin...
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
What people are saying about Cognizant
posted on 19 May 2021
I applied via Walk-in and was interviewed before May 2020. There were 3 interview rounds.
C++ is a high-level programming language used for developing system software, application software, device drivers, and video games.
C++ is an extension of the C programming language.
It supports object-oriented programming concepts like classes, inheritance, polymorphism, and encapsulation.
C++ is used in developing operating systems, browsers, databases, and other software applications.
It is known for its performance an...
A data structure that stores a sequence of elements in a linear order.
Consists of nodes that contain data and a pointer to the next node.
Can be singly linked or doubly linked.
Used for implementing stacks, queues, and hash tables.
Example: Singly linked list - 1 -> 2 -> 3 -> null
Example: Doubly linked list - null <- 1 <-> 2 <-> 3 -> null
I applied via Job Portal and was interviewed before Dec 2019. There was 1 interview round.
I applied via Company Website and was interviewed before Jun 2020. There was 1 interview round.
I applied via Recruitment Consultant and was interviewed before May 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before May 2020. There were 3 interview rounds.
I applied via Applied in more than one job portal can't remember now. and was interviewed before Jan 2020. There was 1 interview round.
based on 1 review
Rating in categories
Associate
73k
salaries
| ₹5.3 L/yr - ₹12.5 L/yr |
Programmer Analyst
56.2k
salaries
| ₹3.5 L/yr - ₹7.3 L/yr |
Senior Associate
55.1k
salaries
| ₹9.7 L/yr - ₹23.4 L/yr |
Senior Processing Executive
29.8k
salaries
| ₹2.3 L/yr - ₹6.5 L/yr |
Technical Lead
19k
salaries
| ₹6 L/yr - ₹21 L/yr |
TCS
Infosys
Wipro
Accenture