i
TCS
Filter interviews by
I applied via Naukri.com and was interviewed in Dec 2021. There were 3 interview rounds.
Implicit and Explicit waits are used in Selenium to wait for elements to load before performing actions.
Implicit wait waits for a specified amount of time before throwing an exception if the element is not found.
Explicit wait waits for a specific condition to be met before proceeding with the next step.
Syntax for implicit wait: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Syntax for explicit wait: We...
Screenshots can be taken in Selenium using the TakesScreenshot interface.
Create an object of the TakesScreenshot interface
Call the getScreenshotAs() method on the driver object
Save the screenshot to a desired location using the File class
To select values in dropdowns, click on the dropdown and choose the desired option.
Click on the dropdown to expand the list of options
Scroll through the list to find the desired option
Click on the desired option to select it
If the desired option is not visible, type the first few letters of the option to filter the list
XPath and CSS selectors are both used to locate elements on a web page, but they have different syntax and capabilities.
XPath uses a path expression to navigate through the HTML structure, while CSS selectors use a pattern matching approach.
XPath can select elements based on their attributes, text content, and position in the document, while CSS selectors are limited to attributes and tag names.
XPath has a wider range ...
Locators in Selenium are used to identify web elements on a web page.
Locators can be based on ID, class name, name, tag name, link text, partial link text, CSS selector, or XPath.
Using the right locator strategy is important for reliable test automation.
Examples of locators: driver.findElement(By.id("elementId")), driver.findElement(By.className("className")), driver.findElement(By.xpath("//tagName[@attribute='value']"
Abstract classes are classes that cannot be instantiated and can have both abstract and non-abstract methods. Interfaces are contracts that define a set of methods that a class must implement.
Abstract classes can have constructors while interfaces cannot
A class can implement multiple interfaces but can only inherit from one abstract class
Abstract classes can have instance variables while interfaces cannot
Interfaces can...
Page Object Model is a design pattern used in test automation to create an object repository for web UI elements.
It separates the test code from the page-specific code.
It improves code maintainability and reduces code duplication.
It allows for easy modification of UI elements without affecting the test code.
It enhances test script readability and reduces the effort required to create new test scripts.
It is widely used
Annotations in TestNG are used to provide additional information to the test methods and control the test execution flow.
Annotations are used to mark a method as a test method, configuration method, or to specify the order of execution.
TestNG provides several built-in annotations such as @Test, @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest, etc.
Annotations can also be used to group tests, enable/disable tests, and...
Test data can be passed in testNG using DataProvider annotation.
Create a method that returns a two-dimensional array of test data
Annotate the test method with @DataProvider and specify the name of the data provider method
Pass the test data as parameters to the test method
V-model is a software development model that emphasizes testing at every stage of the development process.
It is a sequential development process
Each stage has a corresponding testing stage
Testing is done at every stage to ensure quality
It is a highly structured and disciplined approach
It is often used in safety-critical industries such as aerospace and defense
Assert checks if a condition is true and stops the test if it's false. Verify checks if a condition is true and continues the test if it's false.
Assert is used to validate the expected result of a test case.
Verify is used to validate the actual result of a test case.
Assert stops the test execution if the condition is false.
Verify continues the test execution if the condition is false.
Assert is used for critical test ca
Exceptions while running scripts
Syntax errors
Runtime errors
Logical errors
Timeout errors
Memory errors
IFrames/Window handles can be handled using switchTo() method in Selenium
Use driver.switchTo().frame() method to switch to an IFrame
Use driver.switchTo().defaultContent() method to switch back to the main page
Use driver.getWindowHandles() method to get all window handles
Use driver.switchTo().window() method to switch to a new window
Value cannot be passed in a disabled text box.
Check if there is any other way to pass the value, such as through a different input field.
If not, enable the text box temporarily, pass the value, and then disable it again.
Alternatively, check if there is any JavaScript code that can be used to pass the value.
HashMap is non-synchronized and allows null values, while Hashtable is synchronized and does not allow null values.
HashMap is non-synchronized and not thread-safe, while Hashtable is synchronized and thread-safe.
HashMap allows null values for both key and value, while Hashtable does not allow null keys or values.
HashMap is faster than Hashtable as it is non-synchronized.
HashMap is part of the Java Collections Framework
Types of 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 an element is no longer attached to the DOM.
Tim...
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have constructors, fields, and non-abstract methods, while interface cannot.
A class can implement multiple interfaces but can only inherit from one abstract class.
Abstract classes are used to define a common behavior for subclasses, while interfaces are used to define a contract for classes ...
I applied via Company Website and was interviewed in Aug 2024. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed in Apr 2022. There were 3 interview rounds.
Agile methodology allows for flexibility, collaboration, and faster delivery of high-quality software.
Encourages customer involvement and feedback throughout the development process
Allows for changes and adjustments to be made quickly and efficiently
Promotes teamwork and communication among team members
Delivers working software in shorter timeframes
Reduces the risk of project failure
Increases customer satisfaction
Examp
TCD is based on the criteria of time, cost, and deliverables.
TCD stands for Time, Cost, and Deliverables.
It is a project management approach that focuses on these three criteria.
The goal is to complete the project within the given time and budget while delivering the desired results.
For example, if a software development project is using TCD, the team will prioritize tasks based on their impact on time, cost, and deliv...
Backlog is a list of tasks or requirements that need to be completed in a project.
Backlog is a prioritized list of work items
It includes user stories, bugs, and technical tasks
It is constantly updated throughout the project
It helps the team to plan and track progress
Examples: JIRA, Trello, Asana
Scrum Master in Agile is equivalent to Project Manager in Waterfall.
Scrum Master is responsible for facilitating the Agile process and ensuring the team follows it.
Project Manager is responsible for managing the project from start to finish in Waterfall.
Both roles involve managing the team and ensuring the project is completed on time and within budget.
However, the approach and methodology used are different in Agile a
I applied via Naukri.com and was interviewed before Jul 2022. There were 4 interview rounds.
I applied via Naukri.com and was interviewed before Jun 2021. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed in Sep 2024. There was 1 interview round.
Drop command deletes the table structure along with data, while truncate command deletes only the data.
Drop command removes the table structure and all its data, while truncate command only removes the data but keeps the table structure intact.
Drop command is a DDL (Data Definition Language) command, while truncate command is a DML (Data Manipulation Language) command.
Drop command is slower than truncate command as it ...
In my project, I perform validations such as data completeness, data accuracy, data transformation, and data integrity checks.
Data completeness checks to ensure all required fields are populated
Data accuracy checks to verify the correctness of data
Data transformation checks to validate the transformation rules are applied correctly
Data integrity checks to maintain data consistency and reliability
Star Schema is a type of database schema where a central fact table is connected to multiple dimension tables. Snowflake Schema is a normalized form of Star Schema where dimension tables are further normalized into sub-dimension tables.
Star Schema has a central fact table connected to multiple dimension tables
Snowflake Schema is a normalized form of Star Schema with sub-dimension tables
Star Schema is denormalized for b...
Fact tables contain quantitative data while dimension tables contain descriptive attributes.
Fact tables store measurable, quantitative data such as sales revenue or quantity sold
Dimension tables store descriptive attributes related to the data in the fact table, such as product name or customer details
Fact tables are typically normalized while dimension tables are denormalized for easier querying
Example: In a sales dat...
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Project architecture refers to the overall structure of a software project, including components, modules, and their interactions.
Project architecture defines how different components of a software project are organized and interact with each other.
It includes the high-level design of the system, such as the database structure, data flow, and integration points.
Project architecture also involves decisions on technologi...
Challenges in ETL testing include data quality issues, complex transformations, and handling large volumes of data.
Data quality issues such as missing or incorrect data can impact testing results
Complex transformations can be difficult to validate and may lead to errors in the ETL process
Handling large volumes of data can slow down testing processes and require efficient testing strategies
Roles and responsibilities refer to the tasks and duties assigned to an individual within a specific job or position.
Roles define the position or job title of an individual within an organization.
Responsibilities outline the specific tasks, duties, and expectations associated with that role.
Roles and responsibilities help clarify expectations, define boundaries, and ensure accountability.
Examples include testing data e...
Use a dictionary to find duplicate values in an array of strings in Python.
Create an empty dictionary to store the count of each string in the array.
Iterate through the array and for each string, check if it exists in the dictionary. If it does, increment the count. If not, add it to the dictionary with a count of 1.
After iterating through the array, check the dictionary for any strings with a count greater than 1. The
I applied via LinkedIn and was interviewed in Nov 2024. There was 1 interview round.
A deferred bug is a bug that is not fixed immediately but is scheduled to be fixed in a future release.
Deferred bugs are usually lower priority bugs that do not impact the core functionality of the system.
These bugs are documented and tracked for resolution in a later release.
Examples of deferred bugs include cosmetic issues, minor usability problems, or non-critical functionality issues.
Use SQL query with ORDER BY and LIMIT to get 4th highest row based on a column
Use ORDER BY clause to sort the column in descending order
Use LIMIT 1 OFFSET 3 to get the 4th highest row
Example: SELECT * FROM table_name ORDER BY column_name DESC LIMIT 1 OFFSET 3
based on 15 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