Senior Automation Test Engineer
100+ Senior Automation Test Engineer Interview Questions and Answers

Asked in Innominds Software

Q. (1) write a list comprehension to print a list from 1 to 10 (2) write a program to check if a given positive integer is a power of two (3) create a fibonacci series of 100 using recursive function (4) write a p...
read moreA technical interview question for Senior Automation Test Engineer involving list comprehension, power of two, fibonacci series, missing numbers, and character count.
Use range() function to generate a list from 1 to 10 in list comprehension
Check if the given integer is a power of two by using bitwise AND operator
Use recursion to create a fibonacci series of 100
Find missing numbers from a list by comparing it with a range of numbers
Use a dictionary to count the occurrence of e...read more

Asked in TCS

Q. What are the different data types in Python?
Python has several built-in datatypes including numeric, sequence, and mapping types.
Numeric types include integers, floating-point numbers, and complex numbers.
Sequence types include lists, tuples, and range objects.
Mapping types include dictionaries.
Other datatypes include boolean, bytes, and sets.
Senior Automation Test Engineer Interview Questions and Answers for Freshers

Asked in Capgemini

Q. how do you concatenate a string and integer? is it possible ?
Yes, it is possible to concatenate a string and integer using type conversion.
Convert the integer to a string using str() function and then concatenate with the string.
Use format() method to insert the integer value into the string.
Use f-strings to directly insert the integer value into the string.

Asked in Capgemini

Q. what is xpath ? How do you find an element ? what is the difference between absolute xpath and relative xpath?
XPath is a language used to locate elements in an XML or HTML document. Absolute and relative XPaths differ in their starting point.
XPath is used to navigate through elements and attributes in an XML or HTML document
Elements can be located using absolute or relative XPaths
Absolute XPaths start from the root node and are more specific but less flexible
Relative XPaths start from the current node and are more flexible but less specific

Asked in Capgemini

Q. If some data is not found on the page, do a page refresh. How do you validate the data after the page refresh in Selenium?
To validate data after page refresh in Selenium, we can refresh the page and then use explicit wait to validate the data.
Refresh the page using driver.navigate().refresh() method
Use explicit wait to wait for the element to be visible on the page
Validate the data using getText() or getAttribute() method
Example: driver.navigate().refresh(); WebDriverWait wait = new WebDriverWait(driver, 10); wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("xpath_of_element")))...read more

Asked in Innominds Software

Q. Python : (1) what is recursion ? Give example ? (2)what are the different data types in python? (3)What is negative indexing in python ? (4) How exception is handled in python ? (5) what is with statement (6) W...
read morePython interview questions covering recursion, data types, exception handling, memory management, and more.
Recursion is a function that calls itself. Example: factorial function.
Python data types include integers, floats, strings, lists, tuples, and dictionaries.
Negative indexing allows you to access elements from the end of a list or string. Example: my_list[-1] returns the last element.
Exceptions are handled using try-except blocks. Example: try: some_code except SomeExcept...read more
Senior Automation Test Engineer Jobs




Asked in Capgemini

Q. How do you generate random emails in Python, assuming the domain is always gmail.com?
Generating random emails in Python with constant domain
Use the random module to generate random strings for the username part of the email
Combine the random username with the constant domain name
Ensure the generated email is unique if required

Asked in Capgemini

Q. how do you achieve synchronization? what are the differences between the synchronization ways?
Synchronization is the process of coordinating the execution of multiple threads to ensure proper order of execution.
Synchronization can be achieved using techniques like locks, semaphores, and monitors.
Locks are used to ensure that only one thread can access a shared resource at a time.
Semaphores are used to control access to a shared resource by limiting the number of threads that can access it at once.
Monitors are used to ensure that only one thread can execute a critical ...read more
Share interview questions and help millions of jobseekers 🌟

Asked in Innominds Software

Q. What is a generator ? Have you used it in real time?
A generator is a function that returns an iterator object. It generates a sequence of values on the fly.
Generators are used to create iterators for lazy evaluation of a sequence of values.
They are memory efficient as they generate values on the fly instead of storing them in memory.
Generators are used in Python for creating infinite sequences, reading large files, and processing data in chunks.
Example: def my_generator(): yield 1; yield 2; yield 3; for i in my_generator(): pr...read more

Asked in Capgemini

Q. How do you open a file and read repeating words from it?
To open a file and read repeating words, use file handling and string manipulation techniques.
Open the file using file handling techniques in the programming language of your choice.
Read the contents of the file and store it in a string variable.
Split the string into an array of words using a delimiter such as space or comma.
Loop through the array and use a dictionary or hash table to count the frequency of each word.
Print out the repeating words along with their frequency.
Cl...read more

Asked in Innominds Software

Q. Given list1 = [3,6,9,12,15,18,21] and list2 = [4,8,12,16,20,24,28], create a third list containing elements from list1 at odd indices and elements from list2 at even indices.
Print odd index elements from list1 and even index elements from list2 and combine them into a third list.
Loop through both lists and use conditional statements to append the elements to the third list.
Use the modulo operator to check for odd/even index.
Final list should contain [6, 4, 12, 12, 18, 20].

Asked in Capgemini

Q. How do you run a test suite using the Robot Framework command line?
To run a test suite using robotframework command line, use the 'robot' command followed by the path to the test suite file.
Open the command prompt or terminal
Navigate to the directory containing the test suite file
Enter the command 'robot' followed by the name of the test suite file
Add any additional options or arguments as needed
Press enter to execute the command
Example: robot my_test_suite.robot
Example with options: robot --variable ENV:prod --outputdir results my_test_suit...read more

Asked in Innominds Software

Q. What is software Test life Cycle and Bug Life cycle?
Software Test Life Cycle (STLC) is a sequence of activities carried out to ensure quality in software testing. Bug Life Cycle is a process followed by the testing team to track and manage bugs found during testing.
STLC includes planning, designing, executing, and reporting of tests.
Bug Life Cycle includes bug identification, reporting, assigning, fixing, retesting, and closing.
STLC ensures that the software meets the requirements and is of high quality.
Bug Life Cycle ensures ...read more

Asked in Capgemini

Q. How do you select a value from a dropdown in Selenium?
To select a value from dropdown in Selenium, use the Select class and its methods.
Locate the dropdown element using any of the locators like ID, name, class name, etc.
Create an object of the Select class and pass the dropdown element as a parameter.
Use the Select class methods like selectByVisibleText(), selectByValue(), or selectByIndex() to select the desired option.
Finally, use the assert statement to verify if the selected option is correct.

Asked in Capgemini

Q. How do you generate random data/numbers in Python?
Python provides random module to generate random data and numbers.
Import random module
Use random.randint() to generate random integer within a range
Use random.choice() to select a random element from a list
Use random.random() to generate a random float between 0 and 1
Use random.uniform() to generate a random float within a range

Asked in Enlume Technologies

Q. Do you know mobile automation?? Did you work on any mobile automation tool
Yes, I have experience in mobile automation and have worked with various mobile automation tools.
I have worked with Appium, a popular mobile automation tool, to automate testing on both Android and iOS platforms.
I have developed and executed test scripts using Appium's WebDriver API to interact with mobile applications.
I have experience in setting up mobile test environments, including configuring emulators and real devices for testing.
I have used mobile automation frameworks...read more

Asked in Capgemini

Q. What is the difference between break, continue, and pass statements?
Break, continue and pass are control statements used in loops. Break terminates the loop, continue skips an iteration and pass does nothing.
Break is used to terminate a loop when a certain condition is met
Continue is used to skip an iteration of a loop when a certain condition is met
Pass is used as a placeholder when a statement is required syntactically but no action is needed

Asked in Wipro

Q. What is the difference between findElement and findElements?
findelement returns the first matching element while findelements returns a list of all matching elements.
findelement is used to locate the first matching element on a web page
findelements is used to locate all matching elements on a web page
findelement throws NoSuchElementException if no matching element is found
findelements returns an empty list if no matching element is found

Asked in Innominds Software

Q. (1) what is chmod 644 example.txt permission ? (2) what is the use of xpath? (3) how will you find an element by xpath and by css in selenium ?
Answers to technical questions for Senior Automation Test Engineer position.
chmod 644 example.txt permission means the owner has read and write access, while others have only read access.
XPath is a language used to locate elements in an XML document or HTML page.
To find an element by XPath in Selenium, use the findElement() method with the By.xpath() locator. For example: driver.findElement(By.xpath("//input[@id='username']"));
To find an element by CSS in Selenium, use the fi...read more

Asked in Innominds Software

Q. What is pull request in git? how do you commit code ? how do you resolve merge conflicts ?
Pull request is a feature in git that allows developers to review and merge code changes.
A pull request is created when a developer wants to merge their changes into the main branch
Other developers can review the changes and leave comments or suggestions
Once the changes are approved, the pull request can be merged into the main branch
To commit code, use the 'git commit' command with a message describing the changes made
To resolve merge conflicts, use 'git merge' and manually ...read more

Asked in Cognizant

Q. Can you provide a specific scenario from your previous project, and detail the feature file step definitions while demonstrating how to run the scenario with different sets of data?
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 to ensure the automation test is working correctly

Asked in Cognizant

Q. How can you separate letters and digits from a string in Java? Please provide the Java code for this task.
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.

Asked in Cognizant

Q. What actions would you take if there is a mismatch between user stories and application functionality?
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 underlying issues causing the mismatch

Asked in Cognizant

Q. What approach can be used to count the number of URLs in an HTML page using Selenium and open the URL that contains your name?
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 URL containing your name

Asked in Capgemini

Q. Write an SQL query to find the names of employees that start with ‘A’.
SQL query to find names of employees starting with 'A'
Use the SELECT statement to retrieve data from the employee table
Use the LIKE operator to match the names starting with 'A'
Use the % wildcard to match any number of characters after 'A'

Asked in Pitney Bowes

Q. How do you establish mailing reports or a mailing framework in your project using an automation framework?
Mailing reports can be established by integrating email APIs with automation framework.
Integrate email APIs like SMTP or SendGrid with automation framework
Create functions to generate and send reports via email
Configure email settings like recipient list, subject, body, etc.
Implement error handling and logging for email sending failures

Asked in Innominds Software

Q. What is a lambda function? Give a example
A lambda function is a small anonymous function that can take any number of arguments and return a single value.
Lambda functions are also known as anonymous functions or closures.
They are often used as arguments for higher-order functions, such as map, filter, and reduce.
Example: lambda x: x**2 defines a lambda function that takes one argument and returns its square.

Asked in Capgemini

Q. What are the different locators supported in Selenium?
Selenium supports various locators such as ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector and XPath.
ID locator is the most efficient and reliable locator
Name locator is used for locating elements by their name attribute
Class Name locator is used for locating elements by their class attribute
Tag Name locator is used for locating elements by their tag name
Link Text locator is used for locating elements by their link text
Partial Link Text locator is u...read more

Asked in TCS

Q. What is the difference between an array and a list?
Arrays are fixed in size, while lists can grow or shrink dynamically.
Arrays are a collection of elements of the same data type, while lists can contain elements of different data types.
Arrays are accessed using an index, while lists are accessed using an iterator.
Arrays are faster for accessing elements, while lists are faster for inserting or deleting elements.
Examples of arrays include int[] and char[], while examples of lists include ArrayList and LinkedList.

Asked in Innominds Software

Q. Write a Python program to print the repetitive characters in a list, excluding integers. Input: ['a','a',4,4,'b','c','a']. Expected Output: {'a':3}
Python program to print repetitive characters in a list excluding integers
Use a dictionary to store the count of each character
Iterate through the list and check if the character is a string and not an integer
Print the characters with count greater than 1
Interview Experiences of Popular Companies





Top Interview Questions for Senior Automation Test Engineer Related Skills



Reviews
Interviews
Salaries
Users

