i
TCS
Filter interviews by
You are asked to write a code using loop
My framework is a data-driven framework using Selenium and TestNG for automated testing.
Data-driven framework allows for separating test scripts from test data
Uses Selenium for web automation and TestNG for test execution and reporting
Supports parallel execution for faster test runs
What people are saying about TCS
I applied via LinkedIn and was interviewed in Dec 2022. There were 2 interview rounds.
Answers to common questions asked in an Automation Tester interview.
To mouse hover an element, you can use Actions class in Selenium WebDriver.
Xpath for an element can be written using various attributes like id, class, etc.
To run tests parallel in TestNG, you can use 'parallel' attribute in testng.xml file.
Automation test framework I worked in was based on Page Object Model design pattern.
Data provider in TestNG is us...
TCS interview questions for designations
I applied via Referral and was interviewed before Jul 2022. There were 3 interview rounds.
Oops concepts in Java refer to Object-Oriented Programming principles like Inheritance, Polymorphism, Encapsulation, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Polymorphism: Ability of a method to do different things based on the object it is acting upon.
Encapsulation: Bundling of data with the methods that operate on that data.
Abstraction: Hiding the implementatio...
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 Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Reverse the word 'I love automation' using Java
Create a StringBuilder object and pass the word to be reversed as a parameter
Use the reverse() method of the StringBuilder class to reverse the word
Convert the reversed word back to a string using the toString() method
Remove duplicates from an array of strings
Create a new array to store unique strings
Iterate through the original array and add each string to the new array only if it hasn't been added before
Use a Set data structure to efficiently check for duplicates
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)
Different exceptions in Selenium include NoSuchElementException, ElementNotVisibleException, StaleElementReferenceException, TimeoutException, and WebDriverException.
NoSuchElementException: Thrown when an element could not be found in the DOM.
ElementNotVisibleException: Thrown when an element is present in the DOM but not visible.
StaleElementReferenceException: Thrown when the element is no longer attached to the DOM.
T...
A prime number is a number greater than 1 that has no positive divisors other than 1 and itself.
Start by checking if the number is less than 2, if so it is not a prime number
Loop through numbers from 2 to the square root of the number and check if the number is divisible by any of them
If the number is not divisible by any number in the loop, then it is a prime number
1 Interview rounds
based on 55 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
67.7k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
AST Consultant
51.1k
salaries
| ₹8 L/yr - ₹25 L/yr |
Assistant System Engineer
29.9k
salaries
| ₹2.2 L/yr - ₹5.6 L/yr |
Associate Consultant
28.7k
salaries
| ₹9 L/yr - ₹32 L/yr |
Amazon
Wipro
Infosys
Accenture