<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ci on Jamkey</title><link>https://jamkey.fr/tags/ci/</link><description>Recent content in Ci on Jamkey</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Fri, 27 Nov 2026 18:02:59 +0100</lastBuildDate><atom:link href="https://jamkey.fr/tags/ci/index.xml" rel="self" type="application/rss+xml"/><item><title>Technical test strategy</title><link>https://jamkey.fr/technical-test-strategy/</link><pubDate>Tue, 19 Jan 2016 00:00:00 +0000</pubDate><guid>https://jamkey.fr/technical-test-strategy/</guid><description>&lt;img src="https://jamkey.fr/images/technical-test.jpg" alt="Featured image of post Technical test strategy" /&gt;&lt;p&gt;&lt;strong&gt;Automated test strategy&lt;/strong&gt; is one the &lt;strong&gt;key factors&lt;/strong&gt; of technical tests. Its visibility make the tests part of the development process.Without goals, roles, tools, requirements, scheduling… the automated tests are forgotten deep in the versioning system…&lt;/p&gt;
&lt;p&gt;As written in the ISTQB Exam Certification:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The choice of test approaches or test strategy is one of the most powerful factor in the success of the test effort and the accuracy of the test plans and estimates. This factor is under the control of the testers and test leaders.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;By describing, managing and tooling-up the different automated tests you will define your strategy.&lt;/p&gt;
&lt;p&gt;This global strategy page gives main clues to manage your technical test strategy.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To have a relevant test strategy make it visible.&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id="what-is-a-test-strategy"&gt;What is a test strategy?
&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;A&lt;/strong&gt; &lt;strong&gt;test strategy&lt;/strong&gt; is an outline that describes the testing approach of the &lt;a class="link" href="https://en.wikipedia.org/wiki/Software_development_process" title="Software development process"
 target="_blank" rel="noopener"
 &gt;software development cycle&lt;/a&gt;. It is created to inform project managers, testers, and developers about some key issues of the testing process. This includes the testing objective, methods of testing new functions, total time and resources required for the project, and the testing environment.&lt;/p&gt;
&lt;p&gt;Test strategies describe &lt;strong&gt;how the product risks of the stakeholders are mitigated at the test-level, which types of testing are to be performed, and which entry and exit criteria apply&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;They are created based on development design. System design is primarily used and occasionally, conceptual design may be referred to. Design documents describe the functionality of the software to be enabled in the upcoming release. For every stage of development design, a corresponding test strategy should be created to test the new feature sets.&lt;/p&gt;
&lt;p&gt;The test strategy describes the test level to be performed. There are primarily three levels of testing: &lt;strong&gt;unit testing&lt;/strong&gt;, &lt;strong&gt;integration testing&lt;/strong&gt;, and &lt;strong&gt;system testing&lt;/strong&gt; as you can read in the &lt;strong&gt;&lt;a class="link" href="http://www.jamkey.fr/automated-test-classification/" target="_blank" rel="noopener"
 &gt;Automated test classification&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In most software development organizations, individual testers or test teams are responsible for integration and system testing when dealing with&lt;strong&gt;functional behavior&lt;/strong&gt;. Here we speak more of Acceptance tests or Functionnal tests (for example based on HP QC and executed with UFT (ex QTP).&lt;/p&gt;
&lt;p&gt;The developers and test experts are responsible for automated tests on unit testing, integration testing, system testing.&lt;/p&gt;
&lt;h3 id="test-classification"&gt;Test classification
&lt;/h3&gt;&lt;p&gt;The automated tests should first be classified in order to be used and integrated into a industrialized process. Please look at the test classification page: &lt;strong&gt;&lt;a class="link" href="https://jamkey.fr/automated-test-classification" &gt;Automated test classification&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="test-classification" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://jamkey.fr/images/technical-test/test-classification.png"&gt;&lt;/p&gt;
&lt;h3 id="lack-of-test-strategy-issues"&gt;Lack of test strategy issues
&lt;/h3&gt;&lt;p&gt;The common issues with automated tests are not associated to technical problems or the choices of tools, but resides especially in its &lt;strong&gt;non-visibility&lt;/strong&gt;.&lt;br&gt;
When the added value of technical tests is not visible, the organisation will give advantage on more « quantifiable tests » (like functional tests or performance tests) and give-up on technical ones (unit, integration…).&lt;/p&gt;
&lt;p&gt;For example, the functional tests are easily quantifiable: dedicated “testing” teams, based on the requirements, test plan in QC, instrumentalisation by UFT (ex QTP) by VB script.&lt;br&gt;
This way, it is easier to give budget to: handle, manage and implement functional tests.&lt;/p&gt;
&lt;p&gt;Technical tests remain with the costs of the developers. Because very often, one will say the developers “will make the unit tests” but without real requirements or strategy.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Agile projects and using the BDD reverses this trend&lt;/strong&gt; by bringing closer the Dev and Test teams. Especially when requiring the developers to implement the acceptance tests.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;By making the technical tests part of the test strategy, we will improve their development requirements and make them more relevant.&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id="set-up-a-test-strategy"&gt;Set up a test strategy
&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;The goals to define a test strategy are the following:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Goals&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Application &lt;strong&gt;coverage&lt;/strong&gt; objectives&lt;/li&gt;
&lt;li&gt;Set-up a test &lt;strong&gt;maintenance&lt;/strong&gt; plan&lt;/li&gt;
&lt;li&gt;Have a source code &lt;strong&gt;health feedback&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Use tests as &lt;strong&gt;delivery acceptation&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Verify features &lt;strong&gt;non-regression&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Maintain source code &lt;strong&gt;knowledge&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="automated-test-strategy-steps"&gt;Automated test strategy steps
&lt;/h3&gt;&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th style="text-align: center"&gt;Step&lt;/th&gt;
 &lt;th style="text-align: center"&gt;Description&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Define Scope and Technology&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Define perimeter to test (Backend, Front, Data, Integration, Middleware… What technology is involved (Java backend, Java Web, front JS, Mobile iOS…) Roles and Responsibilities of test leader, individual testers, project manager&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Define Test Approach&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Choose by what type of test starting Use Test classification Unit Testing Integration Testing System Testing What relevant coverage is expected ? What test volume is expected ?&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Choose a test development methodology&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Technical requirements Requirements specifications Requirements traceability matrix Test priorities While testing software projects, certain test cases will be treated as the most important ones and if they fail, the product cannot be released. Choose methodology (eg.: BDD) Batch mode execution Execute in continuous integration Execution scheduling A test plan should make an estimation of how long it will take to complete the testing phase. Mock policy&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Identify risks and mitigation&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Risk occurence anticipation : Any risks that will affect the testing process must be listed along with the mitigation&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Define Test environment&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Hardware requirements Middleware requirements Workstation needs Environment provisioning&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Choose Testing tools&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Test framework which suit development technologies Test orchestration Integration with continuous integration Integration with delivery process Tests record and reporting&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Define Execution and release control&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Execute automated tests plan according to release control Use test plan to validate release Use test plan in a promotion process Regression test approach Regression tests will make sure that one fix does not create some other problems in that program or in any other interface&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Defect reporting and tracking&lt;/td&gt;
 &lt;td style="text-align: center"&gt;How the test result is reported Change and configuration management&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Set-up Reviews and updates&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Review the test strategy after milestones Update the test strategy according to feedbacks&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="test-strategy-life-cycle"&gt;Test strategy life-cycle
&lt;/h3&gt;&lt;p&gt;&lt;img alt="test-strategy-life-cycle" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://jamkey.fr/images/technical-test/test-strategy-life-cycle.jpg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(Test Strategy in STLC)&lt;/em&gt;&lt;/p&gt;
&lt;h2 id="external-links"&gt;External Links
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;ISTQB Exam Certification on Test Strategy
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="http://istqbexamcertification.com/what-are-the-test-approaches-or-strategies-in-software-testing/" target="_blank" rel="noopener"
 &gt;http://istqbexamcertification.com/what-are-the-test-approaches-or-strategies-in-software-testing/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Agile Test Strategy Example Template
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="http://www.testingexcellence.com/agile-test-strategy-example-template/" target="_blank" rel="noopener"
 &gt;http://www.testingexcellence.com/agile-test-strategy-example-template/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Test strategy Wikipedia
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="https://en.wikipedia.org/wiki/Test_strategy" target="_blank" rel="noopener"
 &gt;https://en.wikipedia.org/wiki/Test_strategy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Software testing help
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="http://www.softwaretestinghelp.com/writing-test-strategy-document-template/" target="_blank" rel="noopener"
 &gt;http://www.softwaretestinghelp.com/writing-test-strategy-document-template/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;BDD Guidelines and Best Practices
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="http://www.testingexcellence.com/bdd-guidelines-best-practices/" target="_blank" rel="noopener"
 &gt;http://www.testingexcellence.com/bdd-guidelines-best-practices/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Bach, James (1999). &lt;a class="link" href="http://www.satisfice.com/presentations/strategy.pdf" target="_blank" rel="noopener"
 &gt;« Test Strategy »&lt;/a&gt; (PDF).&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Automated test classification</title><link>https://jamkey.fr/automated-test-classification/</link><pubDate>Tue, 12 May 2015 00:00:00 +0000</pubDate><guid>https://jamkey.fr/automated-test-classification/</guid><description>&lt;img src="https://jamkey.fr/images/automated-tests.jpg" alt="Featured image of post Automated test classification" /&gt;&lt;p&gt;The technical automated tests should be categorized in a way that the build management system can execute each category on dependent development phases.Continuous Integration focus mainly on development tests which are automated.&lt;br&gt;
According to standards we can split tests in 3 main categories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unit testing : test component without external interactions (for example, no access to external system or databases)&lt;/li&gt;
&lt;li&gt;Integration testing: test the components with interactions&lt;/li&gt;
&lt;li&gt;System testing: test application as a whole&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each test categories contain many test types. Is it important to identify these categories in order to automate, execute them and finally use them as a core of &lt;strong&gt;Test Policy Development&lt;/strong&gt;.&lt;/p&gt;
&lt;h1 id="automated-tests-incontinuous-integration"&gt;Automated tests in Continuous Integration
&lt;/h1&gt;
 &lt;blockquote&gt;
 &lt;p&gt;« Program testing can be a very effective way to show the presence of bugs, but it is hopelessly inadequate for showing their absence. »&lt;/p&gt;
&lt;p&gt;— Edsger W. Dijkstra (Turing price 1972)&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;h2 id="bugs-have-a-price"&gt;Bugs have a price
&lt;/h2&gt;&lt;p&gt;&lt;img alt="bugs-prices" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://jamkey.fr/images/automated-tests/bugs-prices.png"&gt;&lt;/p&gt;
&lt;p&gt;The cost of bug fixing increase when discovered lately of the development phase.&lt;/p&gt;
&lt;h2 id="automated-tests-benefits"&gt;Automated tests benefits
&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Cost&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Developing relevant automated test decrease cost of bugs of 97%&lt;/li&gt;
&lt;li&gt;Reduce cost of functional or acceptance tests which can focus on relevant test cases&lt;/li&gt;
&lt;li&gt;Optimize maintenance cost and time&lt;/li&gt;
&lt;li&gt;Optimize TCO (total cost of ownership)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Quality&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Reduce technical debt&lt;/li&gt;
&lt;li&gt;They reduce risks of delivery failure&lt;/li&gt;
&lt;li&gt;Increase source code quality&lt;/li&gt;
&lt;li&gt;Increase trust on development process&lt;/li&gt;
&lt;li&gt;Ensure better roadmap follow-up&lt;/li&gt;
&lt;li&gt;Time to market (identify and correct bug earlier)&lt;/li&gt;
&lt;li&gt;Improve test capacity (other type of tests)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="automated-tests-incontinuous-integration-1"&gt;Automated tests in Continuous Integration
&lt;/h2&gt;&lt;p&gt;Why Do Automated Testing?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Avoid &lt;strong&gt;regressions&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Allow systems/applications to continue to change without &lt;strong&gt;long « testing » phases&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Finding defects and problems &lt;strong&gt;earlier and faster&lt;/strong&gt; (local run and CI)&lt;/li&gt;
&lt;li&gt;Ensure external integration points are &lt;strong&gt;working&lt;/strong&gt; and continue to work as expected&lt;/li&gt;
&lt;li&gt;Ensure the user can interact with the system &lt;strong&gt;as expected&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Help&lt;/strong&gt; debugging / writing / designing code&lt;/li&gt;
&lt;li&gt;Help specify the &lt;strong&gt;behaviour&lt;/strong&gt; of the system&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Overall : increase project delivery speed and trust with built-in quality&lt;/p&gt;
&lt;h2 id="strategy-and-scope"&gt;Strategy and scope
&lt;/h2&gt;&lt;p&gt;Continuous Integration is targeting automated tests during the &lt;strong&gt;development phase&lt;/strong&gt;.&lt;br&gt;
Which means these tests:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Are held and managed by the &lt;strong&gt;developers&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Can be executed &lt;strong&gt;locally&lt;/strong&gt; (developer workspace) and in &lt;strong&gt;continuous integration&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Are used by the developer to &lt;strong&gt;help&lt;/strong&gt; him developing new application features&lt;/li&gt;
&lt;li&gt;Improved &lt;strong&gt;trust&lt;/strong&gt; in source code quality&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Continuous Integration will not address tests other than development ones.&lt;br&gt;
But other types of automated tests can be included in continuous integration.&lt;br&gt;
Testing team should be involved into automated test to capitalize relevant scenario and enrich non-regression.&lt;/p&gt;
&lt;h2 id="tests-scope"&gt;Tests scope
&lt;/h2&gt;&lt;p&gt;Continuous Integration actions focus on the development phase of the application&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Inputs are mainly specifications/design&lt;/li&gt;
&lt;li&gt;After, the delivery validation phase like &lt;em&gt;acceptance tests&lt;/em&gt; are engaged&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt="tests-scope" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://jamkey.fr/images/automated-tests/tests-scope.png"&gt;&lt;/p&gt;
&lt;h2 id="tests-in-continuous-integration"&gt;Tests in Continuous Integration
&lt;/h2&gt;&lt;p&gt;&lt;img alt="tests-in-ci" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://jamkey.fr/images/automated-tests/tests-in-ci.png"&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;In development phase, tests are used mainly to ensure &lt;strong&gt;no regressions&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Automated test process of Continuous Integration is separated in 3 main steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unit testing&lt;/li&gt;
&lt;li&gt;Integration testing&lt;/li&gt;
&lt;li&gt;System testing&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Each phase are &lt;strong&gt;automated&lt;/strong&gt; and executed by &lt;strong&gt;continuous integration&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;em&gt;Automated Installation&lt;/em&gt; is a mandatory phase to execute System Tests&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="tests-classification"&gt;Tests classification
&lt;/h1&gt;
 &lt;blockquote&gt;
 &lt;p&gt;« Testing, is being uncertain. »&lt;/p&gt;
&lt;p&gt;— Anonymous&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;h2 id="testing-an-application"&gt;Testing an application
&lt;/h2&gt;&lt;p&gt;&lt;img alt="tests-in-app" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://jamkey.fr/images/automated-tests/tests-in-app.png"&gt;&lt;/p&gt;
&lt;p&gt;A given application can tested in various ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unit tests check specific section of code (Mocks can be used to isolate components)&lt;/li&gt;
&lt;li&gt;Integration tests check components interactions&lt;/li&gt;
&lt;li&gt;System tests see the application as a whole&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="automated-test-classification"&gt;Automated test classification
&lt;/h2&gt;&lt;p&gt;Test automation can be separated into 3 categories&lt;br&gt;
They have different characteristics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Technical constraints&lt;/li&gt;
&lt;li&gt;Environment scope&lt;/li&gt;
&lt;li&gt;Execution speed requirements&lt;/li&gt;
&lt;li&gt;Autonomy&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Some tests used direct API of the source code, others use interface (UI, services…)&lt;/p&gt;
&lt;p&gt;&lt;img alt="test-classification" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://jamkey.fr/images/automated-tests/test-classification.png"&gt;&lt;/p&gt;
&lt;p&gt;Even if categories are strict in order to identify tests constraints, but:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Reusability of tests in different categories is possible (specially dealing with API)&lt;/li&gt;
&lt;li&gt;Architecture can bring to adapt categories to technical needs (for example making performance tests on Services…)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="unit-testing"&gt;Unit testing
&lt;/h2&gt;&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th style="text-align: center"&gt;Definition (from ISTQB and IEEE 610)&lt;/th&gt;
 &lt;th&gt;The testing of individual software components or groups of related units.&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Features&lt;/td&gt;
 &lt;td&gt;Unit testing refers to tests that verify the functionality of a specific section of code, usually at the function or class level. In an object-oriented environment, this is usually at the class level, and the minimal unit tests include the constructors and destructors. So it means that we have to shunt all the external interactions thanks to stubs or mocks.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Constraints&lt;/td&gt;
 &lt;td&gt;Isolated from external component (database, system, other services…) to avoid non-deterministic behavior Can be run without any specific environment resources&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;ROI&lt;/td&gt;
 &lt;td&gt;Unit tests improves QA and the ROI because its aims are: Eliminating construction errors before code is promoted to QA (efficient non regression test) Detecting easily in which component the problem is when there is a production issue Low maintenance issues, because tight to source code API&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Cost&lt;/td&gt;
 &lt;td&gt;Fast development (especially when written during development). Maintenance make easier by API reference (the IDE will show you differences, and the compilation validate methods signatures).&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Environment&lt;/td&gt;
 &lt;td&gt;Fast execution. Only needs unit test framework (like JUnit) and JVM. Execution limited to JVM (no external components like database).&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Types&lt;/td&gt;
 &lt;td&gt;Component tests are test cases and suite which use application API Mock tests are also Component tests which use Test doubles (mocks) to simulate internal or external components&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="unit-test-definition"&gt;Unit test definition
&lt;/h3&gt;&lt;p&gt;According to Roy Osherove:&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A unit test is an automated piece of code that invokes a unit of work in the system and then checks a single assumption about the behavior of that unit of work.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A unit of work is a single logical functional use case in the system that can be invoked by some public interface (in most cases). A unit of work can span a single method, a whole class or multiple classes working together to achieve one single logical purpose that can be verified.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A good unit test is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Able to be fully automated&lt;/li&gt;
&lt;li&gt;Has full control over all the pieces running (Use mocks or stubs to achieve this isolation when needed)&lt;/li&gt;
&lt;li&gt;Can be run in any order if part of many other tests&lt;/li&gt;
&lt;li&gt;Runs in memory (no DB or File access, for example)&lt;/li&gt;
&lt;li&gt;Consistently returns the same result (You always run the same test, so no random numbers, for example. save those for integration – or range tests)&lt;/li&gt;
&lt;li&gt;Runs fast&lt;/li&gt;
&lt;li&gt;Tests a single logical concept in the system&lt;/li&gt;
&lt;li&gt;Readable&lt;/li&gt;
&lt;li&gt;Maintainable&lt;/li&gt;
&lt;li&gt;Trustworthy (when you see its result, you don’t need to debug the code just to be sure)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I consider any test that doesn’t live up to all these as an integration test and put it in its own « integration tests » project.&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Unit test should focus on :&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Readability (test one thing, meaningful message, naming convention…)&lt;/li&gt;
&lt;li&gt;Maintainability (isolated, good mock management, state-based…)&lt;/li&gt;
&lt;li&gt;Trust (separated from integration tests, use fixed values…)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="unit-test-isolation"&gt;Unit Test isolation
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;When communicating with the collaborators is awkward (such as a remote credit card verification system) the testing unit &lt;strong&gt;should be isolated by mocks&lt;/strong&gt; when relevant&lt;/li&gt;
&lt;li&gt;If you follow the principle of collaborator isolation you don’t want to use the real product or customer classes here, because a fault in the customer class would cause the order class’s tests to fail. Instead you use &lt;em&gt;Mock / TestDoubles&lt;/em&gt; for the collaborators to avoid non-deterministic behavior.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Mocking the collaborators is not a mandatory and systematic pattern: it should be used when &lt;strong&gt;relevant&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unit test autonomy&lt;/li&gt;
&lt;li&gt;Complexity of environment&lt;/li&gt;
&lt;li&gt;Remote services resulting into non-determinist test&lt;/li&gt;
&lt;li&gt;Speed requirement&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One typical use case is the « In Memory Database » which can be used by Unit Tests as a &lt;em&gt;fake database&lt;/em&gt;. When switching in real database, the &lt;strong&gt;same tests&lt;/strong&gt; can be used also as Integration Tests.&lt;/p&gt;
&lt;p&gt;&lt;img alt="unit-test-isolation" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://jamkey.fr/images/automated-tests/unit-test-isolation.png"&gt;&lt;/p&gt;
&lt;h3 id="mock--test-double"&gt;Mock / Test double
&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Dummy&lt;/strong&gt; objects are passed around but never actually used. Usually they are just used to fill parameter lists.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fake&lt;/strong&gt; objects actually have working implementations, but usually take some shortcut which makes them not suitable for production (an InMemoryTestDatabase is a good example).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Stubs&lt;/strong&gt; provide canned answers to calls made during the test, usually not responding at all to anything outside what’s programmed in for the test.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Spies&lt;/strong&gt; are stubs that also record some information based on how they were called. One form of this might be an email service that records how many messages it was sent.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mocks&lt;/strong&gt; are pre-programmed with expectations which form a specification of the calls they are expected to receive. They can throw an exception if they receive a call they don’t expect and are checked during verification to ensure they got all the calls they were expecting.&lt;/p&gt;
&lt;h2 id="integration-testing"&gt;Integration testing
&lt;/h2&gt;&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th style="text-align: center"&gt;Definition (from ISTQB)&lt;/th&gt;
 &lt;th&gt;Testing performed to expose defects in the interfaces and in the interactions between integrated components or systems.&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Features&lt;/td&gt;
 &lt;td&gt;Integration testing is any type of software testing that seeks to verify the interfaces between components against a software design. External interactions are effectives when relevant (no stub nor mocks).&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Constraints&lt;/td&gt;
 &lt;td&gt;External components available and fill with test data (database, system, other services…) Interconnection set-up between application and external components&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;ROI&lt;/td&gt;
 &lt;td&gt;Very efficient non regression test. Give feedback on integration issues. Tight to application services. Can reuse unit tests code when relevant (unmocked). Integration tests improve the components’ integration : They allow interfaces’ issues to be located more quickly and fixed. Detecting easily between which component the problem is when there is a production issue&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Cost&lt;/td&gt;
 &lt;td&gt;Maintenance make easier when using API reference. Can be more difficult when dealing with external components dependencies.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Environment&lt;/td&gt;
 &lt;td&gt;Potentially slow execution. Needs test framework (like JUnit), JVM and external component availability.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Types&lt;/td&gt;
 &lt;td&gt;Service test: tests calling application services from external layer (ex.: Webservice calls) API test: tests calling application services directly by API calls&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;

 &lt;blockquote&gt;
 &lt;p&gt;Note: When relevant, some unit test could be reused for integration test&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;h3 id="integration-test-definition"&gt;Integration test definition
&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Definition&lt;/strong&gt;:&lt;br&gt;
Integration testing is testing a unit of work &lt;strong&gt;without having full control&lt;/strong&gt; over all of it and using one or more of its &lt;strong&gt;real dependencies&lt;/strong&gt;, such as time, network, database, threads, random number generators, and so on&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Integration test:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;can run slower&lt;/li&gt;
&lt;li&gt;are separated to the unit tests&lt;/li&gt;
&lt;li&gt;put them in their own « integration tests » or « test » &lt;strong&gt;project&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;can also be written with &lt;strong&gt;Junit&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="system-testing"&gt;System testing
&lt;/h2&gt;&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th style="text-align: center"&gt;Definition (from ISTQB)&lt;/th&gt;
 &lt;th&gt;The process of testing an integrated system to verify that it meets specified requirements.&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Features&lt;/td&gt;
 &lt;td&gt;System testing, or end-to-end testing, tests a completely integrated system to verify that it meets its requirements. All the external interactions might be effectives (no stub nor mocks). For example, a system test might involve testing a logon interface, then creating and editing an entry, plus sending or printing results, followed by summary processing or deletion (or archiving) of entries, then logoff.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Constraints&lt;/td&gt;
 &lt;td&gt;External component available and fill with test data (database, system, other services…) Interconnection between application and external components set-up Application globally installed and available for client interaction Should be monitored in order to have feedback&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;ROI&lt;/td&gt;
 &lt;td&gt;System tests improve the requirements’ matching: They allow requirement matching issues to be detected more quickly and fixed Detecting easily which part of the system doesn’t allow to match the requirements Very efficient non regression test. Give feedback on global integration, performance and features behavior issues.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Cost&lt;/td&gt;
 &lt;td&gt;Heavy cost of set-up and maintenance: any changes on the application affecting the HMI, use cases or scenario expect tests updates.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Environment&lt;/td&gt;
 &lt;td&gt;Slow execution. Needs UI test and all application parts installed and available.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Types&lt;/td&gt;
 &lt;td&gt;Smoke test: preliminary testing to reveal simple fatal failures UI test: simulation of the HMI based on scenario Unit-performance test: load test behavior and measure performance&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;

 &lt;blockquote&gt;
 &lt;p&gt;Note: When relevant, system test could be executed in an embedded container&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;h3 id="system-test-ecosystem"&gt;System test ecosystem
&lt;/h3&gt;&lt;p&gt;System testing are all tests that consider the software as a whole&lt;/p&gt;
&lt;p&gt;A lot of different test can be associated to system testing:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Graphical user interface testing&lt;/li&gt;
&lt;li&gt;Usability testing&lt;/li&gt;
&lt;li&gt;Software performance testing&lt;/li&gt;
&lt;li&gt;Compatibility testing&lt;/li&gt;
&lt;li&gt;Exception handling&lt;/li&gt;
&lt;li&gt;Load testing&lt;/li&gt;
&lt;li&gt;Volume testing&lt;/li&gt;
&lt;li&gt;Stress testing&lt;/li&gt;
&lt;li&gt;Security testing&lt;/li&gt;
&lt;li&gt;Scalability testing&lt;/li&gt;
&lt;li&gt;Sanity testing&lt;/li&gt;
&lt;li&gt;Smoke testing&lt;/li&gt;
&lt;li&gt;Exploratory testing&lt;/li&gt;
&lt;li&gt;Ad hoc testing&lt;/li&gt;
&lt;li&gt;Regression testing&lt;/li&gt;
&lt;li&gt;Installation testing&lt;/li&gt;
&lt;li&gt;Recovery testing and failover testing.&lt;/li&gt;
&lt;li&gt;Accessibility testing&lt;/li&gt;
&lt;li&gt;…&lt;/li&gt;
&lt;/ul&gt;

 &lt;blockquote&gt;
 &lt;p&gt;System testing expect to have an installed software : installation automation is mandatory when expecting System Testing automation.&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;h3 id="smoke-test"&gt;Smoke test
&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;The Smoke Test is the most basic System testing:&lt;/strong&gt;&lt;br&gt;
A subset of all defined/planned test cases that cover the main functionality of a component or system, to ascertaining that the most crucial functions of a program work, but not bothering with finer details.&lt;/p&gt;
&lt;p&gt;A daily build and smoke test is among industry best practices. Smoke testing is also done by testers before accepting a build for further testing.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Microsoft claims that after code reviews, « smoke testing is the most cost-effective method for identifying and fixing defects in software ».&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the case of automated tools, the smoke tests are often initiated by the same process that generates the build itself.&lt;/p&gt;
&lt;h3 id="installation-test"&gt;Installation test
&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Installation testing&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Quality assurance work that focuses on what customers will need to do to install and set up the new software successfully. The testing process may involve full, partial or upgrades install/uninstall processes.&lt;/li&gt;
&lt;li&gt;Installation test execute installation of the application (with configuration, unit of delivery) on a target environment. The goal is to control the installation procedure and have an available application for other tests.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Constraints&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Manage generic portable application configuration&lt;/li&gt;
&lt;li&gt;Write scripts or use tools to automate installation of all the parts of the application in batch mode&lt;/li&gt;
&lt;li&gt;Setup an orchestration mechanism through continuous integration to run through installation and analyse potential issues&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Benefits&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Integrate installation automation will bring a lot test capacities automation (performance, HMI, service…), reduce manual errors and installation time, ensure repeatability and provides industrialization capacity to the release process. And above all bring control on installation procedure.&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="test-development"&gt;Test development
&lt;/h1&gt;
 &lt;blockquote&gt;
 &lt;p&gt;The pupil asked the master programmer:&lt;br&gt;
« When can I stop writing tests? »&lt;/p&gt;
&lt;p&gt;The master answered:&lt;br&gt;
« When you stop writing code. »&lt;/p&gt;
&lt;p&gt;— &lt;a class="link" href="https://jamkey.fr/testivus" &gt;The way of Testivus&lt;/a&gt;&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;h2 id="test-development-needs"&gt;Test development needs
&lt;/h2&gt;&lt;p&gt;Test development should be based on &lt;strong&gt;requirements&lt;/strong&gt; and architecture needs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Sensible components should have detailed tests&lt;/li&gt;
&lt;li&gt;Tests should be developed depending of architecture : for example, JavaScript application will need more UI tests&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Cost&lt;/strong&gt; of test development and maintenance should not be underestimated (in particular when changing API and HMI)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Development of high-level tests like System Tests are sensible to application modification&lt;/li&gt;
&lt;li&gt;Give advantage to API test (unit or integration) when refactoring (interesting for Agile development)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tests can be &lt;strong&gt;reused&lt;/strong&gt; on different categories changing configuration (in some cases, unit test can be reused in integration)&lt;/p&gt;
&lt;p&gt;Test &lt;strong&gt;coverage should used carefully&lt;/strong&gt; and when misunderstood could bring to &lt;strong&gt;useless&lt;/strong&gt; tests development (ex.: testing getter-setter is often useless)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Test coverage should be used on sensible and complex component or class&lt;/li&gt;
&lt;li&gt;A test coverage strategy should be set-up early (for example, during conception/architecture reviews/audit) to specify coverage expectations on sensible classes/methods&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In &lt;strong&gt;Agile&lt;/strong&gt; development, the automated tests (in particular unit test and integration tests) are developed very early&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Methods like TDD (Test Driven Development), BDD (Behavior Driven Development) expect an essential role of the automated tests&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="tests-expectations-examples"&gt;Tests expectations examples
&lt;/h2&gt;&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th style="text-align: center"&gt;&lt;/th&gt;
 &lt;th style="text-align: center"&gt;Unit testing&lt;/th&gt;
 &lt;th style="text-align: center"&gt;Integration testing&lt;/th&gt;
 &lt;th style="text-align: center"&gt;System testing&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Development goal&lt;/td&gt;
 &lt;td style="text-align: center"&gt;To verify component behavior. Mock should be used when relevant to avoid integration issues and non deterministic behavior.&lt;/td&gt;
 &lt;td style="text-align: center"&gt;To verify services behavior and integration. Component should be un-mocked.&lt;/td&gt;
 &lt;td style="text-align: center"&gt;To verify scenario validity, performance expectation, installation capacity.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Environment requirement&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Minimal container and dependencies, mandatory autonomy (ex.: no database dependency). Avoid non-deterministic behavior.&lt;/td&gt;
 &lt;td style="text-align: center"&gt;External components available and accessible from application&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Available environment, test resources and dependencies. Application fully installed with external components, available by UI.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Example of tools and frameworks&lt;/td&gt;
 &lt;td style="text-align: center"&gt;JUnit, H2 and HSQLDB (embedded database), Mockito&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Junit, JMeter&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Selenium, Jmeter, UFT&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Executed by continuous integration&lt;/td&gt;
 &lt;td style="text-align: center"&gt;YES&lt;/td&gt;
 &lt;td style="text-align: center"&gt;YES&lt;/td&gt;
 &lt;td style="text-align: center"&gt;YES&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Execution speed&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Very fast (less than 10 minutes)&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Slow (more than 10 minutes)&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Very Slow&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: center"&gt;Regularity of execution&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Very often (several times a day), associated to code updates&lt;/td&gt;
 &lt;td style="text-align: center"&gt;Often (1 per day)&lt;/td&gt;
 &lt;td style="text-align: center"&gt;At night (1 per day)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="automated-tests-pyramid"&gt;Automated tests pyramid
&lt;/h2&gt;&lt;p&gt;&lt;img alt="tests-pyramid" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://jamkey.fr/images/automated-tests/tests-pyramid.png"&gt;&lt;/p&gt;
&lt;p&gt;Test pyramid well known in Agile development. Based on test development/maintenance cost and efficient regression detectionTest pyramid expects to have many more low-level unit tests than high level end-to-end testsHigh-level tests are there as a second line of test defenseShould be used when relevant&lt;/p&gt;
&lt;h2 id="test-and-build"&gt;Test and build
&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Build verification test (from ISTQB):&lt;/strong&gt;&lt;br&gt;
A set of automated tests which validates the integrity of each new build and verifies its key/core functionality, stability and testability. It is an industry practice when a high frequency of build releases occurs (e.g., agile projects) and it is run on every new build before the build is released for further testing.&lt;/p&gt;
&lt;p&gt;Automated tests should be executed by all ways possible : IDE, build tools, continuous integration…&lt;/p&gt;
&lt;p&gt;Tests categories should be identified through the build tool :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For example, Maven should be able to select/avoid tests categories (execute only unit tests, or unit tests with integration tests…)&lt;/li&gt;
&lt;li&gt;Build should be able to reused unit test source for integration test when relevant for integration testing (by managing mock profile for example)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tests categories should have localisation pattern with the source code:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unit tests should be near the code to test (for example, src/test/java according to Maven convention)&lt;/li&gt;
&lt;li&gt;When relevant separate integration and system tests from tested components: put them in a ‘test’ component. The component could even be delivered.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Execution methods should be able to execute each categories of test separately or at the same time:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For example, Jenkins jobs should be able to execute only unit tests, or unit tests and integration tests…&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="see-also"&gt;See also
&lt;/h1&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="https://wikinet.group.echonet/display/DFDT/ID07&amp;#43;-&amp;#43;Continuous&amp;#43;Development&amp;#43;Unit&amp;#43;Testing" title="ID07 - Continuous Development Unit Testing"
 target="_blank" rel="noopener"
 &gt;ID07 – Continuous Development Unit Testing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="link" href="https://wikinet.group.echonet/display/DFDT/ID13&amp;#43;-&amp;#43;Critical&amp;#43;Interoperability&amp;#43;Application&amp;#43;Testing" title="ID13 - Critical Interoperability Application Testing"
 target="_blank" rel="noopener"
 &gt;ID13 – Critical Interoperability Application Testing&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="external-links"&gt;External links
&lt;/h1&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Software Testing&lt;br&gt;
&lt;a class="link" href="http://www.istqb.org/" target="_blank" rel="noopener"
 &gt;http://www.istqb.org/&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://www.istqb.org/downloads/glossary.html" target="_blank" rel="noopener"
 &gt;http://www.istqb.org/downloads/glossary.html&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://www.computer.org/portal/web/swebok/" target="_blank" rel="noopener"
 &gt;http://www.computer.org/portal/web/swebok/&lt;/a&gt;&lt;br&gt;
IEEE 610 : &lt;a class="link" href="http://ieeexplore.ieee.org/" target="_blank" rel="noopener"
 &gt;http://ieeexplore.ieee.org&lt;/a&gt; &lt;a class="link" href="http://dis.unal.edu.co/~icasta/ggs/Documentos/Normas/610-12-1990.pdf" target="_blank" rel="noopener"
 &gt;http://dis.unal.edu.co/~icasta/ggs/Documentos/Normas/610-12-1990.pdf&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Unit Test&lt;br&gt;
&lt;a class="link" href="http://artofunittesting.com/definition-of-a-unit-test/" target="_blank" rel="noopener"
 &gt;http://artofunittesting.com/definition-of-a-unit-test/&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://artofunittesting.com/unit-testing-review-guidelines/" target="_blank" rel="noopener"
 &gt;http://artofunittesting.com/unit-testing-review-guidelines/&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;JUnit&lt;br&gt;
&lt;a class="link" href="http://junit.sourceforge.net/doc/testinfected/testing.htm" target="_blank" rel="noopener"
 &gt;http://junit.sourceforge.net/doc/testinfected/testing.htm&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;JUnit Anti patterns&lt;br&gt;
&lt;a class="link" href="http://www.exubero.com/junit/antipatterns.html" target="_blank" rel="noopener"
 &gt;http://www.exubero.com/junit/antipatterns.html&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;JUnit cookbook&lt;br&gt;
&lt;a class="link" href="http://junit.sourceforge.net/doc/cookbook/cookbook.htm" target="_blank" rel="noopener"
 &gt;http://junit.sourceforge.net/doc/cookbook/cookbook.htm&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;JMeter&lt;br&gt;
&lt;a class="link" href="http://jmeter.apache.org/" target="_blank" rel="noopener"
 &gt;http://jmeter.apache.org/&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Selenium&lt;br&gt;
&lt;a class="link" href="http://docs.seleniumhq.org/" target="_blank" rel="noopener"
 &gt;http://docs.seleniumhq.org/&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;UFT (QTP)&lt;br&gt;
&lt;a class="link" href="http://www8.hp.com/us/en/software-solutions/unified-functional-testing-automated-testing/index.html" target="_blank" rel="noopener"
 &gt;http://www8.hp.com/us/en/software-solutions/unified-functional-testing-automated-testing/index.html&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Classification&lt;br&gt;
&lt;a class="link" href="http://securesoftwaredev.com/2012/09/03/a-classification-of-tests/" target="_blank" rel="noopener"
 &gt;http://securesoftwaredev.com/2012/09/03/a-classification-of-tests/&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://martinfowler.com/bliki/TestPyramid.html" target="_blank" rel="noopener"
 &gt;http://martinfowler.com/bliki/TestPyramid.html&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://watirmelon.com/2012/01/31/introducing-the-software-testing-ice-cream-cone/" target="_blank" rel="noopener"
 &gt;http://watirmelon.com/2012/01/31/introducing-the-software-testing-ice-cream-cone/&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://martinfowler.com/bliki/TestDouble.html" target="_blank" rel="noopener"
 &gt;http://martinfowler.com/bliki/TestDouble.html&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://martinfowler.com/bliki/ComponentTest.html" target="_blank" rel="noopener"
 &gt;http://martinfowler.com/bliki/ComponentTest.html&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://martinfowler.com/bliki/UnitTest.html" target="_blank" rel="noopener"
 &gt;http://martinfowler.com/bliki/UnitTest.html&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://xunitpatterns.com/" target="_blank" rel="noopener"
 &gt;http://xunitpatterns.com/&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://martinfowler.com/bliki/InMemoryTestDatabase.html" target="_blank" rel="noopener"
 &gt;http://martinfowler.com/bliki/InMemoryTestDatabase.html&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://martinfowler.com/articles/nonDeterminism.html" target="_blank" rel="noopener"
 &gt;http://martinfowler.com/articles/nonDeterminism.html&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ROI of test automation&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="link" href="http://www.arcondis.com/assets/files/pdf/publikationen/ROI%20of%20Test%20Automation.pdf" target="_blank" rel="noopener"
 &gt;http://www.arcondis.com/assets/files/pdf/publikationen/ROI%20of%20Test%20Automation.pdf&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://www-01.ibm.com/software/rational/offerings/testing/roi/tool/ROI_Rational.html" target="_blank" rel="noopener"
 &gt;http://www-01.ibm.com/software/rational/offerings/testing/roi/tool/ROI_Rational.html&lt;/a&gt;&lt;br&gt;
&lt;a class="link" href="http://www.softwarequalitymethods.com/papers/star99%20model%20paper.pdf" target="_blank" rel="noopener"
 &gt;http://www.softwarequalitymethods.com/papers/star99%20model%20paper.pdf&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Jenkins memory scaling</title><link>https://jamkey.fr/jenkins-memory-scaling/</link><pubDate>Mon, 28 Apr 2014 00:00:00 +0000</pubDate><guid>https://jamkey.fr/jenkins-memory-scaling/</guid><description>&lt;img src="https://jamkey.fr/images/jenkins.jpg" alt="Featured image of post Jenkins memory scaling" /&gt;&lt;p&gt;Jenkins is a Java web application which needs to be tuned to avoid &lt;em&gt;Out Of Memory Errors&lt;/em&gt; when dealing with large volume of jobs.&lt;br&gt;
The tuning of Jenkins is something sensitive. But at the same time the core engine do simple things : Jenkins executes jobs which execute external processes and JVM (Maven, Gradle…).&lt;br&gt;
Thus the role of Jenkins is based on the configuration of the jobs, their schedule and the management of the logs.&lt;/p&gt;
&lt;p&gt;There are lot of examples of build environments with hundreds of slave of the hundreds of jobs without particular problems of memory, storage.&lt;br&gt;
Initially it would be interesting to monitor Jenkins and its JVM to determine the reason of the potential problems.&lt;br&gt;
The problem could be a insufficient memory configuration of the master Jenkins. Or some plugins memory consuming or memory leak.&lt;/p&gt;
&lt;h1 id="recommendations"&gt;Recommendations
&lt;/h1&gt;&lt;p&gt;In term of recommendations for a large build system :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To check the plugins usage in Jenkins (are they all used? Are they parameterized in adequate manner ?)&lt;/li&gt;
&lt;li&gt;To have simple jobs (complexity remains in the build manager (Maven or other) not the continuous integration): main configs are SCM / 1 step of Build / some post-actions&lt;/li&gt;
&lt;li&gt;To limit the history of the builds in the job (« discard old build »)&lt;/li&gt;
&lt;li&gt;To use &lt;a class="link" href="https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-UIplugins" target="_blank" rel="noopener"
 &gt;Jenkins UI plugins&lt;/a&gt; in order to filter the view of the jobs to limit their access&lt;/li&gt;
&lt;li&gt;To introduce a master-slave architecture (what you did) (use of labels to distribute build in a transparent way)&lt;/li&gt;
&lt;li&gt;To limit the number of executors by slave&lt;/li&gt;
&lt;li&gt;To have potentially several masters&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Be careful for the master-slave mode to take a more recent version of Jenkins which allows to optimize the memory consumption.&lt;/p&gt;
&lt;h1 id="before-changing-memory-configuration-first-monitor-it"&gt;Before changing memory configuration, first monitor it
&lt;/h1&gt;&lt;p&gt;Resources consumption investigation is necessary in order to investigate and tune the JVM of Jenkins.&lt;/p&gt;
&lt;h2 id="monitoring-by-plugins"&gt;Monitoring by plugins
&lt;/h2&gt;&lt;p&gt;The &lt;a class="link" href="https://wiki.jenkins-ci.org/display/JENKINS/Monitoring" target="_blank" rel="noopener"
 &gt;Jenkins Monitoring plugin&lt;/a&gt; is interesting for that. It will give you Charts of memory, cpu, system load average, http response times…&lt;/p&gt;
&lt;h2 id="get-live-metrics"&gt;Get live metrics
&lt;/h2&gt;&lt;p&gt;In the same way &lt;strong&gt;VisualVM&lt;/strong&gt; connected on the JVM of Jenkins (see example &lt;a class="link" href="http://java.dzone.com/articles/visualvm-monitoring-remote-jvm" target="_blank" rel="noopener"
 &gt;http://java.dzone.com/articles/visualvm-monitoring-remote-jvm&lt;/a&gt; and &lt;a class="link" href="http://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html" target="_blank" rel="noopener"
 &gt;http://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html&lt;/a&gt;).&lt;/p&gt;
&lt;h2 id="jenkins-or-plugins-bugs"&gt;Jenkins or plugins bugs
&lt;/h2&gt;&lt;p&gt;The problem could be a insufficient memory configuration of the master Jenkins. Or some plugins memory consuming or memory leak.&lt;br&gt;
Check the updates of the plugins for that.&lt;br&gt;
It can also be a Jenkins version which did &lt;a class="link" href="https://issues.jenkins-ci.org/browse/JENKINS-20620" target="_blank" rel="noopener"
 &gt;not optimize enough the memory usage with a large number of jobs&lt;/a&gt;.&lt;/p&gt;
&lt;h1 id="performance-tips"&gt;Performance tips
&lt;/h1&gt;&lt;h2 id="build-history"&gt;Build history
&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Keep only a subset of build records around&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can set Jenkins up to clean house by checking Discard Old Builds in the Configure menu and filling in one or both of&lt;br&gt;
this option’s two text boxes. You can choose to throw the old records away if they are more than 30 days old, or you can&lt;br&gt;
choose to keep only the last X records and discard everything else.&lt;/p&gt;
&lt;p&gt;The whole point of controlling your build records is to avoid unbounded consumption. Sometimes you want to keep some&lt;br&gt;
records for a while so people can look at problems when there are failures… so don’t make the number too low. You really&lt;br&gt;
just need to have a fixed cap; 50 or 100 is a good number. Note that you can configure build record housekeeping on a&lt;br&gt;
per-project basis.&lt;/p&gt;
&lt;p&gt;Another way to keep specific records is to use the fingerprinting feature, which allows you to create an association be-tween jobs. As you enable fingerprinting, you can enable Jenkins to keep a build log of dependencies – this captures all&lt;br&gt;
the upstream build log dependencies.&lt;/p&gt;
&lt;h2 id="number-of-slaves"&gt;Number of slaves
&lt;/h2&gt;&lt;p&gt;Each slave maintains a connection to a master, and to service these connections a master launchs several threads, and each thread is costly (2MB or so memory just for a call stack.)&lt;/p&gt;
&lt;p&gt;Exactly how many threads each slave incurs on a master depends on the mode of connection. Most connection mechanisms require two threads per slave (SSH slaves and Java Web Start slaves), but if a JWS slave falls back to the communication over HTTP, it’ll incur three. See « &lt;a class="link" href="https://wiki.jenkins-ci.org/display/JENKINS/Obtaining&amp;#43;a&amp;#43;thread&amp;#43;dump" target="_blank" rel="noopener"
 &gt;Obtaining a thread dump&lt;/a&gt; » for how to count the number of threads in your environment.&lt;/p&gt;
&lt;p&gt;See Set up Master-Slave for more information.&lt;/p&gt;
&lt;h2 id="degree-of-concurrent-http-accesses-to-the-master"&gt;Degree of concurrent HTTP accesses to the master
&lt;/h2&gt;&lt;p&gt;If you expect a lot of users accessing Jenkins user interfaces, this adds additional CPU overheads to a master. The memory impact on additional concurrent users should be negligible.&lt;/p&gt;
&lt;p&gt;When you expect a large number of concurrent users, watch out for the upper bound of the maximum number of HTTP request handling threads. Contrary to the intuition, you do not want to give too big a value, which tends to make contended locks even more contended. You want to keep this value relatively small, and let incoming requests wait in the queue as opposed to try to serve them all in parallel.&lt;/p&gt;
&lt;h2 id="number-of-jobs"&gt;Number of jobs
&lt;/h2&gt;&lt;p&gt;Impact of a larger number of jobs can be seen in several places. One is the start-up time of Jenkins, especially noticable if you have $JENKINS_HOME in a disk that has a large seek time (spinning HDDs, as opposed to SSDs.) Another is the UI organization. You need to utilize views, folders, and other means to organize jobs, and avoid using the « All » view that’d render everything.&lt;/p&gt;
&lt;h2 id="number-of-builds"&gt;Number of builds
&lt;/h2&gt;&lt;p&gt;Starting around 1.450 to 1.500 Jenkins started lazy-loading builds and discard them from memory if unneeded, but various plugins are still being updated to take advantages of this. Therefore, you’ll want to cap the number of builds each job occupies, by using the « discard old build » feature in Jenkins.&lt;/p&gt;
&lt;p&gt;To prevent Jenkins from discarding build records only to load them back from the disk again, please give ample heap to Jenkins JVM.&lt;/p&gt;
&lt;h1 id="set-up-master-slave"&gt;Set up Master-Slave
&lt;/h1&gt;&lt;p&gt;Jenkins masters expectations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Keep webui responsive&lt;/li&gt;
&lt;li&gt;Running/Managing jobs/slaves take resources&lt;/li&gt;
&lt;li&gt;Throw a beefy VM at it (IO less of an issue)&lt;/li&gt;
&lt;li&gt;Don’t run jobs on it&lt;/li&gt;
&lt;li&gt;Manage/Backup configuration programmaticaly (puppet)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Jenkins slaves expectations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Should be quick to setup and throw away&lt;/li&gt;
&lt;li&gt;Plan for high IO usage! (not single hypervisor)&lt;/li&gt;
&lt;li&gt;Monitor Cpu and Disk&lt;/li&gt;
&lt;li&gt;Segregate heavy jobs&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="set-up-distributed-builds"&gt;Set up distributed Builds
&lt;/h2&gt;&lt;p&gt;You will eventually outgrow the ability to run builds on just one machine; as well, single systems do not take advantage&lt;br&gt;
of the full power of Jenkins.&lt;/p&gt;
&lt;p&gt;Dealing with the amount of compression load is not the only reason to use distributed builds. You also need isolation between builds. For example, when your tests depend on local resources like a local database or particular TCP/IP port, you can’t use the same machine to run tests&lt;br&gt;
that access those resources. And while you can always work around these problems by tweaking your build script and tests&lt;br&gt;
and such, it’s much easier if you have boxes that provide natural isolation.&lt;/p&gt;
&lt;p&gt;Another driving factor for distributed builds is that if you’re testing against multiple platforms, you often want to have&lt;br&gt;
more diversity in the environment. This situation inherently calls for multiple systems.&lt;/p&gt;
&lt;h2 id="set-up-scalable-slaves-with-labels"&gt;Set up scalable slaves with labels
&lt;/h2&gt;&lt;p&gt;Managing a diverse set of platforms and machines easily, and making machines interchangeable.&lt;/p&gt;
&lt;p&gt;A very useful but under-used Jenkins feature is labels. Labels are simply tags you can assign to nodes to describe their capacities. Some typical useful labels include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Operating system&lt;/li&gt;
&lt;li&gt;32 vs. 64-bit&lt;/li&gt;
&lt;li&gt;Additional infrastructure that exists only on certain machines (for example, WebSphere)&lt;/li&gt;
&lt;li&gt;Machine’s geographical location&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Assign labels on the build machines themselves; then on the job side, specify that the job needs to run in a certain place based on label criteria. Instead of tying jobs to individual build machines, labels give Jenkins flexibility to choose where to run the builds, which results in better resource utilization and promoting manageability.&lt;/p&gt;
&lt;p&gt;Using labels is so easy that even the Marketing team figured it out:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select a Slave machine and choose Configure&lt;/li&gt;
&lt;li&gt;Specify a label in the Labels field.&lt;/li&gt;
&lt;li&gt;Create a new job, name it and fill out any other necessary parameters, and click OK.&lt;/li&gt;
&lt;li&gt;Click the checkbox, Restrict where this project can be run (for example amd64, linux and Montreuil).&lt;/li&gt;
&lt;li&gt;Fill in the Label Expression that matches the label on your Slave machine (or any label).&lt;/li&gt;
&lt;li&gt;Click Save and then run the build. It will only run on machines whose labels match the job confi guration.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;One final reason to use labels: if a machine goes down, Jenkins has the flexibility to shift the load to another machine with&lt;br&gt;
a compatible label, which gives you time to diagnose and fi x the problem. This way you can increase the level of service&lt;br&gt;
of your cluster to your users without service disruption.&lt;/p&gt;
&lt;h2 id="be-careful-of-slave-thread-consumption"&gt;Be careful of slave thread consumption
&lt;/h2&gt;&lt;p&gt;A connected JNLP slave used to occupy one thread on the master, but now it occupies none.&lt;br&gt;
Combined with the earlier change that eliminated threads from idle executors, now you can connect thousands of slaves.&lt;br&gt;
Be careful to use the correct Jenkins version.&lt;/p&gt;
&lt;p&gt;See &lt;a class="link" href="http://jenkins-ci.org/content/more-scalable-slaves" target="_blank" rel="noopener"
 &gt;http://jenkins-ci.org/content/more-scalable-slaves&lt;/a&gt;&lt;/p&gt;
&lt;h1 id="external-links"&gt;External links
&lt;/h1&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Jenkins Master-Slave:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="http://jenkins-ci.org/content/more-scalable-slaves" target="_blank" rel="noopener"
 &gt;http://jenkins-ci.org/content/more-scalable-slaves&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Monitoring:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="http://java.dzone.com/articles/visualvm-monitoring-remote-jvm" target="_blank" rel="noopener"
 &gt;http://java.dzone.com/articles/visualvm-monitoring-remote-jvm&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="link" href="https://wiki.jenkins-ci.org/display/JENKINS/Monitoring" target="_blank" rel="noopener"
 &gt;https://wiki.jenkins-ci.org/display/JENKINS/Monitoring&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="link" href="https://wiki.jenkins-ci.org/display/JENKINS/I%27m&amp;#43;getting&amp;#43;OutOfMemoryError" target="_blank" rel="noopener"
 &gt;https://wiki.jenkins-ci.org/display/JENKINS/I%27m+getting+OutOfMemoryError&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="link" href="https://wiki.jenkins-ci.org/display/JENKINS/Obtaining&amp;#43;a&amp;#43;thread&amp;#43;dump" target="_blank" rel="noopener"
 &gt;https://wiki.jenkins-ci.org/display/JENKINS/Obtaining+a+thread+dump&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="link" href="http://java.dzone.com/articles/visualvm-monitoring-remote-jvm" target="_blank" rel="noopener"
 &gt;http://java.dzone.com/articles/visualvm-monitoring-remote-jvm&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="link" href="http://visualvm.java.net/" target="_blank" rel="noopener"
 &gt;http://visualvm.java.net/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="link" href="http://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html" target="_blank" rel="noopener"
 &gt;http://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Performance:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="https://wiki.jenkins-ci.org/display/JENKINS/Jenkins&amp;#43;is&amp;#43;hanging" target="_blank" rel="noopener"
 &gt;https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+is+hanging&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Scaling:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="http://narkisr.github.io/jenkins-scaling/#title" target="_blank" rel="noopener"
 &gt;http://narkisr.github.io/jenkins-scaling/#title&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="link" href="http://di388e0fcqllf.cloudfront.net/whitepapers/7WaysToOptimizeJenkins.pdf" target="_blank" rel="noopener"
 &gt;http://di388e0fcqllf.cloudfront.net/whitepapers/7WaysToOptimizeJenkins.pdf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="link" href="http://fr.slideshare.net/aestasit/scaling-software-builds-with-jenkins" target="_blank" rel="noopener"
 &gt;http://fr.slideshare.net/aestasit/scaling-software-builds-with-jenkins&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="see-also"&gt;See also
&lt;/h1&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;SLA&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="https://wiki.jenkins-ci.org/display/JENKINS/SLAdiator&amp;#43;plugin" target="_blank" rel="noopener"
 &gt;https://wiki.jenkins-ci.org/display/JENKINS/SLAdiator+plugin&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Industrialisation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="http://www.cloudbees.com/jenkins-user-conference-2012-israel-abstracts.cb" target="_blank" rel="noopener"
 &gt;http://www.cloudbees.com/jenkins-user-conference-2012-israel-abstracts.cb&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>