Tekstrom Automation Testing Interview Questions

In this article we will cover Tekstrom Automation Testing Interview Questions from 2021 which could help you prepare in advance.

Tekstrom Automation Testing Interview Questions

  • Difference between equals and ==?
    • (==) -> is a reference comparison; both objects point to the same memory location
    • (.equals()) -> evaluates to the comparison of values in the objects
  • When to use if-else and switch-case?
  • Xpath vs CSS Selectors?
  • Disadvantages of Selenium?
    • Captcha,WIN pop-ups, only Web Apps automation
  • Types of Waits
    • Implicit, Explicit, Fluent
  • Keywords - super and this?
  • System - File.separator?
  • ThreadLocal?
  • Concurrency?
  • Multi-Threading?
  • Replace() vs replaceall() in java?
    • Replace - 1 character
    • ReplaceAll - 1 regular expression
  • Do you have experience in handling java system functions? 
    • System.exit() - program terminate
    • Sysout
    • System  - IO
  • Actually how you handle windows or os level pop-ups?
  • How you write the multi-threading to launch different browsers using selenium?
    • main method - Single thread
    • main thread - sites/pages ->  2nd thread - Logger  -> writing in DB
  • How you handle if you want to change the properties values for each thread separately?
  • How can methods be made thread-safe?
    • Keyword - synchronized 
  • How can shared variables be made thread-safe?
  • What are a few different ways we can run entities in parallel with testng?
  • What are XPath axes?
    • As location path defines the location of a node using absolute or relative path, 
    • axes are used to identify elements by their relationship like parent, child, sibling, etc. 
    • Axes are named so because they refer to axis on which elements are lying relative to an element.
  • What are selenium actions?
    • Actions class is an ability provided by Selenium for handling keyboard and mouse events. 
    • In Selenium WebDriver, handling these events includes operations such as drag and drop, 
    • clicking on multiple elements with the control key, among others
  • How you select child web elements? Or ancestor elements?
  • What are all the ways to find web elements in a browser?
  • Questions on inner classes (Hands on code in IDE)
  • Hands on experience in using TestNG framework?
  • How you write test suit using TestNG?
  • Write a method to parse the values of a form using some data ( Hands on coding in IDE)
  • Final keyword?
    • variable - value change, method - can not override, class - can not inherit
    • Immutable
  • What are the methods we have in css selector ?
  • What startswith() function will do using xpath?
  • Immutability of objects?
  • How you write multi threading ? which is the best way to implement?
    • Runnable - interface
  • What are wrapper classes? (Auto boxing and unboxing concepts)
    • int -> float, float -> double
    • Lower to higher
  • fileSeperator() function – question related to fileSeperator() ( Hands on coding in IDE)
    • System.getProperty('User.dir'), System.getEnv() - Jenkins
  • write a testmethod in a given class ( hands on coding )
  • private vs protected modifiers?
    • protected - package and inherited
    • private - only class
    • public - available everywhere
  • which is best way to select web elements and why?
  • static
    • We can call without creating object
    • Example : Pie value same
    • DB ops - Static - Block
  • Tell me about yourself and the technologies and the frameworks worked on
  • Output of below program?

package com.tekstrom_1;

public class Container {
public Container() {
System.out.println("in container");
}

public class Nested {
public Nested() {
System.out.println("in nested");
}

public void methodCall() {
System.out.println("in method");
}
}

}

Output-
Container -> Nested -> methodCall

1. #10/Nested classes:  methodCall needs to be executed, what would be the order of println?

Comments

Popular posts from this blog

Learning Docker

Learning xpath concepts

OOPS concept in Java with Real time examples