Q&A List
Q&A List
ROW ID
AR, USA Walmart 1 2_W
AR, USA Walmart 2 2_W
AR, USA Walmart 3 2_W
AR, USA Walmart 4 2_W
AR, USA Walmart 5 2_W
AR, USA Walmart 6 2_W
AR, USA Walmart 8 2_W
AR, USA Walmart 9 2_W
AR, USA Walmart 10 2_W
AR, USA Walmart 11 2_W
AR, USA Walmart 12 2_W
AR, USA Walmart 13 2_W
AR, USA Walmart 14 2_W
Noida, Gurugram NA 42 42
NA NA 73 73_N
R System
Noida ,India 103 103_R
International Limited
Nuance
Pune 124 124_N
Communications Ltd
Soft
Chennai 135 135_S
Suave Technologies
Rogers
Delhi 161 161_R
Appium Questions
Oops concepts
What is data Driven testing
In a web page there are several Pop-up, but we don't when the pop-up will appear, in this case how we will han
Pop-up using Selenium WebDriver (Java)
Suppose you are the leam QA and 1 new member join your team and at the same time you have a deadline to me
2 or 3 days so how will you involve that new member in team so that you can utilise him/her to meet deadlines?
Java- Write a Java program to print 1234 1234 in two rows.
Selenium- In a online shopping application after placing a order, a success message will be displayed with a we
number. How to fetch and print the Weborder number from that success message. The success message can
language. (The weborder number can be displayed anywhere in the success message depending on the langu
Explain Set and Map in Java.
If proper Xpath, cssSelector and ID are not available, how do you identify an object.
Explain how BDD works with Cucumber.
How do you set the test data in BDD.
How do you manage test execution using TestNG.
Explain inner join and outer join in SQL.
Explain implicit and explicit wait..
How to find broken links in web page using selenium (including frames).
How will you handle dynamic payloads in API.
How to download a file using selenium.
How will you handle dependencies in Maven at run time.
How to fetch coupon code from image file.
About yourself.
About project.
Source code management tool.
How will you resolve the conflicts.
What is static and final in java?
How will you prevent tge override method in java
Explain about collections.
Cucumber tags and Annotations
How will you pass values in your project?
What is hooks and explain hooks.
What is background??
How will u run the method again and again in testng?
How the methods run in the order??
Parallel tests about class method and tests.
What is actions class and the methods in actions??
What is the difference between build and perform?
Difference between find element and find elements and its return type.
Explain concepts in collections and relate to ur project.
Consider u have checkbox and I want to click the checkbox , how will u find the element is present or not at the
time should
Attributes ofnot
cssget any exceptions.(element may or may not present).
selector.
Program to find the found of special character, numbers, capital letter and small letter in a given string.
What is Owasp concurrent testing
Write a program that reads objects from property file in page object model framework.
How to handle windows pop with selenium without using auto it.
Move all zeroes to end of array- Given an array of integers,Move the all zero's to end of the array. Push all the ze
givenall
Print array to the endcharacter
the duplicate of the array.
and their count in the given string.
Example
Example 1:
1: INPUT:
INPUT : myArray={2,5,0,4,2,7,0,0,1,9,4}
String str="hcl-tech"
Reverse a string preserving space positions.---OUTPUT ---OUTPUT:
INPUT:h-2,c-2 myArray={2,5,4,2,7,1,9,4,0,0,0}
: "Java is a programming language" ---OUTPUT : "egau gn a
lgnimmargor pasiavaJ"
Can we over load main method in java?
Explain about final class?
Test life cycle
How to handle drop down using selenium ?
Using selenium can we automate desktop application's ?
About vmodel?
How many locators available in selenium and explain each and every one ?
How can you handle if application is opening in seperate tab in same browser
How do you automate localization testing -diff languages in UI What are the tools used and how did you do
I am getting the below error in eclipse and could not able to run any class. Error: Could not find or load main cla
learning_Java.Callbyvalueandcallbyref Caused by: java.lang.ClassNotFoundException:
learning_Java.Callbyvalueandcallbyref
How do you write your script in selenium
why do you need to do Automation for API testing? Generally API changes occur every 3 to 4 months. You can d
manually right?
1: I have a string ALPHABET, write a program to reverse it in java.
2: How do you capture specific response value and pass to other request.
1: How to handle multiple endpoint in SOAPUI?
Test scenario and test cases for selecting colleges based on the department, year, semester for NGO donation
Kadane's algorithm = find the largest sum of the sub-array in a given array of integers
?
e() is used. To find the length of array variable is used whereas for arraylist function is used. Why?
nt
how
nvl end date you
would is approaching. How ?could
test this service you handle
All possible test this type of situation?
scenarios?
fferent set of data for each environment. How will you do it using maven file(Pom.xml)?
ber report in the form of a table.
se. In this scenario how you will manage test scripts. How will you calculate performance of each test?
ew HashMap <String, String>(); hm.put(“A”,”B”); hm.pu t(“A”,”C”);
w to call
1.16.4] ....Class A’s
format ismain method from Class B
like number.number.number
Test2 gets executed..So how to approach?
o select SBI bank’s corresponding link in column A , what’s the strategy to select the particular link ?
api).
ork
times it is repeated
elements of the dropdown .
k, as in architecture?
d?
ity2 more details) and we can't check it manually. How will handle the json.
but later we had to use Try catch)
nnsure
arrayyou
containing the visibility
have clear names that appear
of the in either or activities
test automation both arrays. The the
across returned array should have no duplicates.
teams?
ery, and creates 3 assertions in the search results page. We would like you to find a boilerplate project to develop on top
tps://samples.openweathermap.org/data/2.5/weather?q=London,uk&appid=b6907d289e10d714a6e88b30761fae22. Creat
h QL API.https://graphql-weather-api.herokuapp.com/
? Appium Limitation?
or simulators/emulators?
oad runner
cenario?
w to run specific stage in jenkins pipeline, in ArrayList,Single linked list and double linked list which one you preffer and wh
e?
y a space), sums each file and then adds the sums to produce a total.
n if there are more than 4 separate integer files).
e test scripts and what is the time interval you run those test scripts ?
our earlier?
al test runner tool in your organization to run test. What will be your first step? How will you run test suites/cases?
hy?
e no duplicates.
project to develop on top of using Cucumber with the page object design pattern. Bonus to include automated screensho
a6e88b30761fae22. Create an assertion to verify the latitude is 51.51 and the longitude is -0.13. In addition to asserting th
ch one you preffer and why, what is hash code, write program to get all combinations of 3 number whose sum is equal to 1
est suites/cases?
e automated screenshots and email reporting. Please provide a Github link to this project in your reply email. Nice to write
n addition to asserting the latitude and longitude, please develop 3 more test cases you can test using the open weather
whose sum is equal to 10. will css and xpath differ based on browser,some thing like xpath search engine
reply email. Nice to write code to run on multiple browsers
using the open weather map API using Postman. Place the 4 test cases into a collection and export the collection as a JSO
ch engine
rt the collection as a JSON file. Upload that to a Github repository or gist, and link that in your reply email. Nice to take input
email. Nice to take input from a CSV file for the assertion.
LOCATION COMPANY Q.NO. ROW ID
AR, USA Walmart 1 2_W
AR, USA Walmart 2 2_W
AR, USA Walmart 3 2_W
AR, USA Walmart 4 2_W
AR, USA Walmart 5 2_W
AR, USA Walmart 6 2_W
AR, USA Walmart 8 2_W
AR, USA Walmart 9 2_W
AR, USA Walmart 10 2_W
AR, USA Walmart 11 2_W
AR, USA Walmart 12 2_W
AR, USA Walmart 13 2_W
AR, USA Walmart 14 2_W
TX, USA
personal Intrest and interview preparation
33 33_P
Pune 34 34
Noida, Gurugram NA 42 42
se ETL Testing.
ression , sanity , smoke suite?
s (each integer separated by a space), sums each file and then adds the sums to produce a total.
fn4?concurrent threads (even if there are more than 4 separate integer files).
dard
ch output
is the right time to execute test scripts and what is the time interval you run those test scripts ?
nd run them ?
driver.get("https://www.udemy.com");
driver.findElement(By.id("xxxx"))
driver.findElement(By.linkText("xxxx"))
driver.findElement(By.className("xxxx"
))
driver.findElement(By.cssSelector("inp
ut#email"))
driver.findElement(By.name("xxxx"))
driver.findElement(By.xpath("//html/
body/div/tablexxxx"))
driver.findElement(By.partialLinkText("x
xxx"))
driver.findElement(By.id("xxxx")).click();
driver.findElement(By.linkText("xxxx")).cli
ck();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait
(15, TimeUnit.SECONDS);
driver.get(""https://
www.cleartrip.com/"");
driver.findElement(By.id(""MoreOptionsLi
nk"")).click();
Select Class=new
Select(driver.findElement(By.id(""Class""
)));
List<WebElement>
classOptions=Class.getOptions();
for(WebElement i:classOptions)
{
System.out.println(i.getText());
}
driver.close();"
"1. Smoke testing : is an approach
which
"1. youiscan usually
verifycarried
the URLout 's of When login
developers
pagecan
"you anduse provide
home testng a fresh
pagelisteners,
using assertbuild to to taketothe
QA
find
the team
screenshot
"1. SwitchTo() to make
out the successful sure
on failure
Functions thatlogin.
are the
test used core
case. to
functionalities
you =should
handle alert, useof
windows a program
ITestListener
and are
iframe.
"1.WCAG
working stands
fine for
without any web content
issues. ex:
String
interface actualUrl=”
to guideliens,
driver.switchTo().alert();
accessible implement onTestFailure
with Automated
build1, build2,
https://www.facebook.com/”
method. build
driver.switchTo().frame(index); 3.....
accessiblity
String expectedUrl=
driver.switchTo().window(windowHandl
Regression
driver.getCurrentUrl();
e); testing: is the verification
2.
of Web
“bug accessibility
fixes or any changes is important in the as the
Assert.assertEquals(actualUrl,
public
web and void getScreenShot(String
internet have become
requirement”
expectedUrl);"
result, youand
WebDriver making sure they are
for tables,
important
not affecting parts otherofdriver)
can uselives
our throws
parent-child
functionalities and making of
IOException
traverse
sure the or
web { is accessible
decedent, ancestors allows "1. What is Sanity Testing?
the application.
File src with = Smoke Testing is a kind of Software
people disabilities to be able to
((TakesScreenshot)driver).getScreensh
2.
have JavaScriptExecutor
equal access to the interface Testing performed after software build
is animportant
Sanity testingaismechanism
otAs(OutputType.FILE);
that provides a kind of testing to execute to ascertain that the critical
services/features
performed to check the web provides,
whether adriver. It functionalities of the program are
FileUtils.copyFile(src,
Javascript
such through
as education, new
selenium
online File(""C:\\
shopping,
software
Users\\
provides product is
“execute services. working
script” & correctly working fine.
recreation,
when a newhealth module ormethods, functionality
Screenshots\\""+result+""screenshot.p
“executeAsyncScript” to run It is executed ""before"" any detailed
gets
ng""));
JavaScript implemented in the context to an existingof the functional or regression tests are
3. html> …at</html>
product later — The of
stages root build ex:
}element.
currently...selected frame or window. executed on the software build. The
buid64,build65.... purpose is to reject a badly broken
<head> … </head> — The document
you
3.
head. can
Static ... call aboveare
variables method
one's in you can application so that the QA team does
2. The Collection
onTestFailure
access without is an interface,
method.
creating an object, Set, not waste time installing and testing
<title>
List, and … </title>
Queue —areThe pageoftitle.
some the ...
public
which
<body> void
means onTestFailure(ITestResult
… </body> the variable
— The page's is common the software application.
subinterfaces
result)
to all the{ instances of Collection
(or objects) interface.
of the
content. ...
bs.getScreenShot(result.getMethod().g
class.
<h1> … </h1> — A section heading. ... 2.What is Sanity Testing?
List : is
etMethodName(), an ordered collection
driver); it Sanity testing is a kind of Software
<p>
maintains… </p>the — A insertion
paragraph. ... which
order,
}"
4. Overloading
<a> … </a> : occurs
— Adisplaying
link. ... when two or Testing performed after receiving a
means
more methods upon in one class the have list the software build,
<img>
content — An image
it will display thedifferent
elements in with minor changes in code, or
same method name but
the same
parameters. order in which they got functionality, to ascertain that the
4. If the audio/video
inserted into the list.content is
properly audible/visible or not. bugs have been fixed and no further
Overriding
If the means having two methods issues are introduced due to these
Set iscolor
: the ansame contrast ratio
unordered is maintained
collection, it
with
or not. maintain any order. There are changes. The goal is to determine that
doesn’t
method name and
parameters
If control(i.e.,
theimplementations method
actions for signature).
video are the proposed functionality works
few
One of the methods of Set which
is in the parent roughly as expected. If sanity test
working
maintains fine ororder
not. such
class
If the and the
short thekeysother are is in the
provided
as child
for the fails, the build is rejected to save the
LinkedHashSet
class then you(It maintains the time and costs involved in a more
menu
elements in insertion order). need to check if all of
those are working fine. rigorous testing.
5. Axecore is an accessibility testing
3. I will identify
engine for websites the tables and through
other HTML- their 3.Difference between Regression and
5. The order
unique identifierwould of be
the -tbody or tr.
based
ID user interfaces. It's fast, secure, Retesting?
Ilightweight,
will descendent and was to traverse
built to to a
Name
particular child to click the any button.
seamlessly integrate with
CssSelector existing Regression Testing is carried out to
+//tr[contains(@class,
test environment so you can automate confirm whether a recent program or
Xpath
'itemTable')]/descendant::span[contain
accessibility testing alongside your code change has not adversely
s(@id,'GroupNameColVal')]
6. Get all the values using Select class affected existing features
regular functional testing
and store in arraylist. Re-testing is carried out to confirm the
4.NullPointerException
6. you
iterate with all values with if condition test cases that failed in the final
can
NumberFormatException
use testng.xml to achieve
parallel
to given testing.
value and select the execution are passing after the
WebDriverException
<suite name=""Parallel_Testing"" defects are fixed
appropriate
NoSuchWindowException value
e linked list and double linked list which one you preffer and why, what is hash code, write program to get all combinations
uce a total.
est scripts ?
Pratibha Rajkumar
Abstraction: It is about showing the Abstraction:It is nothing but which
necessary
Encapsulation: details Thistoconceptthe userused without to hides the implementation
Encapsulation:It is an concept of internal
of
showingdata
achieve
Synchronization the complexity
hiding by making
in Selenium: (like how thatit
This logic and
binding ,hereshowing
Synchronization:Generally classonly is alsofunctionalities
an
when we
works)
data
concept
Throw related
private
vs comes and
Throws: tointo
inspecific
order
picture scenario.
to use
when thatwe workto thewith
Throws user
encapsulation ancalled
is real which
time
exception an abstraction.
binds
project andall methods
the is a
throw
To
private
have
Both achieve data
twoused
are above
we
or more forcan we use
use
components
ExceptionFound Abstract
public getter Interface
and
need to Ikeyword
handling variables
elements It
inmayis blue
in
javanot it print
and of class
encapsulation
load at the same by is
a)
class FileNotFound
and Interface. Exception: facedinterface
using following we exceptions
can achieve 100%
and
be
which
during setter
work we inface
compile method.
synchronized
while
time writing
and order.
handled our test by the
time key to security it
in the application in that scenario
NoSuchElementException:Generally can be
Title
Below
Thus ofourthe
are page:
the
actual using
differences
data is driver.getTitle()
hiding between driver.getTitle();
abstraction
implemented it by
accepts
usingis only
private abstract
While
script.
try
method.
We
these: catch
use
go for
block.
2methods
Automation
to handle
testing,
the
we
same
we
we
by
will
get get
using
methods when in
Synchronization
it element in access
not problemsvisibility
whatever
have
Throw:
b) WebDriver user
2 components:- will do The
Exception: to found
that private
Application
during modifier
in order
area in to solve
that scenario this we problems
use we will
Action
getWindowHandle()
It
a)
data
(to is a
Abstract
be design
cantested)never pattern
class and by can and
known
the where
have by
Automation we
abstract kept
others. tool driver.getWindowHandle,driver.getWin
Page
use Object
following Model:The
methods name
on itself
selenium
a)
compile It is used
getWindowHandles() time towhen declare user annot exception
able to class
dowHandles movetToElement() methods we thencan we can
handle
our
and
a)
(selenium,
like We web
try can elements
non-abstract
catch use
QTPblock .click()
etc.). and
methods.
Amethodlogicshould
user oftoaclick
page specifies
submit()
implicit wework
will
wait workifon pages
submit on
button these
initialize
Below
separately. Webdriver
isbutton.
the code
This and
for
helps the handled
user same:to script,by
interact do any
multiple action
windows in selenium
in one
selenium
Interface
on
Selenium
ensure
b)
again anyconfigure
Used can
support
while
inside have
running
the the
only
multiple
method
samethe abstract
libraries
test
body
with right like pages
should
selenium
explicit
When
are
be
wait
element
pure
inside
webDriver java
is <form>
in
classes
Iframe tag
ofalsoand
the library
we may
public
easily
methods.
b)
Java,
both When class
and
Python,
the clear
Since
element's A
applicationRuby understanding
Java type
etc.8,
and it= can
"button"
the have
script of the
orrun Advantages:Easy
element
that
fluent I used
wait type="submit" to maintain
To
c)
driver.
{type Atlaunch
a time theonly browser:
1 exception can be class
get this openBrowser
error for we need to hit on
script.
default
If
with
WebDriver
thrown we =
are
same and
"submit",
using static
speed
dr=new Java methods
.click()
so method
library
that
FirefoxDriver we also.
than
can will add
avoid Code
whereas
{ is more click() readable
will work format
for all buttons
TestNG
c)
@Test
Advantages:
b) Abstract annotation:
NoSuchelementException:
class doesn't support found BeforeSuite()
framw
Re first by using
usability
works
the
"Element
or
Throws
Annotations
during for
following
run both.
not time, dependency
found" when exception.
user in pom.xml in
accessing webpage
public
BeforeTest()staticwithout void
driver.switchTo.frame(id/name/webEle main()any restriction
Ans:
public
Code
multiple
c) If void
maintenance
button WindowHandle
inheritance.
is inside <form> tag or beforeSuite() method will be executed
file:
:Thus
FirefoxDriver
the a)
@BeforeSuite: It we usewhich
generally
element the
dr=newthrow
The concept
is not
@BeforeSuite of below(it
FirefoxDriver
an exception.
present {
BeforeClass()
ment);
before of every method and
{button
Reusability
Interface
<dependency>
waits is
with supports
outside
2method
categories: multiple
<form> tag, the click() WenDriverManager.chromeDriver.setup
(same
b)
can
annotated Used be
WebDriver forwith
user Chrome the
mistake
dr=new and
method
will Internet
while
run signature
defining)
before
FirefoxDriver(); the BeforeMethod()
StaleElementException:When
afterSuite() method will be element
executed
"1)
Test
inheritance.
method
a)
Explorer) OOPS
cases Concept:
will
Unconditional: become
work. This concept
short
Thread.sleep() and let the ();
c)
and
execution Here handledmultiple
of
dr.get("https://www.yahoo.com"); using
all exceptions
the try
test catch
methods can
block be in and is detached
after every from
method the in DOM
testNG need to write
programmer/developer/tester
optimized.
c)
Data Abstract
Driven class
Testing:
<groupId>org.seleniumhq.selenium</g
b) Conditional: canInhave
Implicit, this
Explicit, final,
concept create
non-
Fluent we OOPS
Data
WebDriver Concept:Object
Driven framework:It
driver = new oriented
is bestmaintain
ChromeDriver;
handled
again
the
String verify
suite. the correct
parent=dr.getWindowHandle(); path. Test()
proper relative xpath for it and
the
final,
maintain
Use
roupId>
wait. components
static
of ourand
submit() test or
non-static
data
method functions
: variables.
separately in such (like a programming
practise to read language
the data from external
driver.get("https://www.google.com/");
@AfterSuite:
d)
Interface ElementNotVisible
Set<String>
way that can
has The
be
only @AfterSuite
used Exception:
s1=dr.getWindowHandles();
static in annotated
different
and final When
ways AfterMethod()
explicit
Abstraction wait.
in
a)
method
we excel,
we can json
use file
<artifactId>selenium-java</artifactId>
are will run
trying etc).
.submit()
after Then
to i1=s1.iterator();
interact method
thewith we
execution write
for files like excel
we can launch browser with googlewe
the isof AfterClass()
SessionNotCreatedException:When
Iterator<String>
but
variables.
the
only still
test
submitmaintain
script
<version>3.X</version> form toIttheread
after security.
the
click dataonThis fromby As
button. Inheritance
a Team When wechrome were designing
all
hidden
while
about
d) the
Abstract test
element. methods
(i1.hasNext())
"" Object""class whichcan
can in the
be
contain
provide suite.
handled both
the AfterTest()
work with selenium
Encapsulation browser
excel
b) That
</dependency> in our
means IDE (Eclipse
element's etc).
type And
= if we framework we thought of that if client
{@BeforeTest:
either
data
implementation
have
"submit" and
to
tellmethods.
run
and
developer
the
The
button of@BeforeTest
same
to makeInterface
interface.
script
should
it not
with
be inside
AfterSuite()
and chrome driver version should
Polymorphism
requirement was test with multiple
be
annotated
hidden
String
We
can't or/and method
child=i1.next();
generally
provide can
have
the will
be
4 ways be
handled
implementation executed
toset again
achieveof same if not we will face this exception.
different
<form>
before
by using tag,
the set
try of
then
execution
catch data
only ororof same
submit()
wait.all the will
testof data it was not recommend to use bulk
if(!parent.equals(child))
this:
abstract
data
work. thusof class.
this concept become easier Abstraction:It
of data into the hides
script internal
directly logic of
its better
methods
e)
{e)
a) TimeOut
Abstraction:
The abstract available
Exception: It says
keyword classes
When
show is maximum
only
used to implementation and showing only
to
c) ifthe
belonging
time userto
element's
reach for
to execution
type
that
identify = "button"
folder. and means
an element, maintain. we use DDT into our
dr.swithcTo().window(child);
relevant
declare
Also
submit() prior data
abstract
willwe not to work.
need theclass.
touser
add and
the hide the functionalities
framework. to the user
@AfterTest
same
dr.close();
complexity can be: related
The handled@AfterTest
to by
that annotated
using
data. Implicit
The Inheritance:Acquiring the properties
The
dependency
d) interface
If button keyword
of
outside Apache of the isPOI used jar the
<form> to tag
(3rd
method
wait/Explicit
}party
same can will be
wait.
be achieve executed bywork after
using 2 from parent to child
declare
means API interface.
written
submit() in Java to support
execution
}read
concepts: of all will
Abstract the not
test
class methods
and of Encapsulation:It is the concept of
f) An abstract
and write class
operations can extend – modifying
available classes belonging to that
dr.switchto.window(parent);
Interface. binding into one cell like class which
another
office Java
files.) if class and
working on implement
Maven Project
folder.
}multiple
b) Encapsulation: Itsame
allowintoConfig reuseBuild the binds methods and variables in it
otherwise Java add interfaces.
the
@BeforeClass:
}An interface
functionality with Theparallel
@BeforeClass maintain of Polymorphism:One task can be done in
Path when method can
creating extend simple another
Java Java
annotated
the security. For will
example, be executed
we can different ways
interface
project." only.
before
create the
a piecefirstof method
code of the
that callscurrent it can be achieved by using method
g) An abstract class can be extended
class
specific is invoked.
data from a database. It may over loading and method overriding
using keyword "extends".
@AfterClass:
be useful to can
An interface The
reuse @AfterClass
bethat code with using methodoverloading:A method which
implemented
annotated
other
keyword databases method
"implements". too.willIt beletsinvoked
us do that after has same name with different
the
h) A execution
while keeping
Java abstract of alloriginal
our the test
class can datamethods
have private. parameter list
of
It
classthe current
alsomemberslets us alter class.
likeour original
private, code
protected, methodoverriding:A method which has
@BeforeMethod:
without
etc. Members breaking of aThe for@BeforeMethod
itJava others
interface whoare have same name with same parameter list
annotated
adopted
public byitdefault. method
in the meantime. will be executed
before each
c) Polymorphism: Poly means test method will run.many
@AfterMethod:
forms. It can be achieved by usingThe @AfterMethod
annotated
Method Overloading method will (whenrun afterwe have the 2
execution of each
or more same methods name with diff test method.
@BeforeGroups:
parameter withinThe @BeforeGroups
a class) and Method
annotated
Overriding (when we havemethod run only 2or oncemore for a
group before the
functions with same name and same execution of all test
cases
parameter belonging in Parent to that
Childgroup. manner)
@AfterGroups
concept. : The @AfterGroups
annotated
d) Inheritance: method It works run only by letting onceafor newa
group after the execution
class adopt the properties of another. of all test
cases
We callbelonging the inheriting to that class group. a subclass
or a child class. The original class is
often called the parent. We use the
keyword extends to define a new
class that inherits properties from an
implicit wait,explicit wait,fluent wait
driver.navigate.To()
driver.navigate.back()
driver.swichTo.frame(id/name/
driver.navigate.forward()
webElement);
By using alert method we can handle
driver.switchTo.defaultContent();//to
alerts in selenium to find single
findElement:used
come out of the frame
driver.alert.accept();
element element in webpage
driver.alert.dismiss();
findElements:used to find multiple
similar elements in web page and can
be stored into one List
"1) Yes, Main method can be overload
but
2) Final not Class:
override. FinalButmeans
to callwhich overloaded
methods
cannot
3) Testing we
beLife need
modify. to call
Cycle: It is the those
methodsIf a
steps/sequenceclass
4) Drop Down Handle: in
is main
define method.
as By
which finaleg:
testers
usingthenSelectit can
follow
public
not
during
class be static
extended
software
and void
its various main
or (String[]
sub-classed.
testing. methods arg) If we
below:
5) No, we
{SelectByValue can automate only Web
do
a) so we
Requirement
Application will get compile time
Analysis:-understand
not known
desktop. Also error.
in order
6)
Why VModel:
System.out.println(""this
to Also
declare class asis
as Verification
main
Final: Below
the
SelectByIndex
to
and requirement
automate
Validation Mobile
process. Application,
Here each
method"");
are
if the
anything reasons to make class Final:
SelectByVisibleText
Selenium's
phase
7)
main(5,10); mustmissing/not
Locators: frameworks
be
We complete
can can
identify be
before HTML used:
next
understandable
Appium
starts. and
Here then
Selendroid.
testing is contact
planned with
in the
elements
main(""robet"");
BA of the web
Standardization:
or stakeholder Somepage through the
classes
parallel
locators.
}b)
perform with
standarddevelopment.
Following are theoflocators
functions and they
There Test Planning:
are the manager
various phases the
of b)
generally
are public
testing not static used:void
meantcalculates
team to be main (int
modified a, int
estimated e.g.
""Verification""
ClassName
{effort and
classes – APhase
performing ClassName of V-model:
various operator
functions
a) Business cost for the
requirement testing
analysis: work.
uses
related
c) Test a class
System.out.println(""this
to
Case attribute
string to
manipulations
Development: identify
is main
Testing oran
contains
object.
method
mathematical detailed
cssSelector
overloaded communication
functions – CSS
having is used
etc.2 integer toto
team
understand also prepare
customer's the required
expectations test
create
parameters);
data forstyle
Security the rules forWhen
reasons:
testing. webpages
Sometimes the test weand
and
can
}cases exact
be
write classes used requirements.
to identify
which then any
perform web
various
b) System are prepared
Design: In this they
stage are
element.
public
authentication
reviewed static
by void
and
quality main (String
password
assurance x)
related
team.
system
Id –Test
{functions engineers
Similar andto class,
we do analyze
we
notcanwant and
alsothem to
d)
interpret Environment
the business Setup:
ofisthe In this
proposed
identify
be
process altered elements
System.out.println(""this
the bytesting
anyone byteamusing
else. the
not‘id’
ismain
system
attribute.
method by studying
overloaded the user
with 1 string
involved.
requirements either the developer
document. or the
linkText
parameter)
customer – Text
createsused thein testing
hyperlinks can
c) Architecture
also locate element
}environment. Design: brief
functionality
name of each module, their
e) Test–Execution:
O/P->this
interface
Name
is main attribute
method
relationships, testing canteam also
dependencies, start
identify
this
executing antest
is main element
method
cases overloaded
based on having
database
2partialLinkText
integer tables,
parameters– architecture
Part of the text in step.
the
prepared
diagrams, test cases indetail,
technology the earlieretc.with
link
this
f) can
Testis also
main
Closure: identify
method process an element
overloaded
of testing is1
d) Module
tagName
string parameter – Design:
We can In the
also module
use a tag to
analyzed.
designelementsphase, the system breaks
locate
down
xpathinto smallismodules.
– Xpath the language used to
e) Coding
query the Phase: After designing,
XML document. The same the
coding phase is started.
can uniquely identify the web element Before
checking
on any page. in the repository, the final
build is optimized for better
performance,
" and the code goes
through many code reviews to check
the performance.
WebElement
htmltable=driver.findElement(By.xpath("
//*[@id='main']/table[1]/tbody"));
About yourself.
List<WebElement>
About project.
rows=htmltable.findElements(By.tagNa
Source
me("tr"));code management tool.-
>GitHub
Pull requests tab, Resolve cnflicts,
decide
memory whos changes,
is allocated
for(int rnum=0;rnum<rows.size();rnum+ onlydelete
oncemarkers,
for
mark
static
use
+) private as resolved,
variable commit
or method
or static merge
. It modifier
or final is a class to
variable
avoid or method.
overridding
{it is a framrwork of classes and
final
interfaces
used ->
towhen
List<WebElement> applied
to make
group certaindata to a variableand
manipulation
scenarios or
method or class, its
columns=rows.get(rnum).findElements(
easy
run them .properties
together asfile, value
tags. cannot
@tags be
by
changed.using It will be constant using
By.tagName("th"));
@dataProvider or excel using APache
Hooks are like annotations. @Before,
System.out.println("Number
POI of
@After,
If @BeforeStep , @AfterStep
multiple scenarios have same GIVEN
columns:"+columns.size());
statements forannotation
@DataProvider a feature, they can be
in TestNG.
added
You
Using can unde
add Background
multiple tests
for(int priority near ever @Test method in
testngSuite
starting fromand 0 toexecute.
later.test
cnum=0;cnum<columns.size();cnum++)
<suite name=""Parallel Under
suite""all
0 being
tests
highest.and
{actions the classes
parallel=""methods"" in xml
class for mouse names
tag we should
hover<suite
thread- use be
actions.
same inorder
name=""suite1""> to execute
System.out.println(columns.get(cnum).
count=""2"">
methods-moveToElement, same script
doubleClick,
Build->
multiple sequence
number ofthe timesnumber of
<test
getText()); name=""test""
clickAndHold,Release,
actions. perform preserve-
DragAndDrop.
is webelement
used to execute
findElement->
order=""true""> first
}one action
matching
collections the locator, retunr
framework-> type is
arraylist, list,
}
webelement.
set, hashmap,
explicit wait FindElements
hashtable,
with try catch map ->
blocklist of all
Step 1: First get the entire HTML table
webelements
Attributes of cssmatching the locator.
and store this in aselector.id, name,
variable ‘htmltable’
returns
width: the list of webelements.
150px;
of typeCount
class web element.
{ display: block;
margin-bottom:
Step 2: Get
public all the
static 10px;
void rows with tagargs[])
main(String name
background-color: yellow;
‘tr’{ and store all the elements in a list
of web elements.
String str = Now all the elements
with tag ‘tr’ are stored in ‘rows’ list.
""#GeeKs01fOr@gEEks07"";
"1. public WebDriver initializeDriver()
throws
2. RobotIOException robot = new Robot();
{ implement the Robot class, we
To
//read
Fastestdata
require alocator
few properties is ID. file
methods that help in
prop
easy = new
execution Properties();
of test scripts. We
::FileInputStream represents thefls sibling
= newnode to the
have:
current node.
poi-ooxml
FileInputStream(""D:\\Salesforce\\
KeyPress() andExample poi dependency of
//input[@title='name']/sibling::a[4].a[4]
Apache
1.
Workspace_automation\\ Import POI is used for importing is
robot.keyPress(keyEvent.VK_UP);
the sibling node of input
predefined
By
SyneosHealthCare\\src\\main\\java\\
KeyRelease() using Extend classes we in use java the parent
2.
classes
resources\\data.properties"");
""We Extend
robot.keyRelease(keyEvent.VK_CAPS_L canand is
addtheirused for
tags-properties but inheriting parent
using
class
import
<include
OCK);
""We can add Implicit or explicit waits properties
we can just
name=""""TestCase1""""and import varirables""
all jars /> and
classes
//load
<exclude
MouseMove()
as follows: without
data.properties having to mention
name=""""TestCase2"""" />""
their
prop.load(fls);
robot.mouseMove(coordinates.get.X(),c
1. full
Implicit names
Wait
"1. public class ZerosToEndInArray {
oordinates.get.Y());
driver.manage().timeouts().implicitlyWait
2.
//create browser variable
MousePress()
(10,
// TimeUnit.SECONDS);
Function toPrintDuplicatestringChars
move all zeros present
public
3.
String public class class
browserName =
robot.mousePress(InputEvent.BUTTON1
2.
in Explicit
the array wait: to the end
{prop.getProperty(""browser"");
ReverseStringPreserveSpace {
_MASK);
WebDriverWait
public static void wait = new
reorder(int[] A)input) {
static
String
Yes
MouseRelease()
WebDriverWait(driver,10); void
weURLname reverseString(String
can overload = but we have to
{
public static voidstatic main(String[] args) {
prop.getProperty(""URL"");
do
robot.mouseRelease(InputEvent.BUTTO
Final it from
wait.until(ExpectedConditions.visibilityOclass public
cannot be void
changed. Also, it
//
//VERY
char[] k stores IMPORTANT
inputArray index of next
INTERVIEW available
= input.toCharArray(); QUESTION
main(Strings[]
N3_DOWN_MASK);"
cannot
fElementLocated(By.(locator)));""
Test
position Life be Cycle arg)
inherited. consists for the
//
char[]
//generalize printresult all characters = new
the code of
fora eachSTRING that
following
Static
int
are
char[inputArray.length]; k = dropdown
0;
duplicate stages and
can processes:
be handles using
browser
"No
Requirements phase
Select we class and
cannot. It is dynamic
a drawback dropdown of
if(browserName.equals(""chrome""))
Planning Phase
using
//
Selenium
String
In
for do
V-Model
(int Actions
for i =each
str =""How
0; approachclass
i < element many
inputArray.length; ofrepeated
SDLC , Testing i++) {
{Analysis phase
for
letters
and
if
ID, (int i:
(inputArray[i]
Name, are
DevelopmentA) CSS, there?""; == ' happen
')
Xpath, driver { LinkText, in parallel.
//execute in chrome
{Design
Development
result[i]
ClassName,
Phase
= ' '; TagName, Life Cycle hasChrome
PartialLinkText
System.out.println(""Inside
Implementation Phase
// if current
}//convert
Verification element
string
process. to charis non-zero,
array put
Browser"");
Given
Execution
the - Generally
element Phaseat we givenLife
Test thecyclepre
char[]
has arr
Validation
}System.setProperty(""webdriver.chrom = str.toCharArray();
process.
requisites
We
Conclusion
// next canfree combine inposition
this statement
Phase common in the array statements
e.driver"",""D://Salesforce//Selenium
When
from -
GIVEN Generally in different we write actionsAND in
Closure
Yes
if
//create
int
files
this
(i j!==you
0)
and
Phase
can give
{ empty
result.length
statement exes//Browser HashMap - 1; usernameand
Login scenarios
move
password.
A[k++]
We
HashMap<Character, can them
= i;useItpretty under
will work Background
format
Integer> andcharMap HTML or
exe//chromedriver.exe"");
}public
JSON
=driver
for new report
(int=HashMap<Character,
static
i new <void
= 0; i ChromeDriver(); main(String[]
inputArray.length; Integer>();
args) i++) {
}7
{if (inputArray[i]
checkboxes !=
can ' ') {
be found using
driver.manage().window().maximize();
//
if
7.(result[j]
findElements()
System.out.println(""I String
It returns Palindrome
==an ' ') Empty
{ have
list maximized
//
for
j--;
Use
the move
(char
.size()
window"");allkey1 0's
to getto
: arr)the
the end
count of and the array
store
Jenkins is aindices)continuos integration tool
{(remaining
String
}}Jenkins
in a str
variable = ""madam"";
1.BDD
for (int has
framework its own is environment
created using - TCs
//considers
int
result[j]
use
might len =i ==str.length();
variable-1
run
k; i only
< A.length;
inputArray[i];
on and
configured
alphabets,
click() i++) to{ click
versions
excludes the
of
Cuucmber.
A[i]
special
//always =but0; characters
initialize or spaces
reverse stringfail
j--;
last
else
testng butone on checkbox
if(browserName.equals(""firefox""))
our local it in
might
2.
}variable
1. ALl
Selenium scanerios code are written
written in feature
Java
}if
{ using
bcoz
(Character.isAlphabetic(key1)){
we have latest jars added to our
file
}1.
(Selenium
String Approach reverse Feature,
Clientfor=""""; Scenario,
Library)is first
designing Scenario
example
}eclipse
System.setProperty(""webdriver.gecko.
Outline,
converted Given,
if to When,
JSON Then , And,
key""But
//checks
Page
System.out.println(input
With
Jenkins
statements
Object
TestNG
driver"",""D://Salesforce//Selenium
is
MapModel
we
centralized canformat
contains use across
the
+Assertions,
"" --> teams, +files
//
//loop Move
goes
if(charMap.containsKey(key1))
2. What
String.valueOf(result));
Listeners,
public
and in all
to
kind zeros
browser
reverse of
TestNG.xml
class StringReverseWords
exes//Browser present
framework
using driver
for in
chatAt- the
server
BDD,
parallel array
TDD,
{ is
geographical
3. Corresponding locations Step
}{to
(example
DDD,
for
execution, the
(int
exe//geckodriver.exe"");
BLock
end
Hybrid
i=len-1;
having
ChromeDriver)
useusing i>=0;
different
exception i--) Definition
eannotations
will get
file
create
public where code isvalue
written
3.
{//if
driver
executed
4.
yes,
TestNG+Selenium+Java
public Runner =static
Driver(example increase
static
new first
file
void
void
is used
main(String[]
Chrome
the
main(String[]
FirefoxDriver(); for adding
by args)
Driver) 1
args) { 1
{3.
interacts
charMap.put(key1,
Packages
reverse=reverse+str.charAt(i);
public static
//Reverse with
the and browser(Chrome)
void
words classes
main(String[]
of the used string invaious
args) page{
Cucumber
hello.
int[] A =Strings
{ 6,responseOptions
0, 8,are 3,like
2, immutable. 0, 4,glue,
0, feature,
4. It gives
charMap.get(key1)+1);
}object,
}reverseString(""Learning base class back isto1fun!"");
};
driver and
reporting
back instrJSON format, etc
}else{
4.
}String Utilities = ""I format
am blessed and I am
reorder(A);
5.
//else
TimeUnit
//check
}" Then
Reporting
grateful""; putitifiscomes
value
reverse tois1
as
an Enum(constant Eclipse…that
equal to original is,
variable
else
System.out.println(Arrays.toString(A));
selenium
charMap.put(key1,1);
declared
6.
string
Run POM.xml code
final)
time polymorphism and for in Java
Implicit- Wait.
TestNG.xml Method It can
if(browserName.equals(""InternetExplor
}Fluent
be
//pattern TimeUnit.DAYS,
if(str.equals(reverse))
Overriding
er"")) wait class is used is usedTimeUnit.HOURS,
to poll for for regulara
{}Test
TimeUnit.SECONDS,
Example
WebElement
expression
{ Next ifGeneration
we infor use
this n case TimeUnit.MINUTES,
super
seconds- akeyword
TestNGspace and ignore for a
}exception
TimeUnit.MICROSECONDS,
System.out.println(""String
method,
Pattern pthe =till method
that time.
Pattern.compile(""\\s""); of parent is a class to
System.setProperty(""webdriver.chrom
Java Testing Framework unit testing
}System.out.println(charMap);
TimeUnit.MILLISECONDS
palindrome"");
will be
Wait<WebDriver> called.
e.driver"",""D://Salesforce//Selenium
integration testing wait = new
}FluentWait<WebDriver>(driver)
//creating
files
We can andalso temp usestring
exes//Browser for functionalsplit till atesting space
}using
else
.withTimeout(30,
String temp[]
exe//IEDriverServer.exe"");
Selenium = TimeUnit.SECONDS)
p.split(str);
{Advantages:
.pollingEvery(5,
driver = new InternetExplorerDriver(); TimeUnit.SECONDS)
System.out.println(""String is not a
Have answered in previous sets
Write Test cases covering maximum
functionality
Compatibility with Testing +ve,is-ve , boundary
a type of
1. Switching
conditions,
Software
The software to
etc
testing new tab
to check whether
development in the same is
process
browser
your
divided
Project software will
into
in beissame
different
detail, capable
which as
phases switching
of running
platform, in thewhich toon
new
different
Waterfall
domain, window. hardware,
model
what tools. while operating
Roles Agileandsystems,
NA
we can handle it using
applications,
methodology
responsibilities. network
segregates environments
the project or
SELECT
getWindowHandles()
Mobile department,
devices. SUM(Salary)
and using AS
Set
development
""Total Salary"" lifecycle into sprints
Iterator
Compatibility
Waterfall . Use
is a it.next();
Testing
structured twice
is to get
a software
type of Non- hold
FROM
of tab
functional testingEmployees
window.
development
WHERE department methodology, = ""QA"" and often
times can be quite rigid, whereas the
Mentioned
Agile methodology the ans in is previous
known forsets its
flexibility
JIRA is a test management tool- we
According
can
Yes, go
on through to theall
Bugzilla, Waterfall
HP test HPmodel,
ALM.processes ALM is in
software
JIRA
another
Mentioned from development
test
defectthe ans case managementcreationis
in previous to betill
tool defect
sets
completed
reporting.
where as
all releases one single
, test project,
processes
Mentioned the ans in previous sets
which
Test
can be ismanaged
cases then can dividedbe created
along intowithdifferent
astest Issues
case
public
phases,
in JIRA class with RevNumber
each tracking. phase{ appearing
writing and defect
5th
only
Defect CHild
once can window
during
be created can
the SDLC. be
asfound However,
a BUG with
in JIRA
public
the
the ame
Polymorphism Agile static
logic void
methodologyameans 3rd main(String[]
child many
canwindow args)
forms.
be from {
Two
//
previous
tyeps-
consideredReverse
Webservices runtime- a number
quetsions.
asare a methodoverriding,
collection
sub set ofofAPI. many
Use
compile
different
Webserrvices
1. .getWIndowHandles()
Create time-
projects,
a test method
can from which
beaonly for
overloading
are
request HTTP Set and
nothing
Scanner
Iterate
but sc
through = new them Scanner(System.in);
tobe switchTo 5th
protocols
2.
<?xml Inthethe iterations
but
request
version=""1.0"" APIs ofcan
editor, the different
select
encoding=""UTF- Add This
window
phases using
focusing
HTTP/HTTPS/Request/Response,
Request tothe it.next();
TestCase. on improving the
etc.
8""?>
Mentioned
System.out.println(""Enter ans in previous your sets"
overall
Webservices
3.
<!DOCTYPE Adding software
a support
request
suite quality
SYSTEM to only
a with
test XML.
case APIwill
number:"");
feedbacks
open the Create TestSuite dialogteam
support XML from and
""http://testng.org/testng-1.0.dtd""> users
JSON. or the QA box.
If
Enter
<suite you awant name to for
name=""Suite"" useyour theparallel=""none"">
Waterfall
test suite model
and
int
for number
software = development,
sc.nextInt(); then you
click
<test
int OK.
name=""Test"">
originalnumber = number;
have
4,.In
<classes> to be
the CreateclearTestCase with all thedialog, enter
int
development reverse=0; requirements
a
<class name
while(number>0) for your
name=""SyneosApp""/> test case and click OK.
beforehand
5.Next,
<class the as
dialog therebox isAddno scope ofto
Request
{changing the requirements once the
TestCase will
name=""com.qa.pageTests.HomePageT
int lastDigit appear. The dialog has
=number%10;
project
different
est""/> development
options for SOAP starts. and The RESTAgile
"API
reverse
methodology, testing is important
= (reverse*10)+lastDigit;
on the because
other hand, itis
services.
</classes>
checks
number if-
= Click
number/10; OK.
quite
6.SoapUI
</test> flexible,
<!--willTest and-->
now allows forachanges
generate test suite-
Serialization
}"1.
to String
be made S1= inlayer
""ALPHABET"";
the is working
project properly
development
and
</suite>
if test
you are case
serializing
System.out.println(""Reversed for you while
jsons the
toinitial
objects
number
String
requirements
request rev= will """";
be even added after as the
a test reques
APIs
this
is is- GET,
an
: ""+reverse); POST,
important PUT, stepDELETE,to PATCH
ensure no
for(int
planning
"1. i= S1.length-1;
Double-click has been on i>=0;
completed
your i --)
WSDL
{API
All the
interface
breakageproject
in thedevelopment Navigator view phases
on the
if(originalnumber==reverse)
such rev = rev
as + S1.charAt(i);
designing, development,
left.
"38_S
Security layer isiscompleted
sealed - you would
syso(""Number
}testing, etc. are a palindrome""); once in the
1.
like
else Mentioned
to
Syso(rev); ensure inthat previous
your sets
API endpoints
Waterfall
Then
2. Callingselect model
parent the second while
class as part
tab
methods of
called the
using
require
syso(""Not
"39_B
2.
Agile First full
we
methodology, aauthentication
palindrome"");
would fetchthey the and
json
follow that
an
Service Endpoints. Select the desired
}super,
they
1. Give are also
your using
permitting
daily diff methods
access with
to certain
response
iterative
endpoint by
development
(or using
add itresponsibility
GET
first method.
approach.
via thediff asAsaa
We
""+""-
}same
user
manual
will
1. Test
result,
name
design
planning,
in
types/roles/privileges
tranverse tester a
through class
techniques
development,
having
theThere
jsonbe
can using
symbol)
arguments andorclick data Assign.
types you
2.
listGive
static or
prototyping
select oryour
map
All and
dynamic.daily
and
Requests get responsibility
the
Static
other and desired
will
software be as an
value.
like
3. Oops
Validation concepts:
istester
covering all
automation
Then
code
developmentwe
reviews,
TestRequests."
1. Abstraction
will capture
/walkthrough,
phases abstract canrequirements
the value etc.in -amore
appear
classes
-Dynamic
3.simulate
Challenges
variable
than once and
willinvalid
during can
pass
be like requests
be
it
the in related
another
boundary
entire SDLCto check
to request
value
created
that no
framework
using POST." for
illegal inheritance
input
designing, it sent to
maintenance, your
condition,
2. Interface etc" - WebDriver
business
waits, logic
optimization, etc interface, list,
set, etc are used
4. @dataProvider annotation used in
3. Inheritance-
Versioning
testNG for data base
drivenclass
is maintained test isyouinherited
- ifcases. have It
by
API child
versions, classes you
might be a two dimensional object need to make sure
4. Polymorphism-
that
array different
for test versions cases Methodthat overloading
of need
the API toarebe
and overriding
still supported
repeated with is used
and thatdata
different the code
Release
5. Encapsulation planning-> Sprint qaaccess
-backwards
using
changes
5. Suite tag
execution->
arewe still
sprint give suite diff
hardening name, -> post
modifiers
compatible"
parallel= tests/ classes/ methods,
sprint
4. Explainedrelease activities"
in previous sets to be run
thread = count of test cases
5. Give
in parallel" roles and responsibilities as an
I think, if the new functionality has
bugs that are in main regression flow,
those should be prioritized first .
Otherwise we can keep the regression
bugs having old functionality on
priority."
}
"1.Finding Middle Node:
public static void findMiddleNode(ListNode head)
{
ListNode slowpointer=head;
ListNode fastpointer=head;
while(fastpointer!=null && fastpointer.next!=null)
{
slowpointer=slowpointer.next;
fastpointer=fastpointer.next.next;
}
System.out.println(slowpointer.value);
}
bhargavi varala
"String S1 = new String(""HELLO"");
//Convert to LowerCase
System.out.println(S1.toLowerCase());
"
driver.findElement(By.name(“city”)).sendKeys(“Test
City”);
select.selectByVisibleText(“ANGOLA”);
driver.findElement(By.name(“email”)).sendKeys(“user1@
test.com”);
driver.findElement(By.name(“password”)).sendKeys(“us
er1”);
driver.findElement(By.name(“confirmPassword”)).sendK
eys(“user1”);
driver.findElement(By.name(“register”)).click();
driver.close();
"polymorphism
driver.quit(); is nothing but one single task can
perform in different ways
Polymorphism
} is derived from 2 Greek words: poly and
morphs. The word ""poly"" means many and ""morphs""
means forms.
"@BeforeSuite:
There are two types A method which is marked
of polymorphism with this
in Java: compile-
annotation
time polymorphismwill run only and once before
runtime all tests in We
polymorphism. the
6.
suite
"StoringAfter finishing
have run
the objects the test
property right click on the test and
can
click perform
ontest
RunAs polymorphism
– >Javaexcel in from
application java by themethod
application
@BeforeTest:
under
overloading inandAdifferent
method
method which is marked
sheets
overriding." andwith this
differentiate
annotation
the excel will be executed before first @Test
"Try
annotated goingsheetto project
method.
nameproperties
with the country > Java Build namePath or the
>
language
Order And name.
Export Saving
tab > the
select object
all (orproperty
try to play with
"@BeforeClass:
corresponding Atomethod
theThis which
unique is marked
keys would with
helpthisto
check
annotation boxes will there).
be executed shouldbefore cause first complete
@Test method
retrieve
project the
rebuild particular
andonly object
Eclipse from the
main class. excel
particular
execution.
sheet based It runs
on the oncetoper
localized
seeclass.
language the test script
...
@BeforeMethod: A method whichand is marked withrecords
this
When
needs.
Solution: testing
So reading things the like adding
particular object removing
property from
annotation
from
the excel a will
database, be executed
automated before
UI tests
sheet based on the requirement of the test every
can @test
be time-
1.Close
annotated Eclipse.
method.
consuming
case
"1.
2.Delete with the and
the help
metadatarepetitive.
of unique
folder ... And
key API
inside would testing
your solve allows
the the
workspace.
@Test:
tester
purpose
public Marks
to
classmake
of thea class
requests or a method
that might as a
not
localization automation testing without
Simple{ part
be of the
allowed test.
3.Restart
@AfterMethod: Eclipse A method which is marked with this
through the UI,
writing the new test scripts. which is crucial for exposing potential
annotation
security
public flaws
static will
void bean
in executed
application.
main(String after
args[]){ every @test
annotated
StringBuffer method.
a = new StringBuffer(""ALPHABETS"");
Caused
"1. explain
@AfterClass: by:framework
java.lang.ClassNotFoundException:
A methodunder implemented
whichtest is marked indifferent
project.
with this
Open the application
System.out.println(a.reverse());
learning_Java.Callbyvalueandcallbyref with localized
language:i
annotation
language
} inour
will
a selenium
be
browser executedand project
after
copy forall
the developing
the test
caption athe
methods
of
framework
in
"1)What
same
}click the object
current we
are your for used
class roles
which java.
have and
the been runkey is generated
responsibilities
unique as manual
Type
@after on
of project->properties->Java
Framework:In
test---It will our
execute project
only we
oncebuild
are path->Source
afterusing
the TestNG
test
tester?
"above
and and each
check store src the folder
caption to
is is
stilla new
valid excel
exist sheet
or recently
framework
@AfterSuite:
> Understanding
corresponding using
A methodpage
Test object
which
Requirements model
marked design
with pattern
this
"there
removed.
without are 5 testtodesign
Correct
pagefactory.
the same
any missing key.
techniques: Andorsave
path the excel
incorrect pathin
annotation
> Contribute
sheet with will
theto run
Test
new once
Plan
localized after execution
Documentation
language orofthe
all tests
country
Boundary
and rebuild
POM:Object Value
and
Repository Analysis
run the (BVA)
test. It will fix
design pattern in Selenium the problem."
the
> suiteTest
Derive
name. have run
Scenarios
Equivalence
"WebDriver. POMClass createsPartitioning
our testing code maintainable,
> Document
Decision Table Test Cases
based testing.
How
> to
reusable.
Update avoid
Page NoSuchElementException
Factory is an language
optimized without
way using
to create
Based
State onTraceability
the countryMatrices
Transition or the Document requirement of
try/catch
object
> Collect block?
repository
Test Data in POM concept.
the
Error test case,
Guessing" reading the excel sheet for that country
WebDriverWait
Packages:we wait =seperate
create new WebDriverWait(webDriver,
pages
>
orVerify
language Test and Environment
fetch theSetup object withand thetests.
localized
timeoutInSeconds);
Test
> Base
Create class:Which
Test Batches consist of common functions
unique key.
used
> Executefor allTestpages Cases like(conduct
excel,Propertiesdiffernt levels of Test
wait.until(ExpectedConditions.visibilityOfElementLocate
file,browserlauch,extentreport,log4j.xml
Execution) etc. this files
Example of Gmail Login Page:
d(By.id<locator>));
are responisble to
> Reporting and Tracking Defects read the data.
TestNG:it
> is easy
Re & Regression
Object Type LocalizedtoTesting
understand.We
Key English Caption can prioritize
German the
test,Grouping,Parallel
> Collecting
Caption French TestCaption
Matrices execution,dataprovider and
assertions.
> Test WebDriverWait w = new WebDriverWait(driver,
Closure
Text Box Text_UN_LoginPage UN_English UN_German
5);
propertyfile:
1,2,3 questions are answered in 39
Explicit wait
WebDriverWait wait = new
WebDriverWait(WebDriverRefrence,TimeOut)
"
Akshay
Praveen Rego Gaikwad
1. Abstract class: Can achieve partial or
complete
1. Wraps data abstraction(No
and methods implementation
into a single unit and
Implemented
2.
1. When we
Getting thehave Methods)
applicationvariables ; Interface
underwhich test:we Cantodobenot in
achieve
want
sync with complete
1. throw keyword : Used to explicitly throw aan
to expose the to
testing abstraction(Only
the user
tool - instead
Selenium create
Unimplemented
method
2. How totoachieve
exception read aand
from Methods) writeconcept:
- Wait
method data
or any block Usingof
NosuchElementException,
2. Abstract class: No restriction on private
3.
Implicit
code. Practically,
StaleElementException, We wait can and creating
throw explicit eithervariable
wait"" checked with or
driver.getTitle();""
declaration
access and ;getter
Interface and :; setter
By default method public, with
unchecked
NoAlertPresentException,
1. GetWindowhandle exception. - returns String
static
public
throws and
access
keyword final. which : Used willinmake sure the of
the signature
NoSuchWindowException
<address
Page
3. AbstactObject of thechange
Model
class: window>
Does: not support
variable
method
NosuchElementException do not
to indicate that- the its value
: method bymultiple
any
might
2.
1.
Inheritance
wrong GetWindowHandles
Framework
Submit : ;
Works
assignment."" design
Interface when pattern
: return
Supports
the formto Set<String>
define
Multiple
has tothe be
throw
1. one of the listed type exceptions.
WebDriverWait
webelements
Inheritance
submitted
1.
2. selenium-java
throw ;
keyword click referring
: works
: We to for oneall page
the
cannot throw multiple in
types one like
WebDriverWait
String
class
4. Abstract parentHandle class: wait ==new
Practically when we want
submit,
2.
Chrome
exceptions
WebDriverWait(driver, buttons,
selenium-chrome-driver
Browser: using throw links. 15); keyword. ;parent
driver.getWindowHandle();
some
2.
3. Definition
Submit: ofkeyword
the will
selenium-firefox-driver of apath
methods
wait page for completely
for
a new user// page
Saveto resides
override
to load with
;and
//Set
throws
1. the
@BeforeSuite driver
wait.until(ExpectedConditions.visibilityOfEleme
window :We tocan refer declare to chromemultiple driver
the
create
click:
4. userwill a creating
user
selenium-ie-driverimmediately
System.setProperty(""""webdriver.chrome.driv
exceptions (separated the
implementation framework
continue
by commas); based
Interface:
executing using on the
The
application
When annotated
ntLocated(By.xpath(xpath)))
"@AfterSuite
click(); we//click do underthe
not method
link
wanttest whichtowill expose be
opens runany only
multiple once
code""
Used
er"""",
throws
before tothe interact
""""chrome
keyword."" with
driver different
path""""); types of
2.
The
windows
2.Tests
methods
browsers""
//WebDriver
Boolean
annotated tocurrent
refer expression
the
- to method
the
user
Interface
suite
reusable
and to
will
,
have
check
alter
driver
run.
bemethods
run
the
-
if theonly
reference
element
once
from
2.
is
after
WebDriverWait
"""Oops @BeforeTest
present.(Taking
all tests in this
wait xpath suite
= new for example)
have run.
the
implementation
object
The
pages , concepts
annotated new so- ifkeyword,
if((driver.findElements(By.xpath(strxpath))).size
@BeforeSuite
WebDriverWait(driver,
the UI
method
changes
10); ChromeDriver
will // be
for the-page,
run
Timeout before
in Class
10s any
There
the
5.
1. tests
Abstact are
Automation 4
dont pillars
class: need Can
framework of toOops
createchange,
whereconcept.
object only
the of the
data classcode
to be
()driver
test
The
boolean
1.
within
thus !=0){ object
method
annotated is
with
theisChildWindowOpen
Encapsulation page
upcasted
method @Test
object tag
will
needs
to WebDriver.
be run
=to change only once
fed
WebDriver
3. tocan
@BeforeClass
have
scripts
driver
if(driver.findElement(By.xpath(strxpath)).isDispl
constructor
=arenew stored ; Interface
and
ChromeDriver(); read :from Cannot
before
2.
create
and Abstraction the
object""
external current
wait.until(ExpectedConditions.numberOfWindo file. suite have run.""
1.
//launch
The
ayed()){
"wsToBe(3)); Language
annotated url//3 and
using Frmework
method
here the refers get
willmethod used
be
to run before the
3.
Advantages:
2.
2. Inheritance
Major
Maintenance
driver.get(""""url"""");
Page
first
return Object
test advantage
true; method Model of in :is
Object
the when current we3 have
repository
windows
class. to test
and Test
changes
4.
1.
the Polymorphism
Code
same on
maintenance
flow case with basis is
different better sets of data ""
Data
""
1.
4. feed
Framework
@BeforeMethod
}2.(isChildWindowOpen)
if Page Factoryto thedesign tests
uses the pattern
{ concept of Pageto define the
3. Code
Utilities resusability
webelements
The
else
Object
1.
Set<String>
Encapsulation
3. annotated
Create Model
Encapsulated 7present
class referring
:method
defined
handles in =the
files
data"" infor toframework
will one
each be run page
page like
in
before
and one
screenshots,
class
each
return
define test
driver.getWindowHandles();false;
all data email
method(@test
""""org.openqa.selenium.support.PageFactory"
the objects , config method)
and methods file reader/ of that json
Yes
1.
file Wraps
reader etc and methods into a single unit
2.
5.
}page
"""
//
2. Definition
@Test
Switch
When in each
weto of
child
have a page
class completely
respectively
window
variables which resides
we do not with
WebDriver
4.
the Generation
user Interface
creating of logs the and
framework reports based on the
Where
else
2.
for Page
Based
(String our
Factory
on actual
the to
handle uses
flow tests a are
different
reference written method
{ the methods to
want
Synchronization
5.
application
6.
{method
initialize
to expose
Exception
@AfterMethod the Handling""
under
WebElements in:test
handles)
the
selenium:user instead
using
create a
@FindBy""
from
1. page
driver.switchTo().window(handle);
Getting tothe class
read in the
and
application write test data
underclass testfileto "" be in
2.Tests
The
return
""Have
if annotated refer
false
you ;
used
(!parentHandle.equals(handle))
3. Practically, to the
method
creating reusable
interface will
variable inbe methods
run
your { after
framework
with private from
each
sync
Listeners
the
test
}other with are
pages
method. the
so testing
used
if the to
UI tool
listen
changes - Selenium
to aforparticular
the page,
access
2. How thentoand selenium
System.out.println(driver.getTitle());
achievegetter-and Waitinterfaces?
setter
concept: method Using with
event
the
7.
3.
Using
1. tests and
@AfterClass
Combination
Runnable Alert behave
dont need
of
Interface
if(driver.getTitle().contains(""""TitleName""""))
public access which as
both"" to it- change,
will is defined.
Parallel
make only
Thread
sure In the
case
the code of
{
Implicit
any
within
The defined
thewait page and
events, explicit
object the wait
needslisteners to listens
change to
break; do not change its value by any the
annotated
org.openqa.selenium.WebDriver.TargetLocato
public
execution
variable String method
getcurrentdate(String will be run after all
the
test
r.alert()
dateFormat) event
:methods and in execute
-the current the defined
class.interface set of
2.
}Implicit
SQL
wrong ITestListener
instructions
Advantages:
8.
1. @AfterTest wait {defined
assignment.
driver.switchTo().alert().accept();
Test
for
NG
the
listener
event.
3. Define
} NosuchElementException
Connection
1. all con the methods=
driver.manage().timeouts().implicitlyWait(10, in interfaceAccept - and
There
1.
The
the
implement
}Question Code
Alert
DateTimeFormatter are
annotated many
maintenance
(clickin OK)
page
DriverManager.getConnection(dbUrl,username
Abstraction: listeners
method dtf
clas is = better
will
to in Java,
be
hide run
the but
after in all the
2. StaleElementException
TimeUnit.SECONDS);
perspective seems of incomplete,
Testing we have The user defined
test
2. Code methods
implementation"" resusability
driver.switchTo().alert().dismiss();
DateTimeFormatter.ofPattern(dateFormat);
driver.manage().window().maximize();
,password);
1. Hide the implementation details -
and Cancel
display
3.
2.
1. NoAlertPresentException
constructor
WebDriverWait
Primitive
WebDriver dataand the
wait
types:
Listeners main=new method
byte, short, int, long, definition is
3.
9.
the Encapsulated
@AfterSuite
Alert
}LocalDateTime (click data""
cancel)""
now
Class.forName(""""com.mysql.jdbc.Driver"""");
only essential features = LocalDateTime.now();
4.
not
float,
HashMap
2. NoSuchWindowException
defined.
WebDriverWait(driver,
TestNG double, Listeners""boolean, 50);
char ; run after all
The
return
2. Can annotated
parentHandle;
be achived method through //casewill
Returns be
Abstract parent class and
5.
1.Hash NoSuchFrameException
Considering table following
wait.until(ExpectedConditions.presenceOfEle
Non-primitive data
based types:
implementation based
String, Array,onofthe Java's
tests
Jenkins
return
window
MongoDB:
Interface in this
is an suite
dtf.format(now);
if need open to havesource
switch run. automation
back"" server.
6.
question TimeOutException""understood
mentLocated(By.xpath(xpath)));""
Interface,
Map interface Class :
It
1. is
The
mongoClient a server-based
POM contains
= new system
information
MongoClient(new that runs
about in
the
public
2.
10. Primitive
It
containers class
comprises
@BeforeSuite datatest
such of {Key
types:
as Apache =Java
Value predefined
pair,detail
Tomcat. where the
project
}""
1. xml fileand which
MongoClientURI(""""DBURL""""));
Inheritance: various is configuration
used toDeclared
configure and used
Non-primitive
key
The
Uses:
by is Itnon
annotated helps data
dupricatethemethod types:
user value will
to be run
automate by
only the
the once parts
organize AMaven
mydatabase
1.
""Annotation
public
user class abstract to
the build
=tests.
is allowed
used class the
in page project.
top{ inherit object themodel? features of
before
of
2.
another
@FindBy software
The
Controls all tests
configuration
class.
- the
mongoClient.getDatabase(""""DBName"""");""
Used in
development this
execution""
to and
initialize suite the have
related
the artifact run.
to building,
webelements""details
}testing,
Yes
11. we can
@AfterSuitedeploying, store the objects in
facilitating hashmap
continuous
are
2.
"1. Thedefinedsubclass in xml can formatadd itsislist
own fields and
String Collect is
hashmap.put(<key>,
The
integration
Uses: annotated nonall andthe
primitivelinks
method
continuous using
as
<value>);
will it be a runin
class.
delivery."" the
only web
Classonce
methods
test(){
page
comes
Based basedunder
on inthe addition
on non <a>
initial to the superclass
tag.
primitive
analysis category.
of the fields
application
after
1.
and Maven all
methods. tests in this
reads the pom.xml file and suite have run.
System.out.println(""""Constructor"""");
2.
with Iterate
Retrieve:
"" somethrough ofthe the list and
thelibrararies
parameters click on each
downloads
}3. It provides code reusability. in .m2 folder
link
1. Is
for(String
2. the
Configure application
key:hashmap.keySet())
toachieve automatable
run the runtime tests in sequence {by selenium or in
4.
3.
2. It
Find
Costis used out
of the to
whethertool the link is polymorphism.
valid or broken
parallel""
1. Get the
public
based
3. Will the 404webelement
static
system.out.println(key tool void
error main(String[]
displayed
provide
of the
return
+ """"="""" onbutton
args)
the
of { and ""
screen
+Investment
create
Polymorphism: a script
System.out.println(""""Main to validate it
method"""");
4. Will the the
hashmap.get(key);
2. Deploy toolscript satisfy in the scheduler exit criteriaor Bamboo of our
1. Perform
//click
}tests"" on the a singledropdown action in different ways.
or
2. Jenkins
}}"" We can perform for every
driver.findElement(By.id(dateFormat)).click();
Encapsulation : 5 mins
polymorphism in java by
3. If
method the
//Replace
1. button
Wrapsoverloading the xpath
data is present
and methods and
of themethodbuild success
into aoverriding
dropdown single withunit
Close
message is displayed""
3. Mainly
userinput(Create
The
2. When
New main to
methodimplement
we have variables
--> Assigned an
will xpath inheritance,
execute
--> Fixedwhich where .""
--> Retest helps
using
we do -->notin
code
contains reuse, function classes,
want to expose to the user instead create a
Close with methods
dummy written
string once,
and
tested
methodand
replace with
to read implemented.""
user and input)
write data
driver.findElement(By.xpath(dateFormat.repla
3. Practically,
Retest Failed creating variable with private
1. @BeforeSuite
The annotated method will be run only once
before the current suite have run.
2.
1. @BeforeTest
Develop a small script as POC to check if
The
the annotated method
application is in sync willand be can
run beforebe any
long
test lastHeight
method with = (long)
@Test ((JavascriptExecutor)
tag
automatable, what other
webDriver).executeScript(""""return
JavascriptExecutor tools are required
js = (JavascriptExecutor)
3.
other @BeforeClass
than Selenium,
document.body.scrollHeight"""");
driver;
The annotated method will be run before the
2. Maintenance
WebElement of Object
Element repository
= current and Test
Test
first
Data Strategy:
test
feed method
to{ the tests in the class.
while Test(true)
driver.findElement(By.xpath(xpath));
1.A Strategy document is an initial
4.
3. @BeforeMethod
Utilities
((JavascriptExecutor)
if(Element present
!= null){ in the framework like high
level
The
screenshots, document
annotated method will be run
email , config file reader/ json before
webDriver).executeScript(""""window.scrollTo(0
js.executeScript(""""arguments[0].scrollIntoVie
2.It
each sets testthe standards for
method(@test testing processes
method)
file
,5. reader etc
document.body.scrollHeight);"""");
w();"""", Element);""
and
4. activities
@Test
Generation of logs and reports
Thread.sleep(2000);
3.
5. Usually
Where Exception ourthere actual will
Handling"" testsbe one Test Strategy
are written
document
6. @AfterMethod and different number of Test Plans
long
The annotatednewHeightmethod = (long)will ((JavascriptExecutor)
be run after each
webDriver).executeScript(""""return
Close
Test
test method. Plan:
document.body.scrollHeight"""");
New
1.Describes
7. Using --> Assigned
@AfterClass whatcatch -->test,
to Fixed how -->toRetest
test, when --> to
1. Try and block
if
Close
test
The (newHeight
and
annotatedwho ==
will lastHeight)
methoddo whatwill { run after all the
test.
be
2.
Xpath Throw keyword
stands for XML path which consists of
break;
2. It be updated
test
3.
expression
Wait
}Retest
methods
Throws
in selenium forinaduring
keyword"" the
path
denotes thethe
current
along phases
class.
with
selenium to reflect
certain driver
any
8.
to @AfterTest
conditions
wait Failed
deviation
for a to from
locate
particular thea original
particular
time or a plan""
element.
particular
String
lastHeight
New --> s = """"Hello""""
= newHeight;
"condition
The
There
s
}"" = areAssigned
annotated two
is
s.toLowercase();
method
types
reached. -->of Fixed
will
XPath
This be
will-->allow
run Retest the-->
after all the
Retest
test
1. Failed
methods
Absolute st
application -->
Xpathto Assigned
be-identified
XPath
in sync --> Fixed
expression
with Selenium.-->
is
System.out.println(s);""
Webelements
Retest are using locators
9.
There @AfterSuite
created using
are 2 types the selection
of waits from the root
1.
The
node. ID:annotated
Syntax:
It starts driver.findElement(By.id(“Element
method
with will
a single be runused
slash after
‘/’ andto all
1.
ID”)) Implicit Wait - Implicit waits are
Deferred
tests
traverses
provide in this
aSyntax: suite
from the
default have run.
root totime
waiting thebetween
whole DOM eachto
2.
New
reach Name:--> to Assigned
the desired -->theDeferred""
element.
consecutive step
driver.findElement(By.name(“Element of script.The
10. @BeforeSuite
2. Relative
subsequent XPathtest -step
XPath expression
would only execute isName”))
3.
The Class
created Name:
annotated
from the Syntax:
method
middle will be
of the run
DOMonly once
structure.
when the 30 seconds
driver.findElement(By.className(“Element have elapsed after
before all
It is represented
executing tests
the previous in this suite
by a double have run.
slash ‘//’
test step/command.
className”))
11.
denoting @AfterSuitethe current node.""
driver.manage().timeouts().implicitlyWait(30,
Relative XPath -method
XPath expression
4.
The TagName
annotated
TimeUnit.SECONDS);
: Syntax: will be run is onlycreated
once
from the middle of
driver.findElement(By.tagName(“Element
after all tests in this the DOM
suite structure.
have run. It is
2. Explicit Waitby- Explicit
represented
TagName”)) a double waits
slash are ‘//’used
denoting to halt
""
Parallel
the execution
execution until can
the be
time performed
a particular based
the
5.
on current
LinkText
the need node.""
: Syntax:
andor type
condition is met
driver.findElement(By.linkText(“Link theof framework
maximum time used.
has
Text”))
1. TestNG
elapsed. - TestNG has inbuilt testng.xml file
6.
where Partial we LinkText
can : Syntax:
define the tests in parallel
WebDriverWait
There are 4 pillars waitof= Oopsnew concept.
driver.findElement(By.PartialLinkText(“PartialLin
<suite name=TestSuite
WebDriverWait(driver,30);
Encapsulation thread-count=6
1. Overloading:
kparallel=methods
Text”)) when > two or more methods in
wait.until(ExpectedConditions.visibilityOfEleme
2.
one Abstraction
class have the same method
Interface:
7.
2. XPath blueprint of- aMaven
: Syntax:
Cucumber/TestNG
ntLocated(By.xpath(""""xpath"""")));""
3. Inheritance
class. hasIt has aname public
inbuilt but
different
abstract
Gecko
plugin parameters;
methods.
driver.findElement(By.xpath(“Element
driver
called ismaven The
a connection interface
surefire between
plugin in Java toXPath
run is athe
4. Polymorphism
Overriding
mechanism
expression”))
Selenium :
testtwo
to methods
achieve
scripts with
abstraction.
and Firefoxthe same
browser
Wait
testsininselenium
parallel. denotes the selenium driver
method
Constructor:
8.
which
to
It CSS
wait
can is
be name
:for
Syntax:
developed Theandpurpose
a particular
configured parameters.
by Mozilla.
intime
pom.xml One
file. of the
isortoa""initialize
particular the
Encapsulation
methods
newly is
created in :object
the parent
driver.findElement(By.cssselector(“Element beforeclass it and
is the
used."" other
condition
<plugin>
1. Wraps is reached.
data and methods This will allow
into the unit
a single
is
css in the child
expression”))""
application st class.
to
<groupId>org.apache.maven.plugins</ be in sync with Selenium.
I2.guess
Whenthere
Method we haveare variables
overloading no limitations. which
: performed Allwe thedo
within suits
not
There
groupId>
can
wantbe are
toMethod2
defined types
exposeoverriding:in of waits
totestNG.xml
the useroccurs and can
instead be run
create a
class.;
1. Implicit Wait - and
Implicit
<artifactId>maven-surefire-plugin</artifactId> waits in
are used to two
at
All once.""
method
classes
the suits to
that read have
can be IS-Awrite data
relationship
defined in between
testNG.xml and
provide a default
<version>3.0.0-M4</version>
Practically, creatingwaiting time
variable with privateeach
3.
can Method
be
consecutive run
<configuration> overloading:
at once.
step ofand example
thesetter
script.The of compile
access
time and getter method > with
S1 - Ifpolymorphism
<suite
subsequent name=""""Test-class
in casetest
<parallel>classes</parallel> supposestep ; Method
would overriding:
the Suite""""
pop
only upexecute
appears
public
example
<test access
of30 run
name=""""Test-class which
time will make
polymorphism"" sure the
before
when the
the startseconds
<threadCount>2</threadCount> of the testtest""""
have or end>of after
elapsed the test
variable
<classes> do not change its value by any
we can use
executing the Test
<useUnlimitedThreads>true</ Listeners.
previous test step/command.
wrong
<class assignment.
S2 - Butname=""""test""""
in case if it can/>
driver.manage().timeouts().implicitlyWait(30,
useUnlimitedThreads> appear anytime
during execution, after each step there
TimeUnit.SECONDS);
testSourceDirectory>src/test/java/com/SC/
Abstraction:
"Write a be
Java program
</classes>
should
2.
1. Explicit
Hide the Wait
testcases</testSourceDirectory>- Explicitto
a validation
implementation
print
towaits
check 1234
are
details
forused
and
1234
multiple toin halt
display
two
</test>
handles
the rows.
execution and handle them accordingly (Not a
only essentialuntil
<useSystemClassLoader>false</
for(i=1;i<=2;i++){
</suite> features the time a particular
ideal
condition solution)is met orthrough
useSystemClassLoader> the maximum time has and
2. Can be achived
system.out.println(""1234"");
<suite name=""""Test-class Abstract
Suite2""""class >
elapsed.
<forkCount>10</forkCount>
Interface
}"
<test name=""""Test-class
WebDriverWait wait = new test2"""" >
<reuseForks>false</reuseForks>
Set:
1. We Set can is anuse interface.Cannot
the other types beof instantiated
locators toto
a
BDD is Behavior Driven Development,towhich
find concrete
the element implementation in order use it.is
You
2. If
derived
1. We can
therecan choose
from build
is TDDthe
single between
(Test xpath
set Driven
of the
using
data following
it canthe ancestor
Development). Set
be given
implementations
and
Here predessor
the tests areas in the
written Java Collections API:
in the
Tests
java.util.EnumSet
feature
can file
be managed in 2first
""""data"""" ways, and then the
3.
Eg:We
application
1. When can user
TestNG.xml build
code xpath
login is written from loginid
using the root""
later. As""""Name""""
the
Inner
java.util.HashSet Join: Returns only the rows that have
application
and
2.
matching password
Maven code
surefire
values adds
""""Pass""""
inplugin""
both on thethe tests
tables pass and
Wait in selenium
java.util.LinkedHashSet
thus theJoin: motive denotes
is achieved. the selenium driver
2.
2.
to If there
Outer
wait for are
a multiple
It includes
particular set
timethe oformatching
data,
a use rows
particular
java.util.TreeSet
Cucumber
Scenario is a testing framework iswhich
as
condition
2.
Wait well
Cannot asOutline
in selenium issome
reached.
contain
concept
of theThis
duplicate
denotes
-will
the
This
non-matching allow
elements.
selenium
used
therows to run
driver
supports
the
between same Behavior
scenario Driven
for 2 or Development""
more different sets
application
3.
to
1.
of Accessing
wait data forthe ast two
to be
and
particular
driver.navigate().back();
test
tables.
addingin synctime order
orwitha of Selenium.
each type
particular
There
of
condition Set are type 3
2 is
is typesdifferent
reached. of Outer
waits
This will Join: allow the
2.
Switch
Eg.
Left driver.navigate().forward();
Outer to new
Join: frame:
Returns all the rows from
1.
3. Implicit
application Wait
st
driver.navigate().refresh(); to- Implicit
be in syncwaits withare used
Selenium. to the
driver.switchTo().frame(""""frame
And
Using
LEFT
provide UserAlert
table enters
and
a default """"<username>""""
matching records id or
and name"""");
between
Map:
There
4.
Get are typeswaiting
to2 default
driver.navigate().to(String
back
""""<password>""""
org.openqa.selenium.WebDriver.TargetLocato offramewaitstime between each
: arg0);a single web
1.
both
1. FindElement:
consecutive the
MapMessage
Implicit tables.
is aWait step
collection Used of
-displayed
Implicit theto
of waitsaccess
script.The
key = value
are usedpair.to
5.
r.alert()
element
Right driver.navigate().to(URL
driver.switchTo().defaultContent()""
Then Outer on atest
Join:page Returns arg0);""
; FindElements:Login
all the Successfully
rows Returns
from the
subsequent
2.
provide A map a does
default not step
contain
waiting would only
duplicate
time between execute
keys. each
Examples:
1.
the
RIGHT
when driver.switchTo().alert().accept();
list of
table
the all
30 and matching
seconds matching elements.
have records
elapsed - Accept
between
after
Below
consecutive
|2. username are the stepmainofimplementations
| password the| script.The of Map
the
both
executing Alert
the (click
FindElement: tables.
the OK) It step
previous throws a step/command.
test
interfaces
subsequent
|NoSuchElementException
testuser1 | test
Test123 | would only execute
2.
Full driver.switchTo().alert().dismiss();
Outer Join: It
driver.manage().timeouts().implicitlyWait(30, combines exception
the result - Cancel
when
of theit
1.
when
|1. HashMap
Collect
testuser2 the 30
all| seconds
the
Test784 links | have
in the elapsed
web pageafter based
the
fails
Left Alert
to
Outer
TimeUnit.SECONDS);find (clickIf
Join thecancel)""
and element;
Right FindElements:
Outer Join.""
2.
on
There
"" LinkedHashedMap
executing<a> aretag. the previous
couple of solutionstest step/command.
Returns
2.
3. Explicit
TreeMap"" anWait empty - Explicit
driver.manage().timeouts().implicitlyWait(30, list when waitsthe areelementused to halt
2.
1.
doesn’tSend
As
Using Rahul HTTP
Robot
exist request
mentioned
on Class
the for
page.in the link Restand read
Assured
the execution
------------------
TimeUnit.SECONDS);
HTTP response until the time a particular
training,
public
Using
3. void
the we
FindElement:Syntax cancode. use
fileDownload()
scope tag the POJO { class - Sending
condition
2. Explicit is
Wait met- Explicit
or the maximum
waits are time or has
3.
a
Robot Find
string
<dependency>
WebElement out
with
robot whether
= a newlarge
elementName the
number
Robot(); link is
= of theused
valid to halt
broken
parameter
elapsed.
the
based execution
on HTTP until
response the time code.a particular
can become tedious and updating a string
robot.keyPress(KeyEvent.VK_TAB);
<groupId>commons-logging</groupId>
driver.findElement(By.LocatorStrategy(""""Loca
WebDriverWait
condition
String url metwait
=is""""""""; orofthe = new maximummay timebecome
has
having n number
robot.keyRelease(KeyEvent.VK_TAB);
<artifactId>commons-logging</artifactId>
torValue"""")); parameters
WebDriverWait(driver,30);
"If we
elapsed. understand
HttpURLConnection the internal structure of a
time-consuming.
robot.keyPress(KeyEvent.VK_ENTER);
<version>1.1.3</version>
FindElements: Syntax Hence,huc it is =always
null;
wait.until(ExpectedConditions.visibilityOfEleme
table
WebDriverWait
try in html page wait
{ robot.keyRelease(KeyEvent.VK_ENTER); we = can
new handle any
recommended
<scope>runtime</scope>
List<WebElement> to send an object in
elementName = body
ntLocated(By.xpath(""""xpath"""")));""
scenarios
WebDriverWait(driver,30);
huc related
= to the
(HttpURLConnection)(new data table
method.}
</dependency>
driver.findElements(By.LocatorStrategy(""""Loc
"URL(url).openConnection());
1.’table’ tag defines
wait.until(ExpectedConditions.visibilityOfEleme HTMLsetting table.
2.
"" We
Using can
atorValue""""));"" use
browser Hashmap profile for parameterizing ""
2.’tbody’ tag defines
ntLocated(By.xpath(""""xpath"""")));"" a container for rows and
"ChromeOptions
Many
columns. tools are available options =innew the market, Major
ChromeOptions();
ones are huc.setRequestMethod(""""HEAD"""");
There areGitHub,
3.’tr’Map<String,
defines many rows SVN,
tools in an Bitbucket""
available
HTML table. in the market,
Major
Static ones
Keyword: which Object>
I use prefs = new
4.’td’/’th’
HashMap<String, define the
huc.connect(); column of an HTML table.
Object>();
Tortise
Can
If thebe Git,
used
method Eclipse,
with
is declared IntelliJ
class, variable,
as staticmethod or finaland it
These
block.
cannot
Step
The 1: tools
If be
Get
Collection a will
member
overrided""
the highlight
xpath
in Java is declared
of the with HTML different
is a framework that can
as static,
table colors
forit
respCode
prefs.put(""""download.prompt_for_download"" = huc.getResponseCode();
and
be
which
provides show
accessed
we the
have
antags: user
without
to
architecture the
perform changes
creatingtoactions
store inobject
andefineandthe
Cucumber
"", false);
current version Cucumber
and the updatedtags version. the set
Final
Step
manipulate
of testsKeyword:
2: Get all
if(respCode
to be the
therun, group rows
whoch with
>=of400){ objects.
is tag name
defined Java at ‘tr’(usinf
the
Based
If a member on that is andthe user
declared can
as either
all final, keepofthe
value
findelements)
Collection
start ofhelps
the framework
scenario.
options.setExperimentalOption(""""prefs"""",
Hooks thebe user
store
System.out.println(url+"""" provides the
to run blocks
elements
many ofis a ain a
code
changes
variable
list of web
interfaces or
cannot discard
elements.
(Set, List, -Queue,it""
changed, method
Deque) cannot
and of
broken
Syntax:
prefs);
before link"""");
or@TestName
after each Defines
scenario, theThe name
tags to the
be
Background
be
Step
classesoverrided
3: Loop
(ArrayList,generally
and
through a class has
each
Vector, the
cannot
row instruction
LinkedList,andbe get theon
test
used driver
to } =
represent new ChromeDriver(options);
the block is @Before and
what
inherited""
list of setup HashSet,
elements
PriorityQueue, before
with tageach ‘th’.=scenario
‘rows.get(0)’
LinkedHashSet, runs.will
Eg. @SmokeTest,
WebElement
@After."" else{btnDownload @Regression
However,
1.
give Wefirst
TreeSet)."" canrow it gets
use and executed
the priority to run the tests after “Before” hook.
in
System.out.println(url+""""
driver.findElement(By.xpath("""".//a[text()='filena is a valid
It can
order be declared
‘findElements(By.tagName(“th”))’ using Background
Parallel
link"""");
After
me']""""));
keyword."" the definition in the feature file, these of
execution can be performed will give
based list
@Test(priority
columns
on for the =is
in1)arow.
43 the
Actions
tags are need}used
class and type
collection of framework
@CucumberOptions of individual used.
to run
2.
Step
1. We
TestNG
Action
the
build() set4:can
method in Actions class is used the
Iterate
that
of - use
TestNG
you
tests, the
using
want testng.xml
has ‘columns.getsize()’
to inbuilt
perform, to define
testng.xml
mostly toand
file
to
btnDownload.click();""
order
get
where
perform
Eg:
create the of
}we the
details
catch
mouse
@CucumberOptions{can tests""
chain of action of
define each
(IOException
actions thecell."
on tests
oraccess e)
an
operation { in
element. parallel
you want
1. FindElement: Used to a single web
<suite
There
to perform.
element name=TestSuite
are on many
features:
build
a page action
will returnthread-count=6
methods
""""feature"""",
; FindElements: an Action object
Returns
parallel=methods
1. build
for
the the ofe.printStackTrace();
list perform allglue:
matching >execute.
to""""glue"""", elements.
""Consider
2. Cucumber/TestNG u have checkbox- inMaven and I awant to click
2.
the
Click
perform() }""
FindElement:
checkbox this tags={""""@SmokeTest}
method
, how It throws
will u a has
Actions
find the Class inbuilt
element is use is
plugin
3. called
ClickandHold
}NoSuchElementException
to execute chainmaven of surefire
action whichplugin
exception aretobuild
run the
when it
present
tests
4. in
contextclick or
parallel.not at the same time should not
using
fails
get to
any Action
find If build
the method.
element; FindElements:
It
5. can beexceptions.(element
doubleclick
Cucumber
build().perform()
Returns anconfigured
Annotations:
empty = createlistinwhen pom.xml
Itchain
may or may not
theoffile.
is predefined actions
element text,
+
present).
<plugin>
6. draganddrop
which
execute""
doesn’t holds a specific
exist onCheckBoxSelection(String
the page. meaning based on the
public
7. keydown boolean
Gherkin
3. language
FindElement:Syntax standards.
strXPATH) {
<groupId>org.apache.maven.plugins</groupI
8. keyup
1. Scenario - Defines
WebElement elementName the name = of the
d>
9. Movebyoffset
scenario
driver.findElement(By.LocatorStrategy(""""Loca
It is a guide for penetration and security
testing. Do not have any more knowledge on
this
This is the basic program for reading the
property
1. GetWindowhandle file - returns String
public boolean
<address of thereadProperty()
window> {
2.
Fastest Properties
GetWindowHandles pro;
is using """"id"""""" - return Set<String>
File src = new
The axis is the first part of a location step, it
File(""""./Configuration/config.property"""");
String
determines parentHandle which =
<dependency>
FileInputStream
driver.getWindowHandle(); fisdirection
= new //to navigate with
Save parent
respect
1. to a
<groupId>org.apache.poi</groupId> particular
Import: Importing a class, is making it so
FileInputStream(src); node.
window
Forward Axis: Eg.
you
Imports: <artifactId>poi</artifactId>
pro
click(); can
= new use
When
//click that weChild,
Properties();
the class
import
link
descendant
without
which a class opens needing canto
wemultiple use
Reverse
qualify
the accessable Axis:
<version>4.1.2</version>
the full parent,
namemembers ancestor
in the from current class you
There
windows pro.load(fis); is an option to include or the exclude particular
are
class </dependency>
String writing.
Groups,
Wait
A double in Link
WebDriverWait Test
selenium colon
= pro.getProperty(""""URL"""");
Methods,
::wait
denotes
isare used = newClassestothe and Packages
selenium
separate driver
Extends:
using
WebDriverWait(driver,
to wait include
for Extending
Herea we
and
particular a
exclude class
creating
10);
time // is
tags
or a
Timeout
a IS-Ainthe
creating
particular a new
10s
axis
specifier
class <dependency> from
thatisChildWindowOpen the node test.""
relationship
}""
Eg:
condition
int[] boolean<methods>
elements isisreached.
<groupId>org.apache.poi</groupId>
a subclass
with
=ownnew
the parent Thisof
int[]
some
will class= other
allow
{2,5,0,4,2,7,0,0,1,9,4};
and thealsoclass.
2.Import:
user can
<include This
write
wait.until(ExpectedConditions.numberOfWindo
application will not
stname=""""t1""""
to be in sync /> change
implementation the
with Selenium. program.
of
String
Extends:
required str=""""hcl-tech""""
<artifactId>poi-scratchpad</artifactId>
<include This
methods."" will allow
name=""""t2"""" youto />to3add or change
wsToBe(3));
There are
int inputArray
lastIndex 2 //3
types here of refers
waits
= =elements.length-1; windows
Map<Character,Integer>
<version>4.1.2</version>
char[]
functionality <exclude of the
name=""""t3""""class map
str.toCharArray();
you = new
are extending.
changes
1. Implicit on
Wait case basis waits/>are used to
- Implicit
HashMap<Character,Integer>();
</dependency>
3. Eg. char[]
</methods>"" result = new { time between each
provide if (isChildWindowOpen)
// carray
loop a default backwards waiting looking for zeroes
char[]
<dependency>
char[inputArray.length];
Import
Yes we : import
can = str.toCharArray();
java.util.ArrayList;
overload the maini--) method ""
consecutive Set<String>
for(intpublic handles
step
i = lastIndex; of the = i script.The
>=0; {extends
Set
Extends: <Character>
<groupId>org.apache.poi</groupId> setChar
class = new
EmptyList
driver.getWindowHandles();
When aif(elements[i]
classtest is declared { with final keyword
subsequent
Set<Character>();
ArrayList <artifactId>poi-ooxml</artifactId>
// the Mark {30 spaces
step
//initialize
in
would
==result
0) the only setexecute
up here it
cannot
when
1. //Requirements
Switch be // to child
inherited(Inheritance
seconds window
Analysis. have In elapsed
this does
first not
after
phase
for (char
<version>4.1.2</version>
for (int
@Override c :found
i carray)
= 0; i <a inputArray.length;
zero, so loop forwards i++) {
work)""
executing
of forthe(String software the handle
previous
testing : handles) test
is life { by
step/command.
cycle, theSelenium
test
{Select
from public here
<exclusions> is
if a class
(inputArray[i]
boolean that
add(Object == provided
' ') { o){
team
to driver.switchTo().window(handle);
driver.manage().timeouts().implicitlyWait(30,
performreviews anyi;requirements
multiple documents
If the
if application for(int
(map.containsKey(c))
<exclusion>
return true;j ==involves
result[i]
if (!parentHandle.equals(handle))
TimeUnit.SECONDS); ' j';operations
< lastIndex; web on j++)
and DropDown
{
windows
{ lastIndex)
and
object
application,
Testing designs and to
Multiple
Using
{}<artifactId>xml-apis</artifactId>
} of Wait the determine
if(elements[j+1]
product Select
thirdis party objects.
==
planned 0 || j ==This
toolsinorparallel class
API's we
2.
can
{with System.out.println(driver.getTitle());
Explicit
Testbe Planning
found -
under Explicit
: it’s time
the waits to
Selenium’s planare used
the to
testing halt
}Webelements integrate
map.put(c,
<groupId>xml-apis</groupId>
} a corresponding into
arelevel selenium
map.get(c)
identified phase +1); and
of
using execute
development
locators { the
the
project if(driver.getTitle().contains(""""TitleName""""))
execution
Support.UI.Select at aAuto high until the time aendparticular
scripts.Eg:
in
4.
1. setChar.add(c);
</exclusion>
V-model.It
Extends:
ID: Syntax: //
is
When IT,package.The
either
also youwinnium
knownatextend
//just the
driver.findElement(By.id(“Element add etc.
as a dropdown
to of
setthe
Verification
class whenarray,
you a
and
are
condition
3.
values
or break;
Test
we've Case
are is
run met
selected
into or
Development: the
another based maximum zero Test
on the
near time
cases has
following:
the should
end
If
char
adding
ID”)) the // whole
already
</exclusions>
Validation Traverse model.
all instances motive
existsinputFor is to
every
string automate
(fields)holds single
from
and methods windows
phase
beginning in
of
It
elapsed.
be
1. is }written
predefined to guidetext, the which tester through abased
specific each
application
the
2. }selectByVisibleText
</dependency>""
development
//
extended
Name: and put
Syntax: break;
there is
cycle,
characters
class no
into -point
selected
there
your in using
is
result
own a Selenium.""
directly
from
class, on
end
that
meaning
Background
test
text } visible
WebDriverWait based on the
wait
−Background
} testing = new Gherkin generally language has the
associated
is else
you inthave j = result.length
driver.findElement(By.name(“Element accessphase to all - 1; of the fieldsName”)) and
4.Test
Yes
Select }
standards.
WebDriverWait(driver,30);
instruction itfor Execution:
willdrp work, on
=elsenew what
Unless it’s to setup
time to
it isclass.
{i < inputArray.length; before
run
preceeded the each
tests
by{
methods
3. {Class (int
Name:of i =
the 0; extended
Syntax: i++)
Given
Scenario driver.manage().window().maximize();
− As andper
wait.until(ExpectedConditions.visibilityOfEleme
scenario
6. Test runs.
Reporting:
Select(driver.findElement(By.id(""""id""""))); the
""
Given.
// bubble story
analysisThese up what theof
two is
defects
are
zero the prequisite
found,
mandatory
we found
Advantages:
Imports: map.put(c, Does not
driver.findElement(By.className(“Element 1); have to change anything in
for
and } the other test
ntLocated(By.xpath(""""xpath"""")));""
metrics such as
while
1.
the }There
className”))
When
"2. Simple
return
writing
drp.selectByVisibleText(""""text"""");
one element
program,−// is and
Ignoreinbuilt
parentHandle;
As per
a
at scenario
easy
once a time
function
spaces
the to use.
we
story
to
add
//
in
in pushto ithow
feature
input
Returns
on we
what
many
it string
reverseto
can file""
the
parent
end in
string
access
condition
passed/failed/skipped
}1.
String
2.
the selectByIndex
Testing class happens
if (inputArray[i]
accessable int -
temp
membersselected
well = test
elements[j+1];
!=to' be')before
{of cases""
based
thecoding. on
class"" index
4.
window
the Get
TagName the
validation Webelements
ifofneed : Syntax:
pointto switch
is ofback"" seven
arrived"" checkboxes
number
Eg, str.reverse(); the option
elements[j+1] = elements[j];
"using findelements
exception willfunction
driver.findElement(By.tagName(“Element
""what
drp.selectByIndex(4); elements[j]
programand
= temp;
throw store when it in i
return
2.
""
List Conventional
TagName”))
use setChar.size();""
findelements // ignore spaces
and it doinnot result.identify
3.
5. selectByValue
char
2. Get
LinkText thein :}aSyntax:
ch[]=str.toCharArray();
if size
(result[j] of the - selected
==List ' ') { andbased get the onlast value but
element web page
of the
String option }
one notrev="""""""";
checkbox
driver.findElement(By.linkText(“Link
Does throwj--; WebElement
any exception, but Text”)) instead
drp.selectByValue(""""2014"""");""
6. for(int
3. Click
Partial } the i=ch.length-1;i>=0;i--){
}LinkText
checkbox : Syntax:
returns null.""
}
rev+=ch[i];
List<WebElement> result[j] = inputArray[i];
driver.findElement(By.PartialLinkText(“PartialLin chk =
} j--;
driver.findElements(by.id(""""idofcheckbox""""));
k Text”))
System.out.println(rev);""
Generally } : Syntax:
chk.get(chk.size()-1).click();""
7. XPath Junit will be used in cucumber, may
System.out.println(Arrays.toString(elements));"
be }
TestNG is usedname
driver.findElement(By.xpath(“Element
String s= """"""""my for reporting.""is umesh""""""""; XPath
"expression”))
System.out.println(String.valueOf(result));
There are two catch blocks in first catch block
""
8.
return
have
""StringCSSexception:s.split(""""
Syntax:
s1= e"""").size();""
and second
""""""""hello""""""""; catch block
String
"s2=""""""""hello"""""""";
driver.findElement(By.cssselector(“Element
have arithmetic expections and will expect
""String s =""""""""hello"""""""";
css
arithmetic expression”))""
If(s1==s2) exception
then tell me in try
if it's block true then
or false. which
s.concate(""""""""world"""""""");
"The
catch answerblock will
is get
true. execute
This concept first? is called
What
TimeUnit is the is the output?""""
Enum used in implicit wait.
It will always
String
Output pool.
- hello JVMexecute recognizes
(String isthe first
immutable)"" matching
ifdefined
multiple string
Enum
Overriding
exception. contains is an set
example contants of runtime by the
has the
programmer."" same value and assigns a single
polymorphism.
""
So Fluent
memory as a good wait coding
location Overriding
andpractice is
creates always a feature
references that
declare of
allows
Fluent
TestNG
the specific a
Wait
is subclass
an command
open-source
exceptions
all the variables to the same memory pool"" or child
defines
first class
automated
and the to
the provide
maximum testing
generic a
specific
amount
framework.
exception implementation
of time
at thefor
TestNG end.""Selenium
is similar of a to method
WebDriver
JUnit but that itis
to wait
is
already
for a certain provided
much more powerful than JUnit condition by one to of
appear its super-classes
or parent
FluentWait
TestNG classes""
Annotations: is superclass of WebDriverWait. It
has
1. @BeforeSuite than WebDriverwait.
more options
Wait<WebDriver>
The annotated method wait = will newbe run only once
Close
New --> Assigned --> Fixed --> Retest -->
Close
Compatibility testing is a non-functional
testing
1. The software conducted on the application
development processtois
Retest
evaluate
divided Failed
into thedifferent
application's phases compatibility
in the Waterfall within
New
different --> Assigned
environments.
model while Agile methodology segregates --> Fixed
Eg --> Retest -->
Retest
1.
the Operating
project Failed --> Assigned
system
development Compatibility --> Fixed
lifecycle -->sprints
Testing
into
SELECT
Retest
2. DepartmentID,
Database Compatibility SUM(SALARY)
Testing
2.According
FROM EMPLOYEE to the Waterfall model, software
3. Browser Compatibility
development is to be Testing as one
completed
GROUP
Deferred
"""GetWindowHandles BYSystem DepartmentID""
4. Otherproject,
single
"New --> Assigned
Software""
which is- return
then divided Set<String> into
different phases, with each phase appearing --> Deferred""
String
only once parentHandleduring the=SDLC. However, the Agile
driver.getWindowHandle();
methodology
Jira is used forcan bugbetracking, considered // Save
issueas parent
a
tracking,
window
collection
and project ofmanagement.
many different The projects,
JIRA dashboard whichis
HP ALM
click(); (Application
//click the linkLifewhichCycle Management)
opens multiple
are
consists
a
(Basic nothing
web program, of
based tool but
many the
not useful
that iterations
to helps
be usedfunctions of the
organizationsanddifferent
in real time to
windows
phases
features which make handling of right
issues easy.
manage
projects)
WebDriverWait the application
wait you = new lifecycle from
3.In
Test
project
FileInputStreamWaterfall
cases and
planning,fis modeldefects
requirements
=to new have
are to
created be clear
gathering,
FileInputStream(new based withon
all
the intthe n=121;//number
WebDriverWait(driver,
story development
dashboard bethat
10); checked
requirements
so // Timeout
the for in 10s
completion
until Testing
File(""""WriteSheet.xlsx""""));
palindrome & deployment. =
ofboolean
public
beforehand
1. the
It voidisChildWindowOpen
testcases
enables switchwindow(int
as
all there
theand is
the nodefects
stakeholders scope window) of
could
to { be
changing.
interact
wait.until(ExpectedConditions.numberOfWindo
Set<String>
Polymorphism:
The
tracked. Agile handles
methodology = is quite flexible, and
and temp=n;
wsToBe(3)); coordinate,
XSSFWorkbook //3 to
here achieve
workbook refers the
=tonew 3 project
windows goals.
driver.getWindowHandles();
1.
allows
Testcases
2. Perform
API: Itfor
It provides a
is achanges
can single
software
be created
robust action
to be made
interface
tracking in different
directly in the
that
& reporting ways.
allows
from project
the
and two "WEB SERVICE: It only
XSSFWorkbook(fis);
while(n>0){
changes
Iterator on
<String> case itIfbasis
=polymorphism
handles.iterator();
2.
story
seamless We
development
applications
XSSFSheet can
dashboard. perform
torequirements
integration interact
spreadsheet there
of withare
various
= even
each
multiple in
after
other
project java the
test by supports the HTTP
methodifr=n%10;
int
initial
without
cases (isChildWindowOpen)
i = 0;
planning
to any //getting
overloading
be user has
uploaded remainder
and
been
intervention at { completed
method
one we overriding
can use the protocol.
related
Testng
workbook.getSheetAt(0);
sum=(sum*10)+r;
Set<String> tasks.handles =
3.
4.
Web while(ite.hasNext()){
Mainly
One of
service: to
the implement
major
It is a inheritance,
differences
collection of between
open helps in
Agile
xRay
3.
TestNGIterator
n=n/10;
plugin
It enables iswindow){
<an Row
Annotations:
driver.getWindowHandles();
if(int i !=
of Jira
detailed
open-source or
> rowIterator we
project can use
analysis
automated
= the testing API : It supports the
and
code
and
protocols
exposed
effective
framework. reuse,
Waterfall
spreadsheet.iterator(); and
API's classes,
development
standards
of
management.""
TestNG Jira. is similar to JUnit butonce,
methods which written
methodologyare widely it is
is HTTP protocol: URL,
1.
tested}// @BeforeSuite
Switch
ite.next(); and to child
implemented."" window
their
used individual
for exchanging approach data towards
between quality and
Defects
much
The
"""Automated
}else{ annotated
if(temp==sum)
for (String
can
more powerful be
handle
created
method
testing : than by
will
handles)
of be {run only once Request/Response
clicking
JUnit
web/windows
systems
on Issues
testing.
or
of applications In the
type(rowIterator.hasNext())
while Bug.current "" Waterfall model, the “Testing” Headers, caching,
before the
System.out.println(""""palindrome
driver.switchTo().window(handle);
application where
driver.switchTo().window(ite.next()); suite have{supports
application run. number
phase
2.
Sample Web
row comes
=service
xml:
(XSSFRow) after
is used the for REST, SOAP but,
“Build”
rowIterator.next(); phase, and in versioning, content
2.
"""");
localized
} if @BeforeTest
(!parentHandle.equals(handle))
content. {
the
XML-RPC
<?xml Agile
Iterator methodology,
for< communication
version=""""1.0""""
Cell > cellIterator testing while=is typically
encoding=""""UTF-8""""? API is used formats.
The
1. else
i++; annotated method
System.out.println(driver.getTitle());
using the window will
id while be run
declaring before theany
performed
for
> any
row.cellIterator(); style concurrently
of communication. with programming or WEB SERVICE: A Web
test
objects method
} System.out.println(""""not with @Test tagapplication
if(driver.getTitle().contains(""""TitleName""""))
from the windows palindrome""""); would { service uses only
at
3.
<!DOCTYPE least
Web in
service the same
supports
suite SYSTEM iteration only as HTTPprogramming
protocol
work
}"" 3."" break;
}whereas @BeforeClass
best.
5. While Waterfall
API supports
""""http://testng.org/testng-1.0.dtd"""">
while ( methodology
cellIterator.hasNext()) HTTP/HTTPS {is an internal three styles of use:
protocol.
The
2. } annotated
declare thedoes method
object with willthe be nextrun before
available the "@Test : To mark a
process
4.
<suite Web Cell and
service
name=""""Test-class
cell = supports not
cellIterator.next(); require
XML the
while
Suite"""" API SOAP, REST and XML-
first
and test method
} reliable property in thewhich current class.
is Caption method as a test
participation
supports
parallel=""""methods"""" XML ofandcustomers,
JSON."" the Agile
thread-count=""""2"""" software RPC for communication.
3. 4.} Generating
development
@BeforeMethod a unique key
approach focusesfor each on of the > method.
customer API: API may use any
The <test
objects switchname=""""Test-class
annotated (cell.getCellType())
method
driver.manage().window().maximize();
available in theinvolves will test""""
{
be run before
application >and used @BeforeMethod:
"""String
satisfaction str =and """"ALPHABET""""
thus, the style of before each
each
in
1. } <classes>
the
There
participation
case
test
automation Cell.CELL_TYPE_NUMERIC:
ismethod(@test
inbuilt
of framework.
function
customers
method)
to And using
reverse
throughout stringthe in Executes
the communication.
key 5.
return<class
@Test
to class name=""""t1""""
parentHandle;
identify the objects // />Returns
from the parent test (@Test) method.
String
development phase WEB SERVICE: It can
Where
window
application<class our name=""""t2""""
System.out.print(cell.getNumericCellValue()
if needactual
under to tests
switch
test. And />
are written
back""
theregarded
unique keys + @AfterMethod:
Eg,
6. Thestr.reverse();
Waterfall model can be as a only be hosted on IIS.
""""6.</classes>
\t\t
"stringently
are
2. used """");to refer to the original properties of Executes
@AfterMethod
Conventional after each
</test>
"""explain break;how sequential
did u achieve process, however,
polymorphism the API: It can
in test method. be hosted
The
the annotated
objects from method
the will be run after test.""
each
char
Agile
</suite>
your
ch[]=str.toCharArray();
methodology
project isapplication
a highly collaborative under within an application or
"test String
software
method. rev="""""""";
development process, thereby
@BeforeClass:
IIS.
Polymorphism:
7.for(int
"""What case
@AfterClassis Cell.CELL_TYPE_STRING:
@dataprovider Executes before the
leading toi=ch.length-1;i>=0;i--){
better team input and faster WEB SERVICE: All web
API
1.
The methods:
Perform
annotated
DataProviders System.out.print(
a single
method
pass action will
different in bedifferent
run
values after
to ways. all
the the first test method in the
problem
GET rev+=ch[i]; solving services are APIs.
2.
test
TestNG Mainlymethods cell.getStringCellValue()
to
Testtest implement
in
Case the in athe inheritance,
current
single class. +
execution """"
helps\t\t """");
and in current class.
in API : All APIs are not
"1.
7.
POST, }In
Deriving
Waterfall cases
model directly
product from cana be seen
code
8. @AfterTest
the formreuse,break;
of classes,
TestNG methods
Annotations. written
It is a once,
part of @AfterClass: Executes
System.out.println(rev);""
requirement
only after all specification
the phases has or black beenbox completed test web
PUT,
tested
The
the
"design
}
inbuilt and
annotated implemented.
TestNG method data-driven will be run
testing after for all the after services.
all the test
but in
"""Difference
DELETE,
We } can technique.
Agileperform after
between everyThe
polymorphism Techniques
sprint
TDD a working
(Test-Driven)
by include:
method and WEB SERVICE: It is not
test
which methods
TestNG is quite popular. DataProviders methods in a current
prototype
BDD(Behavior
PATCH"" will be
Driven) created Testing and at end of every open source but can
9. System.out.println();
overloading
help @AfterSuite
inapassing and method
the parameters overriding in different class."
Boundary
sprint
1.} Test-driven
Overloading: Value
feedback Analysis
is
development
when two taken (BVA)
from the
typically involves be used by any client
The
"""API
ways annotated
Framework method willorbe morerun methods
after all in
customer.""
writing
fis.close();""
one class a test
have for a
the certain
same piece
method of name but that understands XML.
tests
It
"" in this suite
is explained neatly have in run.
Rahul Shetty course""
Equivalence
functionality, Partitioning
running (EP) fail and API: It is open source
different
""How to open parameters; browserthe
----------------------------------------------- test to
in New see itWindow
Private
then
Overriding writing
10. @BeforeSuite
using script : twothe methods
------------------------------------- code to make with the same test pass. ; and it can be used by
Decision Table Testing
Behavior-driven
method
The
Chrome:
""syntax annotated name
to perform and development
method parameters.
parallelwill be typically
Oneonly
run
testing ofTestNG
in theonce any client that
involves
methods allis a developer,
inyouthe parent test engineer and a understands JSON or
before
DesiredCapabilities
and
State what
Transition
tests
do inwrite
this
Diagrams in class
suite
capabilities have and
= run. the other
XML."
product
is
11. in @AfterSuite
the manager
child
DesiredCapabilities.chrome();
<suite tag> also class.
what(anddo potentially
you mention other in
stakeholders).
2.
The
doubleMethod
annotated
ChromeOptions quotesoverloading The
method
options
like group
parallel: will meets
performed
= new be run
="""""""" to""""""""""""
come
within
only up
once
Use
with
class.; Case
concrete
Method Testing examples
overriding: of acceptance
occurs in two
after all
ChromeOptions();
<?xml tests in this suite
version=""""1.0"""" have run.""
encoding=""""UTF-8""""?
criteria
classes
" inthat a user have
options.addArguments(""""incognito"""");
> story. These examples are
IS-A relationship
"""What are all the drawbacks in Selenium?
Limitations: (Can be overcome using plugins
or
"""1.API's) Keep a switch variable in the config or
Selenium
excel file, does to change not support the file automation input
testing
Eg: Env for
= QA, desktop
the code applications.
should take needs all the
"In
It terms
does not ofhave reporting, built-in allObject
the bugs Repositorytolike
variables
be reported. for QA
But whichand same for
bugs to be fixed PROD
UTF/QTP
2. Dataprovider to maintain attribute objects/elements
to be configured in first for
and
"""
centralized In tested
Selenium, depends
location. how toHowever, on the
get text value business
we can from
QA
"text-box and Prod"""
overcomeif this gettext() limitation is notusing working Page Object
1. First
Model.testsuite executed with
"""One check to see if that if html error page during needs
to
Selenium does
night-hours be scrolled to
butnot the
now have element
same any and do
inbuilt getting
testsuite a
getText()
reportingcapability;
executed without any you error.haveWhat to rely willon beplug- your
public
ins likevoid
approach JUnit toscrollIntoView(WebElement
and TestNG
debug it? for test reports.
element)
It is not
The driver { and thetoapplication
possible perform testing mighton not be in
"""Why
images. is CSS
((JavascriptExecutor)
sync so adding waits to the script mightwith
We need locator to faster
integrate than SeleniumXpath?
Idriver).executeScript(""""arguments[0].scrollInt
Sikuli
resolve do not foragree image
the with
issue."" based thistesting. statement, both
behave
oView(true);"""",
"""Consider
Creating differently
test this
----------------------------------------------- element); in
snippet in Selenium
environment different browsers. takes For
Eg.
Web
more
-------- } Indriver
IE, xpath
time as driver=new takes more
compared to time
chrome vendor than
driver();tools CSSlike as
there
what
UFT, RFT,
""Two is
does no
priority(0)Silk native
the test, above
TestNG engine,
etc.all codemethods Based
snippet on the
willmean? give
"""write
factors athe code speed to put can be 0 at the end
determined and not
WebDriver
Selenium
compile if(!element.isDisplayed())
int lastIndex error -
does Interface
or notnot
= elements.length-1;provide , driver any - reference
test tool
"""Explain
generically""
scrollIntoView(element); difference between Method
object
integration
No""
Overriding , new &for - keyword,
Method Test Management."" OverloadingChromeDriver - Class
"""How
driver do you
-----------------------------------------------
element.getText();
object is select
upcasted multiple to values from
WebDriver.""
-----------------------------------------------
1. //down?
loop backwards
Overloading: looking for zeroes
drop
------------------------------
2. Sometimes
-----------------------------------------------
----------------------------------
-------------------------------
for(int i = this worksi >=0; i--) { methods in
when
lastIndex;
two or more
one
Select
""Even
"""Select
String class is is
though have
a class
a class CSS thethat issame
that is is
faster method
provided thanusing
provided by name
Xpath by Selenium but
,why
-----------------------
""3.How
""What
different if to execute
Windows
if(elements[i]
parameters; parallel
popup
== 0) { test
occurs during Test test
to
do
Selenium perform
95% of the
to multiple companies
perform
text1=driver.findElementByxpath(""""xpath"""").g
""where can """"""""Dynamic operations
multiple use on DropDown
XPath
operations
Polymorphism"""""""" ? on
NG?
execution
Overriding // and
found
:object due
two methods a to
zero, that so can't
with loop the execute
forwards
same
object
Explained
DropDown andabove,
etAttribute(""""innerText"""");""
in Selenium Multiple
WebDriver Using
and Select the
Multiple
be objects.
type
observed Select of This
locator class
objects.
1.
"//Basic
automated TestNG logic- TestNG
tests, ,under how hasuinbuilt testng.xml file
from
method
can
depends
This behere
class name
found on can the
-----------------------------------------------
Combination of
and
be developer
found
overloading the will
parameters. Selenium’s
under
resolve
and
and
One
the
the ofthis
type theof
Selenium’s
overriding is
where
//Window
error?""""
"""1.
methods Abstractwe 1can
for(int
is in define
class:j = i;
the package.The j
parentCan
< the
lastIndex; tests
achieve
class this in parallel
partial
j++)
and statement.{
the other or
Support.UI.Select
application.
Support.UI.Select Cannot
-----------------------------------------------
known as Polymorphism. generalize
package.The dropdown
dropdown
<suite
1.
complete
is in theare name=TestSuite
driver.findElement(By.xpath(_xpath1)).click();
Firstly if it is
abstraction(No
child not
if(elements[j+1]
class. based expected, thread-count=6 then
implementation
== a
0 || j ==following:defect
lastIndex) and
values
""
values
-------------
Overloading are selected
selected
(Complile based
time on
on the the:following:
polymorphism) :Eg.
parallel=methods
needs
Implemented
{1.
2.
"""Explain ArrayList<String>
Method to be raised
overloading
method Methods) >""tabs
overriding : ; = new
Interface
performed with the Can
withinsample
1.
""If selectByVisibleText
-----------------------------------------------
selectByVisibleText
we
Implicit are using
wait : correct
Implicit -wait
- selected
selected
locator we usebutbased
based still
different on
on
-----------------------------------------------
ArrayList<String>
2.
achieve
class.;
code If it is expected
complete
Method // overriding:
either (driver.getWindowHandles());
handle
abstraction(Only
at the the pop
end ofinthe
occurs up two array,
text
getting
time visible
-----------------------------------------------
text visible
stamps element such not as found
SECONDS, errornear thenthe
MINUTES, how u
---------------------------
String
Unimplemented
or
classes
1. driver.switchTo().window(tabs.get(0));
we've
OverridingparentHandle
run
that into
have
:between
Two Methods)
anotherIS-A
methods = zero
relationship with the same end
Select
-----
3:
Select
will
HOURS Difference
resolve drp
drp ==this
new
new error? assert n verify
""Pros
3.
method Method and
driver.getWindowHandle();
2. Abstract name cons
class:break;
overloading: and of NoImplicitrestriction
parameters. example wait
// Save andofparent
on
One Explicit
compile
of the
Select(driver.findElement(By.id(""""id"""")));
""What
Assert: areChecks the
Select(driver.findElement(By.id(""""id"""")));
1.
"""1:
2. Checkwhat ifis
driver.switchTo.frame xpathString Standard
if is
the specified
correct.
Pool. :Guidelines
we havecondition and
three rules
is
wait
window
declaration
time
methods //Windowpolymorphism is 2
} ;
in Interface
the ;
parent Method: Byclass default
overriding:
and public,
the other
drp.selectByVisibleText(""""text"""");
to
true
String
different be followed
and Pool false.
drp.selectByVisibleText(""""text"""");
2. Check if the
variantsis a for
If
elementthe
storage any
such automation
result is
area
as in isthe
frame intrue,frame
Java name,project
the heap. next
index
Wait click();inand selenium
//click the { denotes theopens selenium driver
static
example
is
2.
framework?
test
2.
3.
Each
and
in the
selectByIndex
step
selectByIndex
Check time
WebElement
offinal.
child
ifwill
else
the
run
aclass: be
string
time
class.
element --link
executed selected
selected
literal
which
polymorphism""
isishiddenelsebased
based
created,JVM the
multiple
on index
execution
on index
to
windows
"""How
3. wait
Abstact for
driver.close();
will you particular
//
-----------------------------------------------
2. Overriding: handle
occurs Does
bubble time
certificate
not
up
in two or
support
the a
zero
classes particular
using multiple
we that foundhave
number
1.
would
number
4. Develop
Check of
terminate.
of the
astring
the
ifdifferent small option
option ;time script
Verify :as POC
Verifies check
ifIfbe
the if
checks
Overriding(Run
condition
selenium?
Inheritance
one
"""Explain element the isthe
----------------------------------------
IS-A relationship
html
;reached. time
driver.switchTo().window(tabs.get(1));
driver.switchTo().window(parentHandle)"" Interface
at a page
literal
Polymorphism):
types This
to needs
pool
: Supports
push
of will first.
allow
it
exceptions to
to Multiple
thethe scrolled
endstring
in java
drp.selectByIndex(4);
the
specified application
drp.selectByIndex(4);
to the view"" condition is in sync
is true and
and can
false. be If the
"already
1.
application
1.
Inheritance
There
""write
3.
get: are
Overriding:
exists
method
program
selectByValue mainlystint to in
used
Example
the
be
driver.findElement(By.xpath(_xpath2)).click();
Firefox: temp
fortwo inin
method
string
= different
sync
types
of
pool,
with
elements[j+1];
run of a reference
browser
Selenium.
exceptions
overriding
time and in
automatable,
result
3.
drivers
There
ProfilesIni
4. theas
Abstact is true,
selectByValue
pool
are 2 what
-----------------------------------------------
to instance
types
profile
class: the=Can
elements[j+1] --next
of
selected
other
selected
new test
returns.
waits
create
tools
ProfilesIni();
=
based
step If are
based
object thewill
elements[j];
on
required
on
string
of
value
beclass
value
Java
method
polymorphism
of
"""1)How
other
executed.
of the
thecan option
than
optionfollows:
overloading
hash InSelenium,map
case ofworks false internally
condition, andthe how
------------------------------------
does
2.
1.
1. //Window
FirefoxProfile
thus Checked not
navigate:
Implicit exist
Wait
have method
3exception:-in
myprofile the
Implicit
constructor
elements[j] pool,
used =waits ina; different
new
=repository
checked temp; are
Interfaceby String
used the : toobject
browser
Cannot
OverLoading:
drp.selectByValue(""""2014"""");""
its
2.
"""""""1.
execution generate
Maintenance Suppose
drp.selectByValue(""""2014"""");"" would hash ofyou
still code?
Object come
continue. to office and
in the Test
""Why
initializes
drivers""
provide we prefer
and
aadd(int
ArrayList<String> default
profile.getProfile(""""default"""");
create
compiler object""""
during} the is the explicit
placedwaitingtabnew
compilation wait
in timethe =instead
pool.
between
new process of each
fluent
to
static
class
Data
morning,
"" int
A{
-----------------------------------------------
HashMap feed maintains
to
due tothe
"----------------------------------------------- a,
tests
any intan b) array
critical of the
reasonofyou bucket. have
wait?
String
consecutive
ArrayList<String> What
s1whether are
= “Test” step
myprofile.setAcceptUntrustedCertificates(true
confirm } the of disadvantages
the
exception script.The
(driver.getWindowHandles()); is handled fluent by
{to
-----------------------------------------------
When
3. Utilities
run we
teststore present
suites
----------------------------------------------- orstep retrieve
in the
but your any
framework key-value
IDE(eclipse, like pair,
IntelliJ,
wait?
JVM automatically
-----------------------------------------------
subsequent test
driver.switchTo().window(tabs.get(0));
);Abstract:When } we checks
want would some if the only
of same
the execute value
methods
-the
return
HashMap void
screenshots,
VScode programmer
------------------
Following
exists
---
a+b;
run(){System.out.println(""""A
inetc.) calculates
the are is email
the
string
or not:
crashing, , the
config
differences
constant index
also file of
you
between
pool the
reader/ class"""");}
ordon’t bucket
not. json
have
Fuent
when user
} the
driver.close();
ClassNotFoundException,
}""While to 30 seconds
myprofile.setAssumeUntrustedCertificateIssu
for override and have create elapsed
IOException a user after
for
file
Jenkins
5)
and
if
""What each
how
yes,reader
explicit
it performing
to and
build etc
click
occupies
isintthe waitevery
or on any
differenceand parallel
operation.
hyperlink
the other
I believe
already
between testing
external The
fluent
existing in
Key testng
test
wait object
is
value.
""""""""/""""""""
executing
er(true);
static the
add(int previous
driver.switchTo().window(tabs.get(1));
implementation.
2. Unchecked exception: a, int b,test step/command.
exceptions
int c)partiallinktext"" that
what
is
4.
runner
Using used
decommissioned
If
and do
Generation
no,usually the
itduring you
to
tool
creates calculate
in
locator
""""""""//"""""""" write
of
your logs
a innew in suite
the
and
organization
linktext
fromxpath? string index
and
selenium tag,
reportsbytheoflike the
to
3.2
itself what
run bucket.
jarand do
test.
driver.manage().timeouts().implicitlyWait(30,
WebDriver
We
occur
{What
class B extends driver
createthe =execution
A{ new
an abstract of class program:named
you
By
5. mention
using
Exception
will this
be in
key,
-----------------------------------------------
Fluent
adds
There it Wait
are to the
two command parallel=
Handling""
yourstring
types the
first hash
pool.""
of step?
defines""""""""
XPath value
How""""""""?
the is
will
maximum like
youwhat run
TimeUnit.SECONDS);
driver.findElement(By.xpath(_xpath3)).getText()
FirefoxDriver(myprofile);
""""Baseclass""""
System.out.println(Arrays.toString(elements));"
NullPointerException,
return a+b+c; to have all common
ArrayIndexOutofBound"" methods
do
calculatedyou mention using
-----------------------------------------------
test
amount suites/cases?
------------------------ofWait time in the """""""" hash(key)""""""""?"""" private
1.
2.
;"
}or
"method
""I Absolute
Explicit
Chrome:
variables
need
void to do Xpath
for -for
-----------------------------------------------
login
run(){System.out.println(""""B Explicit
every -Selenium
XPath
and page. waits
logout WebDriver
expression
Then are
forwhereused
each
100 ispae
class"""");
wait
to halt
TestNG
for a has
to
certain of handleinbuilt
HashMap.
-----------------------------------------
Using
6) How command condition
-----------------------------------------------
created using the prompt""
web testng.xml
The
selection based
to buckets
appear file
popup
from are
the root we
further
the
"""How execution
DesiredCapabilities
will inherit
testcases.
} "" this
How until
class
will the
capabilities
you and timeachieve a particular
if that =needs it? a
can
maintained
----
node. define
have
GetWindowhandle
FluentWait It starts the
as
you
is a tests
Linked
handled
-----------------------------------------------
1. superclass
with a in parallel
List
- returns
single downloading
of newslash String
WebDriverWait. ‘/’ and of It
condition is
DesiredCapabilities.chrome();
different
@Test(invocationCount
Overriding: met
implementation
-----------------------------------------------or the maximum
= or
100)"" time has
<suite
hashCode()
different
--------
<address
has
""2:
traverses more
what name=TestSuite
browser
is of method
options
from the
difference thewindow>drivers
than is
root usedthread-count=6
without
WebDriverwait.
between
to the to calculate
String
whole manual the
Builder
DOM to
elapsed.
capabilities.setCapability(""""chrome.switches"
imlementation the page class
""Can
class
----------
hash
intervention?
""What
2.
and
reach
constructor
Animal{
parallel=methods
value.
is the
GetWindowHandles
Wait<WebDriver>
String
WebDriverWait to the This
Buffer? difference
desiredwaithash be
>""
wait =
overloaded
= value
-notbetween
return
new
element.
new is would
used Explain
click()
Set<String>""
provide.
for
""",
"why?
""2. Arrays.asList(""""--ignore-certificate-
Interface:
void
storingWrite When
eat(){
the a program
Entry we do
as follows: want to expose
Using
function
2.
Yes!Relative WebDriverManager,
in
WebDriverWait(driver,30);
errors""""));
any methods
Java
webelement
XPath
supports
System.out.println(""""eating.""""); to -objects.
-----------------------------------------------
FluentWait<WebDriver>(driver)
Java provides three the XPath classes
user
constructor
Since
we
interface
expression
and
can
toalter
hashCode()
and
represent the
overloading.isclick() a
Input
functions
function -
automatically a[1,2,3]
in
--------------------------
.withTimeout(30,
sequence canActions be
download overrided
class?
SECONDS)
ofChromeDriver(capabilities);
characters: the and
driver’s can return
binary
created from the
wait.until(ExpectedConditions.visibilityOfEleme
driver =-new
implementation. middlewe
Interface ofString,
the DOM StringBuffer,
structure.
In
} constructor
Output b[2*3, loading,
1*3, 1*2] iscreate created multipleto design
Vinay Shubham
Priyanka Mestry
Sharma Sawant
"1.difference between
abstraction
2.What is Encapsulation? and interface.
1 Abstractabout
Encapsulation-
3.explain class
--------------
-encapsulation
synchronization
4.Difference between isinjava selenium.
throw
1)An
process
Synchronization
and abstract
throws of wrappingclass meaning: can code have
5
method .what are
body the exceptions
(non-abstract
and
when data twofaced.(howinto
or a single unit.
Throw-
you
6.
methods).
-we
have
method
can to more
create getapage fully
totitle
components
-Throw
resolve
getTitle() keyword
NoSuchElement involved is used to to
8.How
2)An
encapsulated
perform toany
abstract handle class
class
action, multiple can
wein javahave
throw
exception)
windows an exception
on browser.
9.explain
instance
by
expect
explicitly. making these about
variables.
all the page
components data object to
Imodel
We
3)An have can faced
and
abstract use advantagesclass can have
10.Difference
members
work
-driver.hetWindowHandles() together
only single exception is
NoSuchElementException, of the between
with class the same
Pom-
constructor
submit
private.
11.what
pace.
thrown The and
by are click.
usingthe selenium
co-ordination throw
TimeoutException,
to
-Page
4)An handle object
abstract multiple model
class windows
isof
can design
click()
-we
liabraries
between
Q12.Explain
StaleElementException. can should usethat
these the be
setter
you done
components
code and
have onhave
on
pattern
static
submit
getter
used
to browser.
runand to
methods.
button
methods
paralelly create
explain and to object
one.
istesting submit()
set
called and
launching
Example-
13.explain
NoSuchElementException browser.
about
repository
5)You
can
get
IPublic
Synchronization.
Code have be
the can
for done
used
voiddata for
extends
launching in web
anywhere
selenium-
operation1(){ elements.
one
chrome on
annotations.
This
14.difference
-under
abstract exception this class. model,for is thrown
between each
the
encapsulation
java
It
browser
Throw
@BeforeSuite-
when form
.selenium-chrome-
avoids WebDriver element.
exceptions
is and this doesn’t like find
annotated
@beforesuite
web page in this @aftersuite
application
-By
driver,selenium-firefox-providing
“ElementNotVisibleException
System.setProperty(""webdri
ArithmaticException(“arithmet
method
the web-element will beberun only setter
inbefore
the DOM. all
@AfterSuite-this
"1.OOPS
there
Interface should concept- annotated
”and
driver,
icor
We
method
getter
ver.chrome.driver"",""path
tests exception”);
can in the
resolve
will
method,
selenium-ie-driver,suite
be run have we run.
after
can
all of
Oops
corresponding
---------
2.What
make
selenium-support
“NoSuchElementException” concept-
the is class data page
driven
read and
testing
only
libraries.
chromedriver.exe"");
}
@BeforeTest
NoSuchElementException
tests
1.Inheritance-Inheritance
test
1)Interface in
class. the – this
suite
have have
only annotated run.in in.
Data
and
-selenium-chrome-driver
In
method
2 such
ways: driven
write only.
scenarios,
will testing
bethis run is
we
beforetest
use –
@BeforeSuite-
java
-This
abstract
automation ispage mechanism class
methods. framework. will annotated
in which
find When the In our project we have used
-encapsulation
used
Throws-
executing
1. By to
Synchronization/wait(implicit
IWebDriver have used
applying interact page
driver
first(any) provides
with
= object
new chrome
test us
method
child
web
2)An
some class
elements
interface
tests will be
acquires
needs run
of
cannot that before
to all
web
have
repeat all
control
browser
wait
-model
ChromeDriver();
Yes, Throws or
, i haveover
explicit
design keyword the
maintainedwait)
pattern data. is to by
used a to dataI driven testing POMframework
method
WebDriverWait,
tests
properties
page
instance
for
overcome
using
WebDriver
declare
in
and
different
java,
in
the
one
a of
also class.
suite
variables.
these data
selenium,
is an
or parentwebdriver
contains have
set
kinds
interface
more
If a
,
class
class.
data
of page Yes
run.
by using
have used
POM with Page
in my
classes
"has
object
Page
Here three wait
Factory
properties for @testevery
forisa method web
specific
aare class page.time The PageFactory Classevery
then framework to maintain in
methods
3)Interface
driven
exceptions.
testing
provided
exceptions, framework
, which
maven,
by cannot
selenium
separated perform
git, gets have
Jenkins used.
by factory.
Each
@BeforeTest
(in
Iprovided
variables, will web
second)
create by pageof will an
Selenium
separate
functions, hasrun
element abefore
etc. for page
Selenium
we can of the
create is web
an application.
extension
7 different to
classthe
operations
constructor.
In
and
webdriver.we
commas thisI have framework, oncan
followed those not web
data create We have maintained a page
separate
executing
its
WebDriver
classes
Yes
Inheritance visibility. for class
any
to each
provides of
support and the
page(7 that
three
Page
code Page Object
for 7 pages with webelements
No design pattern. It is
elements
4)Interface
parameters
driven
an
-multiple object approach. and
of cannot
in
exceptions by
test
interface,we using have
case can test
gets
be class for every page in our
class
@test
WebDriverWait
Object
pages),then holds
method.
Design the Itwaitfunctionality
does
patterns.
will create = not
new In used to initialize the elements
reusability.
class
static
Alert,
linked
1.Language-
create
thrown will
methods.
HasCapabilities,
to anby execute
database,
objectWhen
using In our of we
throwsourexcel,
projecttest defined
inherit Webdriver
application
of each isand an apage. page
For
test
and
matter
package
properties members
WebDriverWait(driver,
Page out
Factory, for of
fromall ofmethods
3testers
test that
existing web
10);
use of the
these Page
7 page Object
we or
need to
cases.
5)You
HasInputDevices,
csv,
Synchronization
we text can
areSeparateusing implement
files from there
meaning: multiple
Interactive, test interface
It is a mechanism ,Alert,Javascript which
chromedriver
Example-
page.
which one
wait.until(ExpectedCondition
@FindBy
cases,package
class,
Advantages- we getjava
annotation.
can
class.
reuseclasses
execute
for language.
Thefirst. class
for instantiate
create totest maintain
the
class Page test
forone for that
Objects
these 7
interfaces
FindsByClassName,
case
when
In
2.
Driver.get(“url
Public order
Type run
two
voidof to fororhandleall
more
framework- to
method2()throws defined
be the openedalert
we are Executor,TakesScreenshot
involves
We
pages. can more
use
e.g. alert
Product than maybelisting
every
@BeforeClass-
s.visibilityOf(link));
initElements
properties
methods individual and file methodThis
and
fields test. base is
of to used
parent itself.
pages that are related.
1.
components
pop Page
FindsByCssSelector,
parameter up, object
we infirst the pattern
involved havefile. says components to work parallel
using
in
IOException{
Listeners
annotated
2.
to
class,
class
operations
chrome”);
We behavioural-driven
can
initialize package
and are
method
handle
weweb
and
basically
can elements.
for
flows willto
test
add in
the It
be
data,
the
switchto().Alert
page,Add
is an inbuilt to cart and
interface used
page,Payment which is
FindsById,
perform
switch
framework
…code
ones who to any FindsByLinkText,
alert
by
have action,
window
using the wepage
ability using to with
accept() Each
page,Invoice
used to or
listenother.
dismiss()
generation
to certain page.
event
run
In
@FindBy:
reports
methods
user before
NoSuchElementException
order interface to An
and the
handle firstthe
annotation
fields
should test
also. alert
be usedThe Using alert we can handle
FindsByName,
expect
the
object
}import
listen below to these
model a particular components
design pattern
event. to
It driver.manage().timeouts().impli
We
and have
behave maintainedas it is separate
defined.We
method
through
pop
in
class
separated Pageup, which in
we
Factory the
try-catchfirst
from current
inherits have
to locate block toclass using
the driver.switchTo().alert().accept();
Simpledateformat class
FindsByTagName,
work
statement.
with
is definedtogether
page factory.
as an with interface the same citlyWait(10,
package
use annotations TimeUnit.SECONDS);
for dateFormat
page and page
@Listeners.
inside
switch
and invoked.
declare Generic
java.text.SimpleDateFormat;
Connection
properties
verification to alert
of web
con
.This method
window
other elements
=concept class using driver.switchTo().alert().dismiss()
DateFormat
is download jar file of Mysql new =
FindsByXPath,
pace.
that The
driver.switchTo().alert();
3. POM- modifies As co-ordination
per the page behavior object of test e.g.
@BeforeMethod-
public
the
using
import below
DriverManager.getConnectio
called
makes boolean
different
java.util.Date;
asour child
codeclass/derived this
locators.
cleaner ;
SimpleDateFormat(""MM/dd/yyy
connector
anda ElementNotVisibleException
WebDriverException(Excepti
JavascriptExecutor,
between
After
model,
the system. wethese
transferring have Listeners components
the
maintained control
allow com.companyName.page1
annotated
isElementPresent(By
statement.
public
n(""jdbc:mysql://""+
class.
easy to class
The method
class
understand. whose will
host by) be {
+"":"" y
UseHH:mm:ss"");
the following steps to
on):
SearchContext,
Main
to
class
customization run
alertmethodparalelly
for window, every will of is
webweget called
reports execute
can use
and NoSuchWindowException
Main method
com.companyName.pageTest1 will get executed
run
boolean
properties
2. portbefore
driver.switchTo().alert();
CurrentDateTimeExample2
+ second +""/dbName"", each
isPresent
are
benefit test
inherited is= true;
object is { connect
ErrorInResponseException(
TakesScreenshot,
first.
Synchronization.
the WebDriver, of a first StaleElementReferenceExcepti
Primitive data types a baseinclude
page.Each
logs.
method.
try
After
public
""username"",
called
repository {following
WebDriverException): transferring
static
as
web
parent
is
methods
void page
""password"");
independent the has
class/base control of
We also have
DriverManager.getConnection(U
on
page
It
Primitive
“Alert”
separate
Hashmap-
Listeners
@test- avoids
driver.findElement(by);
to alert Marks exceptions
datatypes-
interface.
window, class
mainly a and
class comprise
we{can like
Boolean,
that
or
canuse of int,float,long,char
class
It is a
use TimeoutException for
map common
collection functions
class
main(String[]
class/super
test cases
InvalidSwitchToTargetExcepti
“ElementNotVisibleException args)
class.
,basically
so we RL, """"userid"""",
short,
getText()
class
A
two
method
Jenkins
the HashMap
SimpleDateFormat types,
}on(WebDriverException):
catch int,
holds
following as
is → long,
an tothe
namely
a partget
open char,
methods of the
functionalitythefloat,
source
formattertext
of test Non
use
which
Jenkins primitive
by isall used
is an data
pages. for
automation type stores
storing the
tool
2.Polymorphism-
the
”and
double,
present or same byte
on objectthe alert When
repository window. one """"password""""
reference of the ) value
designates
1.
case.
automation
=“Alert”
Pom.xml members
WebDriver
(NoSuchElementException
new interface.
builds unique
tool of
listeners
the that
written keys web to
in e) POM We
key
which also
value
is is have
anbuilt pair.Yes
acronym library we
for continuous package
can
for Project store
task
for
accept()
page. isSeparate
different performed
NoSuchFrameException(Inval
“NoSuchElementException”
Non-primitive / dismiss()purpose
datatypes-
classes by → with
to click
for . reference
to maintain cancommon be functions
corresponding
2.
{TestNG.
Java
getText() TestNG
@AfterMethod-
environment with → listeners
pluginsto ofget values
this
our abuilt
the that
for
text
project the objects
integration in hashmap
purpose.It fileisthatused
SimpleDateFormat(""dd/MM/y
different
String,
on
every such
OK buttonxml
idSwitchToTargetException):
In ways
tools.
scenarios,
array
individual
file on is
is
For called
the
test. example
we alert use as , Object It Model.
is a configuration
class,interface
related to
The pom.
or array
xml file
can
TestNG
annotated
isPresent
Continuous
present
by
yyy be
downloading
configuration retrieved
provides
HH:mm:ss""); on = method
false;
Integration
the alert
file that at
the any
will be
window. given because
to implement
contains its object
information CI/CD provides
workflows
of project us
polymorphism.
we
@FindBy: can
NoSuchWindowException(Inv integrate
Synchronization/wait(implicit
window.
4.Packages-
point. Anannotation
annotation
We pom helps
have withused @FindBy helps
variable in organizing
annotation our
Selenium/waits/directory
the key is usedtests. in It
@Listeners
run
}in
purpose.
accept()
dependencies
Date after
date
organizing / each
Jenkins
dismiss()
=functional
new our test
and is
Date();
tests. method.
→used towhich
plug-ins. to
click called pipelines
and configuration information
Polymorphism
TestNG Page for
Factory
alidSwitchToTargetException
wait
String
separate or is explicit
non-primitive
packages in to
wait) java locate
to
for is Ita
testing allows
POM topair
creations
testersand
locate etc
to create
declare and web
HashMap
listens
@AfterClass
return
build
on
Normally, OK and to
isPresent
button
System.out.println(formatter.
allows testers class
every
test
in -a This
on your
Java
to implements
event
the annotated
create alert
project, that
software and value
for
handlethe maven
multiplefor storingto build
test the
classes,
concept
):at
and
overcome thedeclaresame by which
time
web with we
elements can elements dousing different
Step1-
datatype
Pages
}the
occurs
method
projects
window.
we Map
execute
format(date));
handle
find
andin will
multiple athese
interface all
Tests.
selenium
be
continuously
the the
run kinds
All
Selenium
test
links
which the
after of
code.
classes,
with
web We
all project
define
can
are using
information such
test
itinusing
as
suites
JAVA
memory <a>
as our
dependencies,
and
tag as
tests. It
perform
cucumber
using different
NoSuchElementException(W
exceptions.
I<a> tag single
using for action
acceptance
locators. in locators
we know all
page
the choose
allows
Listeners
making
scripts test related
}ebDriverException):
define us
it
by
test selenium
method to
are
easier
adding
suites
classes
store
activated
forin key
the
andthe come
because- and To
tests.
binding
Selenium
build
makesretrive
directory,
a thethe
language
supports
tester's data links
source
job we start
major use get
easier by
different
testing.
Syntax
findElements(),and
under
1. it is pair,
an of
Pages ways.
implicit
open package
source wait- findor andtotal
tool all @FindBy(id=""elementId"")
using
We are
languages <a> using tag
like standardized
value
either
current
Page
}developers
required
It makes beforeclass
loading
ajar where
to the
files[by
tester's is
integrate keys
test
invoked.
symbol job easier after and
What put
directory,
controllingdoes methods search
test
the source which
executionpage shows ofand
Types-
3.There
freely is
NoSuchAttributeException(W
driver.manage().timeouts().im
no. of links related
available a clean
using classes
on separation
size()internet WebElement
Store
maven all the
project
Java,Python,C#.When element;"
<a> for tag in Listwrite
we
should
the
1.check test
@AfterTest
changes
configuring
by controlling be case.
if to unique.
–
the this
displayed
the
build It
user
the is
project, If
an
annotated
path].can you
when
execution try
and
see hashmap
if
To you
check
directory,
tests enter
by ifsupports
thenothing
plugin
putting other
all in
the search
person
test is
1.Method
between
ebDriverException):
plicitlyWait(30,
function.
come
2. No under
project overloading
test Testcode
cost package.and
involved page then do
build,execution
script in the
any iteration
one & dependency
language, it
to
method
it's
makinginsert
interface
taking
screenshare
Maven
Or
of tests by it
will willthe
that
more
easier
takebe duplicate
putting modifies
run
than
option. for
care after
users
allof key,
the
default to it Convert
box
able and
to
WebDriverWait seeHashmap
hit enter
the wait or
screento MapSet
press
=runnewshared to
2.Method
specific code
StaleElementReferenceExce
TimeUnit.Seconds);
Step2.-using
5. Test overriding forsuch loop, asthe cases
while togetherclick
iterating andon eachit link
3.
will No
TestNG
obtain
2.check
adding
import
test
3.
replace
executing
time to
cases aBase
licence
Encapsulation-
locators
behavior.
load
thoseiffresh
ption(WebDriverException): and all
the theClass-Test
required
the
together element
build.
user
jars
layout.
For
test
result incan aand Base
page.
see
maven of
run
management.
will
get
finder
by convert
set
the of entries
icon?
user.
WebDriverWait(driver,
under one XML it into file. Selenium
in Map 5); with
//error
as it
perform
class
4.
the Can
example,
methods
2.
file Check
Project.sharing be
correspondingIt control+enter
(TestBase.java)
easily
when
belonging
if all
goes the
option customized
you
throughsearch
andkey.
are
to using
deals
the It
able
the is and
For
Check
To if
compatible
entryset()
check there
handling
if theif is
codes
method.: 404
data
search
there is or
driven
box 400
option iscases
or
java.time.format.DateTimeFor
it under
-encapsulation
4. Code one
becomes
InvalidElementStateExceptio
Steps: XML is file.java
less and gets enabled every 5 seconds
keyboard
with
to
easy
running
class
parameters
to all
integrate
share toisthe perform
aand functions(for
test
invoked.
files common
with
are case other
operations
used either
to Test the we iconwould
Easy
Set are
present =passing
to
stwith use be
map.entrySet();
orvalidnot. able data to to know
using that
java
pom.xml
matter;
process
optimized
n(WebDriverException):
1.
2. Get
oops
hitting the of
concept
url),then xpath downloads
wrapping
because weof with of code
droplist.
can the print we
Object
the can
URL isset
is a thename
bundle
broken. time of to 5start
data and
functions
Management
using
through
@AfterSuite-
fetch
3.check
jars into the
data used
key
selenium
ifyour shown
specific tools
this indexby or
annotated
on all
like
like
window the
ALM,
appium
the properties
Cross-browser
Get
Check the if iterator
the
the screen sharing. file/xls
search and
of file
this
box /csv
cross-
set:
lengthfile.
import
and
reusable
pages.
Bug
Bugzilla data
NoAlertPresentException(We
2. Send
program
text of itwill
broken
lifegrid.This
cycle
etc.into
page
to the
class amachine.
single
methods
links.
is constructor
also isor known
Itin
unit. will WebElement
its
For
1) behaviour
ordering
New:
device This
testing
button
also
istests
the known=
we are
first
support(Chrome, state as of
updation,
and
method
result
sharing
create suddenly a is
java.time.LocalDateTime; deletion,
be
working
folder: arun test etc.
aftercase
not. all Iterator
is
To as
checkper it the
= st.iterator();
while
wait.until(ExpectedConditions.especification.
sharing the
-we
the can
pom
bDriverException):
of
Oops 'Select'
responsible concept- create
classes
class. for a fully
. methods
as
5. It
fails.
tests
3. Defect
Thesupports
Weintotal the
“c:/users/userName/.m2.
public class life
need suite
number a loading
cycle.
differentscreenshot
have In run.
of the a using
defect
Firefox,
Get
Check
screen testng
Map.Entry
theis inthere
Safari, theframework.
length
lementToBeClickable(By.id(""btn Defect
Internet
fromthe ofthe the
chat Life
iterator:
query
box or
encapsulated
5.
3. Method
ElementNotVisibleException(I
Use
Software
software all
1.Inheritance-Inheritance
configurations get
the
Development
languages class
more
functions
from in java
realistic
the using in Ex
We
Cycle. are
Explorer) using
When log4j
any
(Android,iPhones.) new librarydefect to is
store
of
Under the
@BeforeGroups-
results objects
test
thisshould
CurrentDateTimeExample1 case
m2 in be hashmap-
folder,that
It is has
used
displayed
all the for
{ Map.Entry
to be
message
_ok""))); added entry
is into
displayed = it.next();
the search
in the
by
names
java making
process,
● Java is
properties which
nvalidElementStateException
'Object' of
mechanism the all
Select
files. the
bugcan data
be
class. in
Initializing
has easily
which
a life Object:
maintain
found,
WORK House
it
WITH logging
falls THE in a of
‘New’
VARIOUS our project.
state,
We
been can
the failed,
execution
in
downloaded
public result use
static ofto put(key,value)
achieve
grouped
grid.
jars
void present such window
test use
box. getKey()
button.click(); and getValue()
):members
mapped
For
child
the
cycle. example-
class
WebDriver,
The withofbug thethe
acquires class
Implicit
should operation all Waits,
go State:
We
and are Address,
using
validations all Color,
kinds
and Area
ofis toare
●
and C#
function
scenario,
cases.
4. Search
you
main(String[]
happening inargs)
private.
ElementNotSelectableExcept
to
canTestNGstore
criteria check
the user
the
provides
used{ objects.
that. for a OPERATING
methods
Does
To check the ifofSYSTEMS.Open
search
thethe alertboxtesting
Map.Entry box presents
Different annotations in @BeforeSuite. -- The
testing @BeforeSuite annotated
@BeforeSuite-
Introduction about myself this annotated method will run before the
method
1. Choose a programming will be run before all execution of all the test
tests
language in the suite have run. methods in the suite.
JavascriptExecutor
@BeforeTest js =
2. Choose a unit test driver; @BeforeTest.--The @BeforeTest
(JavascriptExecutor)
– this annotated
method
framework will be run before annotated method will be
1.
executing Measure the
first(any) number test of executed before the execution
3.
//
bugs Design
Launch found the
the per framework
application
release
Test
method
architecture plan in – a class. If a class of all the test methods of
driver.get(""url"");
2.
-has Number
Test three plan of
can
@test automated
be
method defined test
then as available classes belonging to
If
4. there
Build are 3
the SeleniumCore test cases with
case
a
@BeforeTest
method document created names for
willand a
as run executed
software before
‘banana’, that folder
component
//This
3.The’apples’ will
ratio scroll
of in bugs the web
being
project
executing
‘cat’,
•5. Analyzing
Build which
the any businessdefines
of
SeleniumTest the
respective the
three @BeforeClass.-- The
page
reported
approach,
@test till
method. end.
to bugs
scope, It does being
and not fixed @BeforeClass annotated
order
requirement
component
Ijs.executeScript(""window.sc have which done test
inover order call to will
(quality
intensity
matter outbugs on of the3 effort
methods ‘invalid’ of
execute
determine
6.
•rollTo(0,
bugs) TheChoose
Created field firstathe
size
and
and test
reporting why?
validation
enhanced strategy method will be executed
software
which
They one
willby testing.
get
execute execute in first. before the first method of the
•covered
mechanism
document.body.scrollHeight)
numerous
defect
-4. Constraints.
A Number
test management
plan test
of automation
bugs
can scripts
be found tools- to in current class is invoked.
@BeforeClass-
alphabetical order This (if their
•testing
7.
"");
handle
jira,
staging
Bug
changed.
Decide
Indexesbugzilla
life changes
vs.
cycle
how
are production to
done
is
implement
in
also or
the not
known (for
annotated
priority
•CI/CD Developing is same). method new testwill be @BeforeMethod.--The
performance-related
objects,
jira-
5.
as The JIRA
Defect severityin the
isfivea
life tested
commercial
of bugs
cycle. In issues)
"-run
There
•scripts
8. Test before
Integrate
Stored
plan
are happens
the
proceduresyour first
keywords test
framework @BeforeMethod annotated
application’s
product
found
Software
independently.
method
used to in and
inproduction
Development
handlethe GUI
helpscurrentand
exceptions to inclassthe in method will be executed
-xpath
•with Maintaining
The other
fieldis one tools
size ofdefined
existing the locator tests
testing
capture
6.
process,
-is
java:
in
Wait-
scripts/regression
Number
Test
invoked.
selenium plan
When
environment
andthe of organize
bugs
bug
describes
using
a page has sent
whichloads
suites ainlife
using
the
about back
we
the before each test method will
on
9.
application
Selenium.
team
for Script/Framework
issues,
clarification is matching
prioritizing
(waste versionof with
the
cycle.
the
@BeforeMethod-
1.
•identify
a try details.
browser,
Attending The objects bug
the
Agile should
orthis
various elements
meetings go
web run.
control
•that
issue Run inSmoke the
and DB.
updating test in the
them
-one’s
through
annotated
2.
on
elements
(Daily A test
catch
thescrum time)
web the
plan method
that life
is
page cycle
done
someone
meeting/Sprint will by tobe thebe @Test.-- @Test annotation
public
morning,
with
7.
closed.
test Number the class
Bug
administrator Analyze,
project.
of Conversion
bugs
life It
cycle Debug
is
or over a
test tool
varies { and
time
run
3.
and
wants
planning/Backlog before
finally
perform to each
interact specific test
with actions
may where we write code/business
public
send
"1.how
that
(not
depends
manager. directly
just static
report
do for we
upon onevoid
to the
identify
integrates
the main(String
build, whole
tools web
but with(QC,
method.
4.
to
load
refinement) throw
carry at{– out on
various automationtime
assigned intervals. logic. If something needs to be
args[])
team.
elements?
the
overall
Selenium
JIRA
-@test- A code
etc.,)
test plan development
shows
Webdriver
used is a broader
and
utilized works
the
5.
testing.
This
projects throws Marks
obviously a class
creates orat the automated, that particular code
String
•understanding
Find
environments
with
process
project Involved 4 S1
Element
basic = innew
followed
level. developing
command
making
of
components: mitigating
in the it atest needs to be inserted into the
method
-•Selenium
difficulty xpath isin
Executing as thea part
path of an
identifying
regression of the any
String(""HELLO"");
takes in the Automation
By object
perfect
issues
1.
organization.
-case.
driver.getUrl(“url”);
-//Convert
element
element.
suites A Selenium
test if
Verify fit
early
plan
in for
atothe
On Client
user has
top
developers
on) html
LowerCase
the
will
of beas
tree.
that, able
if
the
as test method.
an
Framework
parameter
well.
8. Time Due to andwith
its Java
returns
capability usingan to
Libraries/Language
New/open-assigned-
essential
@AfterMethod-
driver.findElement(By.xpath(“
•to
-System.out.println(S1.toLow
functional
element loginto
xpath
Providing with
are execute
objective
istype of
testing
not this
a 2valid
results types.
located
aof
ensures
test
Bindings:
to projectfixed-
howthen to @AfterMethod. -- The
Page
object
track
cycle
In
retest-
test,
annotated Selenium, Object
any
when of close kind
to Model
methodThereorWebElement.
of
test (POM)
issuesis
retest-open
andwill a and
it
client
who is
xpath
username
1)
all
the
managers/developers/manu
No
erCase());
TESTNG
By
Absolute
object
of
functionalitiesas
login
in
and
testxpath
turn
button”)).Click();
valid
runner. are be
can working @AfterMethod annotated
be
not
9.
library
Or
will
run
driver.findElement(By.xpath(“
password.
2) just
Turnaround
confirm
after
Relative each
retest-open.-not restricted
each it.
xpath time
supported
test to for
a the
method. fixing method will run after the
bug
as
“ElementNotVisibleException
al
•Application
used expected,
testers
Created with and while
stakeholders
architecture-web
automated
various locator script
software
issues
languages
@AfterClass
-xpath
1.Absolute Verifyof industry.
(quickness that
if aSelenium -
user
xpath This provides
cannot is
annotated
: occurs a
login execution of each test method.
Q.No 8 : regression
}”flexibility
based
for
Relative
strategies appears.
REST-API xpath testing
application,-used
such testing: as Wait
using
ID, Name,
necessary
Test
-method
username”)).SendKeys(“value
with strategy-
aaftervalid for
will tobe a keep
user
run the
to
after all an @AfterClass.--The @AfterClass
Relative xpath writing can be eclipse, only
}commands
Rest
-execute
Class
It refers
In Assured
AbsoluteName, a username
to
Jenkins, the
team
help path
framework.
xpath,
XPATH publishes
resolve
git, we
etc. sqlofand the
DBthis
write
project
-the
”);
invalid
element The test test moving
the
method
password.
right selenium
strategy fromforward)
in is
the
the a set
root of annotated method will be
started referring
we can easily the element a
perform
issue.
•10.
the
Below
commands
instructions
current
<suite
-driver.findElement(By.xpath(“
node
new
Discuss
Verifypath
Number to
build
is the
class
insyntax
ofsolution
the
of
with
name=""TestSuite""
the
the or
login
order
is element
regression
destination the
protocols
invoked.
page
when to fixright
of
user’s for invoked after the execution of
that we want and go are
from defects
Types
faced
from
FindElement the ofor
with wait-
root debug
data node
command software
related and in
parallel testing if we test
preferred
which
@AfterTest
Ithread-count=""3""
xpath
both,
element. have gaps explain
of
used
when programming
– page the test
the field is blank all the test methods of the
this annotated
object
their updates.
1.implicit
issues that’s wait coming from
using, it is always
testng. Using preferred
the hence,
Selenium
language.
design
method
parallel=""methods""
password”)).SendKeys(“value
model
and
-various
The
2.Explicit While Submit
Scrum
the
and
designwill
writingweb
wait
expression
The determine
be
button
divides
driver.
Client
run absolute
pattern
the is
the >Library
after byhow current class.
clicked.
for writing the xpath
parallel attribute in as we for
WebElement
gives
the
executing
”); absolute
test a Web
programming
shouldall Services
xpath
elementName
the be test is and = @AfterTest.-- The @AfterTest
using
-3.fluent
xpath,
project
Oops Verify java,
We the
backlog
concept- wait selenium,
use ‘Forgot single
into small
do need to file.
testng.xml startIt from the
also used also
lengthy.
driver.findElement(By.Locato
interface
performed.
methods
As
driver.findElement(By.xpath(“ the frequently
thread and
belonging within
countchanging those
tois thein annotated method will be
testing
Password’
forward
iterations
1.Inheritance-Inheritance
Method , maven,
slash functionality.
where
overloading-If (/) git, Jenkins
to traverse
each a
root and traverse
thread count. till the requirements.
-
rStrategy(""LocatorValue""));
interfaces,
-
class
3 In
test order
,three strategy
is to
invoked.there
webdriver reduce can’t is a the
be
instances executed after the execution of
-xpath
and
through
iteration
1.implicit
java
class Verify Iishaveof thesubmit”)).Click();
each
makes
mechanism
has followed
wait- messages
multiple immediate
an in data
methodswhichfor
required element. •can
constructor
length
Locator
programming
changed.
@AfterSuite- Worked run of with
the
Strategy
parallel this development
expression,
function can
annotated be that any we all the test methods of
driver.findElement(By.xpath(“
driven
invalid
child
improvement
-our
child
having
team main approach.
login.
element
class
to same intention
understandacquires in in
into
name the three
the to
buthtml
alluse
syntax : -A
go
of
The
supports
-method
different
xpath constructor
testfor
the main Relative
following
strategy
of purpose
willeach
browsers,
saving be in
xpath. Java
values.
selenese
is
run of
often
account after
test the is
founda
all available classes belonging to
-tree.
product
implicit
properties
different Verify the
wait which ‘Remember
ofin
parameters, can
selenium
parent be class.
ituseMe’
isis to that folder.
//tag(@attribute='value') -•technical
special
geckodriver
command.
as
implicit
tests
cases
link”)).Click();
functionality. InaRelative
ID partin method
wait-
can the design
of The
runaxpath,
is
suite to
test that
client and we
launch
plan.
have
parallel. is used
library
run.
delivered
instruct
Here
known properties
as to
webdriver
method customer are to (if// ),for
wait
•architecture
to
double
Firefox
takes Name
-driver.manage().timeouts().im
@BeforeGroups- initialize
test
Implicit forward
browser.
astrategy
Selenese
Wait for
objects. time test
slash
ItWithout The
command
describesistime applied
used
-specific
2.Relative
need
variables,
overloading. Verify be. if the
xpath
The
amount
functions, data :
iterationsof in etc. arefor @AfterSuite -- The @AfterSuite
•planning.
constructor
which
that,
and
about
to
execution
plicitlyWait(10,
Class
password
--method Class
all it
passes
In Absolute therepresents
is
the
A(){Name Worked
not general
elements
of
field
is called
possible
it to
grouped
xpath, the
isan
on
any in
either we
some
when
to
the
testwrite annotated method will run after
@BeforeSuite-
called
before
Inheritance sprints,
throwing provides
overloading this
the annotated
durationcode
•story
an
descendant.
execute
Selenium
methodologies.
script
cases. Tag object development
Name of
Selenium
Server a class for testalong
is
TimeUnit.SECONDS);
//method1
visible
the
method
is
exception.
There
reusability.
increases
with
created.
-syntax
•@AfterGroups- Link
path
typically isas
Automation
Text
ofasterisk
will
no
It
the
the
canlimit
When element
bereadability
1–4 run
beweeks.
of or
we
scripttest
used
bullet
before Theright
suit
inheritto of in the execution of all the test
all
-scripts
processing
//method2
signs.
from
tests
team
-implicit
testing.xml
properties It
In is
driver.findElement(By.xpath(“ done
Implicit
thein the
which in Firefox
root
wait by a
Wait,
suite
is
.It
from
specific
the
node
will It
cross
can we
is
be
browser
task
have
be
existing usedneed
and run
action
run. for as
not
at methods in the suite"
-all
program.
development.
set
1.
•//method3
well
or
manager.
specify
execution Partialbugs
initial
Using
test as Link should
values
Single
automate
against of Text
groupedthe forbe
attribute:
any closed.
objectweb
test
-xpath
hence,
@BeforeTest
functional
applicable
ones.
-class, Verify
It is
of
we
occur ifbalance
the acan user
expression
tries –multiple
throughout
within this
to
reuse ischeckable
annotated
make
the to
your
class.
-we
attributes
application Assigned
//tagname[@attribute
•login
application. XPATH
test
}""ExpectedConditions""
cases.
link”)).Click(); can have
strategy specific
This
under is is the
test
utilized suits
namemain
(AUT).
on at =in
for
method
incremental
script
-methods Method with
absolute and will a
and willnew
be
overloadingxpath run
improvement
work
fields passwordis
before
on
ofmay all
parent in
or
attributes
one
-the
'value1']
reason
The
the
@DataProvider- xml
constructor
client
association
element whyfile in
librarythe
and
we
tocan HTML
it
need can
name
also
Itlevel.
be located
ishas used so
be mustthat
run
for
only
lengthy.
executing
the
elements
class
may
Automation after
product
not and he/she
first(any)
in
we
require in
script
engineerseach once
add
inheritance.test
sprint.can you
all
match
2.
geckodriver
receives
"1.In
-changed est
It
parameterization
Class suits
Using
is a the
web
strategy at
recommended
B() ones.
class
Multiple
the page
extends to resultrun
has name,
attribute:
there
of test
the
Class of to
test thatand
are
use
A{ it
--reference
method
Backlog
specify
methods In
In order
this, in the
to
a class.
Grooming
implicit
and
methods
those password.
reduce wait.
fields must
elements the
Ifalso.
atypeclasshaveThe
cannot
//tagname[@attribute1
2.how
cases
command
several doeshave
Firefox and a
selenium return
browser.
passes =
work?
itdon’t
back
essential
when
cases.
//method4
--Syntax-
length Verify theof ifpop elements
the up,
objectives login but awe
page of
arethewhat
has
Product
class
same
easily.
For
(like
Selenium
to
when
approach
}located
"@BeforeTest your
three
example,
void). which
name
That
'value1'][@attribute2='value2']
the with
@test
backlog and
way
Webdriver
program.
pop
to Ifexpression,
inherits
pursue
the upwemethod
is want
different
Automation
timewill works
andappear
frame
then
to we
allows
go
prioritized for to
Relative
Driver.manage().timeouts().Im
properties logwork
of in
will xpath.
other run before
class is
-signature.
script
execute
3.
with
2.
in the
Using
JSON becomes
4constructor
basic three
contains
WIRE xml
components:
PROTOCOL stable
isfiles
method:called and
at
over a
which
specifiedInthis
simultaneously
-time.
executing Relative
items/userstories case
module
plicitlyWait(10,TimeUnit.SECO
called
-In
robust. methodThen as inany
child
we
how
implicit
xpath, to
of
overloading,
we
withcheck.
the we
that
class/derived
need
will
wait
to use
threeare
put
when
handle
explicit
Public the
//tagname[contains(@attribut
1.
HTTP SeleniumClient: the
wait-
static objectClient
popupvoid is created.
using
different
double
@test
needed
NDS);
class.
return
•selenium
Created method.
The
type tocredentials
forwardandbring
class
can It slash
does
the
or
enhancedwhose can innot
product a ),
( //
not
these
--All
e,'value1')]
JavaScript classes
Libraries/Language
Explicit
main(String[] three Wait xml
have
Object
webdriver. time
args){ file into
Bindings:
Notation
is applied
different
which
matter
in to
properties
be out
fruition.
betosame, browser.
represents of
are 3
It
but ismethods any
managed
inherited
we toisa
numerous
another
constructors
In
sends
only
B Selenium,
obj
-descendant.
Verify =toonethe
those
newif the
test
xmldata and
There
obj(); by
‘Enter’
scripts
then
between
elements ismust
default:
keyarun client
of
if
which
by
handle
the
you the
2.Explicit
called
have same
do product
as wait-
change
changes
not to get
parent achieve
create execute
owner
theclass/base
in a the our
class in first.
It
-we
whichstarts
library
server can
obj.method1();
the keyboard each
and
are with
use a
intended the
supported
client
testing
istested double
working on
by the
listener
us
-syntax
@BeforeClass-
collaboration
-used
class/super
parameter.
objects,
requirement. toslash inhaltthe the
class. This
with Scrum
execution
constructor
forward
languages
"-web.
In JSON
Explicit
obj.method2(); that
Wire yourself,
Wait, (//), which
provides
Protocol
we need Java atoa
is
correctly
1.
till Using
annotated
Master the time
2.Polymorphism-
application’s and on
Singlemethod
athe the
GUI login
attribute:
team.
particular andWhenwill in page.
be one
the
sample
creates
means
flexibility itxml
one
REST API that transfers the
specify
obj.method3(); can
for file
for
a search to
useryou. execute
to the
"1) Set is a collection that
cannot
2) We can contain build duplicate
the xpath from
values.
root It is
3) A cucumber is a tool basedan interface.
Hashset,treeset
onInBehavior
4) cucumber Driven we and can pass
LinkedHash
Development
data from cucumberframework set (BDD) are the feature
interface.
which
files to istestusedNo elements
cases to write
also are
known
5)
6)
storedtestng.xml
The INNER
in sequential is
JOIN the in file
SQLorder toselects
acceptance
as
manage
records cucumber test
that tests
data
execution
have for
driven
matching the web
7)
Map Implicit
->
application. It Wait
takes directs
values the
in the
testing.
hierarchy
values ofvalue
the xml filewait (after
Selenium
form
Behavior
For of in
example, key both
WebDriver
Driven let
tables.
us pair.
Developmentto
consider
foris
the
The
a xml
OUTER
certain
HashMap header):Suite:
JOIN
measure
allows returns
nullof timethe
keythe all and
"1)
an
that
highest Implicit
extension
you are
level Wait ->
ofthereTest
automating
in the directs Driven
hierarchy, the
Wait- When a page loads on records
before
values.
Selenium when
throwingWebDriver an is
exception.
to awaitmatch for
Driver.navigate().back()- takes 2) Development
login
everything
in left flow
(table1) ofthat and
someor itapplication.
happens
right is (table2)
used is to
a browser,
back the user the various
the web 3) Once
A
a Map
certain this
can't time
be
measure is set,
traversed,of WebDriver
time so
-Right click on to Webelement to
test
In
part
table
will
load/navigate
thisthe
wait case,
ofrecords.
the system
forto youelement
suite.
the
a new
rather
can pass web
than
beforeuser
elements
previous
you
In are trying
order that
towebpagehandle someone
to locate thein the and you
alert, before
page
testing
To
name
4)
Test:
the
need
handle
a andthrowing
the
test
exception frameconvert
particular
password
can be
occurs.
an
firstly
a
itas
exception.
logical
into
piece
we test Set
of
set
wants
web
if it shows to
browser’s interact
‘view with
history
frame to may using
Once keySet()
this time
driver.navigate().to(""www.googl
code.
need
data to
from identify
your or
is entrySet()
set,
the
feature WebDriver
frame file in
to
we first have to switch Alert
of
Once flowsis a
thefor message/notification
with
command relations between
is indifferentplace,
load
source’ at
driver.navigate().forward()- various
or ‘reload time frame’intervals. method.
will
that e.com"");
In wait
Cucumber
webpage
selenium the
using
code. there element
iframe are before
tags.
alert
findElement window () using
will returnthe only box
them.
5)
Implicit thatWait notifies stays thein user
place about
for
This
Navigates
means
below obviouslywe to are the creates
next
dealing webwith the
features
For
There
some
Class: exception
a browser
are which
information
the multiple
actual occurs.
to helpwork
types
or
class BDD
asks with
whereoffor
single
difficulty WebElement and if findElement
the entire duration for which
page
frame.
statement.
that withinreference
element
identifying
is not toany
located the Once permission
our browser
Returns
theelements
methods command
driver.navigate().forward();
framework
several
data that you
the to
to work.
can
perform
are
first in
pass
storedis
matching
in
iframes, place,
a default
certain
in.web it
element.
browser’s On top
history. of that, if an the
Implicit
this
Features method Wait like is
stays open.
enables
Feature in Its
place
the web for
-To
or switch
driver.switchTo().alert();
we use between
some the
wrongthen element is
kind
Methodcrucial
through
setting of operation.
(not
is for
feature the browser
files.
in this xml):
if0duration
multiple web the to
element
1.how
driver.navigate().refresh()
iframes
After transferring towe isfind not
have located
broken to the use links
control –in the browser
identify
For
It may
methods entire
Files,Scenario,Scenario
example,
be allto click
the
used
inside you on
iframes.
for
the canfor
the
warning
class which
passforward
we one
selector
the then it will throw elements are
driver.manage().timeouts().impli
the browser is discovered
open. Its by
default
web
This
driver’s
to alert window, we
NoSuchElement page
command using
switchTo.frame() letsexception.you
can use the "1)Use
button
For
or
purposes
are this
more
calling.
locator the
outline,Tags,Junit
2) in thefollowing
purpose,
string existing
values, we
asTimeUnit.SECONDS);
well stepsbrowser
neednumeric to
“ElementNotVisibleException
selenium(including
refresh frames) citlyWait(10,
setting
identify is 0
broken links inclass
Creating
command
//
the
findElements() Stepfollowing 1:the Payload
Create current
methods
will as
WebDriver web
returnPOJO of List We window
Runner,Cucumber
use
values
3)
The
While
Throws can
the
followingor
suite use the
SwitchTo().frame
complete
and methodsPOJO
test Report
data
are are tables
logical to
”and
2.
page
Classes
-We
“Alert” appears.
Collect
can
Add there all
use
Options
interface. Selenium
by links reloading in Wait
the weball driver.manage().timeouts().impli
Selenium
handle
method.
as
Auto
useful well.
entities, IT,to theThis
Robot
the dynamic
handle method
class,
class alerts
and payload.
enables
Browser in if to
method
Maven
of WebElements has its own – for thisthis NoSuchElementException
Explicit wait tells Webdriver the
commands
page
the
1.
switchTo().frame
HashMap<String,
getText() web
First, we elements.
→ help
will
to get resolve
create
command
Object>
the object
text in citlyWait(10,
Collect
the
To
Profile
selenium:
specifiedbrowser
search all
driver.navigate().back();inthe
for TimeUnit.SECONDS);
to
the links
some switch present
text
testng.xml between
on on
file,
repository
we
To need toand
extract where
giveverify it keeps
locator text in all element
wait until isa notcertain found condition
issue.
Find ourall the
Driver.navigate().to()
of
3
chromePrefs
present
plugins,
such
from ways- ana POJOway jars,links
on
image Class.
the
that= then
etc new on
alertincan
it the
–window.
common
we
Used
find a
this
1.
are
4) web
multiple
Google
Download
Void
Detects
occurs
method
the page frames.
search
dismiss():
ones
a
before Filebased
uniqueenables
we Inhomepage
Thisonthe
Selenium
actually
web
proceeding
the
method
element <a> is
web
call
with
Types
webpage
to
MyPojo
1.
HashMap<String,
accept() launch ofpojo
switchTo().frame(int wait-
and
arepository)
/ dismiss() new
= new place web them
MyPojo();
Object>();
→ to frame in Explicit
tag
browser
It
click WebDriver
used
when can
Scenario:and be
when
weusewait
save
to ->
click
implemented
Perform
run Using it
‘Cancel’
thetells
in List
on Webdriver
the
search
AutoIT
test. button inbackthe is
place(.m2
multiple
should use elements OCR and
(Optical will We
syntax
executingcan the the code. scope tag to
1.implicit
a list: wait to
Send wait HTTPuntil a
requestcertain for condition
each
browser
2.
number)-pass
-we
return
Character
2.Explicit
We will
chromePrefs.put(""profile.def
on OKcan button
you window
set
create
wait
value
Recognition) the
listonofmaven and of
frame
the alert user button
following
operation
clicked
If we putmaven
handle
WebElement
Setting
occurs
in
in the
ways:
on
WinWait(""[CLASS:#MozillaDialog
athe
Explicit
before
class existing
Google
alert name
elementName
Wait box.
deoendencies
proceeding
browser
Homepage
is in on our =link
with
at
List
navigate
using
index <WebElement>
setUser()
and
ault_content_settings.popup
window.for writing
project
webelements to the
driver specified
thenmethod.
will test links
switch
using = List -
GivenUsing
window
switchTo.frame(int
runtime I
Class]"","""",8) iterator
launch
driver.switchTo().alert().dismiss()
xml file, then
driver.findElement(By.Locator("" all and
Chrome
the click
frame
method browser all
technology.
3.fluent
driver.findElements(By.tahNa
URL. Forxyz.Im wait
ex. weworking important
executing
the links in
the casescode. where there
Myself
pojo.setUser(""James"");
to
s"",
scripts
we
1. that
0);
can
Download frame.
and
iterate canperform
and
""Asprise create as
OCR"" number):
When
Send(""!s"")
;inside
<dependency> Ithis
LocatorValue"")); open Defining
classGoogle theHomepage
will run.frame
me(“a”));
driver.navigate().to(“https://g are
Setting
Verify certain
the Explicit elements
HTTP
driver.navigate().refresh(); Wait
response is that code
software
3.
2.
Im
dependency
our
libraries Weworking will
switchTo().frame(String
chromePrefs.put(""download.
operation. test
set
, wait- onusing
depending engineer
value
xyz project. of rolein index
Then VoidInumber,
on theI <groupId>mysql</groupId>
POM.xml Sleep(10000)
2. search
accept(): the
for Driver
""weather
This method will is
1.implicit
Obtain
oogle.com”); Iterator to move naturally
important
Determine
this method take
in
if cases
the more link
refresh/reloads time
where
is valid to load
there
or
xyz
using
frame
have
default_directory"",
-A
-once
operating company.then
Source setRole()
usedname
dependency page
Code
system or method.
id)- object
Management
you explain
pass is set
are the in switch
tomorrow""
Send(""{ENTER}"")
used to to that
click
<artifactId>mysql-connector-
findElements on on specific
Google
the ‘OK’ frame
button
-our
through main intention toor use In
are order
certain to declare
elements explicit
that wait,
your
model
(SCM)
POM.xml,
The
using skill
pojo.setRole(""admin"");
frame process athe
is.Element
System.getProperty(""user.didesign set
software
maven list
and
to
ofabout
name
pattern
will
fix
links:
tool
merge by ID
used broken
the
Save
of current
the
Returns
one this
has
based
switchTo.frame(string
alert.
java</artifactId> a
tocode
listweb
use
on
of and the
page
multiple HTTP
in the
implicit
Iterator<WebElement>
project.
4.
and
using
r"")); Sincedriverjava,waitwill in selenium
selenium, switch toitis =jar
that to response
naturally
existing
frameNameOrId):
generate take
code.
browser
.exe
driver.switchTo().alert().accept();more
file windowtime
Defining
and execute to
the load
by
download
conflict:
2.
static programmers
Unzip is the
keyword all dependent
downloaded to
isto manage
used to <version>6.0.6</version>
matching
“ExpectedConditions”. web elements The
instruct
links.iterator();
resource_permissions
frame.
testing webdriver
,pull
maven, git, wait
Jenkins is for
an in In
frame
3. order
Repeat
java
String to
the
element
code declare
process
using
getText(): or Id, explicit
This for
the all
Driverwait,
links
the
files
1.
folder
define
We
specific
source
First,automatically
can and
the prevent
amount
codes.
add
classthethe latest
member
method
of
SCMs
and
time inare
from <scope>runtime</scope>
Returns
following
one has an
to empty
Expected
use list ifmethod
Conditions no
3:
array
3.
and
ChromeOptions
used
future Identify
I we
have
toif give anywill
switchTo().frame()-pass and
followed
updateValidate
first create
options data URLs
= an captured
will switch with
to
Runtime.getRuntime().exec().
is used toelement
capture the
that first
specific
the step
alert
the
aspriseOCR
that
overriding
before
-The
This
destination
can
Java
step be
throwingis injar
usedjava
Collections
about
branch
file anin to3comes
checking your
ways to </dependency>
matching
can be used
if “ExpectedConditions”. in Explicit is found Wait.
The
array
the
driven
new
versions/revisions
from
which
working frame of
selenium
you String.
approach.
ChromeOptions(); web
directory.want element
or to And
testingto
merge the and
explain or git frame
message.
Returns
alertIsPresent() a collection of
independently
i.e.
exception.
Framework
a certain URL istools of
a version any
collection
belongs object
to following
of switchTo.frame(WebElement Expected Conditions
cucumber
String[]
driver
project
options.setExperimentalOpti
program.
any
pull
3.
of
1.By Also
thatorigin will
external
making
details.
Copy
class. Each tags-
switch
develop the
Final
method
toand that
keyword
final is ain Download
matching File In Selenium
driver.switchTo().alert().getText()
elements
elementSelectionStateToBe()
-implicit
interfaces
third-party
We can
resource_permissions=
frame.
1.By wait
define and
domainwill each be
classes or if
scenario it is can be
;frameElement): used in Explicit
UsingDefining Robot Wait. the
on(""prefs"",
given
techniques
2. As using
""AspriseOCR.dll""
is
Base
applicable
which used a timestamp
you
class-
helpstoget properties
chromePrefs);
,it
declare,By
throughout
in
will
the file
specifying
storing
and
simply
latest a from file,from WebDriver
your
and
Syntax
elementToBeClickable()
alertIsPresent()
Class
empty/null.
with
{""Read"",
2.using
WebDriver
Cucumber
includes
update a useful
all ""Write""};
@dataProvider-
the driver
supports
the tag.
person
required= Later,
new hooks, Inin frame
You
4. Voidcan web run element,
sendKeys(Stringthe below the Driver
the
unzipped
constant
final
script
processing
The
destination,
keyword
code and downloaded
variable,
will
below the to
work now
the
data
will acan method
on folder List<WebElement>
resolve
all
retrieve elementToBeSelected()
elementSelectionStateToBe()
the
5.
TestNG
which
responsible
changes.
Background
the Thenrunner
ChromeDriver(options);
conflict are we
DataProvider file,
will
blocks for we
setthe
in overriding
manually Cucumber of value helps
code
change.
in IDE of will switch
Selenium
stringToSend):
is a "elementName to
testing that
= This specific
script
method to is
and
which
you
elements
efficiently.
the save
can
href can of itinnot
avoid under
the script be
anchor ""C:\
overridden
once tag you in frameToBeAvaliableAndSwitchT
elementToBeClickable()
decide
resource_permissions
us
that
Even to run send
variouswhichbefore multiple specific
or
versions after sets tag
using
each of frame
download
used to send files datausing to Selenium
the alert
-basically
used
by
we
and
subcalss.
specify
-The
and a to
deleting
Windows\System32""can class
collection
store dodefine
implicit we
it those
from
that
itSimilarlly
in
useawait.
the
step
can maven
extra
@Test
framework
URL onenot. can
or be
can to driver.findElements(By.Locator(
oIt()
elementToBeSelected()
(and
its
data
//
scenario.
be
reduce
series
characters. Step so
setter
from
compared 2:
of as our
You
dependency
steps the
method.
Download scenario(s))
excel
can
and that define
mergedsheet
the
areof file to with
box. Java through Robot class.
""LocatorValue""));
annotation
inherited.
1.
use
-Syntax-
contains
variable.
we Set final
want Preserve-Order
at
multiple
Cucumber -classyou can
level
interfaces
to add
In to a invisibilityOfTheElementLocated
frameToBeAvaliableAndSwitchT
pojo.setResource_permissio
a
them
with
external
common
3.
public test
driver.navigate().to(""url
Doother method.
aanywhere
git
class jars
toadd versions.
all First
inControl
to our
the in
ExtractImageadd yourcreate
project.
tests these ""); a
in { "driver.switchTo().alert().sendKe
()
invocationCount
Testng.xml
prevent
Driver.manage().timeouts().Im
<!DOCTYPE
where
url
execute. = find everycreating
Tag To
suite starts attribute
SYSTEM
interface with Class
islinks
“@”. oIt()
ns(resource_permissions);
method
-//We
project
the
edited Therefeature or to
are
files the read
step two
file.
to the excel
download
definition
types
It allows
git data
of
queue you ys(""Text"");
with
Execution
subclasses.
After
6.
and Since
List<WebElement>
layers,
version
the
plicitlyWait(10,TimeUnit.SECO
""http://testng.org/testng-
used tousing
it.next().getAttribute(""href"");
Actions “@”
return
number
store
class
you
control:
Sequence.
stringcan
the
of
a specific
is a times
collection
have
array.
list
methods
centralized any type invisibilityOfElementWithText()
invisibilityOfTheElementLocated
public void fileDownload() {
to
so
WebDriver
you
preserve-order
2.By
NDS);
1.0.dtd""> add
that
want
data. making some
itThe can
to driver;context
run beis
method
following commit
it. ItEmpty,
used to
would
static
are the
and
to thein ()Robot robot = new Robot();
If
of
relevant the
database_permissions
build()
-Create URL
individual method
=driver.findElements(By.cssS
@Before
and distributed. is
text
before
and null
Action
to in
@After. or
define
class Actions that andyouryou
is an
scenarios
push
come
control
Base to
out
class- the
the as for same a feature
those
execution
We can branch
manynot Initialize A Wait Object using
<suite
interfaces
skip
want
tag
array
class
after
elector(""css
-findElment()-
Cucumber
where
you
@BeforeTest
the
like
Version
are
towe name=""Parallel
steps
perform.
@SmokeTests
will
isit working
class use
is
present
Hooks
Control to
methods
defined.
after
first For
create
selector""));create
allows in
Software
on. A
this.
e.g.test
the
just
chain
which an invisibilityOfElementWithText()
we
us robot.keyPress(KeyEvent.VK_TA
tests
sequence
override
2.Explicit
suite""
framework.
if(url
may
above == run
want thein
wait- the
of||operation
parallel=""methods""
thenull to
scenarios all test
static report.eg.
url.isEmpty()){
perform methodsclasses
a
you like WebDriverWait Class.
array
-of
helps
to
Tools-
Background
4.
public Itaction
The
As returns
better ofin1)
Collection
git void String
addor
getting
manage WebElement
Git,2)SVN, is muchthe
in
done,
setUpDriver() the8)
Java you
browser
code
TFS,etc
like
do is
a {a a
git B);
@Test(invocationCount
in
-used test
amark.
derived
thread-count=""2"">
-List
mouse
to case.
to
Interface-List
System.out.println(""URL click halt
Then It’s
class
on the
to andefaultbecause
execution
target interface
element. = 10)
is
these WebDriverWait
Initialize A Wait wait Object = new using
String[]
-want
and
//Click
workflow
framework
scenario
commit
driver If the to
closing=the perform.
specified
to
new and last
that
containing
commit them one
helps
provides
FirefoxDriver();when
locator
the to us
a to isan robot.keyRelease(KeyEvent.VK_
public
value
static
till
<test
is
either
Methods
tagged the
the is void
methods
time true
name=""Regression
child
not for
scenarios testCount()
a which
interface
configured
performingare
particular means
linked
justand offor{..} all
1""> WebDriverWait(driver,30);
WebDriverWait Class.
database_permissions=
perform()
done.
downaload
matching
reduce
architecture
number
changes.
}Name,id,etc
//creating the
of this
with file
code
steps to
ainterface.
list method
:)store
multiple
of all in TAB);
test
with
condition
<classes>
Collection
anchor
Mouse
specify
{""Insert"",
Actions
-Create classes
theEvents: tagclass,
the
Class
a is or met
tags
""Update"",
data under
it
is not
isor
use
provider the
with
the It
empty"");
names to test
the
in WebDriverWait wait = new
WebElement
elements,It
redundancy.
manipulate
5.
checkboxs Now push the el
returns
the =
group
changes first of to robot.keyPress(KeyEvent.VK_EN
case
object.
class
maximum
<class
inhibits
continue;
•which
the click():
""Delete""};
execute are It
Count
CucumberOptions executed
means
aClickstime
list
chain
actually type has
at
of when
getsthe data
action in
elapsed.the
we
current
the asgit WebDriverWait(driver,30);
list.get(list.size()-1);
matching
objects.
your
@Test
List working
<WebElement> Javaelement. Collections
branch chb by = JVMcan TER);
{definition
call
}-unlike
which
-valuesThen
el.click();
If
a
the
static
implicit
name=""com.parallel.TestPara
structure
mouse
tags
7. = are
bywe sequence.
location.
specified in
{“@SmokeTests”}. method
will
build
readingwhich wait,
set
using
locatorwe
value
our then
explicit
can
Action
excel of
ids robot.keyRelease(KeyEvent.VK_
achieve
push
public
does
public
wait are origin
not void all
driver.findElements(By.xpath(
<?xml version=""1.0""
static pass
applied the
HEAD
start()
void operations
thisfor throws
main(String Fluent
llelOne""/>
store
If the
•Tagging
sheet.
//
that Step
matching you
IOException{
“xpath”));
the
URL
doubleClick():
database_permissions
build method.3: notordered
belongs
Check
with
perform just Performs
non The on
collection
to
specifically
of the
File
a the
data a
using
in ENTER);Wait -> defines the
encoding=""UTF-8""?>
reference
args[])
particular
</classes>
of
main objects.
double-click
works
its
-Create domain,
setter with to
instance
It
method.
atotal
Test it
can
at as
continue.
Scenarios, the
which it
have does
only.
current it If for
takes maximum amount of time for
it
also
Folder
elements,it
such
//check as</suite> searching, will no.of throw sorting,
<!DOCTYPE
all
{mouse non-static
-WebDriver
</test>
duplicate
belongs
works to suite
values.
location.
with
pojo.setDatabase_permissio
different a introduces
third
Features. SYSTEM
methods. party Means Selenium WebDriver to wait for
File folderparameters
NoSuchElementException.
insertion,
//Navigate
checkboxes =tonew
manipulation,url and getafterandthe }a certain condition to appear.
""http://testng.org/testng-
Therefore
String
classes
List
domain,
•-Add str
interface
contextClick()
you can also skip=
like run-timeWebDriverWait
theis implemented
steps
: Performs binding a
ns(database_permissions);
imagedataprovider Javatag
File(System.getProperty(""us
deletion. source
System.out.println(chb.size())
your
Collection
attribute name for
//specify path of file
Filehandle
To src = new the pop-ups File(""""); we
//create
use Robot fileinputstream
class, using this
object
weiscreate
ID the tofastest loadan instance the locatorfile of
FileInputStram
Robot Class in the fis =new
A
FileInputStram(src); double colon :: iscode usedsay to
Robot
separate robot the = new
axis Robot().
specifier
Apache
//create
Robot class POI
properties is present class in the
from
object the to node readof test.
properties file
AWT package JDK.
keywords
-Basically
•Properties To press import pro = new
down is
indicate
arrow used key toto
import
call
Properties();
-You
on thethe
can or
Keyboard call theand
classes
disable wefiles
or from
files,not
exclude
use
outsourse
to
pro.load(fis);
the
(robot.keyPress(KeyEvent.VK
Waits- use testthem, cases toBut our byextendsjava
using the
programe
indicate
//here
enable
_DOWN));attribute
1.implicit to
getproprty while
use
wait- to the thekeywordis parent
a @Test
extends
class
method
annotation
•class
-our To press in
main is
the
which used
the child
andTAB
intention will to
assign class.inherit
accept
keyto use False
of
the
-Importing class PushZero in ain the
class, particular isattribute.
making
key
value
keyboard
implicit and to wait will
the we return
enable
use
selenium value isfor to
{it
public
class. so you class
Basically can Main
use importthat class
the same
For
(robot.keyPress(KeyEvent.VK
instruct example- key
webdriver to wait for
//
{indicate
public
without Function class to call
needing which the topushes qualify all
classes
driver.findElement(By.xpath(
@Test(enable=false)
_TAB));
specific amount of time
zeros
static
ReverseStringPreserveSpace
and to
final
files,not end int of an
toMAX_CHARS
use array. =But
-the
•pro.getProperty(“email”))).sen
before
static If we
To fpress
ull want
void
name
throwing Enter to in keythem,
the
disable
an current
wetest, use
256;
{extends
class
dKeys(“xyz”);
Yes,
then main
we you indicate
need are writing.
method to add to use
canarr[], the the
be int
(robot.keyPress(KeyEvent.VK
exception.
pushZerosToEnd(int
static
parent
-Extending
driver.findElement(By.xpath(
overloaded.
<method>
_ENTER));
A
-implicit final class voidclasswait is tag a in
class
Overloaded
willin thexml
a classbe that child
is file main
n)
CountCharacters(String
reverseString(String
class.
creating a new class input)
that str1, is{
pro.getProperty(“password”))
method
which
•{
can't
applicable
Software be has has access
extended. to
throughout
Testing be called
Life to
Also allyour
Cycle the
int[]
a
).sendKeys(“123”);
from subclassctr)
inside of of
the some
aDemoClass
class.""public other static
public
methods
script
(STLC) isclass
and a=couldwill
sequence workbe declared on of ofall {
{Steps:
int
char[]
class.
void
<methods>
count inputArray
This
main(String
0;will // Count
allow = once
args[])"" you non-
as to
public
as
elements
different
1.
zero final
Get static
the
elements to indicate
in
activities
xpath void
script that
of performed
droplist. i+ you
No,
for
input.toCharArray();
add
this we
(int
or
is the ican =
change 0; not
i
entry < automate
str1.length();
functionality
point when
<exclude
main(String[]
cannot
specify
during
2. Send thebe name
implicit
it to args)
overridden
software
the =constructor
wait. ""Login""/>
throws by
testing
desktop
+)
The
char[]
of
the the V-model
class result
class appications
is =isnew
you
launched an are SDLC
</methods>
AWTException,
subclasses.
-Syntax-
process.
of
//
ctr[str1.charAt(i)]++;
model
char[inputArray.length];
-We 'Select'
Traversehave where class.
8 the
types array.
execution of Ifbyofthe
-extending.
JVM.
InterruptedException
The
Driver.manage().timeouts().Im
In
3.
element If we main
the initial
Use want purpose
allencountered
the to
stages add
functions oftest,
ofin{STLC,
using then
isausing a
}locators
processes
we need in
to happens
Selenium
add the using
System.setProperty(""webdri
class
plicitlyWait(10,TimeUnit.SECO
while
'Object' being
the software declared product as final
//
static
sequential
for
which
<method>
ver.chrome.driver"",
Given
is
NDS);
non-zero,
to (int − i of
void = 0;
findElement()
prevent
Select
tag i then
manner
<the in
class.
xml
replace
class inmethods
file
""path V- the
a from of
or
For
element
showDuplicates(String
shape.
inputArray.length; the application
example- It atis index
also known is
'count'
i++) being str1)
as
{class
identifies
which
chromedriver
•developed,
being
Background It describes has
subclassed. elements
access
thein exe”);
theCucumber
testing pre-to
Ifon a all the
team the is
//open
{//
Verification
if with this
(inputArray[i] yahoo element
and urlAValidation
==
1.ClassName
methods
WebDriver
requisite
is
2.Explicit
used
analyzes
Yes,you
Driver.get(“yahoo
for marked
(int to i = of
for
define
can as
wait-
and
0; iathe
driver<
–class.
final
give n;a
defines ='username
test
step
i++)
')new
ClassName
then
login
{ tono
or
the be
url”);
int
model.
result[i]
operator ctr[] = = new
'
uses '; int[MAX_CHARS];
a class
ChromeDriver();
executed.
class
-used
series
scope
AND can
to
of
password,it haltinherit
steps
testing, the that any
execution
entry are feature
and
//we
if
Json
}CountCharacters(str1,
The
attribute
<methods>
driver.get(""url"");
•from
till
(arr[i]
Example
the
have
the
!= to
report,extent
V-Modeltime
0)
final
select
− is
identify
a GIVEN anwill
class
particular
birthmonth
I an
am
work
report
extension ctr);
a
common
exit
from
arr[count++]
for
}public
of the criteria
dropdown.
(intwaterfall to all
and
i = name=""test3""/>
class = the also
arr[i];
0; i < MAX_CHARS; So
model tests
// the
get here
andthein
test i+
is
object.
<include
driver.manage().window().max
Facebook
Preventing
condition
the
cases. feature This isuserthemet
file.
helps class
Itor the
allows
in from
finding you
xpath
count
+)
ReverseStringPreserveSpace
based
-we
2.cssSelector needof
ison birthmonth
the
to findassociation
–The CSS isbe of
</methods>
imize();
When
being
maximum
to add −
subclassed time hasphase. could
elapsed.
bugs
WebElement
//
if(ctr[i]
{a
int
webElements
mainly
-returns
driver.findElement(By.linkText
incremented
testing
j = in>some the
1)null
result.length
used phase context
early
BirthMonth
to of for
7
provide - each
1;to the =
style
•particularly
-unlike
scenarios
Phases
driver.findElement(By.xpath(“
System.out.printf(""%c It defines implicit
of forthe
STLC: useful
a trigger
wait,
feature if you point
explicit
static
corresponding
checkboxes,then
rules
(""xyz"")).click();
Jenkins
for any void
for is
test the an web
open
scenario development
size
pagessource of and
write
wait
where
xpath
//
appears Now APIs
are of it
all or
applied
is
birthmonth”));
%d non-zero libraries
defined.
times\n"", for and
Aelements
i, ctr[i]);
reverseString(String
stage.
for
checkboxex
you
Robot
automation
execution. (intcan i
robot = use0; i <
tool itnewfor
=isAnalysis: written input)
identifying
Robot(); into {
want
particular
We
Background
Requirement
//will
}have usedto
introduce
been avoid instance
cucumber
shifted being
much
Select to only.
tool
like class a to
inputArray.length;
-make
one
Thread.sleep(4000);
Java
•Requirement
extended
-WebDriver Example or
with amore list plugins
to− of
WHEN
alter checkboxex
elements
introduces i++)
built
I
base enter {in
for the
implement
scenario
as
// constructor
front and bdd
containing'count' framework.
Analysis a is the
public
char[]
-if
-List
web Under
robot.keyPress(KeyEvent.VK_(inputArray[i] static
inputArray
theThe
<WebElement>
page. void
V-Model, !=
CSS '=') is set as
the
{selector
-Continuous
""<username>""
behaviour.
classes
number
first
Select
index
Since
main(String[] Cucumber step
of month
selenium like
of of
first Integration
stepsWebDriverWait
is a
Software
0. = newBehavior
supports Testing
input.toCharArray();
corresponding
if
checkbox
is
DOWN);
purpose.
and
Driven
(result[j]
always ExpectedContitions = args)
==
the
Jenkins
Development
' ')best{testing ispossible
used
(BDD) toas to
Life
Select(BirthMonth);
//
multiple
I{build
char[]
phase
j--; Make
have Cycle usedall
result
of the(STLC).
elements
languages page
=development
new In this
object 0
such from
driver.findElements(By.xpath(
way
robot.keyPress(KeyEvent.VK_
enforce
framework toand locate test
explicit tool complex
your wait
toetc, write software
into test test
phase
//Select quality
isby assurance
count
Java,
}String
model
char[inputArray.length];
phase
Data
“xpath”));
elements
TAB);
projects
scripts.
cases.Given
team
to
Python,
str1
design
Driven
understands
end.in=Visible
planned testing
continuouslythe
–
C#
""hcl-tech"";
pattern
When page. intext
can
the –
we by
parallel.
Thenbe can
month.selectByVisibleText(“A
while
develop
System.out.println(""The
using
So,
result[j]
achieved
Int
3.Id there
tot_chb (count
–Thisjava, =automation
are =the<
isselenium, n)
Verification
inputArray[i];
(Data checkbox.size();
most
public
Thread.sleep(4000);
making
-WebDriverWait
Approach
requirements class
itin easier WordCount
like for
by what default is{ to‘V’
pril”);
arr[count++]
scripts
duplicate
testing
for
phases
j--;
parameterisation
Checkbox.get(tot_chb-
common (int i , =on all
characters
maven,
0;
way i
one =
the
< 0;side
of supported
git, is
locating of and
Jenkins
possible the
static
It
calls
be will
System.out.println(""a"");
•developers Given: int
execute
expected
tested. wordcount(String
Some to
Iffollowed first
integrate
conditions
given
anything catch
context
is to
//select
}string)
languages.
counts
and
inputArray.length;
}False,
using
1).click();
elements IValidation
have
testng) bysince
are: value
This
""); phasesis i++)
ID's know data
are {on asthe
block
robot.keyPress(KeyEvent.VK_
changes
poll
(Preconditions).
missing
month.selectByValue(“5”);
language be which
s1 every
or to
and not
binding contain
the 500
s2 project,
are ms until and it
showDuplicates(str1);
driven
if
other
}different
{●
supposed
exception
TAB); (inputArray[i]
we can approach.
side. The
execute
eto be ==Coding ' or
unique')the { Client Phase
test forto
•making
returns
understandable
String
//select
}public
binding.
1.Language-
result[i] When: it
s=”hello”;
static=by
easier
successfully.
object
Some '; index
'batch void
In
for
and
Action
ourthenmain users
string
is
projectquality is
joins
System.out.println(input
scripts
each
int the
element.
count=0;
System.out.println(""b"");
obtain a in two
fresh sides
build (i.e of the+ V-
multiple ""
-syntax
immutable.
performed
assurance
s.concate(“world”)
month.selectByIndex(7);
}(String[]
2.
we Whenare args)
usingwe So,
(Actions).
team
execute
javas1 meets==.what
language.s2
thewith willwill
Model
-->
test
4.linkText ""scripts
+ String.valueOf(result));
robot.keyPress(KeyEvent.VK_ – You at one can go)identify
•WebDriverWait
be
the
//get
{●
selenium
TimeUnit
2.
}the Then: false
Type selected and
Particular
stakeholders
output code,
ofisalso an Enum.
framework- wait
s1.equals(s2)
option
requestto = new
better
from
It we are
char
TAB); we can
hyperlinks
ch[]=
WebDriverWait(driver,10);
will
outcome/consequencebe true. new execute
on a web after
understand
dropdown
int
goes
accepts
using
Method arr[] to = the
the
behavioural-driven
overriding the
Selenium
time detail is an
selected
page
char[string.length()]; usingstep
System.out.println(""c"");
Wait.untill(ExpectedCondition
the above test scripts
linkText. (Results). It based
can be
knowledge
Helloworld
System.out.println(month.get
={2,5,0,4,2,7,0,0,1,9,4}
Standalone
measurement
framework
int
public
example jpriority.
= result.length
static ofby of
Server
void
runtime requirement.
in the
using terms (also
- page
1;; of
on
determined
fluent
for(int
robot.mouseMove(30,100); wait- with
Fluent
i=0;i<string.length();i++)
s.elementToBeClickable(By.id Wait help in of
"FirstSelectedOption().getText(
int
known
SECONDS,
object
main(String[]
polymorphism n = arr.length;
as
model MINUTES, design
args) . In {
method pattern
{●
an
Selenium
-testng we anchor can
System.out.println(""d"");
(“some
-In
1. feature
Test is
id”)));
Planning:
execute
is tag used
testing
file (<a>).
we wrote to the In
tell
framework test
order
the
));
pushZerosToEnd(arr,
Selenium
MILISECOND,
with
for
overriding,
case
to
web (int
create page
reverseString(""java group
driveri = WebDriver
0;
the a
to MICROSECONDS,
factory.
i <
subclass
wisehyperlinks
wait or for is n);
Server),
module
a a on a
ch[i]=
which
driver.quit();
scenarios
In string.charAt(i);
this further is
all designed
using
testing gherlkin
plans to coverare
System.out.println(""Array
which
NANOSECONDS,
3.
overrides
wise
web
condition,
if( POM-
inputArray.length;
programming page,
((i>0)&&(ch[i]!=' As a per
asyoumethod process
well DAYS,
page
language"");
can asi++) object
with
use
')&&(ch[i-1]==' the { the
HOURS, the
all
")etc.
language
defined.
Another
after
request categories
pushing In have
way
based thiszeros ofphase
on test: the to unit
the
input
model,
if
}test,
same
●
anchor (inputArray[i]
generation
frequency
')) ||
)received ((ch[0]!=' we
signature
function tags with of !=
followed
')&&(i==0))
test, maintained
as' ')
Automatic
which {
that
end ) by
we of
to theina
-In
manager
//we
back:
class
if step
(result[j]are
"");
for defination,we
of
storing
from
every
== the
' the
') { testing
weballcondition
values team in
}end
its
HTML
linkText
want
count++;
"client superclass.
reports
to
test, checkintegration theDuring test,
maintained
calculates
List
for
page.Each(int i=0;
binding i<n;corresponding
estimated
web i++)
and perform effort
j--;
compile
● We can
5.name
before
}functionalities,
etc. –time,
throwing integrate
Locating thepage an check testng
elements has is a
and
List
separate
}
made cost
<WebElement>
System.out.print(arr[i]+""
specific onactions for
class
the thelogin testing
on
and theetc."");
that
with Maven asreference
well type.
Bug life cycle is also known
as Defect
Writing test lifecases cycle. In
Software
-Use
Compatibility Testing a Strong Development Title. ... is a
process,
-Include
type
Agile- of Software the bug
a Strongtesting has a life to
cycle.
Description.
-check It separates The
whether bug .. theshould
your project go
Currently
through the I am life working
cycle onbe
-xyz
software
development
XPath
Includeproject.
contains
Assumptions
is capable
I lifecycle
have the usedofto
path
and
intoof
closed.
Preconditions.
running
sprints. Bug
on life
different . cycle varies
page
the
SELECT
depends object
element department_id,
upon model
situatedthe tools design at the (QC,
-positive
hardware,
-SUM(salary)
pattern It follows by and annegative
operating
using incremental
java,
web
JIRA
conditions page.
etc.,) usedStandard and syntax
the
systems,
approach
selenium,
for creating applications,
testingXPath ,in maven,
is.
FROM
process
-Keep employees
the followed
Test Steps the
-network
git,
Xpath=//
GROUP Agile Jenkins BY
environments
methodology and I have
department_id; isClearor
organization.
and
mobile
known Concise. ...
devices.Compatibility
for its flexibility
followed
tagname[@attribute='value']
"New/open-assigned- data driven fixed-
-Include
I-Testing
approach. have
Agile used canisthe abe Expected
type
page of
considered objectNon- as
retest-
result.
functional
model
a collection close
...
design testing
of or retest-open
pattern
many by
jira-
-Analyzed JIRA is business a commercial
Or
-Make
Types retest-open.-not
itof Reusable.
Compatibility a bug
using
different
product
requirement
Yes.i java,
have selenium,
projects.
and worked helps
in order on totoTests
•capture
testing
-Ibugzilla.
determine Hardware:
Agile used is, and
maven,
quite
Yes.i the It checks
a git,
organize
test
know flexible Jenkins
hpthe
strategy ALM
have page object
software
and
method
team I have
issues, to
which be
followed compatible
allows
prioritizing data
covered
tool. HPsome
model
When designby automation
ALM (Application
tests pattern needs bythe Life
to
with
driven
changes
issue
testing
Cycle different
approach.
and
Management) behardware
toupdating madethem is inathe web
using
repeat java, selenium,
for different data set ,
configurations.
1.Language-
project
with
-Developed
based the development
tool project. new
that In our Ittest
helps isproject
ascripts
tool
testing
data
class
public driven , maven, framework
PalindromeExample{
void git, Jenkins gets
•organizations
we
requirements
that
-Maintained Operating
aredirectlyusing Systems:
java
even
integrates
existing
to manage language.
if It
the
tests with the
and
used.
public
switchToNewWindow(int I have
In this
static followed
framework,
void data
main(String
checks
Polymorphism-
2.
initial
the
scripts/regression
application Type code your
of
planning development software
framework-
lifecycle When
has been
suites
right to be
one
we are
driven
parameters
args[]){
windowNumber) approach. in test { case gets
compatible
task
using
completed.
API-
environments
-Attended
from is performed
project with
behavioural-driven
Agile making
planning, different
by
meetings it a
1.Language-
linked
int
Set to database,
r,sum=0,temp;
<APIsString In =our
>meeting/Sprint
sgathering, project
excel,
Operating
different
framework
-requirements
perfect
(Daily
1. Agile
All
Create scrum fit are
a Systems
ways
methodology, by
for
test not is
using called
web
developers
from like
page
a follow as as
until
we
csv,
int
driver.getWindowHandles(); aretext
n=454;//It using
files is java
from
the language.
there
number test
Windows,
polymorphism.
object
an
services.
well.
planning/Backlog
request.
Testing iterative
Due model to
...
&tofor Unix, its
deployment, Mac
design
developmentcapability OS patternetc.
which to
-testng
2.
case Type run <is
of testing
framework-
all defined framework we are
•variable
Iterator
-Polymorphism
with
approach
track
refinement)
2.
otherwise Software:
Responses
In page
any
the
be
StringIton
factory.
because
kind
requestis a
checked
checks
arein
of >issues
ite
java of=your
formatted
assigned
time- editor, is for
this ait is
which
using
@BeforeSuite
parameter
palindrome
s.iterator(); is designed
behavioural-driven
in the file. to cover
developed
concept
3.
planning,
using
not
projects
select
consuming POM- just Web As
Add by software
per which
development,
restrictedAPI's
This
task. page
Request we
to to
object
the canbeto
all
framework
@BeforeTest
int categories
i = 1; by of
using test: page unit
compatible
perform
model, we single with
have other
action
maintained in
prototyping
MediaTypeFormatter
software
-Executed
TestCase.
test,
object
@BeforeClass
Program
temp=n;
while function
model industry.
for
(ite.hasNext()
and
...regression
design
reading
other
test, end &&
into
pattern
data i < to10)a{
suites
software.
different
class
software
XML,
-Provided
3. Adding for
JSON, For
ways.
every
development
or
aresults example,
any
request web other
toto project aMS given
test
end
with
@BeforeMethod
from
while(n>0){
String test,
page
excel integration
popupHandle factory.
sheet- =test,
Word
Types-
page.Each
phases
format.
Adding
managers/developers/manu
case application
will may
test open web appear
cases thepage should
in has
more
Createjira- bea
etc.
3.
@Test
1.specify
r=n%10;
ite.next().toString(); POM- As the
//gettingperpath page object
ofthat
remainder excel
compatible
1.Method
separate
than
"-
-1.
al
TestSuite 1)
API
Create
testers once.
Delete
has class
adialog
and with
overloading
thethe
light-weight
“Test other
and
existing
Case”
stakeholders
box. -If a
run a
... Issue
-It
model,
@AfterMethod
file,
sum=(sum*10)+r;
driver.switchTo().window(pop overcomes
.file weextentionhave limitations
maintained
is
software
class
-of
configuration
architecture.
—
4. Test
and
After has
holds
plan
Keep like
clicking multiple
isIttheMS
reviewed
Open. Outlook,
OK, methods
functionality
But
you after
Jira
willMS
class
@AfterClass
mandatory
n=n/10;
upHandle); another for} every popular webtesting
Excel,
-having
and
each
When
issues
be
"1.How It asked
can etc.
members same
sprint
yoube
are
do to run
used
youmeant name
create of
the
write that
by to but
main
aayour
be web
client
test
framework
page.Each
@AfterTest
File
if(temp==sum)
System.out.println(""Window src =new called
web page
File(""c:\\ JUNIT. has a
•class
different
page.
-script
who
pushed
case. Network:
Agile Separate
asdevelopment
understands
...
in to""RunEvaluation
parameters,
done.
selenium as classes
...Java
JSON is of
itaisor for
separate
@AfterSuite""
users\\desktop\\
System.out.println(""palindro
title is : class
""+driver.getTitle()); and that
performance
known
every
process
Program"",
XML.
2.
5.
1. Tweak
Next,
To createas
individual
the in
a method
itwhich
User adds
dialog
your of a
test.
Story system
the
box Add
first default
to Be ina
Testing
class
demo.xlsx"");
Generally
me
if (i ==number holdsfeatures-
windowCount) API the
""); changesfunctionality break; occur
a
-overloading.
4.Packages-
requirements
classpath
Test
Request
Selenium network
API can
Case. be
to with
of We
the
used
TestCase
WebDriver varying
are have expected
project
for any
will as
-generate
and
2.load
every
else
i++; members
3file to automatic
4 of thatscript,
months. html
webcan
You
parameters
-method
separate
to
User
style
3.
appear.
first, change
Add entries
of
open a and such
overloading
packages
communication.
“Testing”
your into evolve.
Eclipseasfor
Run
Status to
IDE.
reports.
page.
FileInputStream
do Separate classes
fisALPHABET,
= the
new for
System.out.println(""not
}Pages
-Bandwidth,
"1:
increases
Configurations's
Your
2. In
It Iitprovides
faster
have
Agile
Create Jira and athe manually
Operating
string
Tests.
methodology,
Workflow.
a Java readability
support All
classpath
Project. ...
right?.
speed,
for webof "1) //tried using stream
the
Go
-supports
every
FileInputStream(src);
As
palindrome"");
}Capacity. a part individual
of multiple
integration test.
write
program.
page
testing
HTTP/s
4.
to Automate
File you a program
related
is
>workbook
New It also
performed
protocol: classes
Your
> Java checks
to
URL reverse
Testing Projectcome it public class Reversestring{
annotations
4.Packages-
3.load
testing,
}2)
When API which
We
automation
call this have makes
method can
-application
in
under
concurrently
Request/Response
Processes.
"1:
and
tester
separate
java.
It is
Check
How occur
write Pages
lifetofor in
within different
package
withmultiple
...missing
handle
“Selenium
easy.
packages the
software class.
and all
library
Headers,
for
public static void
XSSFWorkbook
help
}networks
just
public
-5.
the
development. Methodtestto
pass accelerate
class the
with
overloading
related wb
number
all =
the new
parameters
classes of
may or main(String[] args) {
If
etc.
endpoint
WebDriver
-By
Pages
XSSFWorkbook(fis); you
Integrate
the see
and helpinaProject”.
red
Your
SOAPUI?
Tests. ofwant exclamation
Tools.
testing,
Alltothe ...
test
web
testing
windows
mentioned
ReverseStringPreserveSpace
may
come
mark not
in and
under
your you
require increase
earlier.
Test
project inheritance.
package. means switch.
6.
cases
page
"hyderabad
4.load Use Traceability.
can
related
worksheet be grouped
classes
Servicenow comeand38
efficiency.
Say
•3.Browser:
{some
-Adding
5.
Waterfall In
Test for
this, of 5th
Base methodsAPI
It
model-
the window: testing
checks
Class-Test
libraries must the is
which the
have
Base
Web
Double-click
prioritized
under
38_S
XSSFSheet Create Servicedefects
Pages a more
sh on
Package.packagein
your
easily.jira Go WSDL
and to all
only
switchToNewWindow(5);
compatibility
static
same
class
are
-1.
interface
src Software
All
Go >
way
added
webtovoid
name toin
(TestBase.java)
services
Issues
Right-clickin and
the of=(only
provide
development
build your
different
Navigator
> path
are
New
truly
website
ifdeals
you
> is
APIs. System.out.println(reverse(""AL
-it
the
1. supports
wb.getSheet(""DemoSheet"");
secure,
1)What test
explain related
reliable
are yourparallel
framework classes
and
roles scalable
and
reverseString(String
signature.
with
process
either
-have different
all
It supports the
deleted
admin is common
divided browsers
XML. or moved into input) like
name PHABET""));;
to {
view
Package
execution
come
implemented
Syso(sh.getSheetName());
connections
responsibilities
on under the
and ofaccess)
left.
declare
test
Test Then
in Chrome,
between cases.
package.
project.
as manual aselect
Firefox,
-In
functions
distinct
other
-2.
the
“newProject”. You method
choose
secondneed Google
phases.
location. used overloading,
atab
subtasks SOAP by
Until
called all
you
protocol
in ourthe
left fix }
-we
5.
I5.print
platforms.
tester? Test
have can Base
used parameterize
username Class-Test
page
Testing object
fromprovides Base
excel
-Internet
char[]
return
pages.
"1.What
this
to
pane.
Service
selenium
class
model Waterfall
send issue, type Explorer
inputArray
This
are
ortest
Endpoints.
(TestBase.java)
design
can
class
test
methodology
your
receive or =etc.
design
project
scripts
pattern is can
and
Select using
deals
by
not is
will
data a public static String
sheet
these
•input.toCharArray();
be
responsible analyzing
Devices:
be benefits:
same, It users
checks
but
for we
loading stories
must reverse(String string) {
techniques
sequential
not
over
3.
the
4.
testing.
with
using Now compile
choose the
desired
all
syso(sh.getRow(0).getCell(0).
1. Access
network.
create
the
java, to
to
design
andadd
endpoint
common
selenium, a Java
application
no process.
class
Therefore
subtask (orthe
class. addis
and/use
compatibility
char[]
have
configurations
Test
-testing
created
issue
it Waterfall
does
first toresult
Design change
not
type.
via in the is
the is
have = of new your
the
from
acreating
structured
bin the
directory,
light-weight
""+""-symbol) atestset> return Stream.of(string)
"1.Difference
Go
-we
functions tocan
getStringCellValue());
without
cases/requirements package run
,user used
maven, between
only “newProject”
by
git,
interface failed
all
Jenkins
for TDD
the
software
char[inputArray.length];
parameter.
properties
of
hence
architecture.
4.
and
(Test-Driven)
Right-click inputs
add click when
a with
for
custom files.
development
Assign.
> given
you
and
New different
Initializing
run
name
>istosoftware
Class yourand and .map(word->new
cases
pages.
and
it
validity providesI haveasThis
and well class
followed
access using
feasibility data
devices
-2.Method
the
that
methodology
"Java
desc.
BDD(Behavior
declare It APIWebDriver,
can will
program,
and be like
aprovideused
add
class USB
overridingDeclaring
so aport
Implicit
most
Eclipse's
an
Driven)by
name set
icon any ofWaits,
times
similar
Testing StringBuilder(word).reverse())
testing.xml
responsible
driven
•"1)
application collaborate approach.
Framework file,
for
without no
closely loading need
users with to
the
Devices,
for
same
Extent
expected
it
classloader
client
to
TDD can (int
bug.
“FirstTestScript”. be i
who =
method Printers
reports 0; i
outputs.
quite <
will
understandsinand
rigid.
notand
child also
Thefind class to
ideathe
XML. .collect(Collectors.joini
run
configurations
1.Language-
API
actually
other full
testingteam testhaving is suite
a
members from
Intype our
to ininteract
case
the
project
of and of
Scanners,
inputArray.length;
which
create
-is
main
5. to
Software
Web
Definition-
then is
ensure
classthe
service
wetesting Other
alreadyobject
that
development
and
needTDD media
throw
uses is
to i++)
present
theof {
system
three
acreate anthis in
will ng("" ""));
failure.
properties
we
software
with
departments are using
a potentially files. java Initializing
thatlanguage.
disparate
devices
if
parent
be
error.
styles:
development
object (inputArray[i]
FileInputStream
is working
completed of and
class
REST,a good
class Blue
is ==
as
SOAP, known
hich tooth.
'one
enough
technique ')and
{ issingleas and
XML-
that }
testing
the
2.
involves
system. Type WebDriver,
execute XML
of testing
Thisall file-
framework-helps
levelsImplicit
applicationthe
of Waits,
we
testing are }
•focuses
result[i]
method
project.
RPC Mobile:
responsible
it can
FirefoxDriver be = Checking
' ';
overriding.
released
forbehavioural-driven
communication.
more for
by on pointingyour
the
taking with as
<?xml
Extent
using
programming
tester
(System, version=""1.0""
reports
to detect
Integration, and
interfaces
and also and to
software
}-the
-towards
few
To There
It solve main
problems
provides
implementation
WebDriver is is
thr
thisno compatible
advantage
file as
scope
problem
supports
reference. from
of possible
a of of
which
featurejust
In with
only this
encoding=""UTF-8""?>
create
framework
(APIs)
recognize
Regression) the
directly object
by
the using
and
errors ofas page
part
early, of 2) Use ""GET"" method to fetch
}mobile
method
the
for
changing
follow data
the
-Participants-
way,
<!DOCTYPE we platforms
overriding
below
HTTP should
average
can the
suite be
user. like
requirements
steps:
protocol.
Developer
implementSYSTEM isread.Android,
that all the
FileInputStream
object
integration
•instead
Design model
ofand testing
them design
develop hich
becoming to is
pattern
iOS
class
6.Utility
Equivalence
once
-Go
-methods etc.
to
Language can
the class- give
project
configure
of used
WebDriver its
Utility
partitioning, -own
build Written path in the response.
""http://testng.org/testng-
responsible
with
determine
larger
automation page issues factory.
if for
they
scriptsduringpointing
meet when GUI
•a
int Versions
j = result.length
specific
class(TestUtil.java)
Boundary
development
-Check ofsimilar
implementation
value the
starts. software:
analysis, - missing
1;theto
stores It Then will traverse through json
3. POM- which
language
interface.
1.0.dtd"">
towards
expectations
testing.
needed As thr per file JAR
for from
page isto which
object one
-is
used
6. verifying
inherited
and
Decision
All
-Remove
Open
<suite
the
model, handles
the
data for URL method
table,
project
them
feature
name=""Practice
we should
your
have of the and software
webpage without
developmentadd
bemalicious
maintained read.in a them using list or map and get the
•functionality,
2.Detect
Protection and reliability,
from
track software
"1)What are your roles and
responsibilities as manual
tester are your roles and
"1)What
• analyzing users
responsibilities asstories
manual
and/use
tester Malaysia Jabil 47 47
"Penang,
cases/requirements for
•1.analyzing Tell me aboutusers stories
yourself and
validity
and/use and feasibility
Roles
•cases/requirements and
collaborate closely for Responsibilities with of
previous
other team project?
validity andmembers feasibilityand
departments
"1.After you have
•Myself
• execute
collaborate xyx.Im allmembers fromrun
closely
levels xy
offind
a full
with
testing
regression
other
city,and team test,
I Integration,
work as an and and and
(System,
new
departments
"1. regression
In Selenium, bugs, to which
automation
Regression) testhow engineer getin
bugs
•xyza
text execute would
value
company. all
from you
levels prioritize.
text-box of testingif
•gettext()
Bugs
(System, Design that and
isIntegration,
not develop
working? and
Roles
automation and Responsibilities-
scripts when
suggest
Regression)
1.
•needed JavascriptExecutor
Analyzing that functionality
business js =
has
•requirement
(JavascriptExecutor)driver; regressed,
Design and in develop or
order bugs to that
•String
appear
automation Detect text and
in new track
=scripts features? software
when
determine
defects and the test
inconsistencies strategy
-needed
js.executeScript(“return
covered functionality by has
automation
•"1.
regressed,
•document.getElementById(‘s Provide
Why is
Detect andtimely
CSS track solutions
locator software faster
testing
"•ome_id’).innerHTML”).toString()
than
•defects
Apply
DevelopingXpath? quality
and inconsistencies engineering
new test the
principals
It
• Provide
;scripts combines throughout
timely the solutionselement
"2.Consider this snippet
Agile
selector
•• Apply
System.out.println(""Text product and
quality lifecycle
its valuetests
engineering that
Web driver
Maintaining driver=new
existing
•identifies
principals
""+text Provide ); support
the
throughout element and on the
chrome
scripts/regression
"This was driver();
first round suites
documentation
webpage.
Agile
2. product
WebElement Css selector
lifecycle
webl = is
what
•"1.
telephonic Attending does difference
Explain the
Agile
interview above
meetings code
•faster
driver.findElement(By.xpath(“
snippet
(Daily Provide than
scrum support
mean? xpath meeting/Sprintas
and it
a={2,3,0,0,5,0,8}
between
"1)What
traverses are Method
inyour forward Overriding
roles and &
documentation
xpath_expression”));
We
planning/Backlog are creating Object of0aat
1.
Method
responsibilities
direction.Xpath write a code
Overloading to put
asmore
is manual all
JavascriptExecutor
class
refinement)
the end ChromeDriver on assigned js
by=ataking
Method
2)what
tester
complex
"How
(JavascriptExecutor)driver; do areoverloading-If
than
you your get css roles
all selector.
the and
reference
projects
2.
class Usehas datamultiple of an
structure interface
methods to
•responsibilities
values
String
"Programming
(WebDriver). analyzing from
text users
drop-down
= regression
(String)
Inname
as
Question
this case, stories :box
we
•solve
having
Automation Executing thesame problem
test engineerbut
and/use
2)what
which
js.executeScript(“return
Test
can isare
scenarios
call defined your
implemented toroles
by be and
Select.
suites
3.
different
roles After and coding
parameters,
responsibility , dry run it isand
cases/requirements
responsibilities
Steps:
arguments[0].text;”,
covered
methods : of WebDriver as towebl); for
•known
"1.
calculate
•1. Providing
Why
Analyzing as do results
we
complexity
method
business implement project
of the
validity
2.
Automation
visit:
interface. Even
Get the and
though xpath feasibility
test CSS
engineer
of is faster
droplist.
managers/developers/manu
Abstract
code. & Interface class
•overloading.
requirement
than
roles
2.
https://www.sportsadda.co
As collaborate
Send
per Xpath
andthe itadid ,why in
responsibility
to abovethe order
closely do
constructor95%
statement,
to
with of
al
and
-1.
-method
determine
"1. testers
How
write
Explain and
code
overloading
the
method you stakeholders
testto implement
put
strategy
overriding all 0? at
•other
the
of
m/
we
it Analyzing
in'Select'
are
your
team
companiescreating members
business
class.
project?
use
anGive XPathand
instance meof a
the
increases
covered
with
departments
"1.What
it end
provide the isby
sample the
Web
variaty readability
automation code.
Container
of function
requirement
3.
Click
of
code Use
the on all got
WebDriver the in
it/Cookies order
functions interface to using
program.
testing
Method
•using execute overriding-Declaring
all
-A
determine
"1)
'Object'
2.
button(visible
and
2.What
-snippet!
class It
Ifweb
When
we
iscasting container
whichof
are
PushZero
occur
ypu the
Selectitulevels
using
all
within
can
test
decide
at
to
the is
class. of
correct
the the
create
strategy
totesting
bottom
FirefoxDriver
drawbacks
the
stop
class.
•"Java
same
(System,
component
unique
covered
the
For
locator
of Developing
the method
testing
example- Integration,
locators,
pagebut by of new in
a
automation
still
that child
web
eventest
getting
accepts andclass
server
in
Class
{in
-scripts Selenium?
Method overloading may
which
Regression)
that
case
testing
Software
//open
element
1:
cookies) what isyahoo
interacts
ofare is already
complex
nottesting
String found with
urlPool.present
can Java
xml.oferror be atheninor
doesn’t
"What
// Function support thewhich windows
challenges pushes all
•may
parent
servlets.
web
•"1.
stopped
Driver.get(“yahoo
how
String
One Design not
Maintaining
page.
Developing
u to
Ad class
will
Pool
pops
require
and
A
when web
resolve
in existing
is
develop
new
Java
up theinheritance.
known
container
whichtest tests
factors
login
this
is as
a pool url”);
error?
based
you
ABSTRACTION
zeros
-scripts/regression
method How
In this,faced applicaon
willend
methods in
overriding.you web
of an directly.
services
handle array.
must
suites have
automation
manages
scripts
below
//we
-check
of
needs have
Strings are
toifObject the
xpath
be scripts
met:
select
which life
closed cycle when
birthmonth
isselenium?
is correct
stored
by of in
However,
and
certificate
In
static
"1.
same
•
-the Page rest
Explain
Attending void
name
main apithird
using using
different
and
Agile
advantage party
Model soapui
different
meetings tool
design
types
of (eg:
of
needed
servlets;
•//
from
-check
Java
automation
3.where Maintaining
100% Heap if it
requirements
dropdown. maps
element
can Memory. existing
""Dynamic Soa isURL
get
nottests
String to
the a
AutoIt)
tool
pattern,
pushZerosToEnd(int
framework.
signature.
"1.
(Daily
method Create
Riskscrumcan we object
inoverriding be
agile write oflocators
meeting/Sprint is arr[],
that int
the
•scripts/regression
particular
coverage
xpath
hidden
allocation,
IPolymorphism"" Detect
tried of
with and servlet
is
birthmonth
like track
achieved
Selenium all in software
while
suites
object but
Selenium andto
integrated
DesiredCapabilities
(such
n)
1.Data
-In
-Presenting
planning/Backlog
class methodasdriven
can id, with
givename, selenium
framework-
overloading,
progress its own class
xpath and
defects
•"1)How
ensuring
3.What
complied
WebElement
allocation,
have
WebDriver Attending no hash
areand
cluethat the
proves
be inconsistencies
Agile map the
BirthMonth
how works
Standardrequester
meetings
observed? to be
close a= it
automate
DesiredCapabilities
etc.,)
{has
when
return
Coverage insome
type windows
aimplementation
Page
to test
can
projectClass.needs
or based
can We to
not
•refinement)
specific
internally
Guidelines
(Daily
Move
METHOD Provide
Defects
driver.findElement(By.xpath(“
costly relevant
scrum
affair
ahead timely
and
of
OVERLOADING
on
and in assigned
how solutions
access-rights.
rules
meeting/Sprint
all
without sorts
both its
the to
are
login. beto
applicaons.
Challenges
cap=DesiredCapabilities.chro
utilize
int
repeat
be
management
projects
inherited count
be these
for
same, =hash Faced
0;any locators
different
method but//
is Count
we While
difficult data
withoutmustin
of non-
•followed
generate
-The
planning/Backlog
dealt
xpath
"1.
cases
RHS
We ApplyWhat web
with
of
Scores
use quality
for
all
ofimplicit container
timeproperly
birthmonth”));
will
widget: andengineering
code?
you
waitautomation
and
do
memory.
Click
in these toon
Using
me();
tests
zero
set,data
have
-Less
•optimize
even Executing toSoapUI
but
elementschange we
driven
predictability.
modifying can’t
regression framework
the
the see For
parent
principals
It stores the throughout
data in the
implements
project
refinement)
resolved
//will
The
very
Selenium.
"Coding
3.How
•locators
gets
parameter.
some
suites Mandatory framework?
introduce
JVM
first your
performs
toquestions
used.In
software inmatch onthe
Implicit
execute
the
web
assigned
Select
framework on pair
some
scorecard
certification
this tests. wait the
parallel
deliverables,
class
is anto
is
class.
Agile
of
component
•3.
projects
as
run
steps
Click
example Key
Handle
All product
tests and
constructor
Why them
on we
while scripts
Match
of in Value.
must aspect
prefer
parallellifecycle
initializing
info
overloading. and
be HashMap
of
passed
explicit
tabusing the
datastring at
Interview
test
required
"Coding
//
Literally
framework,parameters
Method
-•developers
contains
Java
separately.
Set using
Traverse
Providing
it is
Provide
in Bit
questions
ACCEPT_SSL_CERTS
we Test
SoapUI
hide
the
overriding-Declaring
performed
engineering support
an cannot
results
array
NG?the
array.
in and
to
on
to If inInthe
access
locators
quantify
two
of project
the
•Interview
least
Select
wait
Selenium
literals
Implicit
1. Executing
Find 95%month
instead to
wait
the Grid/ regression
increaseof =
weinlinked
middle new
fluent
Browser
use node wait?
different
<suite
web
variable
from
element
test
same
the
managers/developers/manu
classes
documentation
nodes,
architecture;
•suites Create the
case
full name=""TestSuite""
services
method to
extent
and with Bit true
tests.Abstraction
encountered
gets
libraries. the of child
inheritance
itand required
node
specifies to
is isofa is
class
Stack?
•performance
time
linked
thread-count=""3""
1. Deadline
Select(BirthMonth);
What In Findcaseare
stamps
cap.setCapability(CapabilityT
the
// list
the
methodology
non-zero, the
of of any
middle the
then project
disadvantages
such decrease
error, as
node
of
replace the
hiding ofisthe
database,
which
efforts.
al
relationship.
represented
run
•linked
met
//Select testers
Follow time
Providing is .. excel,
already
and
environment
coding
by resultsas
Visible csv,
present
stakeholders
a class.
standards.
to
text text
for
project It in
of
Selenium
memory
-SECONDS,
program fluent
parallel=""methods""
reason
ype.ACCEPT_SSL_CERTS,
the
element
files listis
implementation
from wait?
at Grid
overhead.
to MINUTES,
find
never
index
theretest is middle
a'count'
smart
To
HOURS
displayed. of>
case of run It
parent
-More
-proxy
2)what
"1.
uses
various
While
All What an
•managers/developers/manu
Offer test class
time method
are
high
month.selectByVisibleText(“A
Explicit is
array
components
waits and
your
static is and
extensibility.
documents are known
overriding
roles
in java?
LinkedList
considered such
are as
and
decrease
program
true);
internal
//
for withall server
System.setProperty(""webdri
etc.,
linked
just showslist
this
defined the
tokeyword
details the
find
element that
number
fault
middle
and makesshowingof it
of inis
method
•commitment.
always
responsibilities
The
data
as
"1.
al
prepared,
pril”);
a
easy
String Less static
structure
security,
What
testers
better to
overriding.
needs
maintenance.
objects you and
reviewed
practice
run ...parameter
need
tests inheritance.
as
internally
concurrency,
stakeholders
created to
because
in in
and Java
test
parallelin for aof
the
ver.chrome.driver"",
METHOD
class
As
response
linked
for
the
-the the OVERRIDING
LinkedList
thread
list
functionality
(int
file.
main i = 0; leading
i <
advantage count
n; to
i++) to ""path
theis
aof
-Greater
-Automation
used
storing in
transaction,
•{JVM, this,
for
Script/Framework
webservice?
published
//select Keydemands
methods
bymemory test
andand Value. on
must
engineer version have
There
"1.
they
on
3
trouble
class
//
users.
if
2.Keyword
method
developers
3)what
same SetWhat
,three
(arr[i] don’t
multiple
the
chromedriver.exe"");
We use != a
foris
String
LinkedList
the 0) avalue
web
depend
driver
overriding
challenges
name
machines.
method
webdriver driven
and
Service?
class
non-technical
path onkeeps
which
instances
is
clients.
same you
the
This
that was
the
...can
isa
roles
management
are
deployment.
control.
Web
four
Testing and
service
month.selectByValue(“5”);
Explain
specific
done
pool
WebDriver
already ofby fields
with responsibility
budget
browser
routing
strings. driver
implemented an mainly.
in
testing HashMap.
is
example?
driver
commands
= new We
helps
in in
{Node
can
person.
•-Lack
faced
-signature.
apply
run
Analyzing
First
head;
can
of
in
static
ofand
parallel
System.setProperty(""webdri
driver.findElement(By.xpath(“
arr[count++]
framework-As
class your
all, give
necessary //= Automation
business
keyword
the
head inown
arr[i];
aitsname
key
ofhere
three
// linked
with
object
testing
exhausted
//select
Web
(ChromeDriver,
to
Each
list
different service
remote
ChromeDriver();
another time
•//div[@class='btn']
NodeNo visual
head; by
class web
a
browsers,
ver.chrome.driver"",""Chrome
count
suggest,keyword is
identifying
upon
index
way
// is
string bya
head of completion
SafariDriver,
browser literal
changing
test
executing
of linked
"")).click();
is nothing is is
specific
documentation.
career
-requirement
While
variables,
checked in implementation
forthis,
methods, in
null. ...
return
order If the type
to
blocks key to
2)
etc.)
//
its
cases
tests
list
OSI
whether
3)what
of the
instances,
created,
visit:
driver
Model-
tests
month.selectByIndex(7);
standardizedwhich a particular
challenges
the
parameters.Declaring
INTERFACE
//
but
inherited a on can
path"");
incremented
code an may
where
run
which
method
JVM7medium
layers
implement
one
checks
parallel.
application, youto
represent
without
server a is
the
-Project
1.
must
he
Generating
determine
and
null, Open
application
faced
Meetings
//get
propagate
Implicit be
nested
thein
selected easily
same
value
Systems
your the classes.
with is
communicates falls
useful
or
test stored
Automation
communication off
stakeholders
option test
co-variant.
strategy
The
from track.
in
acts
string
hence,
Basic
-some
even
Test
status
as itwaits
the
literal
https://www.sportsadda.co
method
/* Linked in
statement
action.In
modifying ischild
list
preparation
reports
hub. better.
pool
node
difficult thisThis
class
in
the
first.
*/
isfor hub
Selenium
parent
Ifthe
which
usually
the
"1.Tell me about past
experience
"1. Tell me about briefly past
Based on your
experience ? Testing
Experience,
Based
"1. Tell on meyour about youTesting can
yourself? answer
about:
Experience,
Myself xyz.Im you working can answer as
"1.
•about: YourDifference current between
roles and
software and
Scenario
"Different test
ways engineer
Scenario
to automate in
responsibilities
•outline
xyz Your current
company.then in the
roles and
explain Project
OTP
"1)
•your What
Testing usingis in Cucumber
selenium?
smoke,regression
responsibilities
framework
and skill Models,
sanity set testing and in aboutthe Project
•Methodologies
project.
Scenario Testing Models,
is one is
that
of athe
were
core
Solution
Smoke
used to
"How
Methodologies for 1:
Testing-
Testing
take a screenshot
that kind
were of of
Gherkin
Step
Software
•"1.Describe Yourfor 1: skillsstructures.
ConnectTesting and expertise the Every
performed
failed
used
scenario test scripts
Testing
starts how to
with inhandleTestNG
the
Phone/Dongle
after
related
•keyword Your softwareto
skills Test to
build the
Management
anddeliverablesexpertise to COM
the
"1.what
2.
Port What below
via is
are
USB. Aitems
“Scenario:”and
the using
AA WCAG(or
ascertain
tools
-public
related
selenium (used static
to that
Test forvoid the
Authoring
Management critical
standard
you
"Goomo
localized
Step
functionalities are2: responsible
IQs
Call one) the and
of code the is for,
for in
Test
captureScreenShot(ITestRes
tools
-iframe
WCAG
your Cases,
(used
2.0code
current Defect
for
guidelines role? Authoring Tracking
are
1st
followed
"1)
fetching
program Round
Write by
sms
are - Written
an for
via
working optional
whether
smslib.jarTestfine. It
and
ult
Test
-Right
categorized
-"What Software so
result)Cases, on)
click throws
on Defect
Testinginto Webelement
three Tracking
Plan levels
Set
scenario
some
Sample
is A
executed 30
text
will mins
Code title.
is
be toEach
highlighted
your
""before"" fetch nextfeature sms:
any and
•of
IOException
and
you
-Software The so
are actual
conformance on)trying Test Testing to in locate Process
order andto
1)
can
underlined
public
steps
detailed
"1. Automate
Is haveit void
if one
developer
functional
possible on Login
sendSMS() ora tomore
webpage?page
not
or
extend throwsw.r.t
•that
if(ITestResult.FAILURE
if
meet
Documentations-
Appium/Selenium
scenarios The
it you
shows actual
the followed
needs‘view
and Testing frame
of
every
todifferent
Test
with ==Java
Process
text
Exception{
accepting
regression
Final
effectively
"1.
result.getstatus()){
that is
Explain
you highlighted-
Class? the
followed tests
perform
Defect Bug? are Testing
Lifecycle
to "1)
source’
groups
Plan,Test
as
scenario a language or
and ‘reload
consists different
Scenario,Test and frame’
ofmentionone Casethat
or
-String
OutboundNotification
executed
final
•situations:
DEFECT Check
Some Classcolor the
LIFE on can =
project
the
CYCLE not software
be
is the
//creating
effectively
"Round
means
-Daily
all
more
driver.findElement(By.xpath(""
outboundNotification
specification
build.
extended. thesteps. Test1: are
we
tools,
The
ref perform
AStatus
purpose
of dealing
A(lowest),
libraries,
to very see
Testing
Reports
simple
is if AA with
type
=to
it new
is (mid
in of Defect
"Roundlife 1: cycle
•unique/interesting/show-
specific
takescreenshot
1.
frame.
range),
framework
example Some
Whatand set
isofSanity used of
AAA
scenario statesinterface
Testing?
(highest). canthat na 1)
be "There are New: Thistwo is the methods first state to run of
xpath"")).getCssValue(""color"
OutboundNotification();
fact
reject
stopper
Bug
type
unique/interesting/show- a
goes defect.
a
casting badly
kind through ofRetest
broken
bugs in thethat
its a defect in the Defect Life
Sanity
-To
Conformance switch testing- between at is aoverriding
kindthe of 1)
the
"1) failed test cases in
3.
"1
-SerialModemGateway
−
");
same
application
you
entire
let’s
Explain
page found
say
object
testcase,
life.
you
method
soof
(don't
The
model
thatifhigher
have
purpose utsthe
bluff get designon same
QAof Cycle.
TakesScreenshot
stopper
Software
iframes
levels
planned
and
pattern
Scenario
String
gateway
bug.
team
2. Is method
Send
it does
kind
we
indicates
by
backcolor
possible
Testing
for
=− itnew have
100
using
Verify
not to
bugs
overloading
waste
to
toperformed
testcase
java,
Help
=bluff use
override
that
time MethodWhen
SANITY
selenium TESTING
Overriding any new defect is
this)
the
=(TakesScreenshot)driver;
you
after
driver’s Defect
found
receiving life
(don't
switchTo.frame() cycle
a software is on to found,
It is a it
subset falls in aregression
of ‘New’ state,file
conformance
execution,
Method
selenium,
Functionality.
driver.findElement(By.xpath(“
SerialModemGateway(""mode
developer.Prove
installing
Static
•For Some method? and
challenges
for at
overloading-If
testng some
testing lower
to, maven, reason
the
you thealevels. git, 1)By using testng-failed.xml
easily
//cell
this)
build,
command
you
class example,
are coordinate
method
with
has not minor able
multiple to
bythis bug
capture
changes
conforming
to9600, execute
methods status in and
testing.
inchild validations
test-output and
folder. thetestingsame are
Jenkins
Given
xpath"")).getCssValue(""backg
m.com5"",
developer
software
No,
•faced
changes you user
during and
can application.
to
followed
navigates
""COM5"",
why notTesting
various override isand to atobug If
data
performed
class has
on this defect
scnsht
code,
-We
to
and
having
driven
Facebook.
round-color"");
""ZTE"",
and
Regression
static
Some can
AA,sprint
how
or in
aapproach.
Web
same use
""COM5"");
method it
terms
challenges
functionality,
end
is page
name date
supposed
Testing- in
of
Java,
FILE
you
meets
butisis a to
After
once weas
method receivingrefresh
declared the software
it weinwill thein ablethe
how
"1.
assignees
File
faced
ascertain What it was
during isAthat overcome
selendroid?
and Testing
themake bugs the
and bug later stages of the Defect Life
switchTo().frame
both
approaching.
different
Base.java
When
System.out.println(color);
gateway.setInbound(true);
work.
type
though
the
of the andHow
parameters,
testing
you user can
AA command
clicks
thatdeclare
could
is iton done ishave
you build,
in parent
to seesanitythe
class, testing
failed it istest known iscases as in
•conformance
Selendroid
fixing
Source=ts.getScreenshotAs(
how
been
3
handle Your
ways- it interaction
process
was
fixed this is
overcome
and type a test
no
levels. ofwith
systematic. further Levelthea A Cycle. performed
testng-failed.xml to ensure file that the
known
public
Help,
System.out.println(backcolor
gateway.setOutbound(true);
-If
to
method thethen
verify as
class
developer
that
with method
the Base
a Help
the code { page
still
same does
change method overriding in Java.
Client/Customer/BA/Project
automation framework which 2)
OutputType.FILE);
•overloading.
issues
1.
sets
situation?
opens.
);gateway.setSmscNumber(""+
not
in
signature
Your
the a
accept
interaction
are
switchTo().frame(int
minimum
software in
introduced
thata
level
this
does
subclass.
with
is of
not
the
a
due
frame
bug,
It
to The method must have theaare
code
2)ByAssigned:
changes
implementing In this
introduced stage,
TestNG
Manager
drives off - regarding
the UI of Androidyour ofis newly created
FileUtils.copyFile(Source,
Client/Customer/BA/Project
these
number)-pass
accessibility
Out
-method
public
Scenario
if(!color.equals(backcolor)){
91XXXXXXXXXX"");
you
impact
won't
ofshould
changes.
the
bestatic
the large
overloading
outline and the
WebDriver
speak
existing
overridden
The
numberdoesframe
basically
// to
goal
10-digit
in
not
the
working
IRetryAnalyzer.
"1)
same name as defect
as expected in the parent . is
Testing.
native
2.
new
Manager
to Differentiate
determine and hybrid
-variable/keywords
regarding that between theswitch your assigned to controller
the development
index
achieve
Test
increases
driver;
replaces
System.out.println(""Text
Mobile
someone
functionality
exact
applications
Validation
File(""./ScreenShots/""+result.
and
Cases, broad
Number
sense,
driver
the
higher
and
you of the
instead,
(apps)
will
accessibility
must
readability
upand
Verification. like
product. bethe
that theisofis "This
classtesting
Using
"There
team
while
is working
for
is
a powerful a checkpoint
on tool
the
wecalledcan
defect.
to
Testing.
proposed
to
for
able
program.
public
with that
many to
the frame.
prioritize
Properties
value functionality
situations. test
prop; Forcases determine
this htmlextrareport
retry
The method failed test if testing
must caseshaveinfor the
the
highlighted!"")
Service.getInstance().setOut
"1.Define
team
This
called
mobile
Validation-
getName()+"".png""));
works
2. is leader
to
method
web
roughly
switchTo().frame(String
STLC?
make orfrom project
sure
hiding.
as
the
the
expected.
table.
This
build iscanassignedproceed
which
by or thenot
gives
project
-reason,
as
public
Each
}product
boundMessageNotification(o
-manager
"1. It not
is
Software
call all
occur
row by
UC
WebDriver of
to
works in recommends
them
within
the
Testing
ask
reference table
for
fine will
the
Life
their
withand have
is class.
Cycle
newAA
call Jmeter
same
the
"1) best parameter
report andas in
we thecan
-frame
}-initializeDriver()
If
conformance
same
considered It is
sanity
Method anamedynamic
test
priority. overloading or
tobugfails,
forid)-
You
be mechanism
throws allthe
aIn pass
may Web- build
may
scenario. endthe is lead
or parent or the
class. manager of the
else{
utboundNotification);
(STLC)
opinion
functionality,
by
2. value
What identifies
on
istoand resolving
priority what fixes test
the
testng? or share
Call byPOSTMAN
Value API test reports
""1.
of
rejected
frame
based
up
may
IOException
How
testing
with not to
Element
information.
High minimize
require save validating
name
Priority, the the
inheritance. time
or
Medium ID the
and "1)
testing
2)
2)
parent team to
class vehiclea developer.
having
System.out.println(""Text
Service.getInstance().addGat
activities
issue.
any
call
3.
When
window?
2.
actual Ishow
How change
by value-
it possible
tests
do
product to you carry
in
are the
to
switch outexisting
overload
configured and
from is To
While
With
3) get
Open: thisthis
calling code
Here, firstly
athe we install
function, can minimize
developer nodejs
we
"1.
costs
and
-The
Priority,
{eway(gateway);
2. In driver
WCAG
this,
Background to
involved
and
methodsfind
will
documentLow anin
switch
keyword element
a more
Priority
must to
does that
set
have
in in "1)
SMOKE
First
run()
then makeTESTING,
method
install sure
newman email with
"not
when
feature.
-While
-main
parallel,
driver.manage().window().set
native
3.
a
rigorous ItHow
highlighted!"")
always
webpage to
method?
towill accomplish
Previously
calling
in which
webviewinvolves
youwhose a function,
priority
validate using those
executed
idipLevelkeeps we pass
the
starts
You values
window
can the use processof
relativevariables of xpath to it.
frame.
"2.
not
of
same
prop=
Cucumber.
}Service.getInstance().startSe
test How
Testrecommend
name
new
activities.totesting.
Cases. fetch and
Properties();
What’s the
that
different
the use of Is
"1) also
notification
child
command known
class related
bike
line ashaving“Buildplugins run()as are
pass
Yes,
tests
Position(new
appium?
executing
dynamic
on
3.
address cases
changing values
mainare
switchTo().frame()-pass are
method
executed?
the
response?
of a on of
link? re-executed
variables
Point(0,
code every can be
-1000)); to it. Such
analyzing
method
Verification
The functions
driver.get(""https://
const the
contains are
defect
Testing”,main
keyword or known
and
startsaim
works works
with
like is
AAA
signature.
FileInputStream
it?
rvice();
in order conformance to verify fis=new
the be impact installed
method
npm install (Manage
-g newman Jenkins-
Such
overloaded.
-If
public
-the
Just
refresh.
class It weuses functions
want
make
frame static
GFG methodsa
web
{ to Overloaded
void
JavaScript are
execute
element known
like the
Black main
and as www.google.com/"");
“Call
on
text Bykeyword.
fixing
ensuring
the let Values”.
it, if
that required.
the most If the
required
4.
-In
FileInputStream(""path
Background
Text
OutboundMessage
of Based
method
change.is as
Underlined aabove
onoverloading,ingeneral
Cucumber answer,
ormsg policy
not- of= is install >Manage
create objPlugins->Check
custom for bike reporter class and if
“Call
method
changeDriverContextToWeb(
Box
function
Option
2.
driver
public What By
Testing, 1:Values”.
will has
in
is
static Look our
replicating
Smoke
switch to
White
void be
order
for called
any Box
Testing?
to then
that
main(String other we In
For
But this
developer
eg
important
the method,
consider
const feels
functions the
keywordthevalue
that the
HTML
work. of
defect
creates
for
Sprint
return
properties
used
String
new entire toplanned
typedefine
cssValue= sites can
file""); because
aincompleted
orstep can or not it is email
call
npm the related
installrun() -g plugins
method.
newman- are
It will
-2.Difference
Sanity
from
need
2.
AppiumDriver
Testing,
dynamic
attribute
Smoke
frame.
args[]) InHow this {testing-
inside
to tomethod,
use
and take
value.
which
Testing- the between is
“priority”
the
driver)
non-functional
and
Is the
iswe anot
""public kind
ascreen{value
then
kind test of
static
of doof each //Minimize
is not
snippet:
The variable the
appropriate
result
block-scoped ofnot)thisin calling
current
variables thenwindow
testing it may
is
not
test
be
series
driver.findElement(By.xpath(""
OutboundMessage(ExcelCon
case
Software
"1.
each
void be possible
stories
same,
and of
Q.
variable
main(String steps
test
Testing
Write are to
but satisfy
carry
that
scenario.
ina performed
program
calling
args[])"" must
are all
as to installed
print the
reporter-htmlextra
function isor
valuecopied present into inwhose
run()
parameter.
shot
Set<String>
testing
karate
changing
Software
//
Level
forwarded The ofURL
AAA complete
matching. every
Testing
for
success
or allContext
which
moved time screen?
performedIP In
criteria
to = that to
get
used the
<input
values toset
transferred position
type=""submit""
decide
can’t be to
if a any
build
reassigned. of
id=""is the
have
prop.load(fis);
common
//a[text()='Hindi']"")).getCssVal
nect.strSMSTo,
test
after
merge to
case-
receiving
two change
to all
sorted the
ato the tests
software in method
after of bike
installing build class the
function
-this
"1.
*-Syntax-
public
driver.getContextHandles();
div
after
address
for
backlog? is
It checks
def node
some the
What
static
datetime
software is
like
needs copied
entry
content. kind
@Test(priority=
whethervoid
name,=build ofarrays?
point into
function()
be towhen
the
class etc. corresponding
driver.manage().window().setPo
below four
submit_334350""
stable
variables
Then Goenough
to states
created
Configure
dummy
to namely
proceed
by the const with
parameter.
String
the
ue(""text-decoration"");
ExcelConnect.strSMSText);
-Test
build,
Input:
corresponding
the feature
class cases
with
a[] = isminorfile.
contain
{1,3,5,7,9}
launched It allows
changes
dummy definite
by you in
the postman
variables collections
of the called function
framework
priorityValue)
captureScreenShot(ITestRes
for
software
"1.tell
{code_generating_Date_time}
Option
ascertain
-windows
fetched (String me 2: Weaboutyou
context
meets
thatcontext can have
the
yourself
use
the critical : sition(new
Duplicate,
value=""Subscribe"">
further testing.Point(-2000,
Deferred, 0));
Rejected,
moved
Method
browserName=prop.getProp
to
System.out.println(""value""+
Service.getInstance().sendM
test
code,
b[]={2,4,6,8}
variables
JVM.
worked?
Priority
ult add steps,
result) or to
some backlog
overriding-Declaring
data,
==functionality,
of
Experience
parameter
throws the expected
called intotothe keyword System(Manage
Method
Run
With collection
this
are immutable.
overloading
method, in CLI the changes
allContext)
requirements
Myself
Then
absolute
functionalities
"""1:
String
same matchxyz.Im
Limitations
s
method xpath {
""https:// and
working
datetimeof
in (full
of the
childusing xpath) == as
class or
In Not
other a
Jenkins->Configure
Class Bug-based
words,
having you
multiple upon
can’t
system)
methods the
erty(""browser"");
scenarios
cssValue);
essage(msg);
results
ascertain
Output:
function.
developing
priorityValue=value for for
that testing
C[]={1,2,3,4,5,6,7,8,9} a
framework? thefeature all
bugsof the
the have newman
made to run
the dummy variables
IOException
if
expectations
software
response.datetime
where
program you test
are do of a
engineer
notpresent
working customer
need intoin 2)
specific
This Subscribereason. button on the
Method
Appium?
www.google.com/"";
2.Why
which
System.out.println(browserN
where
Actions
System.out.println(msg);
features
been
import
call
Utilities
parameter(-ve,0,+ve)
if(ITestResult.FAILURE by
isName:
is
it
fixed used
accessibility
already
is
act of
java.util.*;
reference- defined.
and=bugs
an new
in application.
no
framework, A fine.
further ==
It reassign
3)
and
with
in
To the navigate
same
capture called
them
name
https://www.getpostman.com/ toto
function
screenshots
different
Extended
but different
have E- in
ofano the
(context.contains(""WEBVIEW
-getWindowHandles()
•xyz
give
is
try
testing
5.
parent It can
executed
Appium
How { find
company.then
any attribute
doesn’t
necessary
do
class you ""before""
is manage
known that explain
names
perform the
anyas In 4)
pageFixed:
Regression
values.
mail
parameters has When
Tryingan ID
Testing tothe
with developer
reassign a
ame);
Background
Actions(driver);
System.out.println(ExcelCon
-Test
issues
import
-calling
as
-Sequence in casesare
java.lang.*;
a
architecture? function,
of is
have
introduced much
execution defined
insteadlike due a
is a to
of
in "You
effect can on execute
collections/161a23965791d26
the values 100 of test
actual
result.getstatus()){
""))
verification
your
xpath.
detailed
Syntax:
testing
//
Accessibility
defect
method Fetch skill on
in Set
IP set
functional
alm? process
mobile
address
overriding. and about
Test or
devices
not by can only not constantentire
finishes
dynamically
Regression
Notification
By changingscreen
the task
variable
section using
changing
testing
number ofwill isselenium
fixing
and to number
result
of a in
ensure
provide
scenario
act.moveToElement(driver.fin
"1.Tell
nect.strSMSTo
step,
these
import
passing
5.
-getByName()
ascending
TakesScreenshot I
driver.context(context);
catch
project.
Option
regression
getWindowHandles()
support What
have me
changes.
3:
containing
pre-requisites,
java.io.*;
isthe
usedWe
about
Android ordervalues
difference
tests page
can
yourself
+ ""-""
Theof ts
use
are
Version
+a
ofgoal
object
value. starts- is cases 3a3e6
variables
web
defect
in
that
a it
in
-r two
driver
by
(‘334350’).
changes
TypeError.
htmlextra
in the different
scripts,
making have calling
the we
not
ways
--reporter-
can
required
affected
focuses
Step
-the
if(browserName.equals(""chr
number
dElement(By.xpath(""//
Stated #1:
main inisofon
Login verifying
advantage
steps. to etc. ALM ofto the depends arguments
htmlextra-title on framework ""Automated test
ExcelConnect.strSMSText);
expected
to
variables,
between
model
-‘0’
=(TakesScreenshot)driver;
}executed
-Example:
4.
with
lower
InetAddress
usability,
right
method
ome""))
determine
Target
What design
isfunction.
having
than
project isprevious
result,
we
get()
an that
serialization
on
but
overriding 4.2. pass
the
ipit
and
and
pattern
highest
actual
=
makes
question.
the address
software
go is to that
by
priority
product and
sure
the the
function.
make
changes
This
unchanged
const
SMTP
By
1)
use
keepsRATE ofon
then = AShot().
part.
0.1;
server-smtp.gmail.com
changing
TestNG the hedata
changing can type mark every the
a[text()='Hindi']""))).perform();
Service.getInstance().stopSe
Therefore,
proposed
class
of
}-navigate().to()
using
so
//creating it willMergeTwoSorted
variables(location
java, execute there
functionality
refselenium, in
of isfirst.
Selenium?
takscnshtnoof of reporting
AShot() is - Postman
a webdriver echo""
deserialization? With
//div[starts-with(@id,'post-
build.
driver.getWindowHandles();
•InetAddress.getByName(new
{that Doesn’t anThe the involvement
purpose
perform
application wellismain toon status
time you
Regression
RATE of
= -Use the
refresh
0.2;it // defect
testing
TypeError the
beisdoneaspage.
not ‘Fixed’.
“Defects”
class
3.Can
String
rvice();
{ambiguity
works
variables)
Get
-In
interface method
case
can
we
cssValue1=
roughly
,badly
tab
maven,
of n
give
overload
in
to –ve
type the
will
by
this its
as own
function
get
git,
priority,
casting acan
navigating
process.
expected.
a many
Jenkinspage
be
to Check
In
Calltestng
by
screenshot references SMTP
could
utility towith capture
testing
2.do
Serialization
body-')]/div[1]/form[1]/
reject
Purpose:
hybrid
URL(s).getHost());
used
from
specific
System.setProperty(""webdriyoua
by
the team
app have
Return
people
sidebar. is
testing
implementation validation
knowledge
a
broken mechanism
a
withTheset
and of
listsis
face
to of
of 5)
But
the Retest:
carriedit always
variable
Authentication
public
using out
class
groups At this
for
youstarts
Addition{ point,
specific
declare the
defect
using
method
-driver.findElement(By.xpath(""
2.Explain
Service.getInstance().remove
If
known
load
and
highest
File Test
sanity
// Merge
I or case
have as ?test
get Say
Sdlc
priority is
a[0..n1-1]
“Callpage
followed Class
and
mostly
fails,By willsource Aand
Stlc?
the data
be has
derived
build
–ve or is Running
While
entire thisscreenshot
calling
page command
a function, creates
and
executed
any
of
input[1]
application
window
difficulty
//
disabilities,
Defects
inherited Print
ver.chrome.driver"",
one performance
converting
main
//a[text()='Hindi']"")).getCssVal
Software
Gateway(gateway);
from test the under on
handles
in IP
method
method so
testingsoftware
the
including
Development
scenarios.
that
address
the testing.and
state
which
and the
project
without""path code.
visual,of
QAcan
Class
Multiple Life
an tester
submit.
fixes.
the
Provide
public const
folderint
starts
User keyword
add(int
of @Test(groups={""Regressionâ€_
a in the
the
name working
task
a,int must
(say of be is
your
b)values
rejected
b[0..n2-1]
References.
-get
driven
then
which
object
Option
team text
Source=ts.getScreenshotAs(
It comes 0 tool
doesinto
4: to to
that’s
approach.
then We save
after
you
a
not +ve.
byte
can all have
waste the
whereas
verification
stream.
use time
used
time and instead
natively
working
So
In you can
Regression of
on passing
supported
the
use retesting the
a relativefrom of
aXPaththe
be
switching
even used
System.out.println(""Public
auditory,
are
chromedriver.exe"");
}B has displayed
ue(""textdecoration"");
Cycle
Test
costs
-3.
navigate
-General
-there In// into
this modifying
another
(SDLC)
caseinvolved
is method,
will can
iterate
action
physical,
c[0..n1+n2-1]
Framework
no is
guide
need
in
main
a
beinthe of
the
over
asequencespeech,
list
derived
afor
parent
method.
more here.
address
through your
all IP immediately
gmail)and
{}
x009d_})
directory
of variables, and weintesting,
initialized
corresponding
with thetestng
pass name the
to
xml
address
test
we
OutputType.FILE);
Verification-
Apache
the
application
Address
cognitive,
Step
class. Explain
Deserialization
contains
installing open #2: JMeter
of: the
function
and
windows
Click (from
""
language, desired
on is
+testing
ip); the//cell
the
“New reverse
the
oflearning,
thisthe value
web Selenium
defect
as
cases given
password(
public tobelow
which
int 3 onwards.
verify
Email
add(int passed if address
to the
identify
a,int defect
earlier
b,int the
from is
c)the
driver=
How
rigorous
of
the
components:
priority public
actual to
System.out.println(""value
of
Step
from different3:
a
history new
call
Parse
single testing.
static
valuesvariables ChromeDriver();
Class
activities
like sms
Test void
refresh,
Properties
to A’s
be to
Scenario
in main
get
the back, can
of write
“newman”, <test
variables(location where you’ll of20 find
method
capabilities
-Webdriver
process
app
and
Defect”.
-//executeThe
}div[contains(@id,'post-
software it is to to
verifying
native
neurological where
Enter
performed capture
needed
application.
instance and process
the the scnsht
vice- to
byte
by
indisabilities
required
two invoke in It provides
fixed
web
can
const
where
{} be accurately
element:
included
person
email the will = following
{ by
to
age:
trigger the
check };
upon the
method
over""+cssValue1);
performed
OTP
calling
files, Itapp
consecutive. from
-forward.Forexample
helps
mergeArrays(int[] fromthe
function
configuration ininduring chrome
Class
fetched
exhaustive are the
a, ifdriver
Bcopied
int[]
files, listwe b, by
Data int name=â€_x009d_Regressionâ€
generated
variables) toreport."
the function
terms
a
includes
stream
passing
versa).
catch
details.
classes of
in
body-')]/div[1]/form[1]/ is
As FILE
appium?
checking
them
with used
you to to
can
inheritance recreate
see all features:
developer
functionality
person.age
completion
} as =
of per
which
30;build //the was
OK
Yes,
Identify
software
latest
testing
n1,
into main
the by
received
ofdummy method
development
an sms
application can
variables be _x009d_>
want
sheets,
-If
input[1]
3. priority to
FileUtils.copyFile(Source,
App,deviceName,platformNa
documents,
•4.what
the actual
Differentiate is
switchTo().WebDriver.Options
With
(MalformedURLException
the
relationship.
}overloaded. fields the
-getCssValue(“border-
process.
.testing?
A complete
move
Testbase=same,
dataJava
help
in red forward
design,conversion
object
between
Overloaded
class,
the
Appium.exe
emphasis are code, and
inmain
on e)of{ knownHelps
requirements
XPath
working
Note
<groups> -you
as
-capture “Callor
needentire
Bynot.
//input[starts-with(@id,
earlier.
console.log(person.age); References.
to turn screen
on// 30
2)What
the
do
execution
new
me
and
memory. called
some
Utilities program is collection?
This function.
functionality
Class, will Test
be
mechanism int
start n2,
cases, and
a/c int[] to
is In
and
6) thisweb
Reopen:
‘submit_’)] method,element
If any the issue address persists of
-Regression
.window()
client,
//
3.Why
else It
mandatory
While
method
bottom”)
Software
Solution
""what
difference
c)
"back
means
if you
are
to method
hasor
2: can
Testing
test"" theand
different
to
between to
sometime URL
enter
be
and
Retesting.
easily
overriding is
called
Life ""how
set
launch
invalid
Cycle and to allow
2)
<run>
actual option
variables for secure
inexample: app to
Reports,
alphanumeric.
It does
-Data to the
conversion
to nothome
Logs
File(""./ScreenShots/""+result.
-used persist involve the page
testing
object. this Beautify
in
is consider the defect screenshot
another then itthewillcalling
be
https://careerportal.ceipal.com/jobs/career/4b17d3264fd9070a5be706c853ccd720/a0d448ac4426dc3bdd609ed804e7af1a/NQ==
https://achieve3000.applicantstack.com/x/detail/a2jpi5dkj53z/aaac
https://doozer.com/jobs/?view=jobdetail&title=Sr.-QA-Tester&job_id=1084
https://www.wealthbox.com/careers/qa-analyst/
https://boards.greenhouse.io/virtualhealth/jobs/4921356002?gh_src=09ee677c2us
https://www.tesla.com/careers/job/localization-qaanalyst-69332
https://www.warnermediacareers.com/job/san-francisco/qa-tester-temp/1174/17730379
https://www.nisum.com/careers
https://mastercard.wd1.myworkdayjobs.com/en-US/CorporateCareers/job/Pune-India/Software-Development-Engineer-in-Test_R-113326-1
https://ibegin.tcs.com/iBegin/jobs/164056J
https://www.tcs.com/careers/TCSNinjaHiring?cq_ck=1601093916473
https://www.epam.com/careers/job-listings/job.53672.lead-test-automation-engineer-java_india
https://www.epam.com/careers/job-listings/job.53676.senior-test-automation-engineer-python_india
https://www.epam.com/careers/job-listings/job.53667.lead-test-automation-engineer-python_india
https://sapient.avature.net/careers/JobDetail?jobId=77920
https://jobs.smartrecruiters.com/Visa/743999717671575-sr-software-test-engineer-m-f-d-
https://jobs.smartrecruiters.com/Visa/743999718680823-staff-software-engineer
https://jobs.smartrecruiters.com/Visa/743999715484075-senior-test-engineer
https://globalcareers-goldmansachs.icims.com/jobs/search?ss=1&searchKeyword=qa&searchRelation=keyword_all
https://www.goldmansachs.com/careers/students/programs/index.html
https://ibegin.tcs.com/iBegin/jobs/161075J
https://ibegin.tcs.com/iBegin/jobs/161087J
https://ibegin.tcs.com/iBegin/jobs/162036J
https://ibegin.tcs.com/iBegin/jobs/162249J
https://ibegin.tcs.com/iBegin/jobs/161796J
https://sapient.avature.net/careers/JobDetail?jobId=78599
https://sapient.avature.net/careers/JobDetail?jobId=77132
https://sapient.avature.net/careers/JobDetail?jobId=78600
http://apps.exelare.com/ucbizjobs/jobs.aspx?cid=cbizl_variteusa&consintid=&consid=&contactid=&source=
http://apps.exelare.com/ucbizjobs/jobs.aspx?cid=cbizl_varitein&consintid=&consid=&contactid=&source=
https://www.vtestcorp.com/careers/
https://career.us.sogeti.com/jobs/faces/home
https://careers.peopleclick.eu.com/careerscp/client_vaisala/int1068393892/jobDetails/jobDetail.html?jobPostId=2228&localeCode=en-us
https://careers.peopleclick.eu.com/careerscp/client_vaisala/int1068393892/jobDetails/jobDetail.html?jobPostId=2273&localeCode=en-us
ttps://www.uk.sogeti.com/join-us/current-vacancies/
https://www.amazon.jobs/en/search?base_query=qa&loc_query=&latitude=&longitude=&loc_group_id=&invalid_location=false&country=&city=®ion
https://ptc-software.referralrecruit.com/referral/jobapply?jobId=180820003314&xid=36149530b8yuhN
https://careers.activision.com/job/R002760/QA-Analyst-II-Temporary-Sledgehammer-Games?src=JB-10260
https://careers.downergroup.com/cw/en/job/572346/quality-assurance-officer?source=IND
https://recruit.hirebridge.com/v3/careercenter/v2/details.aspx?jid=517148&cid=7601&locvalue=1016&source=Indeed.com
https://hr.eclipx.com/ER21/VacancyDetails.aspx?vdtnumber=453
https://careers.cognizant.com/na/en/job/COGNGLOBAL00038776051/UAT-QA?utm_source=indeed&utm_medium=phenom-feeds
https://www.jobbank.gc.ca/jobsearch/jobposting/32814819
https://jobs.lever.co/athennian/ad965416-7fc0-48ce-9f3d-a83ca4ee7ad9
https://rakuten.openings.co/#!/job-view/senior-test-automation-engineer-bengaluru-karnataka-india-2020060215010218
https://careers.google.com/jobs/results/130019184248529606-test-engineer-automation/?src=Online%2FLinkedIn%2Flinkedin_us&utm_campaign=c
https://www.mindteck.com/career/job-openings-india.html#6
https://india.endurance.com/careers-detail/2230591/
https://india.endurance.com/careers-detail/2231613/
https://india.endurance.com/careers-detail/2230450/
https://www.zynga.com/jobs/job-openings/
https://career10.successfactors.com/career?company=C0002723615P&career%5fns=job%5flisting%5fsummary&navBarLevel=JOB%5fSEARCH&_s.crb=
https://varian.wd5.myworkdayjobs.com/en-US/varianexternal/job/Pune-India/SW-QA-Engineer--Apps-_R-4126
https://www.capgemini.com/careers/job-search/?search_term=qa
https://krb-sjobs.brassring.com/TGnewUI/Search/Home/Home?partnerid=30174&siteid=5116#keyWordSearch=qa&locationSearch=
https://www.amazon.jobs/en/jobs/1189103/quality-assurance-technician
https://jobs.lever.co/dreamsports/736eef18-30d4-44d4-afb0-d4c145fede85
https://jobs.lever.co/dreamsports/b23afe23-4eb3-45c4-bb19-0822ca4ca74f
https://jobs.lever.co/dreamsports/daa92fdb-cbb7-4200-b62d-303e7fce26fc
https://globalcareers-goldmansachs.icims.com/jobs/search?ss=1&searchKeyword=qa&searchRelation=keyword_all
https://www.zomato.com/careers/tech-and-engineering/senior-quality-assurance-engineer
https://www.globallogic.com/il/career-search-page/?keywords=qa&experience&locations&c
https://jobs.jobvite.com/magnitude/job/ovT9dfwu
https://jobs.jobvite.com/magnitude/job/oCT9dfwB
https://careers.hpe.com/jobs
https://www.mastercard.us/en-us/vision/who-we-are/careers/internships-college-hires.html
https://mastercard.jobs/jobs/?q=test&location=India
https://www.sebi.gov.in/sebiweb/other/careerdetail.jsp?careerId=147
https://amnex.com/opportunities.html#/studSlide
https://docs.google.com/spreadsheets/d/1c7-3udvs0mEQGaskYtvZ8l8ckblRplkiDhHT71zV62o/edit?usp=sharing
https://careers.cognizant.com/global/en/search-results?m=3&keywords=qa
http://www.quant-capital.co.uk/jobs/software-developer-in-test-fintech/
http://www.quant-capital.co.uk/jobs/automation-tester-fintech/
http://www.quant-capital.co.uk/jobs/qa-test-analyst-wimbledon/
http://www.quant-capital.co.uk/jobs/test-analyst-fintech-putney/
http://www.quant-capital.co.uk/jobs/manual-test-analyst-fintech/
http://www.quant-capital.co.uk/jobs/automation-test-analyst-putney-southwest-london/
http://www.quant-capital.co.uk/jobs/software-developer-in-test-fintech50/
http://www.quant-capital.co.uk/jobs/python-software-tester/
https://jobs.magna.com/job/St_-Thomas-Quality-Technician-ON/540384217/?feedId=297517&utm_source=Indeed&utm_campaign=Magna_Indeed&sT
https://jobs.jobvite.com/careers/carproof/job/o5V5cfw1?__jvst=Job+Board&__jvsd=Indeed
https://zensar.taleo.net/careersection/zen+ind+external+career+portal/jobdetail.ftl?job=0056292
https://zensar.offcampus.hiringtests.in/index.php?r=user/candidateIndex
https://paytm.com/careers/jobs.html?team=Engineering
https://www.rockstargames.com/careers/openings
https://www.globallogic.com/career-search-page/?keywords=qa&experience&locations&c=Quality+Assurance
https://www.ibm.com/employment/#jobs
https://opportunities.mindtree.com/#!/joblist
https://www.hcltech.com/jobs/delivery-transaction-associate-chennai
https://oracle.taleo.net/careersection/2/jobsearch.ftl?lang=en
https://careers.smartrecruiters.com/PublicisGroupe/epsilonindia
https://ms.taleo.net/careersection/2/jobsearch.ftl?lang=en
https://jobs.siemens.com/jobs?page=1&keywords=qa&sortBy=posted_date&descending=true
https://chu.tbe.taleo.net/chu03/ats/careers/searchResults.jsp?org=BETSLLC&cws=1
https://www.ge.com/in/careers/opportunities?keyword=qa&country=TG_SEARCH_ALL&state=TG_SEARCH_ALL&func=TG_SEARCH_ALL&business=TG_SEA
https://careers.nokia.com/jobs/search/24449779
https://jobs.iqvia.com/search-jobs/qa/24443/1
https://www.capgemini.com/in-en/careers/job-search/?search_term=test
https://www.globalhunt.in/current-openings.html?page=1
https://careers.vmware.com/main/jobs?keywords=Quality%20Engineer&page=1
https://www.tagitmobile.com/job-openings/chennai-office/
https://www.thoughtworks.com/careers/graduates
https://www.testingxperts.com/company/career/
https://abstracta.us/why-us/careers
https://www.randstadusa.com/jobs/search/q-qa/
https://careers.fisglobal.com/us/en/search-results?keywords=qa
https://avankiacareers.secure.force.com/?page=JobListPage&JobSite=Dbsync&p=Candidate&sessionId
https://opentextats.avature.net/careers/SearchJobs/quality?3_167_3=859
https://careers.vmware.com/main/jobs?keywords=Quality%20Engineer&page=1
https://www.testingxperts.com/company/career/
https://abstracta.us/why-us/careers
https://www.quantumvision.com/index.php/it-services-join-our-team/
https://www.randstadusa.com/jobs/search/q-qa/
https://www.freddiemac.jobs/job/11148864/automation-testing-senior-mclean-va/
https://www.roberthalf.ca/en/jobs/all-jobs/all-locations/all-types/technology
https://mantech.wd1.myworkdayjobs.com/External/job/USA-VA-Chantilly/Senior-Test-Engineer_R11081-1?source=ManTech_Website
https://www.careerbuilder.ca/job/J3N3DF6YML7ZQBWY4HX?ipath=CRKR3&utm_campaign=google_jobs_apply&utm_source=google_jobs_apply&utm_m
https://www.unisystechconsulting.com/
https://jobs.legatohealthtech.com/jobs/search/58999445
https://www.invariatech.com/content/careers
https://www.indiumsoftware.com/careers-qa/
um=jobposting&utm_source=linkedin
%2bfQuqsMFTHmiQ%2bKfEj52eRTMNiWg%3d
medium=Indeed
_segment=TG_SEARCH_ALL&experience_level=TG_SEARCH_ALL
Exercise#
Coding Exercise-01
Coding Exercise-02
Coding Exercise-03
Coding Exercise-04
Coding Exercise-05
Coding Exercise-06
Coding Exercise-07
Coding Exercise-08
Coding Exercise-09
Coding Exercise-10
Coding Exercise-11
Coding Exercise-12
Coding Exercise-13
Coding Exercise-14
Coding Exercise-15
Coding Exercise-16
Coding Exercise-17
Coding Exercise-18
Coding Exercise-19
Coding Exercise-20
Coding Exercise-21
Coding Exercise-22
Coding Exercise-23
Coding Exercise-24
Coding Exercise-25
Coding Exercise-26
Coding Exercise-27
Coding Exercise-28
Coding Exercise-29
Coding Exercise-30
Coding Exercise-31
Coding Exercise-32
Coding Exercise-33
Coding Exercise-34
Coding Exercise-35
Coding Exercise-36
Coding Exercise-37
Coding Exercise-38
Coding Exercise-39
Problem set
1: Print HELLO for the given string "AHCECLWLXO"
2: Print HELLO in CAPITAL letters for the given string "ahceclwlxo"
1: Print all the numbers between -15 to 10.
2: Ask user to enter a number and then print the multiplication table of the input number.
1: Print "Hello Programming" and then print "I don't like you" and then print "But I have to "LEARN", I am ready"
2: Ask user to input a number and then print the number.
3:Ask user to enter the starting number and ending number and Print all the prime numbers between starting a
4: Ask user to enter a number and then print the factorial of the input number. example if user input 5, then prin
5*4*3*2*1
1: what should be the output of following code
A: var i=1; while (i<=10){console.log(i);i +=2;}
B: var i=100;while (i<150){console.log(i+1);i--;}
2: Given array ["A";"B";"C";"D";"E";"F";"G"]
A: Add item "NOW I KNOW MY ABCs" at the end. Output should be ["A";"B";"C";"D";"E";"F";"G";"NOW I KNOW MY ABCs"]
B: Add item "123456" at the beginning. Output should be["123456";"A";"B";"C";"D";"E";"F";"G";"NOW I KNOW MY ABCs"]
C: Remove ["D";"E";"F";"G"] from the array; Output should be ["123456";"A";"B";"C";"NOW I KNOW MY ABCs"]
D: Remove ["123456"] from the array; Output should be ["A";"B";"C";"NOW I KNOW MY ABCs"]
NOTE : Make sure the original array ["A";"B";"C";"D";"E";"F";"G"]should be intact and not modified. you can create any
1: Write a SQL query that will return the maximum value from the “Numbers” column, without using a SQL aggreg
Numbers
30
70
-8
90
2: Generate a random number between 1 and 9 (including 1 and 9). Ask the user to guess the number, then tell
low,
Exp: too high, or
If random noexactly
is 6 andright
user input 5 (print "Low"), if user enter 8 (print High), if user input 6 then print ('Right Gu
Ask the user to input a character and check whether it is an alphabet or not, then display the output on the scr
If
1:input
Ask usercharacter is starting
to input an Alphabets,
day andprint
the"AN ALPHABET!
number of daysI can
in read yourFind
a month. mind" and
the if its aof
number number print "A
times every NUMBER!
day occurs
Ex: Input : Number of days in month = 30 , First day = Tuesday
Output : Monday=4, Tuesday=5, Wednesday=5, Thursday=4, Friday=4, Saturday=4, Sunday=4;
2: What’s wrong in the following query?
SELECT subject_code, AVG (marks)
FROM students
WHERE AVG(marks) > 75
GROUP BY subject_code;
3: If a client connects to a web service, how do we identify the user?
4: What HTTP Status Code 409 states in web-service, explain with example.
5: An apple costs 40 cents, a banana costs 60 cents, and a grapefruit costs 80 cents. How much does a pear c
6: Why are manhole covers round and not square?
7: Is it better to be perfect and late, or good and on time?
8: Describe a bad experience you had working with your ex-employer
1: Ask user to input single string and Reverse every word in a string and print. ex: Input : "Hello", Output : "olleH"
2: Ask user to input the electricity consumption and calculate the amount based on below parameters...
1 to 100 units – Rs. 10/unit
100 to 200 units – Rs. 15/unit
200 to 300 units – Rs. 20/unit
above 300 units – Rs. 25/unit
Examples 1:
Input: U = 250
Output: 3500
Explanation:
Charge for the first 100 units – 10*100 = 1000
Charge for the 100 to 200 units – 15*100 = 1500
Charge for the 200 to 250 units – 20*50 = 1000
Total Electricity Bill = 1000 + 1500 + 1000 = 3500
Examples 2:
Input: U = 95
Output: 950
Explanation:
Charge for the first 100 units – 10*95 = 950
Total Electricity Bill = 950
You are driving a little too fast, and a police officer stops you. Write code to compute the result.
0=no ticket,
1=small ticket,
2=big ticket.
Given 2 strings, return their concatenation, except omit the first char of each. The strings will be at least length
Ex : ("Hello", "There") → "ellohere"
Ex : ("java", "code") → "avaode"
Ex : ("shotl", "java") → "hotlava"
Two inputs i.e. (string, boolean value). Ask user to input string and check If boolean value set to TRUE, return a s
if its set to FALSE, return a string length 1 from its end.
Note : The string will be non-empty.
Ex1:("Hello", true) → "H"
Ex2:("Hello", false) → "o"
Ex3:("oh", true) → "o
Given 2 strings, a and b, return a new string made of the first char of a and the last char of b.
If either string is length 0, use '@' for its missing char.
Ex1:("last", "chars") → "ls"
Ex2:("yo", "java") → "ya"
Ex3:("hi", "") → "h@"
Ask user to input a string, return a new string made of 3 copies of the first 2 chars of the original string.
The string may be any length. If there are fewer than 2 chars, use whatever is there.
Given two strings, a and b, return the result of putting them together in the order abba
Ex1:("Hi", "Bye") → "HiByeByeHi"
Ask user to input a string and an int n, return a string made of the first and last n chars from the string. The strin
Ex1:("Hello", 2) → "Helo"
Given a string, return true if "bad" appears starting at index 0 or 1 in the string, The string may be any length, inc
Ex1:("badxx") → true
Ask user to input a string, return a new string where for every char in the original, there are two chars.
Ex1: ("The") → "TThhee"
Return the number of times that the string "code" appears anywhere in the given string
Ex1: ("aaacodebbb") → 1
For the given below strings, Return true if the string "cat" and "dog" appear the same number of times.
Ex1: ("catdog") → true
Given a string, compute a new string by moving the first char to come after the next two chars.
Repeat this process for each subsequent group of 3 chars.Ignore any group of fewer than 3 chars at the end.
Return the sum of the numbers in the array,
a: Return 0 for an empty array.
Given a number n, create and return a new int array of length n, containing the numbers 0, 1, 2, ... n-1.
The given n may be 0, in which case just return a length 0 array.
Given an array of integers, return true if the array contains either 3 even or 3 odd values.
The odd or even values must be occurring in a sequence i.e. next to each other.
Return an array that is "left shifted" by one. You may modify and return the given array, or return a new array.
Ex1:[6, 2, 5, 3] → [2, 5, 3, 6]
Ask user to input length of an array, for example start=1 and end=5
1: Construct an array of 4 elements i.e. 1,2,3,4
Given an array length 1 or more of ints, return the difference between the largest and smallest values in the ar
Ex1: [10, 3, 5, 6] → 7
Return the sum of the numbers in the array, except ignore sections of numbers starting with a 6 and extending
(every 6 will be followed by at least one 7). Return 0 for no numbers.
Given an array of ints, return true if every element is a 1 or a 4.
Ex1:only14([1, 4, 1, 4]) → true
Given an array of ints, return true if the array contains two 7's next to each other, or there are two 7's separate
Ex1: [1, 7, 7] → true
Return true if the array contains three increasing adjacent numbers like.
Ex1: [1, 2, 3] → true
Return an array where each zero value in the array is replaced by the largest odd value to the right of the zero
If there is no odd value to the right of the zero, leave the zero as a zero.
Given an array of ints, return true if the number of 1's is greater than the number of 4's
Ex1: [1, 4, 1] → true
Return an rearranged array, so that all the even numbers come before all the odd numbers.
Ex1:[1, 0, 1, 0, 0, 1, 1] → [0, 0, 0, 1, 1, 1, 1]
create an array with the pattern {1, 1, 2, 1, 2, 3, ... 1, 2, 3 .. n}
Note that the length of the array will be n*(n + 1)/2.
Return the number of clumps in the given arrays.
A "clump" in an array is a series of 2 or more adjacent elements of the same value.
Ask user to enter a positive integer and then display the Fibonacci series of numbers from 0 to user-specified
Ex1: Fib(5) → [0, 1, 1, 2, 3, 5]
Write a Java program to form the largest number from a given list of non negative integers.
Ex1: Input[1,2] → Output [21]
Find the sum of even and odd numbers in the given array.
Ex1: Input[1,2] → Output evenSum= 1, oddSum=2
Coding Exercise-01 1: Print HELLO for the given string
"AHCECLWLXO"
2: Print HELLO in CAPITAL letters for the given
Coding Exercise-02 string
1: Print"ahceclwlxo"
all the numbers between -15 to 10.
2: Ask user to enter a number and then print
Coding Exercise-03 the multiplication
1: Print table of the
"Hello Programming" andinput
then number.
print "I
don't like you" and then print "But I
2: Ask user to input a number and then printhave to
the
3:Asknumber.
user to enter the starting number and
ending
4: Ask usernumber and aPrint
to enter all the
number prime
and then print
Coding Exercise-04 the factorial of the input number.
1: what should be the output of followingexample if
code
A: var i=1; while (i<=10){console.log(i);i +=2;}
B: var i=100;while (i<150){console.log(i+1);i--;}
2: Given array ["A";"B";"C";"D";"E";"F";"G"]
Coding Exercise-05 A: Add item
1: Write a SQL "NOW I KNOW
query thatMY ABCs"
will at the
return the end.
maximum
2: Generate value from the
a random “Numbers”
number column,
between 1
Coding Exercise-06 and 9 (including 1 and 9). Ask the
Ask the user to input a character and checkuser to
Coding Exercise-07 whether
1: Ask userit istoan alphabet
input or day
starting not, and
thenthe
Coding Exercise-08 number
1: Ask user of days
to input in asingle
month. Find the
string and
Reverse
2: Ask user to input the electricity print. ex:
every word in a string and
Coding Exercise-09 consumption
You are drivingand calculate
a little theand
too fast, amount
a police
Coding Exercise-10 officer stops you. Write code to
Ask user to enter two number (int) a and b, compute
return
Given twotruestrings,
if a:) either one is 6 b:) Or if their
Coding Exercise-11 a: Firsta string
Given non-emptyhas a string
fixed length
and anofint
4, n,
such
Coding Exercise-12 return
Given aastring
new string
of even where thereturn
length, char at index
the first
half. So the string "WooHoo" yields
Given 2 strings, return their concatenation, "Woo".
Coding Exercise-13 except
Two inputsomiti.e.
the(string,
first char of each.
boolean TheAsk
value).
user to input string and check If boolean
Given a string, count the number of words
Coding Exercise-14 ending
Ask userinto
'y'input
or 'z' a--string of odd length,
return the string length 3 from its middle.
Given 2 strings, a and b, return a new string
Coding Exercise-15 made of the
Ask user first char
to input of a return
a string, and thea last
newchar
string made of 3 copies of the first 2 chars
Given two strings, a and b, return the result
of putting them together in the order abba
Coding Exercise-16 Ask user to input a string and an int n,
return a string made of the first and last n
Given a string, return true if "bad" appears
starting at index 0 or 1 in the string, The
Coding Exercise-17 Ask user to input a string, return a new
string where for every char in the original,
Return the number of times that the string
"code" appears anywhere in the given
Coding Exercise-18 For the given below strings, Return true if
the string "cat" and "dog" appear the same
Coding Exercise-19 Given a string, compute a new string by
moving the first char to come after the next
import java.util.Scanner;
public class
import Program1{
java.util.Scanner;
public class
import Program2{
java.util.Scanner;
public class SpeedCheck {
import
} java.util.Scanner;
public
} class ex09pro2 {
package TelegramRahulSheety;
"import java.util.Scanner;
package TelegramRahulSheety;
import java.util.Scanner;
package Strings;
import java.util.Scanner;
public class Practice {
public static void main(String[] args) throws Exception {
public class Practice {
public
public static void main(String[]
class Practice { args) throws Exception {
public static void main(String[] args) throws Exception {
public class Practice {
public static void main(String[] args) throws Exception {
import java.util.Scanner;
public class practice0923 {
import java.util.Scanner;
public class practice20923 {
import java.util.Scanner;
public class practice10924 {
import java.util.Scanner;
public class practice20924 {
public class oPract {
public static void main(String[] args) {
import java.util.*;
import java.lang.*;
package exercises;
public class Codingexercise20 {
package exercises;
public class Codingexercise20 {
public class Practice22 {
public static
import void main(String[] args) {
java.util.Arrays;
public class Ex23 {
import java.util.ArrayList;
public class Ex24 {
import java.util.Arrays;
public static void main(String[] args) {
int a[] = { 1, 1, 6, 7, 2 };
import java.util.Arrays;
import java.util.Arrays;
package arrayprograms;
import java.util.*;
public class Exc32{
import java.util.*;
public class Largest {
int a[] = { 1, 2, 3, 0, 4, 6 };
System.out.println("Even Sum :" + Arrays.stream(a).filter(x -> x % 2 == 0).sum());
Python
str = "AHCECLWLXO"
print(str[1::2])
str1 = "ahceclwlxo"
print (str1[1::2]. upper ())
n = int(input( "Enter the value of n: "))
for i in range (1,11):
class Assessment3:
def my_function(x):
return
# x[::-1]to calculate the
Function
# electricity
from bill
else: datetime import date
def calculate_ticket(birthday,speed):
return False
Def middlestring(str,text)
return
def str[:2] + text +str[2:]
removeChar(text, index_value):
new_string
def = text.replace(text[index_value], "")
splitMyString():
text = " "
def practice1(s,n):
return s[:n]+s[-n:]
def practive2(s):
if s.index('bad')==0 or s.index('bad')==1:
def practice1(s):
j=""
def practice2(s):
return s.count("code")
def status(a):
if a.count("cat") == a.count("dog"):
def sum13(n):
Total=0
def array(n):
if n==0:
lst = [10, 3, 5, 6]
print(max(lst) - min(lst))
def sumofnos(nums):
total = 0
def oneorfour(l):
for i in l:
def check7(l):
for i in range(len(l)-1):
def checkincr(l):
for i in range(len(l)):
def fillzero(l):
maxodd=0
def onefours(lst):
if 1 in lst or 4 in lst:
def evenoddsegr(lst):
lst2=[]
def maxnum(a):
a.sort(reverse=True)
input = [1,2,3,0,4,6]
print(f'even_sum {sum(list(filter(lambda i:i%2==0,input)))}')
print(f'odd_sum {sum(list(filter(lambda i:i%2!=0,input)))}')