<?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 Soumya Swaroop Gupta on Medium]]></title>
        <description><![CDATA[Stories by Soumya Swaroop Gupta on Medium]]></description>
        <link>https://medium.com/@sswaroop?source=rss-19291cc6c5e6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AxK_W9qwfHZb9SOXSo2wvg.jpeg</url>
            <title>Stories by Soumya Swaroop Gupta on Medium</title>
            <link>https://medium.com/@sswaroop?source=rss-19291cc6c5e6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 05:53:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sswaroop/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[Testing ag-Grid with Taiko Automation Tool]]></title>
            <link>https://sswaroop.medium.com/testing-ag-grid-with-taiko-automation-tool-aa5c3af5e688?source=rss-19291cc6c5e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa5c3af5e688</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[ag-grid]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Soumya Swaroop Gupta]]></dc:creator>
            <pubDate>Thu, 28 Jan 2021 15:37:49 GMT</pubDate>
            <atom:updated>2021-01-28T15:37:49.991Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9fEkntbM5M4wscEC.jpg" /></figure><p><a href="https://github.com/getgauge/taiko">Taiko</a> is a free and open source browser automation tool built by the team behind <a href="https://gauge.org/">Gauge</a> from <a href="https://www.thoughtworks.com/">ThoughtWorks</a>. <a href="https://github.com/getgauge/taiko">Taiko</a> is a Node.js library with a clear and concise API to automate <strong>Chromium-based browsers </strong>(Chrome, Microsoft Edge, Opera) and Firefox. You integrate it with test runners like <a href="https://gauge.org/">Gauge</a>, <a href="https://mochajs.org/">Mocha</a>, <a href="https://jestjs.io/">Jest</a> to use it in a project.</p><p>In this post, we’ll show you how to test ag-Grid with <a href="https://github.com/getgauge/taiko">Taiko</a>.</p><p>Testing ag-Grid with Taiko is illustrated for two test runners in these repos:<br>1. Testing <a href="https://github.com/getgauge-examples/ag-grid-taiko-gauge.git">ag-Grid with Taiko and Gauge</a><br>2. Testing <a href="https://github.com/getgauge-examples/ag-grid-taiko-mocha.git">ag-Grid with Taiko and Mocha</a></p><h3>Contents</h3><ul><li><a href="https://blog.ag-grid.com/testing-ag-grid-with-taiko-automation-tool/#test-environment">Test Environment Setup</a></li><li><a href="https://blog.ag-grid.com/testing-ag-grid-with-taiko-automation-tool/#first-test">Creating your first test script</a></li><li><a href="https://blog.ag-grid.com/testing-ag-grid-with-taiko-automation-tool/#sorting-column">Sorting an ag-Grid column</a></li><li><a href="https://blog.ag-grid.com/testing-ag-grid-with-taiko-automation-tool/#filtering-column">Filtering an ag-Grid column</a></li><li><a href="https://blog.ag-grid.com/testing-ag-grid-with-taiko-automation-tool/#grouping-column">Grouping an ag-Grid column</a></li><li><a href="https://blog.ag-grid.com/testing-ag-grid-with-taiko-automation-tool/#identifying-row">Identifying a row in ag-Grid</a></li><li><a href="https://blog.ag-grid.com/testing-ag-grid-with-taiko-automation-tool/#verifying-text">Verifying text in a grid cell</a></li><li><a href="https://blog.ag-grid.com/testing-ag-grid-with-taiko-automation-tool/#selecting-value">Selecting a value in a grid cell Combobox</a></li></ul><h3>Test Environment Setup</h3><p><strong>Prerequisites</strong></p><ul><li><a href="https://nodejs.org/en/">NodeJS</a></li><li>A sample application using ag-Grid. To keep things simple we will be using the <a href="https://www.ag-grid.com/example.php">demo of ag-grid</a> hosted on the ag-grid website.</li></ul><p><strong>Installation</strong></p><p>Install taiko using npm by running the following command in a terminal:</p><pre>$ npm install -g taiko</pre><h3>Creating the first test script</h3><p>Start Taiko in REPL using the command below:</p><pre>&gt; taiko</pre><p>Before executing a user flow we have to open the browser and visit the webpage to be tested. In this case we navigate to ag-grid’s sample website and click on the columns button to close the side filters.</p><p>See the commands to execute this listed below:</p><pre>&gt; taiko<br>&gt; openBrowser()<br>&gt; goto(&#39;<a href="https://www.ag-grid.com/example.php">https://www.ag-grid.com/example.php</a>&#39;)<br>&gt; click(&quot;Columns&quot;)</pre><p>Now that we’ve covered the basics, let’s record some more complex test scripts with ag-Grid.</p><h3>Sorting an ag-Grid column</h3><p>You can sort a column in ag-Grid by clicking its column header. Let’s see how we can build a test script to do this automatically.</p><p>In the test sample you can sort the <strong>Language </strong>column by using the click API as follows:</p><pre>&gt; click(&quot;Language&quot;)</pre><p>See this in action in the embedded video below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdevJyU-5arw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdevJyU-5arw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FdevJyU-5arw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/270bc0dbf474ef985c53ec6cd357bdd5/href">https://medium.com/media/270bc0dbf474ef985c53ec6cd357bdd5/href</a></iframe><p>Though the term “Language” appears more than once on the page, Taiko looks for the first visible occurrence before performing an operation. Since the filters on the side column are closed, `click(“Language”)` will click on the column with the heading “Language”.</p><p>To save all the steps to a script file and exit the REPL please run the commands below:</p><pre>&gt; .code sort-ag-grid.js<br>&gt; .exit</pre><p>Taiko exports the code as JavaScript, as shown below:</p><pre>const { openBrowser, goto, click, closeBrowser } = require(&#39;taiko&#39;);<br>(async () =&gt; {<br>    try {<br>        await openBrowser();<br>        await goto(&#39;<a href="https://www.ag-grid.com/example.php">https://www.ag-grid.com/example.php</a>&#39;);<br>        await click(&quot;Columns&quot;);<br>        await click(&quot;Language&quot;);<br>    } 	<br>    catch (error) {<br>        console.error(error);<br>    } 	<br>    finally {<br>        await closeBrowser();<br>    }<br>})();</pre><p>You can run the script using the taiko command:</p><pre>&gt; taiko sort-ag-grid.js</pre><h3>Filtering an ag-Grid column</h3><p>To filter a column in ag-grid, the manual steps are:</p><ol><li>Open the floating filter menu of the column Language. Since there are several filter menus, we identify it by specifying that it is below and to the right of the column Language.</li><li>In the application all items are selected by default. We have to unselect the “Select All” checkbox before filtering on the required elements.</li><li>Select the filter “English” in the column “Language”</li><li>Select the filter “Greek” in the column “Language”</li></ol><p>Let’s now build a test script to do the same steps automatically. In the REPL we can start to automate the flow with the commands below:</p><pre>&gt; click(button({&quot;aria-label&quot;: &quot;Open Filter Menu&quot;}), below(&quot;Language&quot;), toRightOf(&quot;Language&quot;))<br>&gt; click(checkBox(toLeftOf(text(&quot;Select All&quot;,below(&quot;Language&quot;)))));<br>&gt; click(checkBox(toLeftOf(text(&quot;English&quot;,below(&quot;Language&quot;)))));<br>&gt; click(checkBox(toLeftOf(text(&quot;Greek&quot;,below(&quot;Language&quot;)))));<br>&gt; .code filter-ag-grid.js<br>&gt; .exit</pre><p>See this in action in the video below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FodyTuS2CPTk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DodyTuS2CPTk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FodyTuS2CPTk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/21b4484d07752b91f2d1ccfd363f4abe/href">https://medium.com/media/21b4484d07752b91f2d1ccfd363f4abe/href</a></iframe><p>This gives the following JavaScript code:</p><pre>const { openBrowser, goto, click, button, below, toRightOf, text, toLeftOf, checkBox, closeBrowser } = require(&#39;taiko&#39;);<br>(async () =&gt; {<br>    try {<br>        await openBrowser();<br>        await goto(&#39;<a href="https://www.ag-grid.com/example.php">https://www.ag-grid.com/example.php</a>&#39;);<br>        await click(&quot;Columns&quot;);<br>        await click(button({&quot;aria-label&quot;: &quot;Open Filter Menu&quot;}), below(&quot;Language&quot;), toRightOf(&quot;Language&quot;));<br>        await click(checkBox(toLeftOf(text(&quot;Select All&quot;,below(&quot;Language&quot;)))));<br>        await click(checkBox(toLeftOf(text(&quot;English&quot;,below(&quot;Language&quot;)))));<br>        await click(checkBox(toLeftOf(text(&quot;Greek&quot;,below(&quot;Language&quot;)))));<br>    } <br>    catch (error) {<br>        console.error(error);<br>    } <br>    finally {<br>        await closeBrowser();<br>    }<br>})();</pre><p>Run the script using the command below:</p><pre>&gt; taiko filter-ag-grid.js</pre><h3>Grouping an ag-Grid column</h3><p>You can group the grid’s rows by a column manually by dragging the “Language” column and dropping it into the section that says ”Drag here to set row groups”.</p><p>Here’s how to automate this column grouping flow in Taiko’s REPL:</p><pre>&gt; dragAndDrop(&quot;Language&quot;,into(&#39;Drag here to set row groups&#39;))<br>&gt; .code group-ag-grid.js<br>&gt; .exit</pre><p>The placeholder ‘Drag here to set row groups’ can be used to indicate an element. In this case, we will use it to identify the area where the dragged element needs to be dropped.</p><p>See this in action in the video below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJT_I4nykons%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJT_I4nykons&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJT_I4nykons%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/45db9edde507f19d54dec76ccca7a164/href">https://medium.com/media/45db9edde507f19d54dec76ccca7a164/href</a></iframe><p>This script then produces the following JavaScript code:</p><pre>const { openBrowser, goto, click, into, dragAndDrop, closeBrowser } = require(&#39;taiko&#39;);<br>(async () =&gt; {<br>    try {<br>        await openBrowser();<br>        await goto(&#39;<a href="https://www.ag-grid.com/example.php">https://www.ag-grid.com/example.php</a>&#39;);<br>        await click(&quot;Columns&quot;);<br>        await dragAndDrop(&quot;Language&quot;,into(&#39;Drag here to set row groups&#39;));<br>    } <br>    catch (error) {<br>        console.error(error);<br>    } <br>    finally {<br>        await closeBrowser();<br>    }<br>})();</pre><p>You can run the generated script using the command below:</p><pre>&gt; taiko group-ag-grid.js</pre><h3>Identifying an ag-Grid row</h3><p>In order to do any row-level operations, you need to identify a grid row first, and then a cell within a column in this row based on the col-id. Col-id is unique for the column and row-id is unique for a row. The <strong>within </strong>selector defines the boundary within which an element can be searched. This is used here to identify a cell under a given column heading in a given row.</p><p>For example the code below looks for the element under the column “Language“ within the 1st row.</p><pre>$(&#39;[col-id=&quot;language&quot;]&#39;), within($(&#39;[row-id=&quot;0&quot;]&#39;))</pre><p>Once the cell is identified, you can perform any operation of your choice, for example verifying its text or selecting a value from a combobox editor in the cell. This is demonstrated below.</p><h3>Verifying text in a grid cell</h3><p>Once you’ve identified a row using the step above, you may want to verify the text in a grid cell.</p><p>In the REPL we can start to automate this flow with the following code:</p><pre>&gt; $(&#39;[col-id=&quot;language&quot;]&#39;, within($(&#39;[row-index=&quot;0&quot;]&#39;))).text()<br>&gt; ‘English`<br>&gt; .code assert-text-in-row.js<br>&gt; .exit</pre><p>See this in action in the video below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2QOR-AzDtI8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2QOR-AzDtI8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2QOR-AzDtI8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e6f89777fc7b5db1a41e6832333e35e2/href">https://medium.com/media/e6f89777fc7b5db1a41e6832333e35e2/href</a></iframe><p>This produces the following test code in JavaScript:</p><pre>const { openBrowser, goto, click, $, within, closeBrowser } = require(&#39;taiko&#39;);<br>const assert = require(“assert”);<br>(async () =&gt; {<br>    try {<br>        await openBrowser();<br>        await goto(&#39;<a href="https://www.ag-grid.com/example.php">https://www.ag-grid.com/example.php</a>&#39;);<br>        await click(&quot;Columns&quot;);<br>        assert.equal(await ($(&#39;[col-id=&quot;language&quot;]&#39;, within($(&#39;[row-index=&quot;0&quot;]&#39;))).text()),&quot;English&quot;);<br>    } <br>    catch (error) {<br>        console.error(error);<br>    } <br>    finally {<br>        await closeBrowser();<br>    }<br>})();</pre><p><strong>Note</strong>: `English` is the value of the text of the cell in row `0` under the column “Language”. We can assert on this by updating the above code snippet with the assertion statement.</p><p>Run the script using the command below:</p><pre>&gt; taiko assert-text-in-row.js</pre><h3>Selecting a value in a grid cell Combobox</h3><p>Another action you can perform once you’ve identified a grid cell is selecting a specific option in a combobox editor in the cell. You can do that by following the steps below:</p><ol><li>Double click on the cell with the combobox for it to show the dropdown elements.</li><li>Select the required value.</li></ol><p>In the REPL we can automate the flow with the following code:</p><pre>&gt; doubleClick($(&#39;[col-id=&quot;language&quot;]&#39;, within($(&#39;[row-index=&quot;1&quot;]&#39;))));<br>&gt; click(&quot;Spanish&quot;);<br>&gt; .code combobox-in-row.js<br>&gt; .exit</pre><p>See this in action in the video below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FM2aZGoUYTYw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DM2aZGoUYTYw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FM2aZGoUYTYw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/646ad0316f2beed8aa0779b1b10ee358/href">https://medium.com/media/646ad0316f2beed8aa0779b1b10ee358/href</a></iframe><p>The saved JavaScript file looks like this:</p><pre>const { openBrowser, goto, click, $, within, closeBrowser, doubleClick } = require(&#39;taiko&#39;);<br>(async () =&gt; {<br>    try {<br>        await openBrowser();<br>        await goto(&#39;<a href="https://www.ag-grid.com/example.php">https://www.ag-grid.com/example.php</a>&#39;);<br>        await click(&quot;Columns&quot;);<br>        await doubleClick($(&#39;[col-id=&quot;language&quot;]&#39;, within($(&#39;[row-index=&quot;1&quot;]&#39;))));<br>        await click(&quot;Spanish&quot;);<br>    } <br>    catch (error) {<br>        console.error(error);<br>    } <br>    finally {<br>        await closeBrowser();<br>    }<br>})();</pre><p>Run the script using the command below:</p><pre>&gt; taiko combobox-in-row.js</pre><h3>What’s next?</h3><p>We hope this gives you a good introduction on how to use Taiko to generate tests against ag-Grid.</p><p>The samples illustrating how to use <a href="https://github.com/sguptatw/ag-grid-example">Taiko and Gauge to test ag-grid</a>, <a href="https://github.com/sguptatw/ag-grid-taiko-mocha">Taiko and Mocha to test ag-grid</a> are available on Github. These also demonstrate how to select a date. If you think we have missed any scenarios, please leave us a comment and we’ll follow up with you.</p><p>If you would like to try out ag-Grid check out the getting started guides (<a href="https://www.ag-grid.com/javascript-getting-started/">JS</a> / <a href="https://www.ag-grid.com/react-getting-started/">React</a> / <a href="https://www.ag-grid.com/angular-getting-started/">Angular</a> / <a href="https://www.ag-grid.com/vue-getting-started/">Vue</a>)</p><p>Happy coding!</p><p><a href="https://blog.ag-grid.com/testing-ag-grid-with-taiko-automation-tool/"><em>This article was originally published on the blog.ag-grid.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa5c3af5e688" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross browser testing with non-functional tests]]></title>
            <link>https://sswaroop.medium.com/cross-browser-testing-with-non-functional-tests-4c58d983d9b9?source=rss-19291cc6c5e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c58d983d9b9</guid>
            <category><![CDATA[cross-browser-testing]]></category>
            <category><![CDATA[static-code-analysis]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Soumya Swaroop Gupta]]></dc:creator>
            <pubDate>Mon, 21 Sep 2020 14:56:41 GMT</pubDate>
            <atom:updated>2020-09-24T08:06:03.316Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qIeLFCNfnLYZuKZSZbnyLQ.jpeg" /></figure><p>Ensuring <a href="https://en.wikipedia.org/wiki/Cross-browser_compatibility">cross browser compatibility</a> is a <a href="https://en.wikipedia.org/wiki/Non-functional_requirement">non functional requirement</a> (NFR). Cross browser requirements do not define the application’s behavior but defines where the application will be used.</p><blockquote>A <a href="https://en.wikipedia.org/wiki/Functional_requirement">functional requirement</a> defines what a system is supposed to do. A NFR specifies criteria that can be used to judge the operation of a system, rather than specific behaviors. — <a href="https://en.wikipedia.org/wiki/Non-functional_requirement">wikipedia</a>.</blockquote><p>In my experience as a developer and tester, I’ve seen a lot of teams hoping to uncover cross browser issues by only running their automated UI tests across browsers.</p><p>Not all cross browser compatibility issues are caught by functional tests. In this post we look at ways to ensure cross browser compatibility without relying on functional tests.</p><h3>Deal with Non Functional Requirements earlier</h3><blockquote>The plan for implementing non-functional requirements is detailed in the <a href="https://en.wikipedia.org/wiki/Systems_architecture">system architecture</a>, because they are usually <a href="https://en.wikipedia.org/wiki/Architecturally_significant_requirements">architecturally significant requirements</a>. — <a href="https://en.wikipedia.org/wiki/Non-functional_requirement">wikipedia</a>.</blockquote><p>Cross browser requirements have to be taken into account by developers before the development begins as it’s architecturally significant.</p><p>Most probably everyone uses some kind of framework which already checks for compatibility. Javascript frameworks like <a href="https://reactjs.org/">ReactJS</a>, <a href="https://vuejs.org/">Vue.js</a>, <a href="https://jquery.com/">JQuery</a>, and UI frameworks like <a href="https://getbootstrap.com/">Bootstrap</a>, <a href="https://tailwindcss.com/">Tailwind</a> test for cross browser compatibility.</p><ul><li>“React implements a browser-independent DOM system for performance and cross-browser compatibility. We took the opportunity to clean up a few rough edges in browser DOM implementations.” — <a href="https://reactjs.org/docs/dom-elements.html#gatsby-focus-wrapper">React JS Docs</a></li><li>“Vue.js supports all browsers that are ES5-compliant (IE8 and below are not supported)” — <a href="https://github.com/vuejs/vue#browser-compatibility">Vue.js Browser Compatibility</a></li><li>“Bootstrap supports the latest, stable releases of all major browsers and platforms. On Windows, we support Internet Explorer 10–11 / Microsoft Edge.” — <a href="https://getbootstrap.com/docs/4.0/getting-started/browsers-devices/">Bootstrap browser devices</a></li></ul><p>It is better to invest in the right architecture for your application than waiting for issues to be reported.</p><h3>Write non functional tests for Cross browser compatibility</h3><p>There are three main components to how a browser renders a web page.</p><ul><li>HTML — handles the static structure of the page</li><li>CSS — is the way we present the information with styles and visual layout</li><li>Scripts — add behaviour to UI elements.</li></ul><blockquote>The functionality of the application is the same across browsers. To ensure that the application works as expected in the browser/s you have to ensure that the CSS, HTML and JavaScript features work across browsers. This can be done by static analysis of front end code without running the application.</blockquote><p>“Static program analysis is the analysis of computer software that is performed without actually executing programs, in contrast with dynamic analysis, which is analysis performed on programs while they are executing.” — <a href="https://en.wikipedia.org/wiki/Static_program_analysis">wikipedia</a></p><blockquote>We can utilise some tools to cross-reference our code against the compatibility databases, targeting only the browsers and versions we are interested in. — <a href="https://medium.com/@you54f/reading-time-10-mins-8b6e7ef90062">cross browser testing, without the browsers</a></blockquote><p>Let’s look at visual regression analysis and scripting analysis to understand better!</p><h3>Visual regression</h3><p>The visual regression’s intention is to ensure the app appears as its designers intended. Browser automation frameworks used for functional tests ignore layout issues or UI regression.</p><blockquote>Look at this UI. How did this happen in production? My guess is that they have test automation for this. But guess what…all of the expected text is there. So, the tests are passing because traditional assertions would never catch this. — <a href="https://www.linkedin.com/feed/update/urn:li:activity:6516788025379426305/">Tweet by Angie Jones</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*70skKfZtzn9fQHai" /></figure><p>This example may seem exaggerated, but possible, because the functional tests pass by performing actions on the structure page (HTML selections using XPath) even if there are visual defects or if the app is visually unusable. Clearly functional tests do not ensure CSS and HTML browser compatibility.</p><p>Static code analysis reduces visual regression defects. <a href="https://caniuse.com/">CanIUse</a> has gained popularity among front end developers. The <a href="https://caniuse.com/#compare=edge+76,firefox+70,chrome+79,safari+TP&amp;compare_cats=JS,JS%20API,Security">incompatibilities are when front-end developers want to adopt new features</a>. If you are not aware of the browsers to be supported, it’s better to use features that are tried and tested.</p><h3>CSS Checking with Stylelint, ESLint for CSS</h3><p><a href="https://github.com/ismay/stylelint-no-unsupported-browser-features">Stylelint-no-unsupported-browser-features</a> is a plugin that allows configuration of target browser/s and errors are reported with the list of browsers that do not support a feature. It uses <a href="https://github.com/anandthakker/doiuse">doiuse</a> to detect browser support. <a href="https://stylelint.io/">Stylelint</a> is a <a href="https://nodejs.org/en/blog/npm/peer-dependencies/">peerdependency</a> of this plugin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/0*so6Fst6sSvhSgYWS" /></figure><h3>Scripting</h3><p>When functional tests are used to ensure cross browser compatibility, it increases the amount of time needed to triage and analyse the failures.</p><p>Functional testing tools act as mere aggregators of test results from various browsers and leave it up to the end user to get actionable insight. Functional tests fail when a test script cannot not perform an action, but it won’t tell you the root cause of failure. For instance, it will not tell you that the failure is because some scripting feature used in the application code isn’t supported by a relevant browser.</p><p>To get that specific feedback, plugins like <a href="https://github.com/amilajack/eslint-plugin-compat#readme">ESLint-plugin-CanIUse</a> can help.</p><h3>Checking JavaScript with esLint against caniuse db</h3><p>The <a href="https://github.com/amilajack/eslint-plugin-compat#readme">ESLint-plugin-CanIUse</a> plugin allows configuration of target browser/s, percentage of feature supported. Errors are reported with the list of browsers not supported and the percentage of the feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/0*-OrCzNdvbFU1nxxS.gif" /></figure><h3>Transpilers</h3><p>Another option is using a transpiler like Babel. <a href="https://babeljs.io/">Babel</a> allows you write code in the latest version of JavaScript and transpile to a version that’s backward compatible for browsers that don’t support newer features.</p><h3>Impact of standards and consolidation of browsers</h3><p>In the early days, JavaScript features weren’t standardised across browsers like IE and Firefox. We find various articles talking about the support for older browsers. There is a lot of information available to address these issues.</p><p>Testing frameworks were created to specifically target this issue. However, in recent times browsers follow standards. <a href="https://polyfill.io/v3/">Polyfills</a>, <a href="http://adripofjavascript.com/blog/drips/an-introduction-to-writing-your-own-javascript-compatibility-shims.html">shims</a> and <a href="https://modernizr.com/">Modernizr</a> are only used in projects where old browser versions need to be supported.</p><p>By the time we started to build <a href="https://github.com/getgauge/taiko">Taiko</a>, <a href="https://www.smashingmagazine.com/2019/01/web-standards-guide/">browser vendors agreed to standards</a>. With browsers adhering to standards, using functional tests to check cross browser compatibility is not just costly, but also redundant.</p><p><em>Originally published at </em><a href="https://gauge.org/2019/08/21/how-taiko-compares-to-other-browser-automation-tools/"><em>https://gauge.org</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c58d983d9b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tools that helped me manage home better in covid crisis]]></title>
            <link>https://sswaroop.medium.com/tools-that-helped-me-manage-home-better-in-covid-crisis-9673cb58ec74?source=rss-19291cc6c5e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9673cb58ec74</guid>
            <category><![CDATA[cleaning]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[robots]]></category>
            <dc:creator><![CDATA[Soumya Swaroop Gupta]]></dc:creator>
            <pubDate>Fri, 17 Jul 2020 05:23:30 GMT</pubDate>
            <atom:updated>2021-03-16T10:14:06.638Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*va0KVsIkPs5zZCedM3iDxQ.jpeg" /></figure><p>Here is my journey of evaluating tools/devices that would help me manage my home and life better during the COVID crisis. I hope it helps you to evaluate what you need to balance household chores and other things!</p><h3>Oximeter</h3><p>This is a device that helps in measuring the oxygen levels in the blood. Novel coronavirus attacks the respiratory system. <a href="https://timesofindia.indiatimes.com/life-style/health-fitness/health-news/coronavirus-prevention-what-is-a-pulse-oximeter-and-should-you-buy-it-for-prevention-of-covid-19/photostory/76513502.cms">Doctors suggest that this device is handy to find out if you need to be concerned about your respiratory system</a>.</p><p>Various brands of the device are available, I am using Oximed pulse oximeter at home and happy with it.</p><h3>Cleaning Tools</h3><p>In India, we depend highly on domestic help, to carry out day to day cleaning and maintenance of the house. But during the lockdown, I decided to invest in devices that would help me maintain my home better.</p><p>Here are some of the details of my evaluation, why I chose or did not choose a device. Please note that these are my opinions based on my requirement and usage. Things may be different for you. I hope this blog will help people see options that they may find useful to use.</p><h3>Dishwasher</h3><p>There are several dishwashers available in the market. Some of the options I considered are — <a href="https://www.bosch-home.in/products/dishwasher?cid=IN_Bosch_MDA_DishCare_GS_AlwaysOn_nd_iProspect|sear||cpc|goo|1901564625|69317628846|text||&amp;&amp;gclid=Cj0KCQjw9b_4BRCMARIsADMUIyobcAqfTX3YoCcBy8k8QGnTAdVrNbY7ZVay2WW1CWCWLNYFpQgK9LsaAo_OEALw_wcB">Bosch</a>, <a href="https://www.lg.com/in/dishwasher">LG</a>, <a href="https://www.siemens-home.bsh-group.in/appliances/dishwashers">Siemens</a>. The plate capacity determines the size of it. The utensils are clean and steamed. You may want to consider a few things</p><h4><strong>Things to consider</strong></h4><p><strong>Recurring cost</strong></p><ol><li>This device needs 15amps and takes between an hour to an hour and a half for a single run depending on the brand and model you opt for.</li><li>The dishwasher detergents/tablets are different from washing powders.</li></ol><p><em>These add to your recurring cost of working!</em></p><p><strong>New Habits</strong></p><ul><li>Rinsing utensils before putting washing gives good results. If you choose to inculcate this habit it works for Indian cooking as well.</li><li>Loading a dishwasher is a habit. There are several videos on how we can load a dishwasher to work effectively. Personally I have loaded dishes in multiple layers inside one chamber. The trick is to ensure no utensils touch the dishwasher rotating parts and ensure space to splash water on all dishes!</li></ul><p><strong>My opinion</strong></p><p>I opted for LG with 14 plates. One major difference that I found between LG and other dishwashers was that the spikes in the lower chamber can be folded. This gives me a lot of flexibility when the load is high.</p><h3>Steam mops</h3><p>There are several steam mops available in the market. I borrowed a <a href="https://www.kaercher.com/in/home-garden/steam-cleaners.html">Kaercher</a> steam mop to evaluate it</p><p><strong>Pros</strong></p><ul><li>I was easily able to clean a messy floor.</li><li>The floor felt warm, disinfected, and deep cleaned.</li></ul><p><strong>Cons</strong></p><ul><li>I felt the manual effort to use the device was significant.</li><li>Steam limits the time one can use this continuously.</li><li>It’s wired. Yes, the wire is long but I think working with it is a limitation with small children around.</li></ul><p><strong>My opinion</strong></p><p>Though this deep clean space, I did not opt for this wired device as the effort to use this was significant.</p><h3>Sweeping/Vacuum robots</h3><p>There are several options available in the market. I looked at</p><ul><li><a href="https://www.dyson.in/products/cord-free/shop-cord-free-vacuums?utm_campaign=in_en_fc_fc-range_always-on_fc-range_fc-range_do_conversion_text_brand-rlsa_bmm&amp;utm_source=google&amp;utm_medium=paid_search&amp;utm_term=%2Bdyson%20%2Brobot&amp;utm_content=ds_na&amp;gclid=Cj0KCQjw9b_4BRCMARIsADMUIyrzhcUS4sVTA0ByTF7d7zB_8RAUsnetl3LS7zaLBQqvAloREAoY1X8aAgxGEALw_wcB&amp;gclsrc=aw.ds">Dyson</a> — The option available in India is expensive, requires manual effort, found it a little heavy to handle.</li></ul><p>The automatic Dyson 360 height is more and wouldn’t navigate below my sofa or shoe rack. Furthermore, this wasn’t available in India during corona.</p><ul><li><a href="https://www.amazon.in/Eureka-Forbes-Robotic-Vacuum-Cleaner/dp/B07DDXDJ72">Eureka Forbes</a> — I hadn’t evaluated it back then, but I think it’s worth spending your time and checking if this option suits you!</li><li><a href="https://iliferobot.com/">ILife</a> — I had borrowed this from one of my friends to evaluate. I wasn’t too impressed with the obstacle management.</li><li><a href="https://www.mi.com/in/index.html">Mi</a> — Looked promising. It’s economical, both sweeping and mopping robot. But in an online review, I found a user saying that he didn’t receive the mopping parts hence he uses it only as a sweeping robot.</li></ul><p>As it was lockdown times, I decided not to go for it since I was pressed for time and didn’t want the hassles of exchange or replacement or follow-ups.</p><p>Also with both sweeping and mopping robots, the one I tried had to be charged before it completes both sweeping and mopping. Yes, many claim auto-recharge, but you have to still keep track of jobs being done to change the dry to mopping pads.</p><ul><li><a href="https://irobot.in/">IRobot</a> — Expensive. It has separate robots for vacuum and mopping.</li></ul><p>Rumba 900 series vacuum is very good. The latest has more features but I thought this was good enough.</p><p>IRobot Bravaa m6 is better than 300 series. Bravaa has both sweeping and mopping options, but personally I prefer robot vacuum over robot sweeping. I use Bravaa only as a mopping robot.</p><p>The old 240 series is out of production. Bravaa m6 does a good job in small places like rooms. I have learned how to use it in the hall(large spaces) so that tire marks that appear are minimal. Also, there are options to adjust the water level and cleaning level. Overall it’s worked for me. It is very slow so I make sure it covers most ground at night when everyone is sleeping!</p><p><em>Please note that these don’t work on the stairs.</em></p><p><strong>Recurring cost</strong></p><p>The bravaa m6 mops are expensive. Unlike the 300 series where we can easily use other microfibres.</p><p><strong>My opinion</strong></p><p>I liked the vacuum robots better than the sweeping robot. This sucks the hair or minute particles, the sweeping robot does a good job but I think vacuum robots are more effective.</p><p>Use filter water for mopping robot, hard water can lead to scale deposits. After use, rub the mop pad lightly with your hands to clean it. This helps to keep the wear and tear low.</p><p>Keep the water spray level to the minimum to keep the tire marks to the minimum. However, I think there is scope for improvement in the mopping robots.</p><p>No robot is perfect, I find ways to make it work for me! Overall I have been happy with the cleaning done!</p><h3>Electric spinning mops</h3><p>I found this <a href="https://www.amazon.in/dp/B07NQK3KDD/ref=cm_sw_r_wa_apa_i_B4k7EbATHRZFW">spinning electric mops</a> that can be used to clean the bathroom floor.</p><p><strong>My opinion</strong></p><p>Surely this is not for deep cleaning but does a fair job when used for daily cleaning.</p><h3>Spray mops</h3><p>I found this useful in the quick cleaning of the kitchen after every meal. There are several available in the market, I picked up <a href="https://www.amazon.in/dp/B082GDBYDX/ref=cm_sw_r_wa_apap_cYiIYq4kzuaRD">this one</a>.</p><p><strong>My opinion</strong></p><p>This is meant for regular cleaning and not deep cleaning.</p><h3>Foldable microfiber cleaner</h3><p>Climbing a ladder to clean the fan is a tedious task. In my quest to look for time-saving options, I came across this <a href="https://www.amazon.in/Foldable-Cleaning-Feather-Microfiber-Cleaner/dp/B088TRR7GY">foldable cleaner</a>.</p><p><strong>My opinion</strong></p><p>You will have to train yourself to ensure the fan wings are not moving while using it. It does a fair job of removing dust from fans.</p><p>No matter what tool you choose, there are some teething issues in getting used to using the device and making it work for you. If you are okay with it using these will give you time for yourself apart from household chores!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9673cb58ec74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Taiko compares to other browser automation tools]]></title>
            <link>https://sswaroop.medium.com/how-taiko-compares-to-other-browser-automation-tools-945e18ea1e22?source=rss-19291cc6c5e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/945e18ea1e22</guid>
            <category><![CDATA[puppeteer]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[comparison]]></category>
            <category><![CDATA[testing-tools]]></category>
            <category><![CDATA[selenium]]></category>
            <dc:creator><![CDATA[Soumya Swaroop Gupta]]></dc:creator>
            <pubDate>Tue, 03 Sep 2019 06:46:58 GMT</pubDate>
            <atom:updated>2019-09-03T06:46:58.021Z</atom:updated>
            <content:encoded><![CDATA[<h4>Taiko is designed to be simple, reliable and a fast browser automation tool. Comparing it with other popular open source tools to find how different it really is. — August 23, 2019 | Soumya Swaroop Gupta, Nivedha Senthil</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*J7-8FZQtNeRY-Od5.jpg" /></figure><p>ThoughtWorks has been writing free and open source automated browser testing tools for over 15 years. Selenium RC was released in 2004, and WebDriver in 2007. Today, there are a lot of free and open source tools to automate browser based tests. Unfortunately, problems like flakiness and the cost of test maintenance have plagued this category of tests for a long time.</p><p>Over time, as users, we have opted for workarounds to deal with some of these issues. But sometimes all it needs is a different approach.</p><p>This year, the Gauge (by ThoughtWorks) team released <a href="https://taiko.gauge.org/?utm_source=how_taiko_blog&amp;utm=medium=blog&amp;utm_campaign=taiko_blogpost&amp;utm_term=&amp;utm_content=">Taiko 1.0</a>, a simple NodeJS library to address some of the problems of browser-based automated tests.</p><p>In this post, we’ll compare <strong>Taiko</strong> with five popular open source browser automation tools</p><p>Since we are a part of the team that built Taiko, our intention to compare is to discuss our rationale behind each point of comparison (along with examples) and how we think Taiko’s approach helps in each instance.</p><p>While analysing, we considered these parameters for a holistic comparison</p><ul><li>Test maintenance</li><li>Reliability (reduced flakiness)</li><li>Performance</li><li>Test frameworks integration</li><li>Ease of test failure analysis</li><li>Cross Browser support</li><li>Language support</li></ul><h3>1. Test Maintenance</h3><p><strong>The goal</strong>: Tests should change only when there is a change in functionality. A change in the structure of a web page should not impact a test validating functional correctness.</p><p>However, most browser automation tools create tests that are hard to maintain. That’s because they use locators like XPath, ID’s, CSS selectors to identify and perform actions on web page elements.</p><blockquote>“Maintaining locators must be calculated as part of test maintenance cost.” — <a href="https://blog.mozilla.org/fxtesteng/2013/09/26/writing-reliable-locators-for-selenium-and-webdriver-tests/">FireFox Test Engineering</a> blog</blockquote><p>These locators depend on the structure of a web page. The underlying structure can (and does) change frequently throughout the development process. Even minor changes in page structure break such tests. So, it increases the test maintenance costs.</p><p><strong>Taiko’s approach</strong></p><blockquote>Taiko allows you to select elements on the page based on what you see. It’s not based on the specific underlying structure that only a developer sees.</blockquote><p>This means, to click that “Purchase” button you can use click( &quot;Purchase&quot;). It&#39;s based on the text on the screen and not based on the specific style, location or hidden identifier.</p><p>Multiple matches can be resolved with <a href="https://taiko.gauge.org/?utm_source=how_taiko_blog&amp;utm=medium=blog&amp;utm_campaign=taiko_blogpost&amp;utm_term=&amp;utm_content=#toleftof">proximity selectors</a> or a combination of them. Yet, if this is unsuitable, Taiko has fall back options. You can choose to select an element on the web page via XPath or CSS selector.<strong>Benefits</strong></p><p><a href="https://taiko.gauge.org/?utm_source=how_taiko_blog&amp;utm=medium=blog&amp;utm_campaign=taiko_blogpost&amp;utm_term=&amp;utm_content=#smart-selectors">Taiko’s API</a> treats the browser like a black box. Tests written in Taiko are resilient to page structure changes as they minimise the need of using complicated locators.</p><p><strong>Compare with examples</strong></p><p><a href="https://github.com/getgauge-contrib/compareBrowserAutomationTools/tree/master/compareCostOfSelectorMaintenance">This example</a> compares scripts automating the <a href="http://todomvc.com/">TODO MVC</a> application. The tests currently pass for the <a href="http://todomvc.com/examples/react/#/">React flavor</a> of the TODO MVC. However, only tests written in Taiko pass when they are run against the <a href="http://todomvc.com/examples/angularjs/#/!">AngularJS</a> flavor of TODO MVC. This is because Taiko focuses on testing functionality and not the underlying page or framework.</p><p><strong>Key Findings</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ecf0bed4e0498fb9ab049400c3afc71/href">https://medium.com/media/1ecf0bed4e0498fb9ab049400c3afc71/href</a></iframe><h3>2. Reliability (reduced flakiness)</h3><p><strong>The goal</strong> : Eliminate the root cause of flakiness in browser based tests.</p><p>In modern web applications, elements on the page can dynamically appear and disappear based on user actions. For example, imagine clicking on a user’s icon to display their photos.</p><p>However, many libraries expect the test code to handle the wait time to perform an action. Other tools provide some granular and low level controls to explicitly wait for elements or time however, it’s hard to learn and use these controls.</p><blockquote>“1 in 7 of the tests written by our world-class engineers occasionally fail in a way not caused by changes to the code or tests.” — <a href="https://testing.googleblog.com/2016/05/flaky-tests-at-google-and-how-we.html?m=1">Google Testing blogs</a></blockquote><p>Explicit waits make test code unpredictable. Improper configuration, inappropriate use of APIs along with ineffective handling of waits by the tool makes tests flaky.</p><p><strong>Taiko’s approach</strong></p><p>As shown below, both Taiko and TestCafe have very good implicit wait mechanism before performing actions. This reduces flakiness in tests. However, unlike TestCafe, Taiko also ensures that the <a href="https://github.com/getgauge-contrib/compareBrowserAutomationTools/blob/master/comparePerformanceAndReliableWaitsOfTools/ComparePerfomance.md">performance of the test run remains good</a>!</p><p>In case you want finer control, Taiko also has good fallback options to override the default behavior. You can define explicit <a href="https://taiko.gauge.org/?utm_source=how_taiko_blog&amp;utm=medium=blog&amp;utm_campaign=taiko_blogpost&amp;utm_term=&amp;utm_content=#waitfor">wait for conditions</a> for a given action in the test code to suit your needs.<strong>Benefits</strong></p><blockquote>Modern test libraries “await” the element to appear instead. This makes your tests run more resilient to things like slow network connections. Implicit waits increase predictability.</blockquote><p><strong>Compare with examples</strong></p><p>In this <a href="https://github.com/getgauge-contrib/compareBrowserAutomationTools/tree/master/comparePerformanceAndReliableWaitsOfTools/benchmarks">example</a> only Taiko and TestCafe don’t need any explicit waits. To observe flakiness, comment out all the explicit wait conditions in tests of other tools and run it a few times. A detailed comparison is available in the <a href="https://github.com/getgauge-contrib/compareBrowserAutomationTools/blob/master/comparePerformanceAndReliableWaitsOfTools/CompareReliableWaitMechanism.md">readme file</a> inside the example.</p><p><strong>Key Findings</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2159b945b2c4edfe26998045805d610f/href">https://medium.com/media/2159b945b2c4edfe26998045805d610f/href</a></iframe><h3>3. Performance</h3><p><strong>The goal</strong>: Get fast and reliable feedback on test failures</p><blockquote>“Usually the concern is application performance, which can have a direct impact on the bottom line. Testing performance, on the other hand, has a direct impact on developer productivity.” — <a href="https://techbeacon.com/app-dev-testing/why-your-choice-software-testing-suites-matters">Why your choice of software testing suites matters</a></blockquote><p>Slow test suites increase feedback time and time to fix, when something breaks. Teams generally tend to ignore slow test suites.</p><p><strong>Taiko’s approach</strong></p><blockquote>Taiko explicitly chooses reliability over extreme performance. If this tradeoff is unsuitable, you can choose to override it to improve performance. Explicit waits can be defined for a given action.</blockquote><p><strong>Benefits</strong></p><ul><li>Fast and more importantly, reliable feedback helps improve developer productivity. Flaky tests can be difficult to work with. You not only waste time analysing them but also genuine failures are re-run to check for flakiness. So as important as it is to be fast, it’s important that tests are reliable.</li><li>Run tests in parallel for free. Running parallel tests in Cypress is a <strong>paid</strong> service. Unlike Cypress; Selenium, Puppeteer and Taiko tests can integrate with any test framework like <a href="https://gauge.org//?utm_source=how_taiko_blog&amp;utm=medium=blog&amp;utm_campaign=taiko_blogpost&amp;utm_term=&amp;utm_content=">Gauge</a>, <a href="https://mochajs.org/">Mocha</a>, and <a href="https://jestjs.io/">Jest</a>. These can then use the framework’s parallel execution feature for <strong>free</strong>.</li></ul><p><strong>Compare with examples</strong></p><p>In this <a href="https://github.com/getgauge-contrib/compareBrowserAutomationTools/tree/master/comparePerformanceAndReliableWaitsOfTools/benchmarks">example</a>, we ran all the tests sequentially, multiple times, to compare performance across tools. Machine and other details of the run are available in the <a href="https://github.com/getgauge-contrib/compareBrowserAutomationTools/blob/master/comparePerformanceAndReliableWaitsOfTools/ComparePerfomance.md">readme file</a> of this example.</p><p>A shorter time and lower CPU indicate better performance. Here are some results of benchmark tests run in cpu with 8 core.</p><p><strong>Key Findings</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a12a736ece73110d963d9f00dbadced/href">https://medium.com/media/8a12a736ece73110d963d9f00dbadced/href</a></iframe><p><em>*Testcafe’s execution time could be 16 seconds if there were no reloads between tests. Reloading added an additional 4 seconds to the test suite.</em></p><p><strong>Some observations</strong></p><ul><li>We added waits <a href="https://github.com/getgauge-contrib/compareBrowserAutomationTools/blob/c93fda4184b17f9dee3fd3c894cd98d5bf42db42/comparePerformanceAndReliableWaitsOfTools/benchmarks/selenium/tests/customerManager.test.js#L45">for a time period</a> in Selenium tests while measuring the performance. We found that it required a lot more effort to write optimized code (wait for required conditions) to reduce flakiness. Further optimisations can reduce the time taken for execution.</li><li>Since it is difficult to integrate TestCafe and Cypress with other test frameworks, they have to depend on their inbuilt parallelization support. WebdriverIO supports parallelization.</li><li>Running parallel tests in Cypress is a <a href="https://www.cypress.io/pricing/">paid</a> service.</li><li>Further optimisations can reduce the time taken for execution in Taiko. Users can choose to override implicit waits for a given action and define it explicitly in test code.</li></ul><h3>4. Test framework integration</h3><p><strong>The goal</strong>: A testing library like Taiko must be able to take advantage of the rich testing oriented feature set provided by modern test frameworks like <a href="https://gauge.org//?utm_source=how_taiko_blog&amp;utm=medium=blog&amp;utm_campaign=taiko_blogpost&amp;utm_term=&amp;utm_content=">Gauge</a>, <a href="https://mochajs.org/">Mocha</a>, and <a href="https://jestjs.io/">Jest</a>.</p><p><strong>Taiko’s approach</strong></p><blockquote>Taiko is a simple NodeJS library that can easily integrate with any Javascript test frameworks.</blockquote><p><strong>Benefits</strong></p><ul><li>Avoiding vendor lock-in and increasing the portability of tests.</li><li>Available for free. E.x., Gauge’s reporting, parallel execution, IDE support, integration with CD workflows, and more.</li></ul><p><strong>Key Findings</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18d347ec000426d702bda3450d01e063/href">https://medium.com/media/18d347ec000426d702bda3450d01e063/href</a></iframe><h3>5. Ease of test failure analysis</h3><p><strong>The goal</strong>: Tools must make it easy to collect contextual data to analyse test failures.</p><blockquote>“The analysis part is normally done manually and if the analysis is not done correctly, there could be genuine failures that are overlooked or masked by other issues.” — <a href="https://www.testingexcellence.com/reasons-automated-tests-fail-to-find-regression-bugs/">5 reasons why automated tests fail to find regression bugs</a></blockquote><p>Failure analysis feature allows testers and developers to quickly find issues and fix test failures. Contextual data allows easier test failure analysis.</p><p><strong>Taiko’s approach</strong></p><p>Apart from the default data available on failure, more contextual data can be collected with custom plugins.</p><p>Taiko’s plugin architecture allows you to extend it in ways that suit your requirements.</p><p><strong>Benefits</strong></p><p>Users can use/ <a href="https://github.com/getgauge/taiko/wiki/Taiko-Plugin/?utm_source=how_taiko_blog&amp;utm=medium=blog&amp;utm_campaign=taiko_blogpost&amp;utm_term=&amp;utm_content=">build a plugin</a> to suit the requirements to collect relevant data. Example:- screencast plugins capture video of the current run.</p><p><strong>Key Findings</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0eeffeaf465218fcc8e74363e2b94236/href">https://medium.com/media/0eeffeaf465218fcc8e74363e2b94236/href</a></iframe><ul><li><em>Since Selenium, Taiko and Puppeteer can integrate with any test framework they can take advantage of the framework’s debugging, IDE, CI/CD support and more.</em></li><li><em>The paid services of Cypress have more options for test failure analysis in CI/CD environments.</em></li></ul><h3>6. Cross browser support</h3><p><strong>The goal</strong>: Ensure that tests run consistently across modern browsers.</p><p>Running tests across browsers adds significant overhead to both resources and test run times. We can avoid this overhead by choosing what to test. Modern Javascript applications, frameworks, shims and transpilers like babel do a good job of ensuring cross browser compatibility.</p><blockquote><em>Browsers are now starting to adopt standards for better web compatibility and less fragmentation of underlying web platforms</em></blockquote><p><strong>Taiko’s approach</strong></p><p>Like Puppeteer, Taiko also uses the excellent <a href="https://chromedevtools.github.io/devtools-protocol/">Chrome DevTools Protocol(CDP)</a> to automate browsers. Both work seamlessly with Chromium based browsers.</p><p><strong>Benefits</strong></p><p><a href="https://docs.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium">The next version of Microsoft Edge</a> is adopting the Chromium open source project. The Firefox team is working on adding support for CDP.</p><p>Taiko scripts are standards compliant and portable once browsers adopt these standards.</p><p>Below are the details of our key findings of the browsers supported with various tools.</p><p><strong>Key Findings</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d295629ace75a41cff3ee42384396f73/href">https://medium.com/media/d295629ace75a41cff3ee42384396f73/href</a></iframe><h3>7. Number of languages supported to author test code</h3><p><strong>The goal</strong>: The language available for authoring tests should allow users to write tests expressively.</p><p>All the tools we’ve chosen for comparison, support either one or more programming languages to write tests. With first class support for commonly used programming languages, these tools can leverage the team’s capabilities as well as IDE support.</p><p><strong>Taiko’s approach</strong></p><p>Taiko only supports Javascript to author test code, because it’s built on top of CDP (Chrome DevTools protocol) and the best library for working with CDP is in JavaScript.</p><p><strong>Benefits</strong></p><ul><li>It works well with the <a href="https://nodejs.org/en/">Node.js</a> ecosystem and frameworks like <a href="https://reactjs.org/">React</a>, <a href="https://angularjs.org/">Angular</a> and <a href="https://vuejs.org/">Vue.js</a></li><li>The team doesn’t have to learn a new language if they are building web applications</li><li>Taiko can automate any part of the browser</li></ul><p><strong>Key Findings</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9625fea28db248aded9cfc4013c230a9/href">https://medium.com/media/9625fea28db248aded9cfc4013c230a9/href</a></iframe><h3>Other Observations</h3><ul><li><strong>Cypress</strong> has a paid service that gives you access to recorded tests when running Cypress tests from your <a href="https://docs.cypress.io/guides/guides/continuous-integration.html">CI provider</a>. The dashboard provides insights about test runs.</li><li><strong>WebDriverIO</strong> has support for integration with cloud platforms to aid cross browser testing under its <a href="https://webdriver.io/docs/cloudservices.html">cloud services</a>.</li><li><strong>Puppeteer</strong> has the best performance. However, testing is not the focus of Puppeteer. It is widely used for web scraping. When used to write tests, the learning curve is high.</li><li><strong>Taiko</strong> unlike a UI recorder, Taiko’s REPL takes instructions given in the terminal and performs the action on the browser. The user can continue to give instructions to complete a workflow. Only successful actions are recorded as a script. This generates human readable code and keeps the learning curve low.</li></ul><h3>Summary</h3><p>Here is the report of the tools comparison</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IKMfKZ6kxTEasahG.jpg" /></figure><p>Check <a href="https://github.com/getgauge-contrib/compareBrowserAutomationTools">CompareBrowserAutomationTools</a>, a GitHub repository to validate our claims made in this blog.</p><p>We hope you find this comparison summary useful! Through various examples listed above we can deduce that Taiko is a reliable, cost effective browser automation tool with a good performance. There will be pros and cons of using any tool. If you’ve come across a tool that isn’t in the comparison but solves a problem better, leave us a comment.</p><p>As always, the team welcomes any <a href="https://github.com/getgauge/taiko/issues">feedback</a> that helps improve Taiko. You can <a href="https://taiko.gauge.org/?utm_source=how_taiko_blog&amp;utm=medium=blog&amp;utm_campaign=taiko_blogpost&amp;utm_term=&amp;utm_content=#quick-install">install Taiko</a> and explore more!</p><p><em>Originally published at </em><a href="https://gauge.org/2019/08/21/how-taiko-compares-to-other-browser-automation-tools/"><em>https://gauge.org</em></a><em>. Co-author </em><a href="https://medium.com/@nivedhasenthil"><em>Nivedha Senthil</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=945e18ea1e22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Minding the gap between executable specifications and BDD]]></title>
            <link>https://medium.com/getgauge/minding-the-gap-between-executable-specifications-and-bdd-3b7264fa1078?source=rss-19291cc6c5e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b7264fa1078</guid>
            <category><![CDATA[test-automation-framework]]></category>
            <category><![CDATA[bdd-development]]></category>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[agile-testing]]></category>
            <dc:creator><![CDATA[Soumya Swaroop Gupta]]></dc:creator>
            <pubDate>Wed, 28 Nov 2018 11:10:14 GMT</pubDate>
            <atom:updated>2018-12-04T05:24:39.875Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e6ZKlQyuOK6Z3axT" /></figure><p>What are the PROs and CONs of using Executable Specifications for BDD? Are all tools that have the ability to work with executable specifications meant for BDD? I have put down my observations based on experience of using executable specifications for BDD. To know more, read ahead.</p><p>Specification by Example is a collaborative requirements discovery approach where examples and automatable tests are used for specifying requirements.</p><blockquote>The concrete examples that are created can be used as <strong>executable software specifications</strong> to automatically verify that the software behaves as intended. — [<a href="https://docs.cucumber.io/guides/bdd-tutorial/">Source</a>]</blockquote><h3>Collaboration is the keyword in BDD</h3><p>From the definition of Behaviour Driven Development (BDD), we know that,</p><blockquote><em>“… BDD is as much about the interactions between the various people in the project as it is about the output of the development process.”</em></blockquote><blockquote>- “<a href="https://dannorth.net/whats-in-a-story/">What’s in a story</a>” by Dan North</blockquote><p>This makes it clear that BDD,</p><ul><li>is<a href="https://cucumber.io/blog/2014/03/03/the-worlds-most-misunderstood-collaboration-tool"> not about testing</a> (Even though tools like Cucumber may promote BDD with collaboration)</li><li>may be useful for documentation</li><li>may form the basis for automated tests</li><li>provides a “ubiquitous language” for analysis</li></ul><h3>Are executable specifications meant for BDD</h3><p>To answer this question, let’s look at a some of the pros and cons of having BDD in executable specifications.</p><h4>Collaboration using executable specifications</h4><p>Domain terminology helps in creating a common understanding.</p><p><em>But, stories, discussions and interactions need context.</em></p><p>Now, let’s say a functionality is changed or removed from the application (as it happens on most real world projects). The corresponding executable specifications are also changed or removed. Executable specifications (Tests) don’t capture the past and they don’t talk about the evolution to the current state.</p><p>Older functionality, architectural, business, functional and other key decisions are not part of the up to date executable specifications. Comments like any other non-executable portions of a test can go out of sync and hence are not accurate.</p><blockquote>Tests are always going to be incomplete, so they always have to be backed up with other mechanisms. Since it’s clear that Specification By Example isn’t enough, it’s clear that you need to do more to ensure that everything is properly communicated. — <a href="https://martinfowler.com/bliki/SpecificationByExample.html">Specification by example, Martin Fowler</a></blockquote><blockquote><em>Well written tests reflect the application’s current state and not historical discussions.</em></blockquote><h4>Are tests a single source of information</h4><p>BDD aims to gather <a href="https://cucumber.io/blog/2015/03/24/single-source-of-truth">the specification of an outcome valuable to a user in a single place</a>.</p><p>Specification by example may be helpful to gather and discuss requirements, however all executable specifications are not always in a single test suite.</p><p>For example, I work on an open source test automation tool — Gauge, which supports IDE features on VSCode. We want product features on IDEs depending on the user’s choice. So, the product’s core APIs have a logic to allow for this independence. This brought in the need for tests independent of the IDE — the<a href="https://www.martinfowler.com/bliki/SubcutaneousTest.html"> <em>Subcutaneous</em></a> tests. But, there are behaviors that are specific to VSCode.<a href="https://github.com/getgauge/gauge-vscode/tree/master/test"> Tests for these are IDE dependent</a> and are written using VSCode test framework.</p><p>We know that acceptance tests can come in <a href="https://martinfowler.com/articles/practical-test-pyramid.html">different levels of granularity</a>.There are tools that claim to work at any layer of the test pyramid and to help collaboration. <em>In practice, tools should be chosen based on the testing needs of the application rather than retrofitting a collaboration tool.</em></p><blockquote>If tests from different test suites were to be used for information, it would take a lot of time and effort to consolidate (read: Overhead!).</blockquote><h4>BDD provides a “ubiquitous language” for analysis</h4><p>A story’s behavior is its acceptance criteria. If the system fulfills all the acceptance criteria, it’s behaving as expected; if it doesn’t, it isn’t.</p><p><strong><em>As a</em></strong><em> [X] … </em><strong><em>I want</em></strong><em> [Y]… </em><strong><em>so that</em></strong><em> [Z]</em></p><p>is a loose enough format that it wouldn’t feel artificial or constraining to analysts.</p><p>Defining behaviors in this format may seem appealing.</p><blockquote>But, “Specification By Example can’t be the only requirements technique you use, but it doesn’t mean that it can’t take a leading role. Specifications are supposed to be general, to cover all cases. Examples only highlight a few points, you have to infer the generalizations yourself.” — <a href="https://martinfowler.com/bliki/SpecificationByExample.html">Specification by example, Martin Fowler</a></blockquote><p>Test cases become more complicated with granular details. For example, here is a case expressed in the format above for resetting password.</p><pre>Scenario: Reset my password<br>Given a user named “Georges Abitbol” with email “<a href="/service/mailto:forgetful@users.net">forgetful@users.net</a>”<br>When I fill out forgot password form with “<a href="/service/mailto:forgetful@users.net">forgetful@users.net</a>”<br>And I submit forgot password form<br>Then I should see “You will receive an email with instructions”<br>When I follow the “Change my password” link from the last sent email<br>When I fill out the password reset form with “supersecret” and “supersecret”<br>And I submit the password reset form<br>And I sign out manually<br>And I sign in manually as “georges_abitbol” with password “supersecret”<br>Then login should be successful</pre><blockquote>It’s clear that long sentences are also problematic. Even if they are punctuated properly, they can be hard to read.</blockquote><p>In contrast, the same scenario expressed without the syntax overhead is easier to read.</p><pre># Reset my password<br>* User “Georges Abitbol” with email “<a href="/service/mailto:forgetful@users.net">forgetful@users.net</a>” submits forgot password form<br>* Message “You will receive an email with instructions” is displayed<br>* Follow the “Change my password” link from the last sent email<br>* Submit password reset form with “newPassword” and confirm “newPassword”<br>* Sign out manually<br>* Ensure login for user “georges_abitbol” with password “newPassword” is successful</pre><h4>BDD as the basis for test specifications and documentation</h4><p>A s<em>imple sentence template keeps test methods focused.</em> — <em>Dan North</em></p><p>An expressive test name is helpful when a test fails. The language used in tests is from the perspective of the stakeholders. Since business language is used, multiple stakeholders are acknowledged. This increases confidence of the stakeholders through evidence.</p><p>But, is this enough for documentation?</p><p>Let’s explore who the audiences can be for the Living Document generator</p><ul><li>Stakeholders/BAs — Can features be understood by running tests? Data is more complicated than a single value. <em>Tests with limited stub data and new input may not reflect real application behavior.</em></li><li>Support team — Is this documentation a single source of truth? Tests do not have information like FAQ, Troubleshooting, Getting started and more details needed by the team.</li><li>Devs/QAs — Does one need a static snapshot of tests? In practice acceptance tests themselves are used to get an understanding of the current state of the application.</li><li>End user — Is a document created with only examples and comments enough? Comments can go out of sync easily. Even tools that claim to generate living documentation have separate test suites and user documentation. For e.g.<a href="https://github.com/picklesdoc/pickles"> Pickles</a> the living document generator has<a href="http://docs.picklesdoc.com/en/latest/"> documentation</a> and a<a href="https://github.com/picklesdoc/pickles/tree/develop/test-harness"> test harness</a>.</li></ul><p><em>Surely, the documentation of living document generator tool itself is neither generated nor an executable living document.</em></p><blockquote>Tests do not have all the information to lend themselves to creating documentation.</blockquote><h3>Let’s look at what we know so far: PROs and CONs of using executable specifications for BDD</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*J3MP9_lrzmTPWGo_ShHztw.png" /><figcaption>PROS and CONS of using executable specifications for BDD</figcaption></figure><h3>Why we don’t call Gauge a ‘BDD tool’</h3><p>There are advantages to using domain terminology and tests reflecting current behavior. However, non-executable portions of the specifications can be inaccurate. Using executable specifications for collaboration can end up being insufficient and creating overheads while not serving the initial purpose it set out to. There are instances where our users use Gauge as a BDD Tool. At Gauge, we believe that we have to be mindful of the gap between what executable specifications offer and the aims of BDD. That’s why we steered away from being a ‘BDD’ tool.</p><p>We support authoring of acceptance tests in markdown / plain text. Simple human readable acceptance tests and integrated reports give confidence to stakeholders about business crucial flows. Hence give the confidence to release!</p><p>And that, we believe, is the main purpose of test automation — to give teams the confidence to release.</p><p><em>Originally published at </em><a href="https://blog.getgauge.io/minding-the-gap-between-executable-specifications-and-bdd-3b7264fa1078"><em>blog.getgauge.io</em></a><em> on November 28, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b7264fa1078" width="1" height="1" alt=""><hr><p><a href="https://medium.com/getgauge/minding-the-gap-between-executable-specifications-and-bdd-3b7264fa1078">Minding the gap between executable specifications and BDD</a> was originally published in <a href="https://medium.com/getgauge">Gauge</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Unique things about Meghalaya]]></title>
            <link>https://sswaroop.medium.com/5-unique-things-about-meghalaya-f38d63320625?source=rss-19291cc6c5e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f38d63320625</guid>
            <category><![CDATA[meghalaya]]></category>
            <category><![CDATA[travel]]></category>
            <dc:creator><![CDATA[Soumya Swaroop Gupta]]></dc:creator>
            <pubDate>Wed, 13 Jun 2018 12:15:03 GMT</pubDate>
            <atom:updated>2018-06-15T14:45:16.791Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.facebook.com/notes/soumya-swaroop/the-unique-meghalaya/10201280960559099/"><strong>5 Unique things about Meghalaya</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8oGLxbyfpzXb1DdBfpoh_A.jpeg" /></figure><p>My trip to north-east India was an experience of a lifetime. The weather was great and the rain was kind enough not to disturb our itinerary :). Of all the things I have experienced in this trip somethings remain fresh in my mind, so I thought of sharing it with you.</p><h3>Mawlynnong, Meghalaya</h3><p>Cleanest village in Asia: This is about a 100km from Shillong. <a href="http://www.mawlynnong.com/">Mawlynnong</a> is a small village which won the status of being the cleanest village in 2003. Not only is this village spotless clean but their utensils shine like silver.</p><h3>The Khasi</h3><p>The Khasi are tribal people, the majority of whom live in the State of Meghalaya in north east India. This is was the first Matriarchy society I came across. Matriarchy is a society in which females, especially mothers, have the central roles of political leadership, moral authority, and control of property.</p><h3>The living root bridges</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qwjvRpvTrDXPMc7rIddbWw.jpeg" /></figure><p>The early Khasi had a problem of crossing swift flowing rivers and mountain streams. They came up with a unique and interesting solution, the living root bridges. We got the opportunity to visit two <a href="http://www.cherrapunjee.com/index.php?mid=66">living bridges</a>. One which was ready and the other still being built. I am glad till date about our decision to visit both.</p><h3>Border of India</h3><p>Standing near the no man’s land dividing India and Bangladesh made me think about all these imaginary lines which we have drawn around ourselves to divide earth!</p><h3>Cheerapunji</h3><p>Having visited this place in monsoon, I surely understood what can be called heavy rain. My definition changed and I am glad I visited this wonderful place. Here, rain spanning for couple of days is not uncommon. The best part is how the people have worked around to live with the rain.</p><p>I hope you too get to travel there and share your experiences!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f38d63320625" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Catacombs: The other side of Paris]]></title>
            <link>https://sswaroop.medium.com/catacombs-the-other-side-of-paris-cab52ad703f3?source=rss-19291cc6c5e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cab52ad703f3</guid>
            <category><![CDATA[interesting-facts]]></category>
            <category><![CDATA[interesting]]></category>
            <category><![CDATA[paris]]></category>
            <category><![CDATA[travel]]></category>
            <dc:creator><![CDATA[Soumya Swaroop Gupta]]></dc:creator>
            <pubDate>Wed, 13 Jun 2018 11:54:43 GMT</pubDate>
            <atom:updated>2018-07-04T04:16:51.960Z</atom:updated>
            <content:encoded><![CDATA[<p>Paris was a city like many others until people started to fill it with artistic monuments. Their creative work needed a large supply of lime stones. And their source of-course were the underground lime stone quarries. As you know, this work spanned across centuries and the quarries created miles of empty space beneath.</p><p>Generations later unaware of the consequences people continued construction on ground. One un-fine day a building collapsed ’cause of the empty space created by the quarries below and this was just the start of such incidents…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*FBZH2qXf5x9GGyM6" /></figure><blockquote>Part of the reconstructed quarry.</blockquote><p>Panic striken people approached the King. He ordered an immediate enquiry. Soon they found the cause. Massive reconstruction work began underground.</p><p>Strangely at the same time people faced another peculiar problem!</p><blockquote>Paris — the bones in the gardens</blockquote><p>Earlier in time when Paris was small, the dead people were buried outside the city. This changed with time. People were buried near the churches in the city.</p><p>Like any well flourishing city Paris grew with time. Now, the people faced a peculiar problem. With floods in the city people found their gardens messed up with bones of, well lets just say, the previously buried.</p><p>To solve this urgent problem Louis XIV decided to have the remains from most of the Paris cemeteries moved to catacombs.</p><h3>Catacombs</h3><p>Well may be you guessed it. It was decided to move these bones underground along with the ongoing reconstruction work. The number of dead people were close to 3 times of the number of people alive in Paris today. It took them 15 months to move all those bones and today it stands as the Catacombs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*RDWOH8YsOmMXr5jEKZWDkw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cab52ad703f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Empathy in architectural decisions to empower users]]></title>
            <link>https://medium.com/getgauge/empathy-in-architectural-decisions-to-empower-users-cdb8ce0ddcb8?source=rss-19291cc6c5e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdb8ce0ddcb8</guid>
            <category><![CDATA[agile-testing]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Soumya Swaroop Gupta]]></dc:creator>
            <pubDate>Fri, 16 Feb 2018 08:03:42 GMT</pubDate>
            <atom:updated>2018-04-06T05:28:10.582Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GA_534yMsASfXWr5SeS5Lg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/xEy9QNUCdRI?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Quino Al</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Over the past year and a half, I’ve been part of the team developing <a href="https://github.com/getgauge/gauge">Gauge</a> — an open source, acceptance test automation tool. Working on a product made me think about “What’s essential to build a good product?”</p><blockquote>When we think of empathising with our users, we end up wanting to build things to empower them.</blockquote><p>In this post, I’ll talk about how we made crucial software architecture decisions based on what would <em>empower</em> our users.</p><p>We knew that Gauge has to be lightweight and highly customisable. Plug-in architectures are an attractive solution for teams seeking to build applications that are modular, customizable, and easily extensible.</p><h3>Yes, Plugin architecture helps a product be extensible, but..</h3><p>Engaging with the user community and recognising the right <strong>direction</strong> for an extensible design is crucial.</p><blockquote>So, we engage with our user community to understand how to <strong>empower</strong> them better!</blockquote><p>As expected, distribution of responsibility in executing tests of a suite has been the most important architectural decision of Gauge. To do this, we identified the key components of the product and their responsibilities.</p><h3>Getting to the core of things</h3><p>So, it all came down to —</p><ul><li>The <strong>Gauge Core</strong></li><li><strong>Language plugin</strong></li><li><strong>Reporting plugin</strong></li><li><strong>IDE plugin and others.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*clIajUDVUD3Rq3AjXetWGw.png" /><figcaption>Gauge architecture</figcaption></figure><p>The <strong>responsibilities of Gauge core</strong> became:</p><ul><li>run tests for configured environment(s)</li><li>validate <a href="https://docs.gauge.org/longstart.html?#specifications-spec">specifications</a> and provide diagnostics</li><li><strong>orchestrate </strong>the test execution</li><li>and broadcasts messages that the plugins use to perform custom actions.</li></ul><p>The <strong>language plugin’s responsibilities</strong> were to</p><ul><li>author implementation in the given language</li><li>responds to the request Gauge sends (validate, execute…).</li></ul><p>The <strong>reporting plugin</strong> is required to</p><ul><li>generate execution reports</li></ul><p>The <strong>IDE plugins</strong> are responsible for</p><ul><li>giving a user interface to use Gauge features</li></ul><h3>Can I use user empathy to validate Architecture?</h3><p>Sure, we had a nice design in place. And, we wanted to provide a way to help change the mindset of any team using Gauge from “Can I..” to “How can I..” ?</p><p>But it would not be valuable to share it if it didn’t actually work. One of the ways we tried validating it is by answering the most common <strong>How Can I?</strong> questions form our users. Here are a few examples —</p><p><em>Note: the answer to most of these questions to the one posing it is “by writing a plugin” but for this post, I’ll highlight how the architecture sets out to answer these questions.</em></p><h4>Q 1— How can I create or choose my preferred reporting format?</h4><p>We know that Gauge core is orchestrating and broadcasting messages. We built <strong>reporting</strong> as an independent plugin. So this way, it performs the required reporting-related actions by listening to these messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*XLQrTuG4rr6u2FG56GmqDA.png" /><figcaption>independent processes talking to each other over TCP</figcaption></figure><p>So, the report format is independent of how the tests are executed (parallel, sequential). And any <a href="https://github.com/getgauge/html-report/issues/131"><strong>customisation</strong></a> is reusable for tests run in any supported language.</p><p>The reporting plugins we built usually listen to the event <em>SuiteExecutionResult</em>, that is broadcast almost at the end. So you can have the default reports generated in <a href="https://docs.gauge.org/reports.html#html-reports">HTML-reports</a>, <a href="https://docs.gauge.org/reports.html#xml-report">XML-reports</a> or write a custom reporting plugin. Here is how you can get a quick start to <strong>author a custom reporting plugin</strong> — <a href="https://github.com/getgauge-contrib/report-seed"><strong>Report-seed</strong></a>. This is in Java, a similar approach can be followed to write custom reporting plugins in other languages also.</p><h4>Q2 — How can I run tests in the language of my choice?</h4><p>We designed Gauge core to broadcast <a href="https://developers.google.com/protocol-buffers/">Protobuf</a> messages to the plugins mentioned in a project’s<strong> </strong><a href="https://docs.gauge.org/using.html#manifest-file"><strong>manifest</strong></a><strong> </strong>file.</p><blockquote><a href="https://developers.google.com/protocol-buffers/">Protobuf</a> is a language and platform neutral mechanism for structuring data.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*b2kgDdndrzMu5ZlxU4zAyA.png" /><figcaption>independent processes talking to each other over TCP on port <strong>GAUGE_INTERNAL_PORT</strong> (env variable)</figcaption></figure><p>This not only enabled the registered plugins to execute tests in the language of choice but the runner was authored in the same too. So, we have <a href="https://github.com/getgauge/gauge-js"><strong>Gauge-js</strong></a> authored in JavaScript<strong> </strong>to run tests written in JavaScript. Similarly <a href="https://github.com/getgauge/gauge-python"><strong>Gauge-python</strong></a> is for Python<strong>.</strong></p><p>All this, with <a href="https://github.com/getgauge/gauge">Gauge-core</a> authored in <a href="https://golang.org/">Golang</a>! <em>Read this if you’re interested in a</em><a href="https://blog.getgauge.io/authoring-a-language-runner-for-gauge-1332b7bca8d8"><em>uthoring a new language runner for Gauge</em></a><em>.</em></p><p><strong>Q3 — How can I use it with an IDE of my choice?</strong></p><p>We designed Gauge to have a <a href="https://microsoft.github.io/language-server-protocol/"><strong>language server protocol</strong></a> implementation. This helps different IDEs (<a href="https://microsoft.github.io/language-server-protocol/"><strong>LSP</strong></a> clients) take advantage of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*AMRadFVMLy-xiyhBYjZX1A.png" /><figcaption>LSP independent client server processes interacting with each other</figcaption></figure><p>So, we have <a href="https://github.com/getgauge/gauge-vscode">gauge-vscode</a> which is a plugin to Visual Studio Code. <a href="https://blog.getgauge.io/gauge-and-the-language-server-protocol-c56fbcfba177"><em>This article </em></a><em>will not only help you understand the offered Gauge IDE features but also gives pointers on adding a new IDE support for Gauge.</em></p><h4>Q4: — Should I write a custom plugin for something like parallel execution?</h4><p>Consider a product design that requires the users to write a plugin to run tests in parallel. This means, the tool (the execution and reporting) handles only sequential execution by default.</p><p><strong>What if the user has to write a plugin to add parallel run support?</strong></p><p>The user will have to now worry about</p><ul><li>Consolidation of parallel run result</li><li>Parallel run report generation in default/customised formats</li><li>On CI, parallel and sequential options have to be explicitly handled on separate tasks of execution and reporting.</li></ul><p>Would this be as effective as it should have been in empowering its users?</p><blockquote><strong>We think not. In Gauge, such features are built in core.</strong></blockquote><p>All related tasks are handled by default. So, such architectural decision makes a feature (e.g:parallel run) readily and easily available to any user running tests in any language of choice!</p><p>What I’ve tried to say is that <strong>empathy</strong> is not just the prerogative of the Business Analysts, User Researchers, UI folks or the front-end. Having users at the heart of everything also means putting their interests forward while making architectural decisions. Empathy needs to seep into our very (forgive the pun) <strong>core</strong>! and that’s what is essential to build a good product.</p><p>If you still have any queries/suggestions for Gauge do reach out to the community</p><ul><li>Discussions on the <a href="https://groups.google.com/forum/#!forum/getgauge">Gauge Google groups</a></li><li>Chat at <a href="https://gitter.im/getgauge/chat">Gauge gitter chat</a></li><li>Watch changes and Report issues at <a href="https://github.com/getgauge">Gauge github pages</a></li><li>Reach a larger audience on <a href="https://twitter.com/getgauge">Gauge twitter</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdb8ce0ddcb8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/getgauge/empathy-in-architectural-decisions-to-empower-users-cdb8ce0ddcb8">Empathy in architectural decisions to empower users</a> was originally published in <a href="https://medium.com/getgauge">Gauge</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Page Objects anti pattern]]></title>
            <link>https://medium.com/getgauge/are-page-objects-anti-pattern-21b6e337880f?source=rss-19291cc6c5e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/21b6e337880f</guid>
            <category><![CDATA[page-object]]></category>
            <category><![CDATA[design-principles]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[agile-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Soumya Swaroop Gupta]]></dc:creator>
            <pubDate>Tue, 13 Jun 2017 04:36:16 GMT</pubDate>
            <atom:updated>2018-07-10T05:45:04.925Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*mnyfdtFL9yW-eP898g4hog.jpeg" /></figure><p>Writing automated tests that are easy to maintain require skill, practice, discipline and good design. There are several design patterns that structure tests for re-use and maintainability. <a href="https://martinfowler.com/bliki/PageObject.html">Page Objects</a> is a popular pattern that comes built-in with <a href="https://github.com/SeleniumHQ/selenium/wiki/PageFactory">Selenium</a>.</p><p>Yet<strong>, </strong>as a tester who has been a developer before, I find Page Object Model (POM) counterproductive.</p><p>POM makes change hard to manage as it violates good design principles. This article talks about the violations with examples and shows a better solution.</p><p>For this, we will use the test cases written for the sample web application <a href="http://demo.activeadmin.info/">Active admin store</a>.</p><h3>Selenium’s recommendations</h3><p>Here is a code snippet modeled on recommendations at <a href="https://github.com/SeleniumHQ">SeleniumHQ</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1899ea013ff9a886d860f33781b48d73/href">https://medium.com/media/1899ea013ff9a886d860f33781b48d73/href</a></iframe><p>Here, we use Selenium’s <a href="https://github.com/SeleniumHQ/selenium/wiki/PageFactory">page factory</a>. The UI elements are fields, annotated with locator details. But, when you look at usages, the method logIn() is used in many test cases. However the fields e.g. There is only one usage of the field login (line 30).</p><p>Also, elements on a webpage are usually linked to one action. e.g. Entering text in a Textbox or clicking a Button.</p><p><strong>This pattern, prematurely designs UI elements for reuse violating the </strong><a href="https://en.wikipedia.org/wiki/You_aren%27t_gonna_need_it"><strong>YAGNI principle</strong></a><strong>.</strong></p><blockquote><strong>“You aren’t gonna need it</strong>” (acronym: <strong>YAGNI</strong>) states that a programmer should not add functionality until deemed necessary.</blockquote><p>Let’s fix this by removing all that upfront design by using locators from webDriver. Here’s the same example modified to do that.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b73a24276d9a19861a81db441d17720c/href">https://medium.com/media/b73a24276d9a19861a81db441d17720c/href</a></iframe><p>Looks much better, but there’s more work.</p><h3>Everything in its right place?</h3><p>Page Objects get huge and difficult to maintain. One reason is because it has actions, locators and groups of unrelated functionality. For e.g. a product search on a page is unrelated to login or logout action. Thus breaking <a href="https://en.wikipedia.org/wiki/Single_responsibility_principle">Single Responsibility principle</a> (SRP).</p><blockquote>The <strong>SRP</strong> states that every <a href="https://en.wikipedia.org/wiki/Modular_programming">module</a> or <a href="https://en.wikipedia.org/wiki/Class_(computer_programming)">class</a> should have responsibility over a single part of the <a href="https://en.wikipedia.org/wiki/Software_feature">functionality</a> provided by the <a href="https://en.wikipedia.org/wiki/Software">software</a>, and that responsibility should be entirely <a href="https://en.wikipedia.org/wiki/Encapsulation_(object-oriented_programming)">encapsulated</a> by the class.</blockquote><p><strong>Breaking Page objects to smaller page objects still violates </strong><a href="https://en.wikipedia.org/wiki/Single_responsibility_principle"><strong>SRP</strong></a><strong>.</strong></p><p>Consider tasks spanning pages/components. For e.g the login functionality.</p><p>The login task has 2 steps navigateToLoginPage in HomePage and loginCustomerWith in LoginPage.</p><pre><strong>LoginPage </strong>loginPage<strong> </strong>= new<strong> HomePage</strong>(<em>driver</em>).navigateToLoginPage();<br>loginPage.loginCustomerWith(customer, password);</pre><p>As the actions belong to 2 different pages, this code will repeat in all test cases that use login. The responsibility is not entirely encapsulated. This is true even after extracting Header as a component.</p><h4>Use the right abstractions!</h4><p>Group by intent <strong>not</strong> page(s).</p><p>The modified LogIn code snippet below has only one reason to change. A change in the Log in functionality.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/94ec4b51a0d7d191684890d65c7dc5c5/href">https://medium.com/media/94ec4b51a0d7d191684890d65c7dc5c5/href</a></iframe><p><strong>And this is why we built </strong><a href="https://getgauge.io/"><strong>Gauge</strong></a><strong>, to reuse intent.</strong></p><p>We can reuse <a href="https://docs.getgauge.io/longstart.html?#steps">steps</a> and <a href="https://docs.getgauge.io/longstart.html?#concepts">concepts</a> with parameters. These can span pages.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c8c720940499ad152c9ca1e0cea63cf2/href">https://medium.com/media/c8c720940499ad152c9ca1e0cea63cf2/href</a></iframe><h3>Responding to change</h3><p><strong>User flows != order of Pages.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*8sbO2zHOqH-0ub3faF-K2A.png" /><figcaption><strong>Flow 1:</strong> Continue shopping with simple search. Created using <a href="https://www.websequencediagrams.com/">websequencediagrams.com</a></figcaption></figure><p>Here is a user flow, where the user is taken to the Homepage on deciding to shop further.</p><p>When there’s a new flow for e.g shop after Advanced Search. The same action continue shopping ends with another page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*O93VuDs_YwT7ABSbXRNMEA.png" /><figcaption><strong>Flow 2: </strong>Continue shopping with advanced search. Created using <a href="https://www.websequencediagrams.com/">websequencediagrams.com</a></figcaption></figure><p>A knee jerk reaction to this is using an interface e.g: <strong>SearchPage.</strong></p><pre>public class CartPage{<br>    ...    <br>    SearchPage continueShopping();<br>    ...<br>}</pre><p>But then, what method(s) should SearchPage have?</p><pre>public interface SearchPage{<br>    SearchPage search(???);<br>}</pre><p>And because they use different parameters use a SearchCriteria.</p><pre>public interface SearchPage{<br>    SearchPage search(SearchCriteria criteria);<br>}</pre><pre>// More logic<br>public class CartPage{       <br>    SearchPage continueShopping(){<br>     if(state) {<br>       return new AdvancedSearchPage();<br>     }<br>     else {<br>       return new HomePage();<br>     }    <br>}</pre><p>And there’s more code and complex logic to automate a new user flow and modifications to CartPage. This violates the <a href="https://en.wikipedia.org/wiki/Open/closed_principle">Open/Closed principle</a> (OCP).</p><blockquote>The <strong>open/closed principle(OCP)</strong> states “<em>software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification</em>”</blockquote><h3>Let’s keep it simple.</h3><blockquote>Note: The following examples use Gauge. In my other blog, I have discussed the <a href="https://blog.getgauge.io/5-reasons-to-use-gauge-24749734b9b0">top 5 reasons why I use Gauge</a>.</blockquote><p><a href="https://blog.getgauge.io/why-write-tests-in-plain-text-d9a54ccdc41b">Gauge tests are written in markdown</a>. The steps define order of execution.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b2651b9d47820521c7058cac5b2a3780/href">https://medium.com/media/b2651b9d47820521c7058cac5b2a3780/href</a></iframe><p><strong>Loosely coupled steps makes creating a flow just a matter of choosing the right order of steps.</strong></p><p>Steps See items available for purchase,Filter items by publication &lt;publication&gt; and <strong>continue shopping</strong> in the specification do not know about the previous step(s) nor the next step(s).</p><p>Here also we will have 2 classes, one for Simple Search and the other for the Advanced Search. But, the CartPage where the OCP violation occurs is not needed.</p><p><em>And yes, you </em><strong><em>can</em></strong><em> share information using </em><a href="https://docs.getgauge.io/language.html?#data-store"><em>DataStores</em></a><em>.</em></p><h3>Method chaining</h3><p>Selenium recommends <a href="https://github.com/SeleniumHQ/selenium/wiki/PageObjects">Page Objects returning other page objects</a>.</p><p>Let’s discuss this with a simple <a href="https://en.wikipedia.org/wiki/Business_rule">Business Rule</a>(BR) - login only with valid credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*yOg7FYCCuNs_EHNse8Xe6w.png" /><figcaption><strong>Login Flow: </strong><a href="https://www.websequencediagrams.com/">https://www.websequencediagrams.com/</a></figcaption></figure><p>Based on the BR, the user is either taken to LoginPage or the HomePage. Since both the pages are not similar, we cannot have a common return type. One way this to handle this is to have many methods for the same action.</p><pre>public class LoginPage{<br>    HomePage validLogin(String userName,String password){...}<br>    LoginPage invalidLogin(String userName,String password){...}<br>}</pre><p>The number of methods increase with more BRs e.g: role based login.</p><pre>public class LoginPage{<br>    HomePage validLogin(String userName,String password){...}<br>    LoginPage invalidLogin(String userName,String password){...}<br>    AdminDashboardPage adminValidLogin(String user,String pwd){...}<br>}</pre><p>All this is because there is tight coupling between pages, the return type and actions.</p><h3>Loosely coupled steps</h3><p>Here the step Log in with customer name &lt;name&gt; and password &lt;password&gt; is not aware of the next step(s).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b34687b2c5f3c13bc940e604c6e04e7/href">https://medium.com/media/8b34687b2c5f3c13bc940e604c6e04e7/href</a></iframe><p>We have different test cases for positive and negative scenarios.</p><p><strong>Test cases are the place to define order of steps and the required data.</strong></p><p>Each step implementation, has code only to handle its task. Thus keeping the implementation loosely coupled.</p><p><strong>Loosely coupled steps give users more flexibility and lesser code to maintain.</strong></p><h3>Less is better</h3><p>Not using page objects in our tests <strong>reduced source code by 40%.</strong></p><p><strong>Surprised? Check it yourself.</strong></p><p>Here are 2 test suites with the same set of test cases <a href="https://github.com/sguptatw/active-admin-example-page-object">with</a> and <a href="https://github.com/getgauge-examples/java-maven-selenium">without Page Objects</a> for the Active admin store web application.</p><p>From our experience using Page Object Model (POM) makes it increasingly difficult to manage a growing test suite. <a href="https://getgauge.io/">Gauge</a> understands the building blocks of test cases, using it reduces the overhead of ongoing automated test suite maintenance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21b6e337880f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/getgauge/are-page-objects-anti-pattern-21b6e337880f">The Page Objects anti pattern</a> was originally published in <a href="https://medium.com/getgauge">Gauge</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 reasons to use Gauge]]></title>
            <link>https://medium.com/getgauge/5-reasons-to-use-gauge-24749734b9b0?source=rss-19291cc6c5e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/24749734b9b0</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[agile-testing]]></category>
            <dc:creator><![CDATA[Soumya Swaroop Gupta]]></dc:creator>
            <pubDate>Wed, 15 Feb 2017 13:16:47 GMT</pubDate>
            <atom:updated>2017-05-17T05:36:23.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4eimCc7UkiR4R7m5PMfyBQ.jpeg" /></figure><p>Despite having the right set of automated tests, writing and managing a growing test suite can be challenging.</p><p>Here’s a few other Gauge features that can make managing tests less painful.</p><blockquote><strong><em>Reason 1: Get Started Quickly</em></strong></blockquote><p>Be it Mac, Windows, Linux OS or any of the supported Gauge’s language runners, all it takes is <a href="https://docs.getgauge.io/quickstart.html#">5 steps</a> from Gauge installation to see it work. There are <a href="https://docs.getgauge.io/using.html#gauge-project-templates"><em>templates</em></a><em> </em>available to bootstrap the process of initialising a Gauge project. Read about some of the <a href="https://docs.getgauge.io/examples.html">examples</a> to understand more.</p><blockquote><strong><em>Reason 2: Easy to use</em></strong></blockquote><p>With Gauge, stop worrying about</p><p><strong><em>Which</em> </strong>language is used to implement a <em>step </em>— Java, C#, Ruby or community contributed <a href="http://getgauge.io/plugins.html"><em>runners</em></a></p><p><strong><em>When </em></strong>to execute — Trigger the tests manually or Configure to Auto trigger</p><p><strong><em>Where </em></strong>to execute it from — CI/locally on Windows, Mac or Linux, Virtual Machine, Docker Container.</p><p><strong><em>What </em></strong>are the types of test data used for the test cases — external/internal, inline/<a href="https://docs.getgauge.io/longstart.html#special-parameters"><em>special</em></a> and more</p><p><strong>How</strong> are the tests executed — In Sequence or in <a href="https://docs.getgauge.io/using.html#parallel-execution"><em>parallel</em></a>.</p><p>Gauge’s <em>execution </em>and <a href="https://docs.getgauge.io/reports.html"><em>reporting</em></a><em> </em>handles all this and more.</p><blockquote><strong><em>Reason 3: Get faster feedback</em></strong></blockquote><p>Gauge is fast. Here are the performance numbers on a micro bench mark of a sample Gauge project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*djfDOu5ZE3PJeeBowd5bSQ.png" /></figure><p><strong><em>With </em></strong><a href="https://docs.getgauge.io/using.html#parallel-execution-using-threads"><strong><em>multithread</em></strong></a><strong><em> parallel run, the performance gains are huge</em></strong><em>.</em></p><p>All other functionalities like reporting etc. just works on either mode. It is easy to switch between sequential of <a href="https://docs.getgauge.io/using.html#parallel-execution"><em>parallel</em></a><em> </em>runs for your test suite. This makes configuring Gauge test suites, to run on CI/CD servers, simple.</p><blockquote><strong><em>Reason 4: Better abstraction</em></strong></blockquote><p><a href="https://blog.getgauge.io/why-write-tests-in-plain-text-d9a54ccdc41b"><em>Specifications in Markdown</em></a> provides an effective way to break communication barriers and express better. It cleanly abstracts code behind the <a href="https://docs.getgauge.io/longstart.html#steps"><em>steps</em></a>.</p><p><em>A </em><a href="https://docs.getgauge.io/longstart.html#concepts"><em>Concept</em></a><em> </em>is a re-usable logical group of <em>steps</em>. It allows better abstraction of a business intent by combining <em>steps</em>.</p><p><em>Flexible folder structure</em> gives the ability to locate and <a href="https://docs.getgauge.io/using.html#specify-directories"><em>execute</em></a><em> </em>the specifications that interest us.</p><p><a href="https://docs.getgauge.io/using.html#tagged-execution"><em>Tagging</em></a><em> </em>allows to define functional and logical groups across scenarios and specifications. <a href="https://docs.getgauge.io/reports.html#export-to-html"><em>Filter</em></a>, <a href="https://docs.getgauge.io/using.html#tagged-execution"><em>execute</em></a><em> </em>and <a href="https://docs.getgauge.io/reports.html#spectacle"><em>search</em></a> related scenarios and specifications easily using these tags.</p><blockquote><strong><em>Reason 5: IDE Support makes maintaining suites easy</em></strong></blockquote><p>With a growing test suite, there is a need to make managing it simpler. Gauge’s <a href="https://docs.getgauge.io/using.html#id7">IDE support</a> helps to</p><ul><li>Navigate between <em>steps</em>, <em>concepts</em> and <a href="https://docs.getgauge.io/language.html#step-implementations"><em>code blocks</em></a>. This helps to keep the flow &amp; get better understanding.</li><li>Autocomplete encourages <strong>D</strong>on’t want to <strong>R</strong>epeat <strong>Y</strong>ourself (DRY)</li><li>Generate <a href="https://docs.getgauge.io/longstart.html#steps"><em>step</em></a><em> </em>implementations</li><li>Refactor with ease</li><li>Early warnings (displays as you type)</li><li>Run tests from the IDE at any level — suite, <em>spec</em>, <em>scenario</em> etc.</li><li>Debug your tests from the IDE</li><li><a href="https://docs.getgauge.io/using.html#id7">And more!</a></li></ul><p>At <a href="http://getgauge.io/"><em>Gauge</em></a>, we understand that it is good to keep things simple. We aim to make test automation, simple and easy to maintain<em>.</em></p><p>If you have any suggestions for Gauge (enhancements, feature requests or more) do reach out to the community</p><ul><li>Discussions on the <a href="https://groups.google.com/forum/#!forum/getgauge">Gauge Google groups</a></li><li>Chat at <a href="https://gitter.im/getgauge/chat">Gauge gitter chat</a></li><li>Watch changes and Report issues at <a href="https://github.com/getgauge">Gauge github pages</a></li><li>Reach a larger audience on <a href="https://twitter.com/getgauge">Gauge twitter</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24749734b9b0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/getgauge/5-reasons-to-use-gauge-24749734b9b0">5 reasons to use Gauge</a> was originally published in <a href="https://medium.com/getgauge">Gauge</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>