i
TCS
Filter interviews by
Data provider annotation in TestNG allows parameterized testing by supplying multiple sets of data to a single test method.
The @DataProvider annotation is used to create a method that supplies data to test methods.
It can return an Object[][] array, where each inner array represents a set of parameters for a test.
Example: @DataProvider(name = 'data') public Object[][] dataMethod() { return new Object[][] { {1, 2}, ...
A bug lifecycle outlines the stages a defect goes through from identification to resolution and closure.
1. Identification: A bug is discovered during testing or by users. Example: A user reports a crash when opening an app.
2. Reporting: The bug is documented in a bug tracking system with details. Example: A QA engineer logs the bug with steps to reproduce.
3. Triage: The bug is assessed for severity and priority. E...
Selenium syntax for selecting elements and using explicit waits to ensure elements are ready for interaction.
Use Select class for dropdowns: `Select dropdown = new Select(driver.findElement(By.id('dropdownId')));`
To select an option: `dropdown.selectByVisibleText('Option Text');`
For explicit wait, use WebDriverWait: `WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));`
Wait for an element to be ...
XPath is a powerful language for navigating XML and HTML documents, essential for web app testing.
XPath uses path expressions to select nodes or a set of nodes in an XML document.
Example: //div selects all <div> elements in the document.
You can use predicates to filter results, e.g., //input[@type='text'] selects all text input fields.
XPath supports various axes like child, parent, and sibling, e.g., //ul/li...
What people are saying about TCS
Sorting an array of strings using Java
Use Arrays.sort() method to sort the array of strings
You can also use a custom Comparator to define the sorting order
Example: String[] arr = {"apple", "banana", "cherry"}; Arrays.sort(arr);
Sending keys using JSE in QA testing
Use the sendKeys() method to send keyboard input to a web element
Locate the element using findElement() method before sending keys
Example: driver.findElement(By.id("username")).sendKeys("example@gmail.com")
Understanding string arrays is crucial for managing collections of text data in programming.
A string array is a collection of strings, e.g., `String[] fruits = {"apple", "banana", "cherry"};`.
You can access elements using an index, e.g., `fruits[0]` returns "apple".
String arrays can be iterated using loops, e.g., `for (String fruit : fruits) { System.out.println(fruit); }`.
They can be used to store user inputs, e....
Methods that can be inherited by a child class include public and protected methods from the parent class.
Public methods in the parent class can be inherited by the child class.
Protected methods in the parent class can also be inherited by the child class.
Private methods in the parent class cannot be inherited by the child class.
Functional testing is a type of software testing where the system is tested against the functional requirements/specifications.
Tests the functionality of the software application
Focuses on what the system does
Verifies that the system behaves as expected based on the requirements
Does not concern with how the system works internally
Examples: testing login functionality, search feature, data validation
Locators can be found using browser developer tools, inspecting elements, using unique attributes, and writing efficient XPath or CSS selectors.
Use browser developer tools to inspect elements on the webpage
Look for unique attributes like IDs, classes, or data attributes
Write efficient XPath or CSS selectors to locate elements
Consider using relative locators for dynamic elements
Hackerank platform with multiple questions.
I appeared for an interview in Apr 2025, where I was asked the following questions.
This Java program counts the characters in a given string, such as 'Apple', and outputs the total count.
Use the length() method of the String class to get the character count. Example: s.length() for s = 'Apple'.
You can also use a loop to iterate through the string and count characters manually.
Consider edge cases like empty strings or null values.
Data provider annotation in TestNG allows parameterized testing by supplying multiple sets of data to a single test method.
The @DataProvider annotation is used to create a method that supplies data to test methods.
It can return an Object[][] array, where each inner array represents a set of parameters for a test.
Example: @DataProvider(name = 'data') public Object[][] dataMethod() { return new Object[][] { {1, 2}, {3, 4...
Understanding string arrays is crucial for managing collections of text data in programming.
A string array is a collection of strings, e.g., `String[] fruits = {"apple", "banana", "cherry"};`.
You can access elements using an index, e.g., `fruits[0]` returns "apple".
String arrays can be iterated using loops, e.g., `for (String fruit : fruits) { System.out.println(fruit); }`.
They can be used to store user inputs, e.g., `...
Sending keys using JSE in QA testing
Use the sendKeys() method to send keyboard input to a web element
Locate the element using findElement() method before sending keys
Example: driver.findElement(By.id("username")).sendKeys("example@gmail.com")
I applied via Job Portal and was interviewed in Nov 2024. There was 1 interview round.
Find the duplicate number in array
Functional testing is a type of software testing where the system is tested against the functional requirements/specifications.
Tests the functionality of the software application
Focuses on what the system does
Verifies that the system behaves as expected based on the requirements
Does not concern with how the system works internally
Examples: testing login functionality, search feature, data validation
RCA document stands for Root Cause Analysis document, which is used to identify the underlying cause of a problem or issue.
RCA document is a detailed report that outlines the steps taken to investigate and determine the root cause of a problem.
It includes information on the problem, the impact it had, the investigation process, findings, and recommendations for preventing similar issues in the future.
RCA documents are ...
I applied via Naukri.com and was interviewed in Oct 2024. There were 3 interview rounds.
String in another string
Multiple questions, coding also important
Methods that can be inherited by a child class include public and protected methods from the parent class.
Public methods in the parent class can be inherited by the child class.
Protected methods in the parent class can also be inherited by the child class.
Private methods in the parent class cannot be inherited by the child class.
Locators in Selenium are used to identify web elements on a webpage for automation testing.
Locators include ID, name, class name, tag name, link text, partial link text, CSS selector, and XPath.
ID is the most efficient locator as it is unique for each element.
XPath is powerful but slower as it traverses the entire DOM.
CSS selector is faster than XPath and can be used for complex selections.
Using unique locators helps i...
XPath is a powerful language for navigating XML and HTML documents, essential for web app testing.
XPath uses path expressions to select nodes or a set of nodes in an XML document.
Example: //div selects all <div> elements in the document.
You can use predicates to filter results, e.g., //input[@type='text'] selects all text input fields.
XPath supports various axes like child, parent, and sibling, e.g., //ul/li sele...
Selenium syntax for selecting elements and using explicit waits to ensure elements are ready for interaction.
Use Select class for dropdowns: `Select dropdown = new Select(driver.findElement(By.id('dropdownId')));`
To select an option: `dropdown.selectByVisibleText('Option Text');`
For explicit wait, use WebDriverWait: `WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));`
Wait for an element to be click...
Good easy question about array.
The duration of TCS QA Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 49 interview experiences
Difficulty level
Duration
based on 168 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹3.9 L/yr - ₹8.3 L/yr |
IT Analyst
65.5k
salaries
| ₹7.7 L/yr - ₹12.7 L/yr |
AST Consultant
53.6k
salaries
| ₹12 L/yr - ₹20.6 L/yr |
Assistant System Engineer
33.2k
salaries
| ₹2.5 L/yr - ₹6.4 L/yr |
Associate Consultant
33k
salaries
| ₹16.2 L/yr - ₹28 L/yr |
Amazon
Wipro
Infosys
Accenture