100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Testing realtime interview questions and Answers selenium $12.49   Add to cart

Exam (elaborations)

Testing realtime interview questions and Answers selenium

 0 view  0 purchase
  • Course
  • Institution

Testing realtime interview questions and Answers selenium ============================================================================== Accenture QA Automation interview real time que. • Can you brief me about yourself? Hi, my name is Pankaj. I started my career as a Testing Executive...

[Show more]

Preview 3 out of 27  pages

  • October 25, 2023
  • 27
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
Testing realtime interview questions and
Answers selenium
==============================================================================
Accenture QA Automation interview real time que.

 Can you brief me about yourself?
Hi, my name is Pankaj.

I started my career as a Testing Executive 4.5 years back with Infosys currently I am working as Test
Engineer.
My responsibility is to understand Business Requirement Specification and High-Level scenarios and to
convert them into test cases & Automation scripts if required.
Execution of test cases and reporting of defect to the developer if there any and get them fixed.
I have experience on Functional, Automation, Regression, Smoke, Sanity, Web accessibility, Web
Analytics, Mobile Testing.

In my previous project I have worked on Automation testing where we have used Selenium with java and
TestNG Cucumber framework for BDD approach. We have used Page object model where we have
separated our test cases with page objects, and we performed testing on the same. For build
management tool we are using Maven for version controlling we are using Git and for automating our
jobs for nightly run or any schedule we are using Jenkins,.

For defect management & test case management we have used JIRA, TEST RAIL & HP ALM.
I have worked on tools like BrowseStack, DeviceAnywhere, Toadsql,

I am working on Agile environment we have daily standup call and we have 2-week sprint cycle. I am part
of 8-member team out of which we are 3-Tester, 2- dev, 1- manager, 1-scrum master.




 Tell me your Day to Day activities as QA?

First thing I do after login in my system. I check the active sprint in Jira for our project code. There I can
see my assigned open tasks. After that I will check my mail if there is any important mail I need to take
action on. Then we have our daily scrum meeting where we used to tell our previous day actions what we
did, what we are planning for today and if we have any blocker to discuss. Product owner and scrum
master help us to resolve that blocker. After that I need to take the pending task and do needed action
whether creating test case, Execution, Defect retesting if any.

 Do you have created framework from scratch, or you have maintained that?
I have not created Framework from scratch by myself but yes, I was part of framework creation and
created some part of it.

 How much you rate yourself in Java out of 10?
Out of 10 I will rate myself 6 in java as QA Automation engineer.

 Can you tell me Oops concepts and relate it with your Framework?
We have Polymorphism, Inheritance, Encapsulation and Abstraction in Oops. So, we will start with
1) DATA ABSTRACTION

, Data Abstraction means to handle complexity by hiding unnecessary details from the user. In java,
abstraction is achieved by interfaces and abstract classes. We can achieve 100% abstraction using
interfaces.
In Selenium, WebDriver itself acts as an interface. Consider the below statement:
WebDriver driver = new ChromeDriver();
We initialize the Chrome Browser using Selenium Webdriver. It means we are creating a reference
variable (driver) of the interface (WebDriver) and creating an Object. Here WebDriver is an Interface and
ChromeDriver is a class.
We can apply Data Abstraction in a Selenium framework by using the Page Object Model design pattern.
We define all our locators and their methods in the page class. We can use these locators in our tests but
we cannot see the implementation of their underlying methods. So we only show the locators in the tests
but hide the implementation. This is a simple example of how we can use Data Abstraction in our
Automation Framework.

2) ENCAPSULATION
Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds
together code and the data it manipulates. Encapsulation can be achieved by: Declaring all the variables in
the class as private and writing public methods in the class to set and get the values of variables.
All the classes in an Automation Framework are an example of Encapsulation. In Page Object Model
classes, we declare the data members using @FindBy and initialization of data members will be done
using Constructor to utilize those in methods.

3) INHERITANCE
Inheritance is the mechanism in java by which one class is allowed to inherit the features (fields and
methods) of another class.
We can apply Inheritance in our Automation Framework by creating a Base Class to initialize the
WebDriver interface, browsers, waits, reports, logging, etc. and then we can extend this Base Class and its
methods in other classes like Tests or Utilities. This is a simple example of how we can apply Inheritance in
our framework.

4) POLYMORPHISM
Polymorphism allows us to perform a single action in different ways. In Java polymorphism can be
achieved by two ways:
– Method Overloading: When there are multiple methods with same name but different parameters then
these methods are said to be overloaded. Methods can be overloaded by change in number of
arguments or/and change in type of arguments.
In Selenium Automation, Implicit wait is an example of Method Overloading. In Implicit wait we use
different time stamps such as SECONDS, MINUTES, HOURS etc.
– Method Overriding: It occurs when a derived class has a definition for one of the member functions of
the base class. That base function is said to be overridden.
In Selenium Automation, Method Overriding can be achieved by overriding any WebDriver method. For
example, we can override the findElement method
In assertion we have used overload because in assertion we used to like asset.true(actual, expected) and
second time we can use same assert.true(actual, expected, message).

 How can you use interface and how it is different from Abstract class?
Abstract class may have Abstract and concrete methods, and there is not any compulsion in adding
abstract method in abstract class. But in Interface, we do have only abstract methods and we don’t need
to write abstract keyword in Interface this is by default public and abstract.

,  What do you mean by Static keyword in Java?
Static means it is at class level not at instance level, we have static method, static variable & static inner
class. When we have any variable as static so it will remain same for all the instance of our classes, and
static/Private/Final methods can’t be over-ridden like if we have initialized any method as Static so we
cannot override it in any child class.

 How to call static method and variable in java?

Direct calling, Calling by class name.

 Can I access Static method by using object reference?
Yes we can, but we got one warning that you need to access it via Direct or By class name.

 How to call non-static method and variable in java?
For calling non static method we need to create object first.

 Can we overload & override main method?
Overload-Yes, Override-No

 What do you mean by wrapper class and how will you do data conversion?
Wrapper class in java are used for data conversion. In data conversion if user wants to convert Int to
string, String to int, Boolean, double then we use Wrapper class.
integer.parseInt(); - To convert string to Integer
Double.parseDouble(); - To convert string to Double
Boolean.parse Boolean(); - To convert string to Boolean
String.valueof(); - To convert Integer to String.

 Can you convert string a =”110a” in integer?
No we got NumberFormatException while converting the above string.

 What do you mean by Call by Value & Call by Reference in Java?
Call by value means suppose we have created one sum method with input parameter int a, int b. So while
calling the creating the object and running we provide values that is know as call by value.


 What do you mean by Exceptions in Java?
Exception is like any interruption in our normal flow. Like if we are running anything and we got issues in
our script this is we called exception, we have 2 types of exception Run Time & Compile Time. (checked &
Unchecked exceptions)

 Can you tell me about difference between Throw and Throws keyword?
Throw is a keyword used inside a body of function. And Throws used while initializing any method. By
using Throw we can throw only one exception while for Throws we can declare multiple exceptions which
might occur in that particular function. Throws keyword followed by instance name and Throw keyword is
followed by class name of that exception.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller LectDan. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.49
  • (0)
  Add to cart