MCQ 4
MCQ 4
MCQ 4
Which Gherkin Keyword is used to create/execute as a common step given for all scenarios in the
feature file?
ANS: BACKGROUND
2. Choose the correct order of the BDD process for test automation.
ANS: CREATE-RUN THE FEATURE FILE TO GENERATE-COPY-DEVELOP- RUN THE FEATURE FILE TO
OBSERVE
3. Sarah wants to create a maven project in Jenkins to trigger the execution of cucumber features.
ANS: ROOT POM, SELECTING GIT, MANUALLY DOWNLOADED
4. which of the following elements of jmeter helps to validate whether an application is returning
an expected response or not?
ANS: ASSERTION
5. Which Assertion is used for the pattern strings to be compared against various fields of the server
response?
ANS: RESPONSE
6. Which among the following is an INVALID controller in Jmeter?
ANS: STATIC CONTROLLER
7. Which of the following is the logical container that contains all the test elements which drive the
performance test?
ANS: TEST PLAN
8. James wants to design a scenario in feature file.
ANS: USE SCENARIO OUTLINE
9. James has created a project with the following file feature files.
ANS: TEST RUNNER CUCUMBER RUNNER CLASS
10. To execute a cucumber scenario, Which files are most important and must be created in the
maven project?
ANS: FEATURE FILE, STEP DEFINITIONS
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?
ANS: LOOP COUNT
12. Which of the following is a listener in JMeter ?
ANS: ASSERTION, MONITOR, AGGREGATE
13. ANS: STAND CONTROLLER
14. Sarah has her code in git local repository.
ANS: PULL
15. Created feature files in a project.
ANS: @RUNWITH, @CUCUMBEROPTIONS
16. Which of the following statements are true about the feature file.
ANS: A FEATURE FILE MAY, FEATURE GHERKIN, THERE CAN BE
17. Which controller in JMETER lets you organize the samplers and other logic controllers?
ANS: SIMPLE
18. Sam Is a software tester who wants to generate an HTML report.
ANS: @CUCUMBEROPTIONS(PLUGIN={“PRETTY”, “HTML REPORT.HTML”})
19. James has written a scenario in the feature file.
ANS: @WHEN(“KEVIN ENTERS QUANTITY AS () ….()”) @THEN(“SHOPPING CART ICON SHOWS ()”).
20. Which of the following is an invalid configuration in JMeter?
ANS: FTP
21. Sarah as an automation test engineer wants to match the Gherkin steps that have an Optional
text by using a cucumber expression. Assist her with the right option.
ANS: ( )
22. Which of the following annotation is used to locate web element(s) as page objects in the page
object model design pattern.
ANS: @FindBy
23. Which of the following Sampler is added to the thread group in order to test REST API from
JMeter?
ANS: HTTP Request
24. Sean is working as an Automation Test Engineer, he had to trigger the project build from the
devops tools like jenkins. Assist him to design the <build> in pom.xml with appropriate plugins.
ANS: maven-surefire-plugin, maven-compiler-plugin
25. Which of the following option is selected from Jenkins add post-build action to generate the
performance report in JTL format?
ANS: Publish performance test result report
26. Which of the following tool is recognized as a performance testing tool from the below-given
options?
ANS: Gatling
27. Which of the following Gherkin keywords are recommended to use in the feature file to
enumerate with successive Given's, When's, Then's.
ANS: And, But
28. Under which of the following element, we can see the option Save Response to a file in oder to
save the reponses for a HTTP Request Sampler in JMeter?
ANS: Listeners
29. Which of the following option is the navigation way/path to add user parameters for an HTTP
Request Sampler using JMeter?
ANS: HTTP Request --> Add --> Pre Processors --> User Parameters
30. Which of the following delimited parameters are used in the Scenario Outline to reference the
headers in the Examples table?
ANS: < >
31. Which of the following represents a process where samplers are executed with multiple sets of
user input data?
Ans Parameterization
32. Kevin is creating a Feature file with multiple scenarios.He wants to …
Ans @tag1 @tag2
Scenario:this is large Scenario
33. Which of the followingwill control the amount of time Jmeter will execute
Ans Test duration
34. which of the below uses concrete examples to illustrate acceptance criteria
Ans state by example
35. which is used to read lones from a file and split them into variables
Ans CSV Data set config
36. What is displayed in the left pane of user interface
Ans Displays the elements used in testing
37. Which of the following statements is true about pre-processors.
Ans only1(PREPROCESSOR EXECUTE BEFORE THE SAMPLERS…)
38. Which of the following represents a process where samplers are executed with multiplesets of
user input data
Ans Parameterization
39. Which parameter types in cucumber expressions matches text without white space
Ans {word}
40. Which of the following will control the amount of time Jmeter will execute a test plan
Ans Test duration
41. Arrange the build trigger process in correct
Ans eacbd EACBD/ecadb
42. Which of the following is a post processor in jmeter
Ans Regular Expression Extractor
43. Jack had created the feature file with the scenario
ANS No scenarios are excuted
44. which among the following is determined by logic controller
Ans The order in which user request is executed
45. Henry has joined a project team the team is using BDD framework for effective testing
Ans Then
46. Which of the following assertion is not applied in jmeter ?
ANS WEB
47. Sean is creating a build job in jenkins to trigger the cucmber feature files….. ?
ANS add path to global configuration/install plugins from manage plugins in jenkins (doubt)
48. He ran the test for 5000 load.
ANS Timer
49. which one of the following is not a controller in jmeter ?
ANS condition controller
50. which of the following performance testing types is used tp check the stability of the software
when hardware substances like CPU are not sufficient ?
ANS Stress testing
51. Which of the following parameters can be configured using a thread group ?
ANS Ramp-up period, test duration, loop count
52. 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.
ANS HTTP(s) Test script recorder
53. 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 none of the above
54. Leo is a new joiner to the cucumber report
ANS C@OAT and @UAT
55. 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
56. Sophie is designing a test plan using Apache JMeter.She notices that a dynamic session…….?
ANS Corelation
57. Henry has created a feature file with tagged scenarios He wants to execute……?
ANS D tags=”not@SevereTag”
58. Harry wants to create a scenario outline in the feature file.
ANS EXAMPLES
59. Henry wants to generate a JSON reports on the execution of testrunner…….?
ANS D (@CucumberOptions(plugin = {“pretty”,”json:target/results.json”]))
60. Sean had execeuted few scenarios through cucumber Runner class from eclipse IDE………?
ANS monochrome=true
61. BDD activity in general is a three step iterative process. What are these three pratices that are
followed in BDD?
ANS Discovery, formulation and automation
62. Sarah would like to generate a dashboard from Jenkins for viewing the cucumber test
results................. ?
ANS Json
63. designed a testplan in Jmeter ...... ?
ANS Extra threads will execute and re-iterate through the values again
64. Which of the following correctly represents the syntax of using Jmeter variables in the test plan ?
ANS A-${Variablename}
65. which assertion is used to test wheter the API server response was received within a given ........ ?
ANS Duration
66. James is new to the performance testing team............. ?
ANS ABCD
67. which of the following types of applications can be tested using JMeter ?
ANS A Web-based applications,web services(Rest and SOAP), Databases(JDBC)
68. Which technique in agile projects focusses on designing automated test scenarios prior to writing
the dev code to achieve effective product outcomes ?
ANS test driven development
69. Which of the following is used to specify the amount of time Jmeter will execute a test plan ?
ANS TEST DURATION
70. Harish has created a scenario for the ......?
ANS View results tree
71. Which of the following elements of JMeter executes after the sampler requests are executed in
the test plan?
ANS Post-processors
72. sarah is designing the object repository framework for test automation using the page object
…………….?
ANS Page factory
73. it is a best practice to execute the jmeter test plan using Non-Jui mode....... ?
ANS jmeter –n – t test.jmx-l testresults.jtl
74. What is displayed in the left pane of user interface ?
ANS Test plan/Displays the elements used in testing
75. 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 ?
ANS listeners
76. which of the following plugin can be used to generate xml reports for the test result using
cucumber options ?
ANS xml
77. Sarah as an automation test engineer wants to match ........... ?
ANS /
78. Which of the below uses concrete examples to illustrate acceptance criteria
ANS Specification by Example
79. Which of the following are BDD practices.
ANS EARLY TESTING
80. Which of the following elements of JMeter executes after the sampler requests are executed in
the test plan.
ANS POST PROCESSORS
81. It is a best practice to execute JMeter test plan using NON GUI MODE
ANS jmeter –n –t Testplan.jmx –l TestResults.jtl
82. Thread groups in JMeter denotes
ANS Number of virtual users
83. Fetch all data from country drop-down menu
ANS Get Optional()
84. Which of the following are parameters of JMeter Thread group
ANS RAMP UP PERIOD
85. Which controller in jmeter allows the samples to execute
multiple times for each user
ANS Loop controller
86.What are the languages supported by web services for data
exchange and communication
ANS XML,Json
87.Jack is designing a test plan in Jmeter and wants to observe
the performance parameters
ANS Summary Report
88.Jack has designed a test plan in jmeter he has recorded a
scenario
ANS response Assertion
89.What is the extension to save Testplan and results in JMeter
ANS Test Plan—jmx
Results--.jtl
90.Kevin has created a Test plan in JMeter and wants to execute
via command line
ANS Jmater-n-t<<name>>
91.James is working on creating a cucumber project and
integrate with selenium web driver commands
ANS Step definition
Runner
Feature
92.James wants to specify the report format for the cucumber
project. Which property can be used to specify the report format
ANS plugin
93.Kevin is preparing a feature file using Gherkin keyword. He
wants to execute a scenario multiple times
ANS Scenario outline
94.What are the various supported formats for generating
reports in cucumber
ANS HTML
JSON
95.Sam is new to cucumber and gherkin keywords.please help
him in identifying valid gherkin keywords
ANS WHEN
BUT
AND
96. what are the required annotations for designing a class that
executes cucumber feature file
ANS @RunWith
@CucumberOptions
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.
A. 1-3-2-4-5
B. 1-3-2-5-4
C. 2-3-1-4-5
D. 2-1-3-4-5
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
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
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.
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?
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
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
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}
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)
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
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
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)
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}
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?
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
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?
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
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
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
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
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.
A. 1-3-2-4-5
B. 1-3-2-5-4
C. 2-3-1-4-5
D. 2-1-3-4-5
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
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
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.
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?
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
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
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}
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)
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
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
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)
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}
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?
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
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?
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
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
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
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
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
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
Ans: b: @Tag1 @Tag2
Scenario: This is Login Scenario
Ans: b: Listeners
Ans: c: Aggregate report
Ans: d: <>
Ans: b: @FindBy
Ans: 1, 3, 4
Ans: a or c
Ans: c: Then
Ans: c: Condition controller
Ans: d: Post-processors
Ans:
Ans: a: Gatling
Ans: a: Listeners
Ans: b: Background
Ans: d: Assertions
Ans: b: Test Plan
Ans: c: Loop-count
Ans: c: Examples
Ans: all
Ans: a: ${variableName}
Ans: a: Feature file, b: Step Definitions
Ans: Option 4: e, c, a, d, b
Ans: c: monochrome=true
Q: Which of the following performance testing types is used to determine the AUT’s behaviour with the expected load
conditions for a longer period?
Ans: d: Endurance Testing
Ans: a: @CucumberOptions(plugin={“pretty”,”html:report.html”})
Ans: a