<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Francisco Mancardi on Medium]]></title>
        <description><![CDATA[Stories by Francisco Mancardi on Medium]]></description>
        <link>https://medium.com/@francisco-mancardi?source=rss-905f7d3979f8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hh0IZibhPaAnxTRf.</url>
            <title>Stories by Francisco Mancardi on Medium</title>
            <link>https://medium.com/@francisco-mancardi?source=rss-905f7d3979f8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:35:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@francisco-mancardi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[End To End Testing — Using JSON files to drive simple layout testing]]></title>
            <link>https://francisco-mancardi.medium.com/end-to-end-testing-using-json-files-to-drive-simple-layout-testing-ab8198cbd37b?source=rss-905f7d3979f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab8198cbd37b</guid>
            <category><![CDATA[end-to-end-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Francisco Mancardi]]></dc:creator>
            <pubDate>Sun, 02 Apr 2023 10:20:45 GMT</pubDate>
            <atom:updated>2023-04-03T16:25:46.940Z</atom:updated>
            <content:encoded><![CDATA[<h3>End To End Testing — Using JSON files to drive simple layout testing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D6WP2aUQn4TqJZeUlFW_Vw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@thisisengineering?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">ThisisEngineering RAEng</a> on <a href="https://unsplash.com/photos/DbLlKd8u2Rw?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Scenario: you have a product with the following characteristics:</p><ul><li>9 month release cycle</li><li>multilanguage</li><li>lot of features that have a common UX usability pattern</li><li>in each new version you add features: new filters, new function buttons, new column on output grid</li></ul><p>You need to be sure you have not introduced regressions like:</p><ul><li>some filter present in version N-1, has disappeared in version N.</li><li>labels for filters, buttons and columns have changed.</li><li>you are not using the standard label translation.</li><li>default value for filter has changed.</li><li>mandatory fields are not mandatory anymore.</li><li>date from / date to range has changed.</li></ul><p>To solve this challenge the first thing to do is create a helper class that provides following methods:</p><blockquote>validateFiltersLabelsAndDisplayOrder()</blockquote><blockquote>validateMandatoryFilters()</blockquote><blockquote>validateReadOnlyTextFilters()</blockquote><blockquote>validateReadOnlyDateFilters()</blockquote><blockquote>validateReadWriteTextFilters()</blockquote><blockquote>validateReadWriteDateFilters()</blockquote><blockquote>validateDomainForComboFilters()</blockquote><blockquote>validateDomainForTextFilters()</blockquote><blockquote>validateFiltersDefaultValue()</blockquote><p>Nothing new, ok?</p><p>Then you can create some sort of template test script for this kind of layout validation.</p><p>The question is: what is the more efficient approach to pass all the data needed for the validations.</p><p>Because we are using Page Object Model (POM) to manage the different pages of our application, it can be seams that POM is the right place.</p><p>But if we think that we want to allow not developers to help with construction of these kind of test, POM is not the right solution.</p><p>An approach I’m using with good results is the following:</p><ul><li>script name testcase-123-users-layout</li><li>layout configuration for Italian: testcase-123-users-layout.ita.json</li><li>layout configuration for English: testcase-123-users-layout.eng.json</li></ul><p>this naming convention (convention over configuration) simplifies configuration loading.</p><p>Then in the json file I’ve created an object with these properties</p><blockquote>filters: array with the filters labels</blockquote><blockquote>buttons: array with the buttons labels</blockquote><blockquote>columns: array with the grid columns labels</blockquote><blockquote>mandatoryFilters: array with the labels of the mandatories fields</blockquote><blockquote>howToGetItems: object: provide labels and values in order to do a search to get items</blockquote><blockquote>defaults: object: for filters that have a not empty value as default</blockquote><blockquote>filtersEmptyByDefault: array of labels</blockquote><blockquote>comboFilters: array of labels, we will use this to validate each combo has NOT empty domain</blockquote><blockquote>RWTextFilters: array of labels</blockquote><blockquote>RWDateFilters: array of labels</blockquote><p>I’ve developed a simple method to map Labels to POM properties.</p><p>We organize the test script repository with a branch for each Application Version to be released.</p><p>The update of the validations. i.e. one more filter, a filter removed can be done in a simple way for the same business analyst that have changed the feature UX specification, changing the JSON in the right branch.</p><p>These JSON files can be also generated by the developers with some simple script.</p><p>I’ve found this approach effective, and allows you to add this kind of test for a new feature with low effort.</p><p>Hope this kind of approach be useful for you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab8198cbd37b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Le fiabe e miti presenti nel project management (ambito software)]]></title>
            <link>https://francisco-mancardi.medium.com/le-fiabe-e-miti-presenti-nel-project-management-ambito-software-77ecf6f0f899?source=rss-905f7d3979f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/77ecf6f0f899</guid>
            <category><![CDATA[project-management]]></category>
            <dc:creator><![CDATA[Francisco Mancardi]]></dc:creator>
            <pubDate>Sun, 20 Dec 2020 11:56:50 GMT</pubDate>
            <atom:updated>2020-12-20T11:56:50.802Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*M0m2BdgFLVd1ccN4gEC8yQ.jpeg" /></figure><p>Iniziamo con la <strong>definizione di fiaba</strong><br><a href="https://www.treccani.it/vocabolario/fiaba/"><em>https://www.treccani.it/vocabolario/fiaba/</em></a><em><br>fiaba s. f. [lat. *flaba, da fabŭla (v. favola)]. — 1. Racconto fantastico, di solito in prosa e ad ampio sviluppo narrativo, in cui si possono riconoscere tracce di antiche credenze in esseri magici e di antichissime usanze; a differenza della favola, che ha quasi sempre per protagonisti animali, la fiaba ha per protagonista l’uomo, nelle cui vicende intervengono spiriti benefici o malefici, dèmoni, streghe, fate, e non ha necessariamente fine morale o didascalico ma di intrattenimento infantile: le f. della nonna; le f. dei fratelli Grimm, di Andersen, di Perrault; la f. di Cenerentola, del gatto con gli stivali, ecc.</em></p><p>Gli elementi di fiabe e leggende sono presenti e contribuiscono allo svolgimento con poca sicurezza e pieno di trappole.<br>Provate mentre lo leggete a ricordare se non avete visuto mai una delle situazioni qui indicate</p><h3><strong>Mito — Icaro (https://www.treccani.it/enciclopedia/icaro/)</strong></h3><p>Mitico figlio di Dedalo e di Naucrate, schiava di Minosse. <br>Rinchiuso con il padre nel labirinto di Creta, fuggì volando con le ali che Dedalo aveva adattato con la cera al proprio corpo e a quello del figlio. <br>Ma, avvicinatosi troppo al Sole, la cera si sciolse e I. cadde nel mare -&gt; KABOOM!</p><p>Questo aspetto c’e quando si traslasciano aspetti come:<br><strong>- carico attesso: </strong><br> <em>ma quante transazioni al minuto saranno richieste? ( primi giorni dell’APP IO)</em><br><strong>- initial load:</strong> <br><em> non si valuta come verificare la correttezza? <br> tipico incidente a valle: mail con informazioni sensibili che finiscono ai destinatari sbagliati</em><br><strong>- separazione delle responsabilità:</strong> <br> <em>Noi diciamo (solo a noi stessi): … ma no quello tocca al cliente …<br> Il cliente dice (solo a se stesso): … ma no quello tocca a loro ..</em></p><h3>Fiaba — Hänsel e Gretel — fratelli Grimm</h3><p>Siccome non possiamo (senti non abbiamo tempo) raccogliere i sassolini lucidi che ci consentono di ritrovare il cammino di ritorno, usiamo pezzi di pane che … vengono mangiati dagli uccelli.</p><p>Per noi i sassolini sono ogni documentazione che facciamo, che non per forza sono documenti di centinaia di pagine.<br>Ogni piccolo dettaglio che oggi sembra insignificante e non raccolto, diventerà al posto del sassolino, il pezzo di pane che sparirà.</p><h3>ALT! — Soluzione all’approccio Hänsel e Gretel -&gt; pachidermi</h3><p>(<a href="https://www.ilmagnesio.it/magzine/wellness-lifestyle/memoria-elefante-animali-ricordano-di-piu">https://www.ilmagnesio.it/magzine/wellness-lifestyle/memoria-elefante-animali-ricordano-di-piu</a>)</p><p>Secondo le ricerche condotte fino ad ora, i pachidermi hanno necessità di ricordare molte informazioni per scegliere i luoghi migliori dove migrare ed evitare le gravi siccità.</p><p>Nel progetto ci saranno sempre delle persone che diventeranno ‘La memoria storica’ o i nostri ‘elefanti’.<br>Non un’ottima soluzione, visto che le persone a volte:<br>- hanno bisogno di ferie -&gt; nessun problema li mandiamo una mail/whastapp<br>- cambiano posto di lavoroa -&gt; ma si ci farà il favore</p><h3>Mito — Oracolo di Delfi</h3><p><a href="https://cronistoria.altervista.org/loracolo-di-delfi-il-piu-famoso-e-temuto-centro-oracolare-del-mondo-greco/">https://cronistoria.altervista.org/loracolo-di-delfi-il-piu-famoso-e-temuto-centro-oracolare-del-mondo-greco/</a></p><p>Ci sarà sempre qualcuno con capacità divinatorie, che saprà per tanto risolvere diversi problemi<br>- quello della documentazione mancante (vedi Hänsel e Gretel)<br>- quello delle cose non dette (vedi Mito Icaro)<br>- quello di stabilire le diverse date di consegna prima anche di capire l’effort.</p><h3>ALT! — dove è finito il giardino del knowledge sharing?</h3><p>Tanto Hänsel e Gretel come i pachidermi e l’Oracolo di Delfi sono parte dei motivi per il quale il nostro giardino del knowledge sharing non riesce a decollare.<br>Cosi non riusciamo noi e la azienda ad entrare pienamente nell ‘Knowledge Age’ (<a href="http://www.shiftingthinking.org/?page_id=58">http://www.shiftingthinking.org/?page_id=58</a>)</p><p><strong>The Knowledge Age is</strong> <em>a new, advanced form of capitalism in which knowledge and ideas are the main source of economic growth (more important than land, labour, money, or other ‘tangible resources). <br>New patterns of work and new business practices have developed, and, as a result, new kinds of workers, with new and different skills, are required.</em></p><p><strong>‘Knowledge is Power’:</strong> sottraendo l’accesso al knowledge perchè non li diamo persistenza e accesso libero in ogni momento alle persone che lavorano con noi, stiamo mettendo ilnostro team e l’azienda in una situazione di debolezza.</p><h3>Mito — esistenza di strumenti magici</h3><p>Quante volte qualcuno vi ha portato ‘la bacchetta magica’ dicendo:<br><em>… adesso con questo strumento riusciremmo a risolvere i nostri problemi della gestione dei progetti …</em><br>Personalmente non penso che ci sia strumento che possa risolvere nulla se i punti evidenziati prima non vengono affrontati uno a uno e risolti anche solo parzialmente.<br>Per fare questo non basta scocchiare le dita, perchè serve entrare nella mente delle persone e lavorare nella modifica degli atteggiamenti.<br>Fosse possibile avere qualcuno con buone la capacità di ipnotizzare …</p><h3>Le proposte di soluzione</h3><p><strong>Magia (secondo Goethe)</strong></p><p><em>“La magia è credere, e credere in sé stessi: se riusciamo a farlo, allora possiamo far accadere qualsiasi cosa”.</em></p><p>Credere che possiamo cambiare la maniera di lavorare e che è giusto farlo, non per dirci <em>‘… noi siamo perfetti …’</em> ma per garantire all’azienda e a noi stessi:<br>- migliori margini<br>- migliore immagine che il cliente ha<br>- rispetto delle pianificazioni<br>- lavoro meno stressante<br>- risultati esitosi ripettitivi</p><p><strong>Creazione e condivisione della conoscenza: </strong>Coltivando e costruendo quest’attitudine/atteggiamento possiamo migliorare la gestione</p><p><strong>Continuous Improvement: </strong>Piccoli passi sono comunque importanti , già che chi non cambia non solo si ferma, ma in realtà retrocede.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77ecf6f0f899" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test Specs for manual and automated test]]></title>
            <link>https://francisco-mancardi.medium.com/test-specs-for-manual-and-automated-test-55fe1e06b076?source=rss-905f7d3979f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/55fe1e06b076</guid>
            <category><![CDATA[test-design-technique]]></category>
            <category><![CDATA[testcafe]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[testlink]]></category>
            <category><![CDATA[software-test-design]]></category>
            <dc:creator><![CDATA[Francisco Mancardi]]></dc:creator>
            <pubDate>Sun, 13 Dec 2020 22:45:14 GMT</pubDate>
            <atom:updated>2020-12-13T22:45:14.790Z</atom:updated>
            <content:encoded><![CDATA[<p>Someone ask me to write as a Proof Of Concept (POC) an automated test to validate the login process.</p><p>The manual specification was written in this way, using <a href="https://github.com/TestLinkOpenSourceTRMS/testlink-code">TestLink</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y_HCBBpejit95_pFL2BLVg.png" /><figcaption>Test Specification using TestLink</figcaption></figure><p>Just one test case with six steps. When you will test manually this seems a good approach instead of writing six small test cases.</p><p>In order to organize things in a better way, you can refactor this creating two test cases</p><ul><li>AC-23 Validate Forbidden Login Process (RED login)</li><li>AC-24 Validate Valid Login Process (GREEN Login)</li></ul><h3><strong>How to approach the automated test</strong></h3><p>My tool of choice is <a href="https://github.com/DevExpress/testcafe">test cafè</a>, with the addition of <a href="https://www.devexpress.com/products/testcafestudio/">TestCafè Studio</a> to be used as an assistant in the test script development.</p><p>My first approach to this kind of tests, where there is a lot of similar processing/duplication is to try to make it a little bit data driven.</p><p>I can create a JSON file with an array of objects, where each object is one of the steps described in the specification, i.e.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*YCIIwcQN1Q-8tbX1xGQJOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*xpCo4leiYzPLFsFjKZdnsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*NIVxgkmF3zPYpe707adT5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iiwE2XI6RmmVxY4bDwZ7zQ.png" /></figure><p>You can loop over the array, executing a simple common code like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*qPt8130q2f4lSoKHAMxdEQ.png" /></figure><p>On issue with this code is that when the validateLoginFailure() returns false because we are not anymore in the Login Screen if we do not ‘fix’ this situation the next step (next iteration) will fail. This has happened during the debug of the test script implementation, because I was able to login with a disabled login.</p><p>Because I wanted to use the ‘loop’ approach I can not use the expect() test cafe method, because expect() stop execution on expect() failure. I wanted to execute all steps, getting execStatus true/false for each step, and then creating an overall status true/false, providing the tester the details of failed steps.</p><p>Due to my approach I need to understand in what screen/state in addition to the right one (i.e. login failed -&gt; system will remain in the login screen) I will land if the login block login fails.</p><p>Theoretically I can expect:</p><ul><li>the main application screen</li><li>a crash</li></ul><p>If these are the only alternatives, this means that the only thing I need to do is to have a ‘recovery code’ inside the <strong>if (step.execStatus == false) {</strong></p><h3><strong>Test Cafè solution — Data Driven Tests</strong></h3><p>Here <a href="https://devexpress.github.io/testcafe/documentation/recipes/best-practices/create-data-driven-tests.html">the link</a> to the Test Cafè documentation.</p><p>More links: <a href="https://testautomationu.applitools.com/testcafe-tutorial/chapter8.html">Test Automation University</a>, <a href="https://dev-tester.com/data-driven-testing-in-testcafe-part-1-json-and-xml/">Series on Dev Tester Site</a>.</p><p>Applying this approach, my code has been changed to this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*yZn_kGkvC8qecY72VyxoDA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55fe1e06b076" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Notes on Automated User (web) interface Test/Checks and Browser Automation]]></title>
            <link>https://francisco-mancardi.medium.com/notes-on-automated-user-web-interface-test-checks-and-browser-automation-7a2a2202c66b?source=rss-905f7d3979f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a2a2202c66b</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[test-automation-tools]]></category>
            <category><![CDATA[testcafe]]></category>
            <category><![CDATA[end-to-end-testing]]></category>
            <dc:creator><![CDATA[Francisco Mancardi]]></dc:creator>
            <pubDate>Sat, 09 May 2020 16:05:40 GMT</pubDate>
            <atom:updated>2020-05-09T16:05:40.827Z</atom:updated>
            <content:encoded><![CDATA[<p>Most applications have some sort of user interface.</p><p>We’re talking about a user interface in the context of web applications.</p><p>With web interfaces there are multiple aspects that you probably want to test around your UI:</p><ul><li>behavior</li><li>layout</li><li>usability</li><li>the adherence to your corporate design</li></ul><p>and these are only a few. Manually executing this kind of test is a solution that does not scale well, then you need to go in the automation direction.</p><p>I want to share our experience at <a href="http://www.tesisquare.com/">TESISQUARE</a> (www.tesisquare.com) in the process of adopting automation. Some of the things can sound obvious but IMHO reviewing it is a must to avoid wasting your time and resources.</p><h4>Generate HTML with test automation in mind</h4><p>To automate you will need to be able to access in a simple way different elements in the User Interface, then the more specific information you add to identify (select) them, the better. That is why is important to add the id attribute, data-attributes, specific CSS classes.</p><p>A great approach is to add test specific attributes to avoid breaking the automated test due to application design changes. This happens when developers maybe change the id of a button or a field to follow a new standard.</p><p>You can see a working example on the gitlab.com login page. If we used the browser’s inspect feature we will notice the <strong>data-qa-selector attribute.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*dRIwUSm4ZFzVqebfh9v2wg.png" /><figcaption>Inspect the gitlab.com login page</figcaption></figure><h4>Testing your User Interface for I18N (Internationalization)</h4><p>If you use a test recording tool like TestCafé Studio (<a href="https://www.devexpress.com/products/testcafestudio/">https://www.devexpress.com/products/testcafestudio/</a>), the first kind of Selector to access a UI Element that will be proposed will be the one that uses the text on the screen.</p><p>Look for this example on GitLab user preferences</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*ysOMTqZHxhhv6NMCMQeUrA.png" /></figure><p>While recording the test case steps, we can display what are all the selectors that TestCafè Studio show as different alternatives. The Best One (IMHO) to be used in navigation is the second one that uses the data-qa-selector attribute because the value will be the same no matter the User Language used in GitLab.</p><p>You can use it also if you want to test is translations are ok, pointing to it and then getting the text on the screen (see the simple HTML below)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*nD4GhowB7MrDtGkrSSHwOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*MLyduVL7NTuRAk51YbyA_w.png" /></figure><h4>Use the Page Object Model (POM) to protect your investment</h4><p>If you avoid spaghetti code in your application and use well-known techniques to create a great application, you need to use the same approach for your test automation scripts. Your tests are part of your application and first-class citizens also. That’s why after a first exploratory/learning/proof of concept phase when you will be focused on understanding the tools and how to create something that works, you need to embrace the POM Design Pattern or your test automation effort will fail. You can read here to learn all the advantages of POM (<a href="https://martinfowler.com/bliki/PageObject.html">https://martinfowler.com/bliki/PageObject.html</a>)</p><h4>Compose your ToolBox</h4><p>There are lots of alternatives, maybe too much. We started our search two years ago. We found several options other than the old-faithful <strong>selenium</strong>. I wanted a tool with the record feature because this can smooth the path of adoption by people outside the developers’ universe. After trying different approaches like browser add-ons, Eclipse-based tools, etc, my choice was Test Cafe from devexpress, which was replaced with TestCafe Studio. TestCafe Studio is a commercial product at an affordable price. You don’t need to buy it, because there is an open-source engine that allows you to execute test cases you write using Javascript or Typescript. It’s important to understand that the record feature is not the silver bullet. You will need to do some scripting to make generic the test case you have recorded. <strong><em>The TestCafe Studio IDE is IMHO a great tool</em></strong> to create some kind of draft of your test cases and helps you a lot with the definition of one of the critic parts: the element selector.</p><p>IMHO just one tool is not enough. There is a good option CodeceptJS (<a href="https://codecept.io/">https://codecept.io/</a>), their approach is to write in some kind of neutral API that you bind later to one of the available helpers. Here an excerpt from CodecepJS site:</p><blockquote>CodeceptJS bypasses execution commands to helpers. Depending on the helper enabled, your tests will be executed differently. If you need cross-browser support you should choose Selenium-based WebDriver or TestCafé. If you are interested in speed — you should use Chrome-based Puppeteer.</blockquote><p>Besides, you can also use CodecepJS for Mobile Testing and there are API Helpers.</p><p>My last discovery was taiko (<a href="https://github.com/getgauge/taiko">https://github.com/getgauge/taiko</a>) and the feature I found in love is <strong>Read-Eval-Print-Loop (</strong>REPL).</p><p>All these tools are based on node.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/101/1*CYa1h1x4fsULXSJQqCBocQ.png" /></figure><h4>Test scripts are not only for testers</h4><p>You can use the test scripts to improve communication between application developers and maintenance developers to make misunderstandings decrease. Why? because if I’m a maintenance developer and my fix passes your tests then I’ve surely done part of my work well.</p><p>If besides, you can convince your business analysts to use TestCafe Studio to record the use cases that prove the application issues/malfunctioning, again the developer in charge of fixing it, have all the information needed because she/he can reproduce the same use case</p><h4>It’s not just launching the recorder and zero code</h4><p>No, you will need to invest in the development of your test automation framework that will fit with your application. You will need to create POM files to manage with abstractions the same objects you use on your application.</p><h4>Rich Widgets need special attention</h4><p>On our application, we have used the Select2 JQuery plugin and this choice has created some minor issues when creating the automation.</p><p>One attention point is the dynamic nature of the ID that Select2 creates to provide as with a cool select replacement. If you fire your TestCafe Studio pointing it to <a href="http://select2.github.io/select2-bootstrap-theme/4.0.3.html">http://select2.github.io/select2-bootstrap-theme/4.0.3.html</a></p><p>and record a test case like changing the value of a select using the mouse, and you try to replay it, probably the test case will fail with the message:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*LyZeX57tAyf1_9nQsl41nA.png" /></figure><p>This happens because of the selector choice done by TestCafe Studio, an ID but that has dynamic nature, in select2-span_small-result-chhs-NV, the <strong>-chhs-</strong> string changes at any run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*4bCh-evf1E_-6rIVZGQZuw.png" /></figure><h4>Other uses for browser automation scripts</h4><p>Test scripts are browser automation scripts, something that makes us remember the macros we use with our editors to improve boring tasks.</p><p>With a tool like <a href="https://gauge.org/gauge-taiko/">taiko</a> (<a href="https://gauge.org/gauge-taiko/">https://gauge.org/gauge-taiko/</a>), after testcafè it’s my favorite tool, you can control your browser to drive your application to the exact point where you need to regain control of your browser to test your latest development.</p><p>Think how many times during a day you repeat these actions:</p><p>1) Login ( user + password + click button)<br>2) open the top-level menu option<br>3) open the first level menu option<br>4) finally access the feature</p><p>why do not write a script to do this? or even more complex things?</p><p>You can also use a mix of script steps and text description when you find a bug and you need to report it to the team that will fix it. The most you write as a script the fewer other people are going to interrupt you for clarification. Besides in this way, you are creating a draft of the test automation needed to validate the fix after it will be released!!!</p><p><strong>References</strong></p><blockquote>The Practical Test Pyramid<br> <a href="https://martinfowler.com/articles/practical-test-pyramid.html">https://martinfowler.com/articles/practical-test-pyramid.html</a></blockquote><blockquote>Page Object Model (POM) | Design Pattern <br><a href="https://medium.com/tech-tajawal/page-object-model-pom-design-pattern-f9588630800b">https://medium.com/tech-tajawal/page-object-model-pom-design-pattern-f9588630800b</a></blockquote><blockquote>Testautomation University ..…... <a href="https://testautomationu.applitools.com/setting-a-foundation-for-successful-test-automation/">https://testautomationu.applitools.com/setting-a-foundation-for-successful-test-automation/</a></blockquote><blockquote>Testing and Checking Refined <br> <a href="https://www.satisfice.com/blog/archives/856">https://www.satisfice.com/blog/archives/856</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a2a2202c66b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Problem-solving, we all are people]]></title>
            <link>https://francisco-mancardi.medium.com/problem-solving-we-all-are-people-ca07c75b3428?source=rss-905f7d3979f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca07c75b3428</guid>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[knowledge-sharing]]></category>
            <category><![CDATA[peopleware]]></category>
            <dc:creator><![CDATA[Francisco Mancardi]]></dc:creator>
            <pubDate>Sat, 03 Aug 2019 10:08:12 GMT</pubDate>
            <atom:updated>2019-08-03T10:08:12.079Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*PoEcMAwNhIzZmUgCTY_GKg.jpeg" /></figure><p>Normally we are involved in the construction and/or operation of complex systems (well I’m not talking about rocket science).</p><p>IMHO this complexity has at least two components:</p><ul><li>the complexity of the topic the system we are building needs to manage.</li><li>the interactions that happen inside the group of people that will be accountable for designing, building, operating and maintaining the system.</li></ul><p>Surely we are going to face problems and our approach to the problem-solving will be very important for the success of the system’s life.</p><p>An effective problem-solving approach must provide in addition to a solution now! (full stop), a foundation to allow to cope with similar problems in the future using fewer resources (time, money, headcount).</p><p>I like to remember what is written in the first ten lines of the preface in the book ‘Peopleware’ by Tom DeMarco &amp; Timoty Lister:</p><blockquote><em>Maybe … the major problems of systems work are not so much technological as sociological</em></blockquote><p>This means that the problem-solving process has a sociological side.</p><p>To solve an issue I need to interact, talk, listen to other people. This situation will trigger natural human reactions:</p><ul><li>Role: I’m looking for some help: does this means I’m not skilled at all?</li><li>Role: I’m looking for some help: does this means that I feel my self-esteem is dropping to zero?</li><li>Role: I’ve been contacted for help: I will be able to show a collaborative and positive approach toward the help seeker?</li><li>Role: I’ve been contacted for help: after I have provided the tip for the solution, I will start saying to the world:<em> I’m the king of the hill, all other people know nothing about this.?</em></li></ul><p>When trying to solve a problem is clear that the main objective is to fix it, but is very important to hit the target without creating collateral damage in the rest of people that were trying to solve the issue. Do not forget people feelings.</p><p>If you have been called to help, you have the highest percentage of the responsibility to avoid collateral damage.</p><p>Sometimes you need to be very careful because you are by chance in the room where the problem struggling is happening, nobody has asked for your help but you feel you can do something. How you can offer your collaboration without making people feeling ‘<em> … hey guys, you don’t understand anything let the master save you…</em>’. Again, people have feelings, do not hurt it.</p><p>Knowing what we have done to have this problem to solve is an important thing, to prevent it in the future.</p><p>Unfortunately, a lot of times we have been ‘launched into the area of a new project’’ as Rusell Crowe in The Gladiator without the minimal information, nobody has provided a <strong>‘survival guide’</strong>. This affects a lot our capacities to manage problems, and again our self-esteem.</p><p>The modern approach seems to be:</p><ul><li>don’t worry to understand/learn too much. If you are a business analyst you can ask for a developer that will manage the issue. if you are a developer you can ask for a techie that will manage the issue and so on.</li><li>if you learn something, do no use time to be sure this knowledge could be accessible 24 hours 7 days a week. (AKA do not document)</li><li>the system is right now configured and functional, then if a similar configuration will be needed in the future the only thing you will need to do is ‘copy &amp; paste the configuration’ and … probably all is going to work fine.</li></ul><p>Ancient approaches are revisited: Instead ‘Divination reading animal entrails’, we use ‘Divination reading of System Internals’, activating or adding debug messages in order to answer the question: <em>Why the configuration that I’ve applied does not show the expected outcome?.</em></p><p>Creating a network of people with the right knowledge is not a bad thing. They are the people that know how to put the right piece in the right place of the puzzle.</p><p>The wrong thing to do is not maximize the benefits of this network because we overuse it without never creating <strong>persistent all-around-the-clock accessible knowledge</strong>. It’s clear you can not ‘capture’ people genius, analysis capacity, or intuition but all other things must be ‘distilled’ for the sake of the team, and finally for the sake of the company.</p><p>Avoid to work in a ‘Hansel &amp; Gretel’ way, do not manage your findings, your learning as bread crumbs, because when you will need it again you are going to find that ‘the birds’ have eaten it!!.</p><p>What can be one of the worst feelings when you face a problem, is the <strong>Déjà vu, </strong>you said to yourself: ‘<em>… mmm oh no, we have had this issue x days/months/years ago, how we can be so silly to do not document how we solved it?</em>’. At this moment we understand Sisifo, we are Sisifo.</p><p>Solve the issue now, but do not forget that sooner o later someone (mmm, maybe yourself) is going to need all the knowledge, genius, effort you have done. Without all this power, things will be solved at a slower and more expensive pace.</p><p>Creating <strong>persistent all-around-the-clock accessible knowledge</strong> is much easier and simpler that you thing, just make the first move and inspire others to follow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca07c75b3428" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>