You are on page 1of 47

JMet

er
1Q)Whichofthefol
lowi
ngel
ement
sofJMet
erhel
pst
oval
i
dat
ewhet
heranappl
i
cat
ioni
sret
urni
ngan
expect
edresponseornot
?

A)CSVDat
asetconf
ig

B)Sampl
ers

C)Logi
ccont
rol
l
ers

D)Asser
ti
on

2Q)Whi chasser
ti
oni
susedt
opat
ter
nst
ri
ngst
obecompar
edagai
nstv
ari
ousf
iel
dsoft
heser
ver
response?

A) Dur
ati
on

B) Si
ze

C) XML

D) Response

3Q)Whi
chamongt
hef
oll
owi
ngi
sani
nval
i
dcont
rol
l
eri
nJMet
er?

A) Si
mpl
econt
rol
l
er

B) St
ati
ccont
rol
l
er

C) Random cont
rol
l
er

D) Loopcont
rol
l
er

4Q)Whichoft
hefol
l
owi
ngi
sthel
ogi
cal
cont
ainert
hatcont
ainsal
lthet
estel
ement
swhi
chdr
ivet
he
per
for
mancetest
?

A) LoadTest
ing

B) TestPl
an

C) Testcont
ainer

D) Testper
for
mance

5Q)Whi
choft
hef
oll
owi
ngi
sal
i
steneri
nJMet
er?

A) Asser
ti
onr
esul
ts

B) Moni
torr
esul
ts

C) Aggr
egat
erepor
t

D) Al
loft
heabov
e
6Q)Whi
chi
susedt
oreadl
i
nesf
rom af
il
e,andspl
i
tthem i
ntov
ari
abl
es?

A) CSVDat
asetconf
ig

B) HTTPcooki
emanager

C) Cont
rol
l
er

D) Sampl
er

7Q)Whati
sdi
spl
ayedi
nthel
eftpl
aneofuseri
nter
face?

A) Di
spl
ayst
heel
ement
susedi
ndev
elopment

B) Di
spl
ayst
heel
ement
susedi
ntest
ing

C) Di
spl
ayst
hedet
ail
sofeachel
ement

D) Di
spl
ayst
ransact
iondet
ail
s

8Q)Whi
choft
hef
oll
owi
ngst
atement
sist
rueaboutPr
e-pr
ofessor
s?

I
.Pr
e-pr
ocessor
sexecut
ebef
oret
hesampl
err
equest
sar
eex
ecut
edi
nthet
estpl
an

I
I.Pre-
processor
scanbeusedf ordi
ff
erentper
for
mi ngt
est
ingneedssuchascapt
uri
ngt
her
esponse
dataorstopthetest
/thr
eadi
ftheuserrequest
sfai
led.

A) Onl
yI

B) Bot
hIandI
I

C) Onl
yII

D) Noneoft
hese

8Q)Whichofthef
oll
owi
ngr
epr
esent
sapr
ocesswher
esampl
ersar
eexecut
edwi
thmul
ti
pleset
sof
useri
nputdat
a?

A) Logi
cCont
rol
l
er

B) Pr
e-pr
ocessor
s

C) Par
amet
eri
zat
ion

D) Cor
rel
ati
on

9Q)Whi
choft
hef
oll
owi
ngi
sani
nval
i
dconf
igur
ati
onel
ementi
nJMet
er?

A) CSVDat
asetconf
ig

B) HTTPCooki
eManager

C) HTTPHeaderManager

D) FTPCooki
eManager

10Q)Whi
choft
hef
oll
owi
ngi
susedt
ospeci
fyt
henumberoft
imesat
hreadwi
l
lexecut
ethe
r
equest
s/sampl
ersi
ntheJMet
ert
estpl
an?

A) Numberoft
hreads

B) Ramp-
upper
iod

C) Loop-
count

D) Testdur
ati
on

11Q)Whi
choft
hef
oll
owi
ngasser
ti
oni
snotappl
i
edi
nJMet
er?

A) …….

B) …….

C) Web

D) …….
.

12Q)Whi
choft
hef
oll
owi
ngi
saPostPr
ocessori
nJMet
er?

A) Regul
arExpr
essi
onExt
ract
or

B) Sav
eResponset
oaFi
l
e

C) Gener
ateSummar
yResul
ts

D) Al
loft
heabov
e

13Q)Whi
chamongt
hef
oll
owi
ngi
sdet
ermi
nedbyt
heLogi
ccont
rol
l
er?

A) Thet
ypesofr
equest
sthatar
eexecut
ed

B) Thesour
ceofr
equest
sthatar
eexecut
ed

C) Theor
deri
nwhi
chuserr
equestar
eexecut
ed

D) Al
loft
heabov
e

14Q)Whi
choft
hef
oll
owi
ngwi
l
lcont
rol
theamountoft
imeJMet
erwi
l
lexecut
eat
estpl
an?

A) Numberoft
hreads

B) Ramp-
upper
iod

C) Loop-
count

D) Testdur
ati
on

15Q)Whichofthef
oll
owi
ngel
ement
sofJMet
erexecut
esaf
tert
hesampl
err
equest
sar
eexecut
edi
n
thet
estplan?

A) Thr
eadgr
oup

B) Sampl
ers

C) Pr
e-pr
ocessor
s
D) Post
-pr
ocessor
s

16Q)Emi
lyisexecut
ingaJMeterper
formancetestpl
anusingJenkins.Whati
sthedef
aul
tfor
matof
Sour
ceDataFil
esthatisusedt
opubli
shperfor
mancet estr
esul
treports?

A) JTL

B) CSV

C) LOG

D) Noneoft
heabov
e

17Q)Whi
choneoft
hef
oll
owi
ngi
snotaCont
rol
l
eri
nJMet
er?

A) Onceonl
ycont
rol
l
er

B) Modul
econt
rol
l
er

C) Condi
ti
oncont
rol
l
er

D) LoopCont
rol
l
er

18Q)Whi
choft
hef
oll
owi
ngi
susedt
odi
spl
ayt
her
esul
tsoft
hesampl
esi
nJMet
er?

A) Li
stener
s

B) Sampl
ers

C) Asser
ti
ons

D) Ti
mer
s

19Q)Thr
eadgr
oupsi
nJMet
erdenot
es:

A) NumberofVi
rt
ual
user
s

B) NumberofPhy
sical
/Li
veUser
s

C) Numberofpr
ocesses

D) Noneoft
heabov
e

20Q)Aperf
ormancet
est
erwantstor
ecordandcapt
uret
hescr
iptf
orhi
sdesi
gnedscenar
io.Pl
ease
hel
phiminsel
ecti
ngt
heelementf
orrecor
dingi
nJMeter
.

A) LoopCont
rol
l
er

B) HTTP(
s)TestScr
iptRecor
der

C) Ht
tpMi
rr
orSer
ver

D) Li
stener

21Q)Whi choft
hefol
lowi
ngper
for
mancet est
ingt
ypesi
susedt
odet
ermi
net
heAUTsbehav
iorwi
th
theexpectedl
oadcondi
ti
onsf
oralongerperi
od?
A) LoadTest
ing

B) Spi
keTest
ing

C) St
ressTest
ing

D) Endur
anceTest
ing

22Q)SophieisdesigningaTestPl anApacheJMet er.Shenoti


cesthatady namicsessionidis
generat
edwhenauserl ogsintotheapplicat
ion.Thissessioni
dmustbepassedt othesubsequent
request
ssothatser vercanident
ifythelogged-i
nuserandpr oviderel
evantresponses.Whichofthe
belowconceptsrepresenttheabov escenari
o?

A) Dy
nami
cEx
pressi
on

B) Par
amet
eri
zat
ion

C) Cor
rel
ati
on

D) Noneoft
heabov
e

23Q)Whi
choft
hef
oll
owi
ngi
saPostPr
ocessori
nJMet
er?

A) Regul
arExpr
essi
onExt
ract
or

B) Sav
eResponset
oaFi
l
e

C) Gener
ateSummar
yResul
ts

D) Al
loft
heabov
e

24Q)Whi
choft
hef
oll
owi
ngi
sal
i
steneri
nJMet
er?

A) Vi
ewResul
tsTr
ee

B) Summar
yRepor
t

C) Aggr
egat
eRepor
t

D) Al
loft
heabov
e

25Q)Whi
choft
hef
oll
owi
ngi
susedt
ospeci
fyt
heamountoft
imeJMet
erwi
l
lexecut
eat
estpl
an?

A) Numberoft
hreads

B) Ramp-
upper
iod

C) Loop-
count

D) Testdur
ati
on

26Q)………….cont
rol
l
eri
nJMet
eror
gani
zet
hesampl
ersandot
herl
ogi
ccont
rol
l
ers?

A)Logi
c

B)Si
mpl
e
C)Tr
ansact
ion

D)Onceonl
y

CUCUMBER

1Q)BDDactiv
ity,
ingener
ali
sat
hreest
ep,
i
ter
ati
vepr
ocess.Whatar
etheset
hreepr
act
ices
thatar
efol
l
owed?

Chooset
hemostappr
opr
iat
eopt
ion

A.Anal
ysi
s,Requi
rement
sanddesi
gn

B.Di
scov
ery
,for
mul
ati
onandaut
omat
ion

C.Di
scov
ery
,desi
gni
nganddev
elopment

D.Desi
gni
ng,
discov
eryanddev
elopment

2Q.WhichGher
kinkeywordi
susedt
ocr
eat
e/execut
easacommongi
venst
epf
oral
lthe
scenar
iosi
nthefeat
urefi
l
e?

A.Bef
ore

B.Backgr
ound

C.Af
ter

D.Scenar
ioout
li
ne

3Q)Whi
choft
hef
oll
owi
ngcont
ainerl
oadsal
lthepageobj
ect
sincucumber
?

A)PageFact
ory

B)Obj
ectReposi
tor
y

C)Obj
ectMaps

D)Obj
ectDi
cti
onar
y

4Q)Whi
choft
hef
oll
owi
ngar
eBDDpr
act
ices?

A)Expl
orat
oryTest
ing

B)Ear
lyt
est
ing

C)Speci
fi
cat
ionbyexampl
e

D)Domai
nbasedt
est
ing

5Q)Ar
ranget
hebui
l
dtr
iggerpr
ocessi
ncor
rector
dert
oachi
evecont
inuoust
est
ingusi
ng
Jenki
ns.

a.Tr
igger
sthebui
l
d

b.OpenRepor
tst
oseet
hel
atestt
estr
esul
ts

c.Jenki
nscheckst
heGi
treposi
tor
yper
iodi
cal
l
ytodet
ectchangest
obui
l
dpr
oject

d.Thebui
l
disSuccess/
Fai
l
ure

e.Test
ers/
Dev
eloper
scommi
tssour
cecodechangest
otheshar
edGi
treposi
tor
y

A)e,
c,
b,
a,
d

B)e,
c,
a,
b,
d

C)e,
a,
c,
b,
d

D)e,
c,
a,
d,
b

6Q)Chooset
hecor
rector
deroft
heBDDpr
ocessf
ort
estaut
omat
ion.

1.Copyt
hegener
atedempt
ytestst
epmet
hodst
oSt
epDef
ini
ti
ons.

2.Cr
eat
eauserst
orywi
thscenar
iosi
nthef
eat
uref
il
e.

3.Runt
hef
eat
uref
il
etogener
ateempt
ytestst
epmet
hods.

4.Dev
elopt
het
estst
epmet
hodst
oconcr
eteact
ions

5.Runt
hef
eat
uref
il
etoobser
vet
het
estr
esul
ts.

A.1-
3-2-
4-5

B.1-
3-2-
5-4

C.2-
3-1-
4-5

D.2-
1-3-
4-5

7Q)Jameswant stodesignascenarioi
naf eat
urefi
l
e,i
nwhi
chthecomplet
escenar
ior
uns
mult
ipl
et i
mesfordif
ferentdataset
s.SuggestJameswit
hagher
kinkey
wordtoachi
eve
dat
a-dr
iven-t
est
ingi
nt hefeatur
efil
e.

A.Uset
aggedscenar
io

B.Copypast
eScenar
iof
oreachdat
a

C.Usebackgr
oundwi
thScenar
io

D.Usescenar
ioOut
li
ne

8Q)Jameshascreatedaproj
ectwit
hfollowi
ngfi
les.Feat
urefi
l
es,Test
Runner,
Cucumber
RunnerclassandStepDefi
nit
ionscl
ass.Whichfil
emustbeexecutedbyJamesi
n
or
dert
otr
iggert
heexecut
ionofal
lscenar
iosf
rom t
hepr
oject
?

A.Feat
ureFi
l
es

B.Test
Runner
/Cucumber
RunnerCl
ass

C.St
epDef
ini
ti
onCl
ass

D.Noneoft
heabov
e

9Q)Toexecut
eacucumberScenar
io,
whi
chf
il
ear
eimpor
tantandmustbecr
eat
edi
nthe
MavenPr
oject
?

A.Feat
uref
il
e

B.St
epdef
ini
ti
ons

C.Sel
eni
um Code

D.PageCl
asses

10Q)Samant hahascreatedFeaturefil
esinapr
oject
.Shewantstoconfi
gurethe
TestRunnerclassusi
ngfeaturefi
letags.Whi
chofthefol
l
owingisthecorr
ectsetof
assert
ionstobeusedi nTestRunner?

A.@RunWi
th

B.@opt
ions

C.@Cucumber
Opt
ions

D.@Runner

11Q)Whi
choft
hef
oll
owi
ngst
atement
sar
etr
ueaboutt
hef
eat
uref
il
e?

A.Af
eat
uref
il
emaycont
ainmul
ti
plescenar
io.

B.Feat
ureGher
kinkey
wor
disal
way
swr
it
tenasf
ir
st/
highl
evel
key
wor
dinaf
eat
uref
il
e

C.Ther
ecanbemul
ti
plef
eat
uref
il
esi
nthepr
oject
.

D.Feat
uref
il
esar
esav
edwi
th.
txtext
ensi
on

Chooset
hecor
rectopt
ions.

A.Onl
y1and2

B.Onl
y1,
2and3

C.Onl
y1and4

D.Al
l1,
2,
3and4

12Q)Sam i
sasof
twar
etest
erwhowant
stogener
ateanHTMLr
epor
tpostt
heex
ecut
ionof
cucumberfeat
ures.Hel
pSam t
ogener
atet
hepr
ett
yHTMLr
epor
tusi
ngt
hecucumber
Runnercl
ass.

Chooset
hemostappr
opr
iat
eopt
ion.

A.@Cucumber
Opt
ions(
plugi
n=(
“pr
ett
y”,
”ht
mlr
epor
t.
html
”)
)

B.@Cucumber
Opt
ions(
plugi
ns=(
“ht
ml”
))

C.@Cucumber
Opt
ions(
plugi
ns=(
“pr
ett
y”,
”r
epor
t.
html
”)
)

D.@Cucumber
Opt
ions(
plugi
n=(
“pr
ett
y”,
”r
epor
t.
repor
tht
ml”
))

13Q)Kevi
niscreati
ngafeat
urefi
l
ewi t
hmulti
plescenar
io.Hewantst
oappl
ymul
ti
plet
ags
toascenar
io.Whichoft
hefoll
owingbestr
epr
esentsthetechni
quest
oappl
ymul
ti
plet
ag
names?

Chooset
hemostappr
opr
iat
eopt
ions.

A.@Tag1,@Tag2
Scenar
io:
Thisi
slogi
nScenar
io

B.@Tag1@Tag2
Scenar
io:Thi
sisl
ogi
nScenar
io

C.@Tag1|@Tag2
Scenar
io:
Thisi
slogi
nScenar
io

D.@Tag1&@Tag2
Scenar
io:
Thi
sisl
ogi
nScenar
io

14Q)Jackhascr
eat
edt
hef
eat
uref
il
ewi
tht
hebel
ow-
ment
ionedscenar
iosasshownbel
ow.

@Smoke
Scenar
io:Thi
sist
hefi
rstscenar
io.
@Crash
Scenar
io:Thi
sist
hesecondscenari
o.

TestRunnercl
ass,Jackment
ioned@Cucumber
opt
ions(
tags={
“smoke”
}).Pr
edi
ctwhi
ch
scenari
oisareexecuted?

Chooset
hemostappr
opr
iat
eopt
ions

A.Execut
esf
ir
stscenar
io

B.Execut
essecondscenar
io
C.Execut
esbot
hscenar
io

D.Noscenar
iosar
eex
ecut
ed

15Q)Henryhadjoi
nedapr ojectt
eam.Thet eam isusi
ngtheBDDfr
amewor kf
oreff
ect
ive
test
ing.Henr
ymustunderstandkey wordsincucumber.Whi
chgher
kinkey
wordindi
cat
esthe
veri
fi
cati
on/v
ali
dat
ionst
epsi naf eatur
efil
e?

Chooset
hemostappr
opr
iat
eopt
ions

A.When

B.Gi
ven

C.Then

D.Scenar
io

16Q)Whichtechni
quei
nagil
eproj
ectsf
ocussesondesigni
ngaut
omat
edt
estscenar
iopr
ior
towri
ti
ngthedevcodetoachi
eveeff
ect
iveproductout
comes?

Chooset
hemostappr
opr
iat
eopt
ions(
opt
ionsnotv
isi
ble)

Ans-Test
Dri
venDev
elopment

17Q)Henr
ywantstogener
ateJSONr epor
tsontheexecut
ionofTestRunnerin
Cucumber
.Assi
stHenrywi
thther
ightopti
ontoconf
iguref
orJSONr eportgenerat
ioni
n
@CucumberOpti
ons?

Chooset
hemostappr
opr
iat
eopt
ions.

A.@Cucumber
Opt
ions(
plugi
n={
“pr
ett
y’
,”
json:
tar
get
”})

B.@Cucumber
Opt
ions(
plugi
n={
“pr
ett
y”,
”t
arget
/resul
ts.
j
son”
})

C.@Cucumber
Opt
ions(
plugi
n={
“pr
ett
y”,
”r
epor
t:
resul
ts.
j
son”
})

D.@Cucumber
Opt
ions(
plugi
n={
“pr
ett
y”,
”j
son:
tar
get
/resul
ts.
json}
)

CUCUMBEREXPRESSI
ONS

18Q)Jameshaswr
it
tenascenar
ioi
nfeat
uref
il
easf
oll
ows:
(BI
GQUESTI
ON)

|
|

Sam rev
iewst
hefeat
urefi
leandstepdef
ini
ti
on.Bothscenar
iomustmatchwit
hthesame
@WHENand@THENmet hods.Chooset
hecorrectopt
ionsf
ormatchi
ngstepdef
ini
ti
ons
methodforWhenandThensteps. (opt
ion2)

Chooset
hemostappr
opr
iat
eopt
ion.
(OPTI
ONSNOTVI
SIBLE)

Ans-@When(
“kav
inent
ersquant
it
yas{
int
}it
em(
s)”
}

@Then(
“shoppi
ngcar
ticonshows(
int
)”)

19Q)Whi
chparameter
stypesincucumberexpr
essi
onsmat
chest
extwi
thoutwhi
tespace?
Exampl
e:banana(
butnotbananasmoothi
e)

Chooset
hemostappr
opr
iat
eopt
ions.

A.{
str
ing}

B.{
text
}

C.{
wor
d}

D.{
char
s}

20Q)Seanhadex ecutedf
ewscenariosthr
oughCucumberRunnerclassfr
om ecl
ipseIDE.
Whenheobser vedtheconsol
eoutput,t
herewer
esomechar act
erswhicharenotinreadabl
e
format.Assi
stSeantoapplyacucumberopti
onwhichcanformattheconsol
eoutputina
readablefor
mat.

Chooset
hemostappr
opr
iat
eopt
ion.

A.dr
yRun=t
rue

B.f
ormat
=tr
ue

C.monochr
ome=t
rue

D.st
ri
ct=t
rue

21Q)Sar
ahwant
stocr
eat
eamav
enpr
oject
………………………………….
..
jobsuccessf
ull
yinJenki
ns.

A)RootPOM……….

B)Addi
ti
onal
i
tycl
onet
he….
.

C)Sel
ect
inggi
twi
thr
eposi
tor
yinf
ormat
ioni
nsour
cecode….

D)Pr
ovi
degi
thubpr
ojectURL……

E)Manual
l
ydownl
oadt
hepr
ojectf
rom gi
t….
22Q)Sar
ahhashercodei
ngi
tlocal
reposi
tor
y,buther
………………………….
.wor
kingcopy
?

A)Fet
ch

B)Get

C)Push

D)pul
l

23Q)Howt
ocapt
urewor
dwi
thout
…………….
expr
essi
ons?

A){
int
}

B){
text
}

C){
str
ing}

D){
wor
d}

24Q)Whi
choft
hebel
owusesconcr
ete……….
tobemade?

A)Speci
fi
cat
ionbyexampl
e

B)St
ruct
urebyEx
ampl
e

C)St
atebyExampl
e

25Q)Seani
scr
eat
ingabui
l
djobi
nJenki
nst
otr
igger
……………………………suggest
edsof
twar
e

A)Addpat
htosy
stem/
userenv
ironmentv
ari
abl
es

B)Addpat
htoGl
obal
…………………………………….

C)I
nst
all
plugi
nsf
rom Ecl
i
pse………………….
.

D)I
nst
all
plugi
nsf
rom manageapl
ugi
nsi
nJenki
ns
1. which Gherkin keyword is ued to create/execute as common given step for all the scenarios in the
feature file? BACKGROUND

2. Choose the correct order of the BDD process for test automation. 2-3-1-4-5

3. sarah wants to create a maven project in Jenkins to trigger the execution of cucumber feature files for
achieving the continuous testing process. The source code of the project is present in the GIT
repository.Assist her to configure with the required details for building the job successfully in Jenkins?

A,C,D

4. Which of the following elements of Jmeter helps to validate wheter an application is returning an
expected response or not ? Assertions

5.which assertion is used for pattern strings to be compared against various fields of the server
response? Response

6. which among the following is invalid controller in Jmeter ? STATIC CONTROLLER

7. Which of the following is the logical container that contains all the best elements which drive the
performance test? Test plan

8. James wants to design a scenario in a feature file. In Which of the complete scenario runs multiple
times for different data sets. Suggest james with a Gherkin keyword to achieve data-driven testing in the
feature file ? USE SCENARIO OUTLINE

9. james has created a project with the following files…………? Testrunner/cucumber runner class

10.to execute a cucumber scenario which file(s) are important and must be created in the Maven
project ?feature file, Step definition

11.Which of the following is used to specify the number of times a thread will execute the requests
samplers in the jmeter test plan? loop count

12. Which of the following is Listener in Jmeter? Aggregate report

13. Sarah has her code in Git local repository , but her team lead had pushed the new changes into
remote repository. Which Git command would you recommend sarah with new change into working
copy ? PUSH/PULL (DOUBT)

14. Samantha had created feature file in a project………..?@runwith @cucumberOptions

15.which of the following statements are true about the feature file ? B. ONLY 1,2 and 3.

16. Controller in JMeter lets you organize the samplers and other logic controllers ? LOGIC

17. Sam is a software tester who wants to generate an HTML report post the execution of cucumber
features. Help sam to generate the pretty HTML report using the cucumber runner class. A

18. James has written a scenario in the feature file as below B

19.Which of the following an invalid configuration element in Jmeter ? FTP Cookie MANAGER
20. Which of the following represents a process where samplers are executed with multiple sets of user
input data ? PARAMETERIZATION

21.kevin is creating a feature file with multiple scenarios. He wants to apply multiple tags to a scenario.
Which of the following best represent the techniques to apply multiple tag names ? B

22. which of the following will control the amount of time Jmeter will execute a test plan ? Test duration

23.Which of the following statements is true about preprocessors ? only I

24.To execute a cucumber scenario, which files are important and must be created in Maven project ?
Feature file, step definitions

25. Which parameter types in cucumber expressions matches text without white space ? {word}

26.Which of the following assertion is not applied in jmeter ? WEB

27.Arrange the build trigger process in correct order to achive continuous testing using Jenkins.
EACBD/ecadb

28. Which of the following is a post processor in Jmeter ? Regular expression Extractor

29. Jack had created the feature file with the below-mentioned scenarios as shown below: No scenarios
are executed

30.which among the following is determined by the logic controller ? The order in which user request
are executed

31. Henry had joined a project team. The team is using the BDD frame work…………………? THEN

32.Sean is creating a build job in jenkins to trigger the cucmber feature files….. ? add path to global
configuration/install plugins from manage plugins in jenkins (doubt)

33. He ran the test for 5000 load. Timer

34.which one of the following is not a controller in jmeter ? condition controller

35.which of the following performance testing types is used tp check the stability of the software when
hardware substances like CPU are not sufficient ? Stress testing

36.Which of the following parameters can be configured using a thread group ? Ramp-up period, test
duration, loop count

37. A performace tester wants to record and capture the script for his designed scenario. Please help
him in selecting the element for recording in Jmeter. HTTP(s) Test script recorder

38. Emily is executing a Jmeter performance test plan using Jenkins. What is the default format of source
data files that is used to publish performance test result reports ? none of the above

39.Leo is a new joiner to the cucumber report C@OAT and @UAT

40. which of the following performance testing types is used to determine the AUT’s behavior with the
expected load conditions for a longer period? Endurance testing
41.Sophie is designing a test plan using Apache JMeter.She notices that a dynamic session…….?
Corelation

42. Henry has created a feature file with tagged scenarios He wants to execute……?
D tags=”not@SevereTag”

43. Harry wants to create a scenario outline in the feature file. EXAMPLES

44. Henry wants to generate a JSON reports on the execution of testrunner…….? D

45. Sean had execeuted few scenarios through cucumber Runner class from eclipse IDE………?
monochrome=true

46. BDD activity in general is a three step iterative process. What are these three pratices that are
followed in BDD? Discovery, formulation and automation

47.Sarah would like to generate a dashboard from Jenkins for viewing the cucumbertest
results……………….? Json

48.designed a testplan in Jmeter…….? Extra threads will execute and re-iterate through the values again

49.Which of the following correctly represents the syntax of using Jmeter variables in the test plan ?
A-${Variablename}

50.which assertion is used to test wheter the API server response was received within a given
………?Duration

51.James is new to the performance testing team…………..? ABCD

52.which of the following types of applications can be tested using JMeter ? A Web-based
applications,web services(Rest and SOAP), Databases(JDBC)

53.Which technique in agile projects focusses on designing automated test scenarios prior to writing the
dev code to achieve effective product outcomes ? test driven development

54. Which of the following is used to specify the amount of time Jmeter will execute a test plan ?
TEST DURATION

55.Harish has created a scenario for the…….? View results tree

56.Which of the following elements of JMeter executes after the sampler requests are executed in the
test plan? Post-processors

57.sarah is designing the object repository framework for test automation using the page object
…………….? Page factory

58. it is a best practice to execute the jmeter test plan using Non-Jui mode……..?
jmeter –n – t test.jmx-l testresults.jtl

59. What is displayed in the left pane of user interface ? Test plan
60. Mahesh and his team have completed a load test for their online shopping application with different
workload distrubutions for their scenarios. Which element is responsible for storing at the result of your
HTTP request in a file for the test plan ? listeners

61. Sean had written a scenario in the feature file as shown below

62.which of the following plugin can be used to generate xml reports for the test result using cucumber
options ? xml

*1.Under which of the following element, we can see the option Save Response to a file in order to save
the responses for a HTTP Request sampler in Jmeter? Listeners

*2. Which of the following Gherkin keywords are recommended to use in the feature file to enumerate
with successive Givens whens thens ? AND BUT

*3. Sean is working as an automation Text engineer. He had to trigger the project build from the……..?
BC

*4. Which of the following option is the navigation way path to add user parameters for an HTTP
Request Sampler using Jmeter? A

*5. which of the following tool is recognized as a performance testing tool from the below given
options ? Galling

*6. which of the following delimited parameters are used in the scenario outline to reference the
headers in example table? <>

*7.Sarah as an automation test engineer wants to match………….? D /

*8. Which of the following option is selected from Jenkins add post-build action to generate the
performance report in JTL format? Publish Performance test result report

*9.which of the following annotation is used to locate web elements as page objects in the page object
model design pattern ? @FindBy

*10. Which of the following sampler is added to the thread group in order to test REST API from Jmeter?
HTTP request
CUCUMBER DUMPS
Q1. Which Gherkin keyword is used to create /execute as a common given step for all the scenarios in
the feature file?

A. Before
B. Background
C. After
D. Scenario outline

Q2. Choose the correct order of the BDD process for test automation.
Ans 1. Copy the generated empty test step methods to Step Definitions.
2. Create a user story with scenarios in the feature file.

3. Run the feature file to generate empty test step methods.

4. Develop the test step methods to concrete actions

5. Run the feature file to observe the test results.

A. 1-3-2-4-5
B. 1-3-2-5-4
C. 2-3-1-4-5
D. 2-1-3-4-5

 Create a user story with scenarios in the feature file.


 Run the feature file to generate empty test step methods.
 Copy the generated empty test step methods to step definitions.
 Develop the test step methods to concrete actions
 Run the feature file to observe the test results.
Q3. Sarah wants to create a maven project in Jenkins to trigger the execution of cucumber
feature files for achieving the continuous Testing process. The source code of the project is
present in the GIT repository. Assist her to configure with the required details for building the
job successfully in Jenkins.
Choose the appropriate options.
A) Root POM location in git repository under
B) Additionally clone the project in eclipse from git repository
C) Selecting git with repository information in source code
D) Provide git hub project url in general details
E) Manually download the project from git repository

1
Q4. Which of the following elements of the Jmeter helps to validate whether in application in
returning an expected response or not ?
A) CSV data set config
B) Samplers
C) Logic controllers
D) Assertion

Q5. Which assertion is used for pattern strings to be compared against various fields of the
server response?
A) Duration
B) Size
C) XML
D) Response

Q6.Which among the following is an invalid controller in Jmeter?


Ans 1 simple controller
2. static controller
3. random controller
4 loop controller.

Q7. Which of the following is the logic container that contains all the test elements which drive
the performance test?

A) Load testing
B) Test plan
C) Test container
D) Test performance

2
Q8. James wants to design a scenario in a feature file, In which the complete scenario runs
multiple times for different data sets. Suggest James with a Gherkin keyword to achieve data-
driven testing in the feature file.
Ans Use tagged scenario
A) Copy paste same scenario for each data
B) Use background with scenario
C) Use scenario outline

Q9. James has created a project with the following files, feature files,
TestRunner/CucumberRunner class and step definition class. Which file must be executed by
James in order to trigger the execution of all scenarios from the project?

A) Feature files
B) TestRunner/CucumberRunner class
C) Step defination class
D) None of the above

Q 10. To execute a cucumber scenario, which file(s) are important and must be created in the
maven project?
A) Feature file
B) Step defination
C) Selenium code
D) Page classes

Q11. Which of the following is a Listener in the Jmeter?


Ans 1 .Assertion result
2. Monitor result
3. Aggregate report
all of the above is right ans
4. All of the above.

3
Q.12 Saraha has created Feature file in a ……….She wants to configure the TestRunner class
using feature Design steps. Which of the following is the correct set of assertions to be used in
TestRunner?
Ans. 1. @Run with
2. @options
3. @cucumberOptions
4. @Runner
Q13. which of the following statements are true about the feature file?
1) A feature file may contain multiple scenarios
2) Feature gherkin keyword is always written as first/high-level keyword in a feature file
3) There can be multiple feature files in project
4) Feature files are saved with .TXT extension
Ans)
A) Only 1 and 2
B) Only 1,2 and 3
C) Only 1 and 4
D) All 1,2,3 and 4

Q14. Controller in Jmeter lets you organize the samplers and other logic controllers?
Ans. Sample logic is correct ans

Q15. Sam is a software tester who wants to generate an HTML report post the execution of
cucumber features. Help sam to generate the pretty HTML report using the Cucumber Runner
class.

A) @CucumberOptions(plugin=("pretty","html report.html"))
B) CucumberOptions(plugin=("html")
C) CucumberOptions(plugin=("pretty","report.html")
D) CucumberOptions(plugin=("pretty","report report.html")

4
Q16. James has written a scenario in the feature file as below:
Scenario : the one where the user orders item with a single quantity
given caving is on add to Shopping Cart page
When Kevin enters quantity as 1 item
Then Shopping Cart icon shows 1.

Scenario: The one where the user order item with multiple quantities
Given one Kevin is on add to Shopping Cart page
When Cavin enters quantity as 2 items
Then Shopping Cart icon shows 2

Sam reviews the feature file and step definition both scenario must match with the same
@when and @Then methods.
choose the correct option for matching the step definition method for when and then
steps.

ans - B) @when("Kevin enters quantity as (int) item(s) ")


@then("shopping cart icon shows (int)")

Q17 Which of the following is an invalid configuration element in JMeter?


A) CSV Data set config
B) HTTP Cookie Manager
C) HTTP Header Manager
D) FTP Cookie Manager

Q18. Which of the following represents a process where samplers are executed with the
multiple sets of input data?

A) Logic controller
B) Pre-processors
C) Parameterization
D) Co

5
Q19. Which of the following is used to specify the number of times a thread will execute the
requests/samplers in the JMeter test plan?

A) Number of threads
B) Ramp-up speed
C) Loop-count
D) Test duration

Q20. Kevin is creating a feature file with multiple scenario. He wants to apply multiple tags to a
scenario. Which of the following best represents the techniques to apply multiple tag names?

Choose the most appropriate options.

A. @Tag1,@Tag2
Scenario: This is login Scenario
B. @Tag1@Tag2
Scenario: This is login Scenario
C. @Tag1|@Tag2
Scenario: This is login Scenario
D. @Tag1&@Tag2
Scenario: This is login Scenario

Q21. Which of the following will control the amount of time Jmeter will execute a test plan?
A) Number of threads
B) Ramp-up period
C) Loop-count
D) Test duration

Q22. Which of the following are BDD practices?


Ans.
A) Exploratory testing
B) Early testing
C) Specification by Example
D) Domain based testing

6
Q24. Which of the below uses concrete examples to illustrate acceptance criteria and behavior
of the software to be made?
A) Specification by Example
B) Structure by Example
C) State by Example

Q25. Which is used to read lines from a file, and split them into variables?
A) CSV data set config
B) HTTP cookie manager
C) Controller
D) Sampler

Q26. What is displayed in the left pane of user interface?

A) Displays the elements used in development


B) Displays the elements used in testing
C) Displays the details of each element
D) Displays transaction details

Q27. Which of the following statements is true about Pre-processors?


I. Pre-processors execute before the sampler requests are executed in the test plan

II. Pre-processors can be used for different performing testing needs such as capturing the response data
or stop the test/thread if the user requests failed.

A) Only I
B) Both I and II
C) Only II
D) None of these

Q28. Which of the following represents a process where samplers are executed with multiple
sets of user input data?
A) Logic controller
B) Pre-processors
C) Parameterization
D) Correlation

7
Q29. Which parameter types in Cucumber Expressions matches text without white space?
Example: banana (but not banana smoothie)
A) {String}
B) {text}
C) {word}
D) {chars}

Q30. Which of the following assertions is not applied in jmeter?


Ans. Web

Q31. Arrange the build trigger process in correct order to achieve continuous testing using
Jenkins.
A) Triggers the build
B) Open reports to see the latest test results
C) Jenkins checks the git repository periodically to detect changes to build project
D) The build is success/failure
E) Tester/developers commits source code changes to the shared git repository
Ans) - ecabd.
e) Testers/Developer commits
c) Jenkins checks the Git repository periodically
a) Trigger the build
b) Open reports to see
d) The build is success/Failure (e,c,a,b,d)

Q32. Which of the following is a post process in JMeter?


Ans. Regular Expression Extractor

Q33. Which assertion is used for pattern strings to be compared against various fields of the
server response?
Ans response assertion

8
Q34. ……………… wants to fetch all the data from the country drop-down menu and verify the
data against ………………….. the data base. He is looking into the library for a method to fetch all
the data from the…………………… drop down box. Which method will help Kevin?
Ans. GetOptions()

Q35. Jack had created the feature file with the below mentioned scenarios as shown below

@smoke
Scenario: This is the first scenario
@crash
Scenario: This is the second scenario

TestRunner class, Jack mentioned @CucumberOptions(tag=("smoke")) . Predict which scenario


is/are gets executed?
A) Executes first scenario
B) Executes second scenario
C) Executes both scenario
D) No scenarios are executed

Q36. Which among the following is determined by the Logic controller?


A) The types of requests that are executed
B) The source of requests that are executed
C) The order in which user request are executed
D) All of the above

Q37. Henry has joined a project team. The team is using the BDD framework for effective
testing. Henry must understand keywords in Cucumber. Which gherkin keyword indicates the
verification/validation steps in a feature file?
Ans. Then

Q38. Emily is executing a JMeter performance test plan using Jenkins. What is the default
format of Source Data Files that is used to publish performance test result reports?
Ans. CSV JTL is correct ans

9
Q39. Which assertion is used to test whether the API server response was received within a
given amount of time or not?
Ans. Duration

Q40. Which controller in JMeter lets you organize the samplers and others logic controllers?
Ans. Logic

Q41. Which of the following performance testing types is used to check the stability of the
software when hardware resources like CPU memory or disk space are not sufficient?
Ans : Stress testing.
Q42. Sean had executed few scenarios through Cucumber Runner class from Eclipse IDE>When
he observed the console output, there were some characters which are not in readable format.
Assist Sean to apply a cucumber option which can format the console output in a readable
format.
Choose the most appropriate option.

A. dryRun=true
B. format=true
C. monochrome=true
D. strict=true

Q43. Harry wants to create a Scenario Outline in the feature file. Which Gherkin keyword he
will use to provide the test data in feature file ?
Ans. Examples

Q44. BDD activity, in general, is a three-step, iterative process. What are these three practices
that are followed in BDD?
Choose the most appropriate option

A. Analysis, Requirements and design


B. Discovery, formulation and automation
C. Discovery, designing and development
D. Designing, discovery and development

10
Q45. Which of the following is not a controller in Jmeter?
Ans. Condition Controller

Q46. Which of the following elements of JMeter executes after the sampler requests are
executed in the test plan?
A) Thread group
B) Samplers
C) Pre-processors
D) Post-processors

Q47. Which of the following ……………. Represents the syntax of using JMeter variables in the
Test Plan?
Ans. $ { Variable Name }

Q48. Which of the following parameters can be configured using a thread group ?
Ans.,

1) Number Threads
2) Ramp-up-period
3) Loop count
4) Schedular: test duration, start-up delay
5) All of the above

Q49. A performance tester wants to record and capture the script for his designed scenario.
Please help him in selecting the element for recording in JMeter?
A) Loop Controller
B) HTTP(s) Test Script Recorder
C) Http Mirror Server
D) Listener

11
Q50. Jean is new to the performance testing team. The team is using JMeter as a performance
testing tool. They are currently performing …………………. Using Response Assertion. Please
……………………………………………………………………………..
Ans. It can assert the test response , response headers
Supports rules like contains, equals, matches and substring
Allow use of AND , NOT OR operators
Custom failure message can be specified

Q51. Which of the following types of applications can be tested using JMeter?
Ans: Rest and SOAP , dashboard UDBC

Q52. Which technique in agile projects focuses on designing automated test scenarios prior to
writing the dev code, to achieve effective product outcomes?
Choose the most appropriate options (options not visible)

Ans- Test Driven Development

Ans. Example Mapping


example mapping is correct

Q53. Which request is used by JMeter for creating scripts using recording proxy?
Ans. HTTP Request

Q54. Which of the following controller loads all the page objects in cucumber?
A) Page Factory
B) Object Repository
C) Object Maps
D) Object Dictionary

12
Q55. Sarah has her code in git local repository, but her team lead pushed the new changes into
the remote repository. Which Git command would you recommend Sarah with new changes
into the working copy?
Ans. Push pull is correct

Q56. How to capture word without whitespace value using cucumber expressions ?
Ans. {Word}

Q57.Which of the following is used to display the results in JMeter ?


Ans. Listeners

Q58. Thread Groups in JMeter denotes:


A) Number of Virtual users
B) Number of Physical/Live Users
C) Number of processes
D) None of the above

Q59.Which of the following is used to display the results of the samples in JMeter ?
Ans. Listeners

Q60. Jack had created the feature file with the below-mentioned scenarios as shown
@Smoke
Scenario: This is the first scenario.
@Crash
Scenario: This is the second scenario.
TestRunner class, Jack mentioned @CucumberOptions(tags={“smoke”}).Predict which scenario
is/are getting executed?
Ans. Executes first scenario NO scenario excuted is correct ans

13
Q61. Harsh has created a scenario for his web application and recorded the script. He was to
debug the script and do enhancement in the recorded script before load testing. Please help
him with the appropriate …………
Ans. View Result Tree

Q65. Sean has written a scenario in the feature file, as shown below:
OTP features
Features: OTP Feature
Scenario: Get OTP to Email
Given the user is on the OTP generation page
When the user enters the emailed as jane@abc.com
And the user enters the first name as jane doe
And the user clicks on the submit button
Then the user receives an information message OTP sent successfully
Ans………

Q66. Lisa is a new joiner to the cucumber project. She was assigned to execute the scenarios
………………. With both OAT & UAT tags. Which of the following will assist Lisa to execute the
desired test scenario using tags from cucumber options?
Ans………………

Q67. Which of the following performance testing types is used to determine the AUT’s behavior
with the expected load conditions for a longer period?
Ans. Endurance testing

14
Q68. Sophie is designing a Test Plan using Apache JMeter. She notices that a dynamic session id
is generated when a user logs into the application. This session id must be passes to the
subsequent requests so that the server can identify the logged-in user and provide relevant
responses. Which of the below concepts represents the above scenario?
A) Dynamic Expression
B) Parameterization
C) Correlation
D) None of the above

Q69. Henery has created a feature file with tagged scenarios. He wants to execute the
scenarios, excluding Severe Tags scenarios. What command should he use in cucumber options
for TestRunner class?
Ans. 1. Tags =’@SevereTag
2. Tags=’#@SevereTag
3. Tags=’@SevereTag’
4.tags=’not@SevereTag

Q70. Sarah would like to generate a dashboard from Jenkins for viewing the cucumber test
results. Which report format/plugin would you recommend Sarah to configure in the Cucumber
Test Runner class to get the dashboard view of test results?
Ans. 1. Html
2. pretty
3. text
4. json

15
Q 71. Sarah has her code in git local repository but her team lead had pushed changes into a
remote repository the . Which git command would you recommend Sarah with new changes into
a working copy?
A) Fetch
B) Get
C) Push
D) Pull

Q 78 Emily is executing a JMeter performance test plan using Jenkins. What is the default format of
Source Data Files that is used to publish performance test result reports?

A) JTL
B) CSV
C) LOG
D) None of the above

Q 82…………. controller in JMeter organize the samplers and other logic controllers?

A) Logic logic is correct ans


B) Simple
C) Transaction
D) Once only

Q83 Samantha has created Feature files in a project. She wants to configure the TestRunner class using
feature file tags. Which of the following is the correct set of assertions to be used in TestRunner?

A. @RunWith
B. @options
C. @CucumberOptions
D. @Runner

Q 86 Sean is creating a build job in Jenkins to trigger……………………………suggested software

A) Add path to system/user environment variables


B) Add path to Global…………………………………….
C) Install plugins from Eclipse…………………..
D) Install plugins from managea plugins in Jenkins

16
1) Jeams created a cucumber maven Project with the following file feature files
TestRunner/CucumberRunner class, and Step Definition class which fig must be by
James in order to run scenario with cucumber optors?
ANS:

Saraha has her code is git local repository but her team lead had pushed the new changes into
remote repository which git command would you recommended saraha get new changes into her
working copy?

ANS: Push pull

2) Henry wants to generate Json report on the execution of Testrunner in cucumber assists
henry with the right option configure for Json reports generation in @CucumberOptions?
ANS:
@CucumberOptions(Plugin={“pretty”,”json:target/results.json”})

3) Sean is creating a build job in Jenkins to trigger the cucumber feature files for achieving the
continuous testing process Assist sean is setting the path for JDK/Git/maven in Jenkins to
identify the proper commands for the build to succeed identify the correct option to set the
path for the above suggested software.
ANS: install plugins form manage plugins in Jenkins

17
4) James wants to design a scenario in a feature file in which the complete scenario runs
multiple times for different data sets suggest James with a GargInki Word to achieve data
driven testing the feature file
choose the correct and most appropriate option
ANS: Use background with

5) which assertions is used for pattern string to be compared against various field of the server
response
choose the most appropriate.
ANS: Response Assertion

6) Kevin is creating feature file with multiple scenarios he wants to apply multiple tags to a
scenario. which of the following best represents the technique to apply multiple tag names?
choose the most appropriate option
ANS: @Tag1 @A2
Scenario This Is Login Scenario-----------------(R)
B. @Tag1@Tag2
Scenario: This is login Scenari
7) which of the following elements of the jmeter helps to validate whether an application is
returning and expected response or not
choose the most appropriate option
ANS: Assertion

8) Thread groups in Jmeter denotes?


ANS: Number of virtual users

9) which assertion is used to test whether the API server response was received within a given
amount of time or not ?
choose most appropriate option
ANS: Duration

18
10) which of the following element of J-Meter helps to validate whether an application is
returning and expected reason or not?
choose most appropriate option.
ANS: Assertions ------------------------(R)

11) which assertion is used for pattern string to be compared against various fields of the server
response ?
Choose most appropriate option.
ANS: Response. --------------------------(R)

12) To execute the cucumber scenario which file are important must be created in maven
Project?
1) Feature file
2) Step definition
3) Selenium code
4) Page classes ----------------------(All ) DOUGHT

13) which of the following is a listener in J-meter?


ANS:
1) Assertoin Result
2) Monitor Result
3) Aggregate Report All of the above is right ans
4) All of the above

14) Which controller in jmeter lets you organise this simple flowers and other logic controllers?
1) Logic
2) Sample Logic is correct ans
3) Transection
4) Only one

15) which of the following is an invalid configuration element in J-meter?


1) CSV Data set config
2) HTTP cookie Manager
3) HTTP Heater manager
4) FTP cookie manager

19
20
21
22
23
24
XML , JSON

25
26
27
step definition,runner,feature

28
HTML,JSON,XML

29
WHEN,BUT,AND

@RUNWITH, @CUCUMBEROPTIONS

30
31

You might also like