i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I applied via Approached by Company and was interviewed in Feb 2024. There was 1 interview round.
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...
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
I applied via Naukri.com and was interviewed in May 2022. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Mar 2022. There was 1 interview round.
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...
I applied via Recruitment Consulltant and was interviewed before Sep 2021. There was 1 interview round.
I was interviewed before May 2020.
I applied via LinkedIn and was interviewed in Sep 2024. There was 1 interview round.
Hard assert is a type of assertion in test automation that stops the test execution immediately when a failure occurs.
Hard assert is used to validate the expected outcome of a test case
If the assertion fails, the test execution is halted and marked as failed
It is commonly used in automated test scripts to ensure the correctness of the application under test
Soft assert is a way to continue the execution of a test case even after an assertion failure.
Soft assert does not stop the execution of the test case when an assertion fails.
It is useful when you want to log the failure but continue with the remaining test steps.
Soft assert is commonly used in test automation frameworks like TestNG in Java.
I applied via Approached by Company and was interviewed in Mar 2023. There were 4 interview rounds.
Program to toggle string
Create an empty string variable
Loop through each character in the input string
If the character is uppercase, convert it to lowercase and add to the new string
If the character is lowercase, convert it to uppercase and add to the new string
Return the new string
Program to check if string is number
Use built-in functions like isdigit() or isnumeric()
Handle negative numbers and decimal points separately
Consider edge cases like leading/trailing spaces and exponential notation
Swap two strings without using third
Use XOR operator
Use addition and subtraction
Use multiplication and division
To create an alphanumeric string of a given length, we can use a combination of random letters and numbers.
Determine the length of the string required
Create a list of all possible alphanumeric characters
Randomly select characters from the list and append them to the string until the desired length is reached
A framework is a set of guidelines, standards, and tools used to develop and maintain software applications.
A framework provides a structure for organizing code and building applications
It includes pre-written code libraries, modules, and functions that can be reused
Frameworks can be specific to a programming language or technology
Examples include Selenium for web testing, Robot Framework for automation testing, and Dj
based on 9 reviews
Rating in categories
Associate
72.7k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
Programmer Analyst
55.4k
salaries
| ₹2.4 L/yr - ₹9.7 L/yr |
Senior Associate
48.3k
salaries
| ₹8.9 L/yr - ₹27 L/yr |
Senior Processing Executive
28.6k
salaries
| ₹1.8 L/yr - ₹9 L/yr |
Technical Lead
17.6k
salaries
| ₹5.9 L/yr - ₹24 L/yr |
TCS
Infosys
Wipro
Accenture