i
DXC Technology
Filter interviews by
I applied via Campus Placement and was interviewed before Dec 2020. There were 4 interview rounds.
I applied via Naukri.com and was interviewed in Dec 2021. There were 3 interview rounds.
I was asked to write codes In powershell and python
posted on 26 Dec 2024
I applied via Walk-in and was interviewed in Nov 2024. There were 2 interview rounds.
I am a Senior Automation Test Engineer with 5+ years of experience in designing and implementing automated testing frameworks.
5+ years of experience in automation testing
Proficient in designing and implementing automated testing frameworks
Strong knowledge of testing tools like Selenium, Appium, and JUnit
Experience in creating test scripts and executing test cases
Ability to analyze test results and identify defects
The syntax for using driver.findElement in Selenium is driver.findElement(By locator)
Use driver.findElement(By locator) to locate a single element on the web page
Specify the locator strategy (e.g. By.id, By.name, By.xpath) to identify the element
Example: WebElement element = driver.findElement(By.id("username"));
Different types of assertions and syntax for hard assertion in TestNG
Types of assertions: Hard assertions and Soft assertions
Syntax for hard assertion in TestNG: Assert.assertEquals(expected, actual)
Types of wait mechanisms include implicit wait, explicit wait, fluent wait, and thread.sleep.
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.
Fluent wait: Waits for a condition to be true with a specified polling frequency.
Thread.sleep: Pauses the execution for a specified amount of time.
Frames in Selenium can be managed using switchTo() method to navigate between frames.
Use driver.switchTo().frame() method to switch to a frame by index, name or WebElement
Use driver.switchTo().defaultContent() method to switch back to the main content
Use driver.switchTo().parentFrame() method to switch to the parent frame
Use a Set data structure to remove duplicates from an array of strings.
Create a Set from the array to automatically remove duplicates
Convert the Set back to an array to get the unique values
List, Set, and Map are different types of collections in Java used to store and manipulate groups of objects.
List is an ordered collection that allows duplicate elements. Example: ArrayList, LinkedList
Set is a collection that does not allow duplicate elements. Example: HashSet, TreeSet
Map is a collection of key-value pairs where each key is unique. Example: HashMap, TreeMap
I would analyze the user stories and application functionality to identify the root cause of the mismatch and work towards resolving it.
Review the user stories and application functionality to understand the discrepancies
Communicate with stakeholders to clarify requirements and expectations
Update test cases and automation scripts to align with the corrected user stories
Collaborate with developers to address any underly
I have over 5 years of experience in automation testing, with a focus on creating and executing test scripts for web applications.
Developing automation test scripts using tools like Selenium and TestNG
Creating test plans and test cases based on requirements
Executing test cases and reporting defects
Collaborating with developers and QA team to ensure quality of the product
Participating in Agile ceremonies such as sprint
Demonstrating feature file step definitions with different sets of data in a previous project scenario
Create a feature file with a scenario outline that includes placeholders for different sets of data
Write step definitions that use the placeholders to run the scenario with different data sets
Use data tables or examples in the feature file to provide the different sets of data
Run the scenario with different data sets t...
To count URLs in an HTML page using Selenium and open the URL containing your name, you can use a combination of Selenium WebDriver methods and regular expressions.
Use Selenium WebDriver to navigate to the HTML page and retrieve its source code
Use regular expressions to identify and count the URLs in the source code
Iterate through the list of URLs to find the one containing your name
Use Selenium WebDriver to open the U
Use regular expressions to separate letters and digits from a string in Java.
Use the String class's split() method with a regular expression to separate letters and digits.
Create a regular expression pattern that matches either letters or digits.
Store the separated letters and digits in separate arrays.
posted on 30 Jan 2025
I was interviewed in Dec 2024.
Basic quant and reasoning questions
Selenium MCQ
Java programs with MCQ
The driver is typically initialized in the setup method of a test automation framework.
Driver initialization is usually done in a setup method before test execution.
Commonly used methods for driver initialization include WebDriverManager, System.setProperty, and driver instantiation.
Example: WebDriverManager.chromedriver().setup();
Driver can be both static and non-static depending on the context of its usage.
Driver class can be static if it is used to initiate the WebDriver instance in a test automation framework.
Driver class can be non-static if it is used as an instance variable within a test class.
Static driver can be accessed directly without creating an object of the class.
Non-static driver requires an object of the class to be created befo
Static variables belong to the class itself, while non-static variables belong to instances of the class.
Static variables are shared among all instances of a class
Non-static variables are unique to each instance of a class
Static variables are initialized only once, at the start of the program
Non-static variables are initialized separately for each instance of the class
Static and non-static have their own disadvantages in QA automation testing.
Static methods cannot be overridden or inherited, making it difficult to create flexible test cases.
Non-static methods require an instance of the class to be created, which can lead to increased memory usage.
Static methods can lead to tight coupling between classes, making it harder to maintain and update the code.
Non-static methods may have de...
TestNG allows parallel execution of test cases to save time and improve efficiency.
TestNG provides the 'parallel' attribute in the testng.xml file to specify the level of parallelism for test execution.
Parallel execution can be achieved at the test level, class level, method level, or suite level.
TestNG also supports parallel execution of tests across multiple classes or suites using the 'parallel' attribute in the sui...
Parallel testing in TestNG allows running tests concurrently for faster execution.
Use 'parallel' attribute in testng.xml file to specify parallel execution mode.
Set 'parallel' attribute to 'methods', 'classes', or 'tests' based on the level of parallelism needed.
Example: <suite name='MySuite' parallel='tests'>
Use 'thread-count' attribute to specify the number of threads to use for parallel execution.
Parallel methods run multiple methods concurrently within a single test, while parallel tests run multiple tests concurrently.
Parallel methods execute multiple methods within a single test class concurrently.
Parallel tests execute multiple test classes concurrently.
Parallel methods are useful for speeding up the execution of a single test, while parallel tests are useful for running multiple tests faster.
Example: Runni...
Use Rest Assured to upload a file
Use the given file path to create a File object
Use MultiPartSpecBuilder to build the request with the file
Send the request using Rest Assured's given(), when(), and post() methods
The parameter for a POST method in Postman is typically sent in the request body.
Parameters are sent in the request body in key-value pairs
Parameters can be sent as form-data, x-www-form-urlencoded, or raw JSON
Example: {"key": "value"}
Cucumber knows the step definition file based on the annotations provided in the feature files.
Cucumber uses annotations like @Given, @When, @Then to map steps in feature files to corresponding step definition methods.
Step definition files are typically placed in a separate package or directory within the project structure.
Cucumber scans the project directory for step definition files based on the package structure and
Parameters used in cucumber are used to pass values to the step definitions in feature files.
Parameters are defined in feature files using < > syntax
Parameters can be passed to step definitions using Regular Expressions
Parameters can be used to make scenarios more reusable and dynamic
Datatable in Cucumber is used to pass multiple sets of data to a step definition in a scenario.
Datatables are defined using pipes (|) to separate values
Each row in the datatable represents a set of data passed to the step definition
Datatables can be used for parameterization and data-driven testing
Yes, I have created the test plan document at the start of the project.
Yes, I always create a test plan document at the beginning of a project to outline the testing approach and strategy.
The test plan document includes details on scope, objectives, resources, schedule, and test cases.
It helps in ensuring that all stakeholders are aligned on the testing process and expectations.
For example, in my previous project, I cr...
During the initial testing cycle of a project, focus is on establishing test cases, setting up test environments, and identifying potential issues.
Creating test cases based on requirements
Setting up test environments
Identifying potential issues and risks
Executing test cases and reporting defects
Collaborating with developers to resolve issues
Fibonacci sequence is a mathematical pattern where each number is the sum of the two preceding ones.
Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones.
The sequence starts with 1, 2, then each subsequent number is the sum of the two previous numbers (1+2=3, 2+3=5, 3+5=8, and so on).
This sequence is used in estimating because it reflects natural growth patterns found in natur
Testing matrix is a tool used to track test coverage and automation ROI is the return on investment from implementing automation testing.
Testing matrix is a visual representation of test cases, test scenarios, and their coverage across different platforms, browsers, devices, etc.
Automation ROI is the measure of the benefits gained from automation testing compared to the costs incurred in implementing and maintaining th...
I was interviewed in Dec 2024.
I was interviewed in Dec 2024.
Currently working on developing automated test scripts for a web application
Creating test cases using Selenium WebDriver
Implementing test automation frameworks like TestNG
Performing regression testing on new features
Collaborating with developers to identify and fix bugs
Code for sorting an array of strings
Use built-in sort function in programming language (e.g. sort() in Python)
Specify the comparison function to sort strings alphabetically
Handle uppercase and lowercase letters properly
Example: ['apple', 'banana', 'cherry'] should be sorted as ['apple', 'banana', 'cherry']
Creating Xpath for locating elements in web pages
Use unique attributes like id, class, name to create Xpath
Avoid using indexes in Xpath as they can be brittle
Use functions like contains(), starts-with() for dynamic attributes
Consider using axes like ancestor, following-sibling for complex Xpath
GlobalLogic offers a diverse range of projects, cutting-edge technologies, and a collaborative work environment.
GlobalLogic provides opportunities to work on a variety of projects, allowing for professional growth and skill development.
The company is known for its use of cutting-edge technologies, providing exposure to the latest tools and trends in the industry.
GlobalLogic fosters a collaborative work environment, enc...
I applied via Job Fair and was interviewed in Dec 2024. There were 3 interview rounds.
1.30 hours, Java, selenium
I applied via Referral and was interviewed in Aug 2024. There was 1 interview round.
We are using the Selenium framework for automation testing in our project.
Selenium is a popular open-source automation testing framework
It supports multiple programming languages like Java, Python, C#, etc.
Selenium WebDriver is used for automating web applications
It provides features for browser automation, testing across different browsers, and parallel test execution
Framework structure refers to the organization and layout of the automation framework components.
Framework structure includes modules, libraries, test scripts, configuration files, and test data.
It follows a hierarchical structure with layers such as driver scripts, reusable libraries, and test cases.
Frameworks can be structured as linear, modular, data-driven, keyword-driven, or hybrid.
Example: In a data-driven framew...
findelement returns the first matching element on a webpage, findelements returns a list of all matching elements.
findelement returns a single WebElement, findelements returns a list of WebElements
findelement throws NoSuchElementException if no element is found, findelements returns an empty list
Example: driver.findElement(By.id("exampleId")) vs driver.findElements(By.className("exampleClass"))
Handling multiple tabs in Selenium involves switching between tabs and performing actions on each tab.
Use getWindowHandles() to get a set of window handles
Switch to a specific tab using switchTo().window(handle)
Perform actions on the tab
Close the tab if needed using driver.close()
Hashmaps are data structures that store key-value pairs and allow for efficient retrieval of values based on keys.
Hashmaps are also known as dictionaries, maps, or associative arrays.
They use a hash function to map keys to indices in an underlying array.
Hashmaps offer constant-time average case complexity for insertion, deletion, and lookup operations.
Example: HashMap
Try and catch blocks are used in programming to handle exceptions and prevent the program from crashing.
Try block is used to enclose the code that might throw an exception
Catch block is used to handle the exception thrown in the try block
It prevents the program from crashing and allows for graceful error handling
Can also include finally block to execute code regardless of whether an exception is thrown
Inheritance is a concept in object-oriented programming where a class can inherit attributes and methods from another class.
Allows a class to inherit attributes and methods from another class
Promotes code reusability and reduces redundancy
Creates a parent-child relationship between classes
Derived class can access the properties and methods of the base class
Example: Class 'Car' can inherit from class 'Vehicle'
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 Approached by Company
Project structure refers to the organization of files, folders, and resources within a software project.
Main folders like src (source code), test (test cases), lib (libraries), docs (documentation)
Subfolders for specific modules or components
Configuration files like pom.xml, package.json, etc.
Build scripts like Jenkinsfile, Dockerfile
Version control files like .gitignore, .gitattributes
README.md file for project overvi
Associate Professional Software Engineer
2.2k
salaries
| ₹2 L/yr - ₹7 L/yr |
Software Engineer
2k
salaries
| ₹2.4 L/yr - ₹11.8 L/yr |
Associate Professional
1.6k
salaries
| ₹2 L/yr - ₹7.7 L/yr |
Associate Software Engineer
1.2k
salaries
| ₹3 L/yr - ₹7 L/yr |
Professional 1
1.2k
salaries
| ₹3.4 L/yr - ₹12.2 L/yr |
Cognizant
Capgemini
TCS
Wipro