<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Test on Jamkey</title><link>https://jamkey.fr/tags/test/</link><description>Recent content in Test 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/test/index.xml" rel="self" type="application/rss+xml"/><item><title>The Way Of Testivus - Test Coverage</title><link>https://jamkey.fr/the-way-of-testivus-test-coverage/</link><pubDate>Thu, 03 Nov 2022 00:00:00 +0000</pubDate><guid>https://jamkey.fr/the-way-of-testivus-test-coverage/</guid><description>&lt;img src="https://jamkey.fr/images/testivus-logo.jpg" alt="Featured image of post The Way Of Testivus - Test Coverage" /&gt;&lt;p&gt;Je trouve excellent &lt;a class="link" href="http://www.agitar.com/downloads/TheWayOfTestivus.pdf" target="_blank" rel="noopener"
 &gt;« The Way of Testivus »&lt;/a&gt; pour son côté grand-maitre de Kung-fu adapté au monde des tests! Le PDF complet des différentes histoires est ici: &lt;a class="link" href="http://www.agitar.com/downloads/TheWayOfTestivus.pdf" target="_blank" rel="noopener"
 &gt;www.agitar.com/downloads/TheWayOfTestivus.pdf&lt;/a&gt;
Un grand merci à &lt;a class="link" href="https://www.albertosavoia.com/" target="_blank" rel="noopener"
 &gt;Alberto Savoia&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;Mais ma préférence va à celui sur la couverture des tests unitaires, qui est super bien écrit.
Je me permet donc de le republier ici, avec la version originale mais aussi une version en Français.&lt;/p&gt;
&lt;h2 id="testivus-on-test-coverage"&gt;Testivus On Test Coverage
&lt;/h2&gt;&lt;p&gt;Early one morning, a programmer asked the great master:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“I am ready to write some unit tests. What code coverage should I aim for?”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The great master replied:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“Don’t worry about coverage, just write some good tests.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The programmer smiled, bowed, and left.&lt;/p&gt;
&lt;p&gt;…&lt;/p&gt;
&lt;p&gt;Later that day, a second programmer asked the same question.&lt;/p&gt;
&lt;p&gt;The great master pointed at a pot of boiling water and said:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“How many grains of rice should put in that pot?”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The programmer, looking puzzled, replied:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“How can I possibly tell you? It depends on how many people you need to feed, how hungry they are, what other food you are serving, how much rice you have available, and so on.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“Exactly,”&lt;/em&gt; said the great master.&lt;/p&gt;
&lt;p&gt;The second programmer smiled, bowed, and left.&lt;/p&gt;
&lt;p&gt;…&lt;/p&gt;
&lt;p&gt;Toward the end of the day, a third programmer came and asked the same question about code coverage.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“Eighty percent and no less!”&lt;/em&gt; Replied the master in a stern voice, pounding his fist on the table.&lt;/p&gt;
&lt;p&gt;The third programmer smiled, bowed, and left.&lt;/p&gt;
&lt;p&gt;…&lt;/p&gt;
&lt;p&gt;After this last reply, a young apprentice approached the great master:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“Great master, today I overheard you answer the same question about code coverage with three different answers. Why?”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The great master stood up from his chair:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“Come get some fresh tea with me and let’s talk about it.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;After they filled their cups with smoking hot green tea, the great master began to answer:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“The first programmer is new and just getting started with testing. Right now he has a lot of code and no tests. He has a long way to go; focusing on code coverage at this time would be depressing and quite useless. He’s better off just getting used to writing and running some tests. He can worry about coverage later.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“The second programmer, on the other hand, is quite experience both at programming and testing. When I replied by asking her how many grains of rice I should put in a pot, I helped her realize that the amount of testing necessary depends on a number of factors, and she knows those factors better than I do – it’s her code after all. There is no single, simple, answer, and she’s smart enough to handle the truth and work with that.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“I see,” said the young apprentice, “but if there is no single simple answer, then why did you answer the third programmer ‘Eighty percent and no less’?”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The great master laughed so hard and loud that his belly flopped up and down, evidence that he drank more than just green tea.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“The third programmer wants only simple answers – even when there are no simple answers … and then does not follow them anyway.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The young apprentice and the grizzled great master finished drinking their tea in contemplative silence.&lt;/p&gt;
&lt;h2 id="testivus-version-française"&gt;Testivus (version française)
&lt;/h2&gt;&lt;p&gt;Tôt un matin, un programmeur demande au grand maître :&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;Je suis prêt à écrire des tests unitaires. Quelle couverture de code dois-je viser ? &amp;ldquo;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Le grand maître répondit :&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;Ne vous inquiétez pas de la couverture, écrivez simplement de bons tests. &amp;ldquo;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Le programmeur a souri, s&amp;rsquo;est incliné et est parti.&lt;/p&gt;
&lt;p&gt;&amp;hellip;&lt;/p&gt;
&lt;p&gt;Plus tard ce jour-là, une deuxième programmeuse a posé la même question.&lt;/p&gt;
&lt;p&gt;Le grand maître a montré une casserole d&amp;rsquo;eau bouillante et a dit :&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;Combien de grains de riz faut-il mettre dans cette casserole ? &amp;ldquo;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;La programmeuse, l&amp;rsquo;air perplexe, répondit :&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;Comment pourrais-je vous le dire ? Cela dépend du nombre de personnes à nourrir, de leur faim, des autres aliments que vous servez, de la quantité de riz dont vous disposez, et ainsi de suite &amp;ldquo;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;Exactement, &amp;ldquo;&lt;/em&gt; dit le grand maître.&lt;/p&gt;
&lt;p&gt;La seconde programmeuse sourit, s&amp;rsquo;inclina et partit.&lt;/p&gt;
&lt;p&gt;&amp;hellip;&lt;/p&gt;
&lt;p&gt;Vers la fin de la journée, un troisième programmeur est venu et a posé la même question sur la couverture du code.&lt;/p&gt;
&lt;p&gt;Le maître répondit d&amp;rsquo;une voix sévère en tapant du poing sur la table &lt;em&gt;“80% et pas moins!”&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Le troisième programmeur a souri, s&amp;rsquo;est incliné et est parti.&lt;/p&gt;
&lt;p&gt;&amp;hellip;&lt;/p&gt;
&lt;p&gt;Après cette dernière réponse, un jeune apprenti s&amp;rsquo;est approché du grand maître :&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;Grand maître, aujourd&amp;rsquo;hui je vous ai entendu répondre à la même question sur la couverture du code avec trois réponses différentes. Pourquoi ? &amp;ldquo;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Le grand maître s&amp;rsquo;est levé de sa chaise :&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;Viens prendre du thé frais avec moi et parlons-en. &amp;ldquo;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Après avoir rempli leurs tasses de thé vert fumant, le grand maître a commencé à répondre :&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;Le premier programmeur est nouveau et commence tout juste à faire des tests. Pour l&amp;rsquo;instant, il a beaucoup de code et pas de tests. Il a un long chemin à parcourir ; se concentrer sur la couverture du code à ce stade serait déprimant et tout à fait inutile. Il vaut mieux qu&amp;rsquo;il s&amp;rsquo;habitue à écrire et à exécuter des tests. Il pourra s&amp;rsquo;inquiéter de la couverture plus tard. &amp;ldquo;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;La deuxième programmeuse, en revanche, est assez expérimentée à la fois en programmation et en tests. Lorsque je lui ai répondu en lui demandant combien de grains de riz je devais mettre dans une casserole, je l&amp;rsquo;ai aidé à réaliser que la quantité de tests nécessaires dépend d&amp;rsquo;un certain nombre de facteurs, et qu&amp;rsquo;elle connaît ces facteurs mieux que moi - c&amp;rsquo;est son code après tout. Il n&amp;rsquo;y a pas de réponse unique, simple, et elle est assez intelligente pour faire face à la vérité et travailler avec. &amp;ldquo;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;Je vois,&amp;rdquo; dit le jeune apprenti, &amp;ldquo;mais s&amp;rsquo;il n&amp;rsquo;y a pas de réponse simple et unique, alors pourquoi avez-vous répondu au troisième programmeur &amp;lsquo;Quatre-vingts pour cent et pas moins&amp;rsquo; ? &amp;ldquo;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Le grand maître rit si fort et si fort que son ventre s&amp;rsquo;agita de haut en bas, preuve qu&amp;rsquo;il ne buvait pas que du thé vert.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Le troisième programmeur ne veut que des réponses simples - même lorsqu&amp;rsquo;il n&amp;rsquo;y a pas de réponses simples&amp;hellip; et ne les suit pas de toute façon&amp;rdquo;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Le jeune apprenti et le grand maître grisonnant finirent de boire leur thé dans un silence contemplatif.&lt;/p&gt;</description></item><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></channel></rss>