Add office photos
Engaged Employer

Capgemini

3.7
based on 40.5k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

10+ Tema India Interview Questions and Answers

Updated 25 Jan 2025
Popular Designations

Q1. How would you locate the Xpath for the "Today's Deal" menu item on Amazon

Ans.

To locate the Xpath for the 'Today's Deal' menu item on Amazon, inspect the element using browser developer tools.

  • Open the Amazon website and right-click on the 'Today's Deal' menu item.

  • Select 'Inspect' to open the browser developer tools.

  • Look for the HTML code corresponding to the 'Today's Deal' menu item.

  • Right-click on the HTML code and choose 'Copy' > 'Copy XPath'.

  • The copied XPath can be used to locate the 'Today's Deal' menu item in automation scripts.

Add your answer

Q2. What will be the memory allocation for the code String str1 = "Automation"; String str2 = new String("Automation");

Ans.

str1 will be stored in the string pool while str2 will be stored in the heap memory.

  • str1 will be stored in the string pool, which is a part of the heap memory.

  • str2 will create a new String object in the heap memory, separate from the string pool.

Add your answer

Q3. What is the difference between str1==str2 and str1.equals(str2)

Ans.

str1==str2 compares the memory addresses of the two strings, while str1.equals(str2) compares the actual contents of the strings.

  • str1==str2 checks if the two string variables point to the same memory location.

  • str1.equals(str2) compares the actual characters in the strings for equality.

  • Example: String str1 = "hello"; String str2 = "hello"; str1==str2 will return false, but str1.equals(str2) will return true.

Add your answer

Q4. Print first 4 letter and last 4 letter of String str="www.amazon.com"

Ans.

Print first 4 and last 4 letters of a given string

  • Use string slicing to extract the first 4 letters: str[:4]

  • Use string slicing to extract the last 4 letters: str[-4:]

Add your answer
Discover Tema India interview dos and don'ts from real experiences

Q5. Write code to implement and explicit wait in Selenium

Ans.

Implementing an explicit wait in Selenium using WebDriverWait class

  • Import WebDriverWait class from Selenium

  • Specify the maximum time to wait and the polling interval

  • Use ExpectedConditions to define the condition to wait for

  • Apply the wait to a specific element or the entire page

Add your answer

Q6. Wait in selenium and exception in selenium

Ans.

Explanation of wait and exception handling in Selenium

  • Wait in Selenium is used to pause the execution of the script for a certain amount of time

  • There are two types of waits: Implicit and Explicit

  • Exception handling in Selenium is used to handle unexpected errors during the execution of the script

  • Common exceptions in Selenium include NoSuchElementException and TimeoutException

  • Handling exceptions can be done using try-catch blocks or by using TestNG annotations

Add your answer
Are these interview questions helpful?

Q7. Write code to implement Robot class in java

Ans.

Implementing a Robot class in Java

  • Create a Robot class with attributes like name, batteryLevel, etc.

  • Include methods for moving, turning, and charging the robot

  • Use inheritance if needed for different types of robots

Add your answer

Q8. What is throw and throws in Java?

Ans.

throw is used to throw an exception in Java, while throws is used to declare exceptions that a method can throw.

  • throw is used to explicitly throw an exception in Java code

  • throws is used in method signature to declare the exceptions that the method can throw

  • Example: throw new Exception("Something went wrong!");

  • Example: public void someMethod() throws IOException {}

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Real time process with selenium examples

Ans.

Real-time process with Selenium involves continuous monitoring and updating of web pages.

  • Use implicit and explicit waits to ensure real-time updates

  • Implement continuous integration and delivery to automate testing

  • Use Selenium Grid to run tests in parallel for faster execution

  • Examples include monitoring stock prices, social media feeds, and live sports scores

Add your answer

Q10. Meaning of status code 401 and 502

Ans.

401 - Unauthorized, 502 - Bad Gateway

  • 401 status code indicates that the request requires user authentication

  • 502 status code indicates that the server received an invalid response from an upstream server

Add your answer

Q11. Difference between @BeforeMethod vs @BeforeTest

Ans.

The @BeforeMethod annotation is used to run a method before each test method in a class, while @BeforeTest is used to run a method before any test method in a test tag.

  • The @BeforeMethod annotation is specific to TestNG framework and is used to initialize test data before each test method.

  • @BeforeTest annotation is also specific to TestNG and is used to initialize test data before any test method in a test tag.

  • If a class has multiple test methods, @BeforeMethod will run before ...read more

Add your answer

Q12. Array based program: reverse the string

Ans.

Reverse a string using an array of characters.

  • Create an array of characters to store the string.

  • Iterate through the string and store each character in the array.

  • Reverse the array of characters to get the reversed string.

Add your answer

Q13. What is automation testing

Ans.

Automation testing is the use of software tools to execute tests and compare actual outcomes with expected outcomes.

  • Automation testing involves writing scripts or using tools to automate repetitive tasks in testing.

  • It helps in reducing human errors and increasing efficiency.

  • It can be used for various types of testing such as functional, regression, performance, and load testing.

  • Examples of automation testing tools include Selenium, Appium, and JUnit.

Add your answer

Q14. Oops concepts in Java

Ans.

Oops concepts are fundamental to Java programming and include inheritance, polymorphism, encapsulation, and abstraction.

  • Inheritance allows a class to inherit properties and methods from a parent class.

  • Polymorphism allows objects to take on multiple forms and behave differently based on their context.

  • Encapsulation hides the implementation details of a class and only exposes necessary information.

  • Abstraction allows for the creation of abstract classes and interfaces that can be...read more

Add your answer

Q15. Why testng was used

Ans.

TestNG was used for automated testing in order to facilitate easy test case management, parallel execution, and reporting.

  • TestNG allows for easy grouping and prioritization of test cases.

  • It supports parallel execution of test cases, improving efficiency.

  • TestNG provides detailed test reports, making it easier to identify and debug issues.

  • Annotations in TestNG help in defining the test methods and their dependencies.

  • TestNG integrates well with other tools and frameworks like Se...read more

Add your answer

Q16. String Buffer VS Builder

Ans.

String Buffer is synchronized and slower, while StringBuilder is unsynchronized and faster.

  • StringBuffer is thread-safe, while StringBuilder is not.

  • StringBuffer is slower due to synchronization, while StringBuilder is faster.

  • StringBuilder is preferred for single-threaded environments.

  • StringBuffer is preferred for multi-threaded environments.

  • Both classes are used for manipulating strings, but StringBuilder is more efficient.

Add your answer

Q17. explain the framework

Ans.

A framework is a set of guidelines, coding standards, concepts, and practices to help automate testing efficiently.

  • Framework provides a structure for organizing test scripts, data, and reusable components.

  • It helps in maintaining consistency and reusability of test scripts.

  • Frameworks can be data-driven, keyword-driven, or hybrid depending on the requirements.

  • Examples of frameworks include Selenium WebDriver, TestNG, JUnit, etc.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Tema India

based on 15 interviews
3 Interview rounds
Technical Round - 1
Technical Round - 2
HR Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Automation Engineer Interview Questions from Similar Companies

3.8
 • 17 Interview Questions
3.8
 • 11 Interview Questions
3.5
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter