100% found this document useful (1 vote)
3K views

Cucumber MCQ Final

The document contains questions and answers related to performance testing tools and techniques like Cucumber, JMeter, and Jenkins. Some key topics covered include using Cucumber keywords like Background and Scenario Outline, important files needed for Cucumber execution, JMeter controllers, samplers, listeners and their functions, building projects with Maven and triggering them from Jenkins, and generating different types of reports from test runs.

Uploaded by

SRISHTI MALHOTRA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
3K views

Cucumber MCQ Final

The document contains questions and answers related to performance testing tools and techniques like Cucumber, JMeter, and Jenkins. Some key topics covered include using Cucumber keywords like Background and Scenario Outline, important files needed for Cucumber execution, JMeter controllers, samplers, listeners and their functions, building projects with Maven and triggering them from Jenkins, and generating different types of reports from test runs.

Uploaded by

SRISHTI MALHOTRA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 37

1.

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.

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 [email protected]
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