Disclaimer: The primary purpose of providing this solution is to assist and support anyone who are unable to complete these courses due to a technical issue or a lack of expertise. This website's information or data are solely for the purpose of knowledge and education.
Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).
Probable JENKINS- Questions Level 2
1) Code coverage analysis is CPU and Memory intensive process which will slow down build completion time. How do you configure code coverage analysis in this scenario?
ANS- Run code coverage analysis in separate build
job after unit and integration test successful.
ANS- Hudson
Selenium
a)
Add
built step to invoke ant and include the
b)
Add
post-build action to publish the test res
c)
Both
the above
d)
Add
HTML scarping and include T
Ans- Both the above
4) How do you configure Jenkins to utilize more memory for running performance tests?
ANS- mention the memory to be used in MAVEN_OPTS field in the build job.
5) How do you configure Jenkins to skip the tests in Junit?
ANS- @ignore
6) What does the code coverage report provide?
ANS- displays the calculated coverage percentage
based on the unit tests written.
ANS- coverage.xml
ANS- Coding
standards coding practices code complexity metric
a)mstest
b)vstest
c)cobertura
d)a and b
ANS- a and b
( mstest and vstest )
10) Name the correct plugin that is used for running static code analysis?
a)checkstyle Maven plugin
b)FindBugs
plugin
c) a and b
d) none of the above
ANS- a and b ( checkstyle Maven plugin and Findbugs
plugin)
ANS- set http proxy connection details
12) Which of the below is used to configure JDK and ANT installations in build job?
ANS-
configure system
ANS- use script console
ANS- JSON
format
ANS- static code
analysis
ANS-
artifactory
ANS- add
clean package for maven build
ANS- Go to the build section and click on Add
Build step? Execute windows batch command.
ANS- add
“******” in Poll SCM option in build triggers
ANS- prepare for shutdown
**************************************************Credit for the above notes, goes to the respective owners.If you have any queries, please feel free to ask on the comment section.If you want MCQs and Hands-On solutions for any courses, Please feel free to ask on the comment section too.