<?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 Ana González García on Medium]]></title>
        <description><![CDATA[Stories by Ana González García on Medium]]></description>
        <link>https://medium.com/@anag_28500?source=rss-a224d2b79cbe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1lWBbXZeXoKgAHysskieEg.jpeg</url>
            <title>Stories by Ana González García on Medium</title>
            <link>https://medium.com/@anag_28500?source=rss-a224d2b79cbe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:43:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anag_28500/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[Evolving Search for Product Availability]]></title>
            <link>https://medium.com/empathyco/evolving-search-for-product-availability-7d4f71457952?source=rss-a224d2b79cbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d4f71457952</guid>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[grocery-shopping]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[search]]></category>
            <dc:creator><![CDATA[Ana González García]]></dc:creator>
            <pubDate>Tue, 09 Mar 2021 09:16:06 GMT</pubDate>
            <atom:updated>2021-03-09T09:16:06.706Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>From Location-based to Customer-based Shopping</em></blockquote><p>At Empathy we have brought our APIs closer to the real needs of shoppers during exceptional situations, providing tools that help customers find exactly what they are looking for, with versatility under circumstances both myriad and whimsical.</p><p>One of the consequences of the current “situation” is the need to make purchasing options as flexible as possible during a global pandemic. To this end, we have evolved our product search service for different places and multiple delivery options.</p><p><strong>Context</strong></p><p>Before the pandemic, online shopping was a growing but optional part of many people’s lives. The effect of Covid-19 and its restrictions has been <em>centripetal</em>: like a whirlpool, attracting an influx of shoppers.</p><p>Quarantine, shop closures and fear of contracting the coronavirus have prevented consumers from shopping in stores. This has prompted retailers to seek different, <em>centrifugal</em> forms of outbound delivery that reduce or eliminate customer contact:</p><ul><li>Purchase in a brick-and-mortar shop</li><li>Pickup with reduced store contact</li><li>Home delivery from warehouse</li><li>Home delivery from shop</li></ul><p>Empathy’s search service already supports these different types of purchase, however, we can further refine that search experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*itLMVCFSD6pq9LiTZ3CBnA.png" /></figure><p><strong>Current situation</strong></p><p>Until now, in the case where the customer explicitly provided his address, the search service fixed him by means of this location at a specific shop and offered them the products available. But certain products might not be available at that time, or they might be available in-store but not for pickup or local delivery. In this context, the user might then have to search for the product by manually selecting a different store location.</p><p>This is a real-world limitation that confronted us, and we wanted to overcome it.</p><p><strong>Improving the service</strong></p><p>What if we provided the user with the ability to purchase products in multiple shop locations at the same time?</p><p>Instead of offering only the products available from one pre-selected shop, we would make products available from several stores near the customer.</p><p>Let’s imagine a user who wants to buy a toy for Christmas. He is remotely working at home, so he is interested in having it sent to him, either from a shop or a warehouse. Perhaps it is available in the nearest store — but only by buying it on site, in person. By enabling search in several shops at the same time, we offer this user the product they want for home delivery from another nearby shop, without having to search again.</p><p>In order to offer this improvement in service, we had to make some changes.</p><p>On the one hand, we modified the way in which the search engine product information is indexed. Until now, we separated the products into different ElasticSearch indexes according to the shop where they were available:</p><pre>catalog-storeA-en<br>catalog-storeB-en<br>catalog-storeC-en</pre><p>Each of the products contained information about the types of purchases available in that shop:</p><pre>{<br>      <strong>&quot;</strong>id<strong>&quot;</strong>: &quot;1&quot;,<br>      <strong>&quot;</strong>name<strong>&quot;</strong>: &quot;Star Wars The Child Animatronic&quot;<br>      <strong>&quot;</strong>description<strong>&quot;</strong>: &quot;Star Wars Baby Yoda The Child Animatronic toy 28 cm”,<br>	  &quot;image&quot;: &quot;www.toystore.com/8602561387129&quot;,<br>      &quot;<strong>inStore</strong>&quot;: &quot;<strong>true</strong>&quot;,<br>      &quot;<strong>pickup</strong>&quot;: &quot;<strong>true</strong>&quot;,<br>      &quot;<strong>homeDelivery</strong>&quot;: &quot;<strong>true</strong>&quot;,<br>      &quot;<strong>shipToHome</strong>&quot;: “false&quot;,<br>      <strong>&quot;</strong>store<strong>&quot;</strong>: &quot;storeA&quot;<br>}</pre><p>To facilitate searching in multiple locations simultaneously, we need to have a single index, in which each product will contain all the locations in which it is available.</p><pre>catalog-en</pre><p>In this index we must index each product only once, and specify for which shop each of the purchase modes is available:</p><pre>{<br>      <strong>&quot;</strong>id<strong>&quot;</strong>: &quot;1&quot;,<br>      <strong>&quot;</strong>name<strong>&quot;</strong>: &quot;Star Wars The Child Animatronic&quot;<br>      <strong>&quot;</strong>image<strong>&quot;</strong>: &quot;www.toystore.com/8602561387129&quot;,<br>      <strong>&quot;</strong>description<strong>&quot;</strong>: &quot;Star Wars Baby Yoda The Child Animatronic toy 28 cm&quot;,<br>      <strong>&quot;inStore&quot;</strong>: [&quot;storeA&quot;,&quot;storeB&quot;,&quot;storeC&quot;],<br>      <strong>&quot;pickup&quot;</strong>: [&quot;storeA&quot;,&quot;storeB&quot;,&quot;storeC&quot;],<br>      <strong>&quot;homeDelivery&quot;</strong>: [&quot;storeA&quot;],<br>      <strong>&quot;shipToHome&quot;</strong>: [&quot;storeA&quot;,&quot;storeB&quot;],<br>      <strong>&quot;</strong>store<strong>&quot;</strong>: &quot;storeA&quot;<br>}</pre><p>On the other hand, we also need to make changes to the search API.</p><p>Until now, the service used a single shop location passed as a parameter to make the search request.</p><pre>curl http://localhost:8080/query/toystore/search?query=baby%20yoda&amp;lang=en&amp;store=storeA&amp;rows=4&amp;start=0</pre><p>By means of the “store” parameter, the service identified the index in which to make the query and returned the results for that query.</p><p>However, what we want is to be able to search in several locations at the same time on the new unique index. Therefore, we have modified this service to be able to accept a list of locations in the header, and use each and every one of them to filter the results.</p><pre>curl -H ‘location-object:[{&quot;modality&quot;:{&quot;type&quot;:&quot;IN_STORE&quot;},&quot;sources&quot;:[{&quot;storeId&quot;:&quot;storeA&quot;}]},{&quot;modality&quot;:{&quot;type&quot;:&quot;SHIP&quot;},&quot;sources&quot;:[{&quot;storeId&quot;:&quot;storeA&quot;},{&quot;storeId&quot;:&quot;storeB&quot;}]},{&quot;modality&quot;:{&quot;type&quot;:&quot;DELIVERY&quot;},&quot;sources&quot;:[{&quot;storeId&quot;:&quot;storeB&quot;}]},{&quot;modality&quot;:{&quot;type&quot;:&quot;PICKUP&quot;},&quot;sources&quot;:[{&quot;storeId&quot;:&quot;storeC&quot;}]}]’ http://localhost:8080/query/toystore/search?query=baby%20yoda&amp;lang=en&amp;rows=4&amp;start=0</pre><p><strong>What are the benefits of these changes?</strong></p><ul><li>Reduced duplication: Several locations share the same product, not redundant copies of that product.</li><li>Reduced customer search time</li><li>Easier regional product search, filtered for the desired delivery mode</li></ul><p><strong>Conclusion</strong></p><p>The multi-location search service provides a faster and smoother customer experience, making available different purchase methods to suit customer needs and the circumstances of the moment. By empathizing with the customer, the difficulties of shopping under exceptional conditions today are transformed into breezy shopping both now and in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*JnVz5XweYM8A89NE7V0heA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d4f71457952" width="1" height="1" alt=""><hr><p><a href="https://medium.com/empathyco/evolving-search-for-product-availability-7d4f71457952">Evolving Search for Product Availability</a> was originally published in <a href="https://medium.com/empathyco">Empathy.co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Functional API Rest Testing for a Search Service]]></title>
            <link>https://medium.com/empathyco/functional-api-rest-testing-for-a-search-service-61d297741668?source=rss-a224d2b79cbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/61d297741668</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[search-engines]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[search]]></category>
            <dc:creator><![CDATA[Ana González García]]></dc:creator>
            <pubDate>Fri, 21 Dec 2018 09:31:00 GMT</pubDate>
            <atom:updated>2018-12-21T09:46:59.952Z</atom:updated>
            <content:encoded><![CDATA[<p>APIs are everywhere, although users are often not aware of them. Social networks, payment connectivity, search sites… All of them have one or several Application Programming Interfaces (APIs) that allow their customers to interact and consume data from different platforms.</p><p>EmpathyBroker’s Search API is another example, it allows users to employ any search function, score, facet, partial, spelling, classification and so on, from any environment with a response time of milliseconds. In order to ensure its reliability, we need to carry out tests independently of the user interface, this is so that we can isolate any potential problems and anticipate their detection.</p><h4>Functional Testing</h4><p><em>“The testing process to determine the functionality of a software product” </em>is how ISTQB (International Software Testing Qualifications Board) defines this type of testing. Functional tests analyse what the software is supposed to do and make sure it actually does it. They’re included in the group of so-called black box tests:</p><p><em>“The specification-based testing technique is also known as “black box”</em> or input/output driven testing because it considers the software to be a black box with inputs and outputs.</p><p>In other words, these tests are carried out without knowing what is happening inside the component or software that we are going to test.</p><p>Within this type of test, many other types are included, such as unit tests, smoke tests, UI tests, API tests or integration tests. Most of them can be performed either manually or automated.</p><p>In the pyramidal model of test automation that Mike Cohn details in his book Succeeding with Agile, three levels of tests are specified, ordered by the number of automated tests desirable within each of them. As we can see, there is a higher number at the base and a lower number at the top.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*Krq12z0NVuM0JCyhnmwNTQ.png" /><figcaption><strong>Ideal Test Automation Pyramid</strong></figcaption></figure><p>At a second level, there are service layer or API tests. Component or integration tests are also included in this level. This is the most overlooked layer in functional test automation. Often tests that exceed the scope of a unit test are run through end-to-end test scenarios based on user interfaces. This solution may work, but it is a sledgehammer to crack a nut. As a consequence, the tests can become very complex, difficult to maintain, and slow in execution.</p><p>Therefore, it’s good to have an intermediate level between the unit tests and the GUI tests, where integration, API or component tests are performed.</p><h4>API Testing</h4><p>APIs typically allow communication between machines using standard languages or file formats. They free end users from the limits of using a pre-determined graphical interface and allow inputs and outputs to be integrated into their own custom applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*FQNNk63z_ltQrEm3gd4luA.png" /><figcaption><strong>Photo by </strong><a href="https://unsplash.com/photos/dC6Pb2JdAqs?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText"><strong>Fabian Grohs</strong></a><strong> on </strong><a href="https://unsplash.com/search/photos/programming?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText"><strong>Unsplash</strong></a></figcaption></figure><p>Rest APIs functional testing verifies that the responses and behaviour of the service conform to the specification. They also include checking for particular functionalities. These features represent specific scenarios to ensure that the API function behaves correctly within the planned parameters. As mentioned previously, API testing is an important activity on which test teams should focus. In addition, it offers a number of advantages that should be considered…</p><p><strong>Early Bug Detection</strong></p><p>Being early and independent in GUI testing means feedback will be obtained sooner and equipment productivity will be improved. The core functionality can be tested to expose small errors and to evaluate the strengths of each build.</p><p><strong>Language Independence</strong></p><p>Data is exchanged via XML and JSON, so any language can be used to automate the test, regardless of those used to develop the application. There are numerous libraries that support the comparison of data using these formats. Such as “<a href="https://pypi.org/project/jsonschema/">jsonschema</a>” or “<a href="https://pypi.org/project/schema/">schema</a>” for python, which allow us to validate the schema of a JSON object against another previously defined one.</p><p><strong>Better Coverage</strong></p><p>Most APIs have specifications which allow us to create automated tests to follow them and therefore achieve high coverage.</p><p>On the other hand, there are, of course, potential drawbacks too:</p><p><strong>Time Spent</strong></p><p>These tests are slower and more complex than unit tests because they may need access to a database or other components.</p><p>As we’ve seen, APIs are clearly essential for both software and websites, and, therefore, are really one of the most important things to continually test.</p><h4><strong>How?</strong></h4><p>As seen above, API testing is at the intermediate level of Mike Cohn’s pyramidal model. This means that it’s a good idea and practical to have enough automated tests to ensure its functionality.</p><p>Usually the test design for the service layer follows the same scheme:</p><ul><li>Use the test data to identify the entries</li><li>Determine what the expected result should be based on those entries</li><li>Execute test cases with the appropriate entries</li><li>Compare expected results with actual results</li></ul><p>Starting to test at this level can be hard, especially if you don’t have the experience. Firstly, we must select the tool that best suits our needs. <a href="https://www.getpostman.com/">Postman</a>, <a href="https://insomnia.rest/">Insomnia</a> or <a href="https://paw.cloud/">Paw</a> are similar tools that allow us to test on APIs in a simple way, however, in this article we’ll use examples of testing on APIs created in Python.</p><p>Python is a general-purpose language, it’s dynamic and flexible. From a tester’s perspective, it has readily available modules and libraries that facilitate the creation of scripts. Tests can be written as xUnit style classes or as functions. It provides a complete automation testing solution for any type of project and is capable of unit, functional, system and BDD testing.</p><p>One of the most important testing frameworks for Python is <a href="https://docs.pytest.org/en/latest/">PyTest</a>. It offers a single solution for unit, functional and acceptance testing. The following example corresponds to a very simple test on an API search. Simply put, rest APIs consist of URL requests such as get, post and delete. In this case, we’re going to test EmpathyBroker’s Search API returning a collection of products that match a specified query. For this example, we’re using the <a href="http://docs.python-requests.org/en/master/">request</a> library to execute the requests.</p><p>This Python library allows us to send all kinds of HTTP requests and analyse the response later. The test verifies, through assertions, that the response code of the request is the one of error 400, since we sent the same one without one of the obligatory parameters of our API. We could verify that with the right entries all the desired errors occur and also check that the message shown is the correct one. Then, after sending the request with all the necessary parameters we get the answer 200 Ok. Finally, we want to verify that if we use an invalid endpoint in the API the response gives error 404.</p><pre>def test_errors():<br>   url =   ‘https://api.empathybroker.com/search/v1/query/ebdemo/{endpoint}?&#39;</pre><pre>   # params of the url<br>   params = {&#39;lang&#39;: &#39;es&#39;,&#39;rows&#39;: 24}</pre><pre>   path = url.format(endpoint=‘search&#39;)</pre><pre>   # make a get request<br>   response = requests.get(url=path, params=params)<br>   assert response.status_code == 400, &#39;Error code incorrect&#39;</pre><pre>   params[&#39;q&#39;] = ‘camisa&#39;<br>   path = url.format(endpoint=&#39;search&#39;)<br>   # make a get request<br>   response = requests.get(url=path, params=params)<br>   assert response.status_code == 200, &#39;Error code incorrect&#39;</pre><pre>   path = url.format(endpoint=&#39;searchv1&#39;)<br>   # make a get request<br>   response = requests.get(url=path, params=params)<br>   assert response.status_code == 404, &#39;Error code incorrect&#39;</pre><p>Pytest also allows us, among other things, to parameterise the tests in a simple way. This enables us to test a number of different parameter combinations of our API.</p><p>In the following example, the test is parameterised with two different combinations of parameters for the request (the part after “?” in the URLs). Therefore, the test will run twice, once with each.</p><pre>@pytest.mark.parametrize(&quot;lang, query, rows&quot;, [(&#39;es&#39;, &#39;camisa&#39;, 24),(&#39;es&#39;, &#39;pantalon&#39;, 18)])<br>def test_pagination(lang, query, rows):</pre><pre>    path =             &#39;<a href="https://api.empathybroker.com/search/v1/query/ebdemo/search">https://api.empathybroker.com/search/v1/query/ebdemo/search</a>?&#39;<br>    params = {&#39;lang&#39;: lang,&#39;q&#39;: query, &#39;rows&#39;: rows}</pre><pre>    # make the request and get the response data<br>    response = requests.get(url=path, params=params)<br>    json = response.json()</pre><pre>    # check that the number of product returned is as expected <br>    assert len(json[&#39;content&#39;][&#39;docs&#39;]) == rows, &#39;Rows are     incorrect&#39;</pre><p>The parameterised tests are useful to specify input parameters and the expected results, as shown in the previous example.</p><p>In the following illustration, the first parameter passed “params” will be the input parameters, which in this case corresponds to the parameters of the request. Here we want to test if there are any attributes in the answer, specifically for each of the products returned in the list ‘docs’. As we’ve said before, this json response check can be done in a simpler way with the use of external libraries.</p><pre>params1 = {&#39;lang&#39;: &#39;es&#39;, &#39;q&#39;: &#39;camiseta&#39;, &#39;rows&#39;: &#39;24&#39;}</pre><pre>params2 = {&#39;lang&#39;: &#39;es&#39;, &#39;q&#39;: &#39;shirt&#39;, &#39;rows&#39;: ’35&#39;}</pre><pre>@pytest.mark.parametrize(&quot;params ,rows&quot;, [(params1, 24),(params2, 35)])<br>def test_response_structure(params, rows):</pre><pre>    path =  &#39;<a href="https://api.empathybroker.com/search/v1/query/ebdemo/search">https://api.empathybroker.com/search/v1/query/ebdemo/search</a>?&#39;</pre><pre>    # make the request and get the response data<br>    response = requests.get(url=path, params=params)<br>    json = response.json()</pre><pre>    # checks the number of rows<br>    assert len(json[&#39;content&#39;][&#39;docs&#39;]) == rows, &#39;Number of rows are  incorrect&#39;</pre><pre>    # checks the attributes of every product in the response<br>    for product in json[&#39;content&#39;][&#39;docs&#39;]:<br>       assert &#39;price&#39; in product, &#39;Price not in the product&#39;<br>       assert &#39;name&#39; in product, &#39;Name not in the product&#39;<br>       assert &#39;image&#39; in product, &#39;Image not in the product&#39;</pre><p>If we execute these tests with the command pytest -v src/test_case.py we get the following result:</p><pre>src/test_case.py::test_errors PASSED                                                                                                                  [ 20%]</pre><pre>src/test_case.py::test_pagination[es-tv-24] PASSED                                                                    [ 40%]</pre><pre>src/test_case.py::test_pagination[es-movil-18] PASSED                                                         [ 60%]</pre><pre>src/test_case.py::test_response_structure[es-tv-24] PASSED                                        [ 80%]</pre><pre>src/test_case.py::test_response_structure[es-movil-18] PASSED                             [ 100%]</pre><p>This way we can test the functionality of each of the different endpoints that are part of the API. It’s also easy to run these tests after each build of the service and use them alongside a regression test, applying it to each functionality after each change.</p><h4><strong>Conclusion</strong></h4><p>Avoiding a graphical user interface when testing an application may be a good way of creating tests that are less scalable than the full end-to-end ones, while these will still cover a large part of the application.</p><p>This can be particularly useful when testing through an application’s web interface, which is particularly difficult. Sometimes we don’t even have a user interface of our own, but we serve a REST API that must work properly regardless of the user interface.</p><p>Either way, a test just below the GUI can take us very far without compromising on reliability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61d297741668" width="1" height="1" alt=""><hr><p><a href="https://medium.com/empathyco/functional-api-rest-testing-for-a-search-service-61d297741668">Functional API Rest Testing for a Search Service</a> was originally published in <a href="https://medium.com/empathyco">Empathy.co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Testing for eCommerce]]></title>
            <link>https://medium.com/empathyco/automated-testing-for-ecommerce-7a61c0536ba3?source=rss-a224d2b79cbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a61c0536ba3</guid>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[search]]></category>
            <dc:creator><![CDATA[Ana González García]]></dc:creator>
            <pubDate>Thu, 11 Oct 2018 08:29:16 GMT</pubDate>
            <atom:updated>2018-10-11T09:03:44.334Z</atom:updated>
            <content:encoded><![CDATA[<p>As part of EmpathyBroker’s QA team, our mission is to ensure that the user’s search and discovery experience in multiple eCommerce sites is of the highest quality.</p><p>Through automated testing, we’re able to complete our manual QA process and ensure greater coverage of our search and navigation experience.</p><p>As mentioned in our previous article “<a href="https://medium.com/empathybroker/the-impact-of-automated-testing-in-qa-environments-c700e0aa3491">The Impact of Automated Testing in QA Environments</a>”, it’s essential to understand which tests can be automated and which are the most appropriate for manual testing. Identifying the critical functionalities where a product is most likely to fail, and designing robust automated tests that identify and uncover any potential any errors.</p><p>In this article we’ll introduce the main areas in which automated testing plays a key role in EmpathyBroker’s QA process.</p><h4><strong>At a API level</strong></h4><p>Consumers value search as the third most important aspect on an eCommerce site. Therefore, its correct functioning is crucial. To ensure this, at EmpathyBroker we have a suite of automated tests that verify the main functionalities offered by the search service, such as suggestions, partial results, search by reference, links, or the most clicked products.</p><p>The communication with this service is achieved by use of an API Rest, which carries out the search queries. This makes this API one of the most important components, and on which a large part of the automated tests are performed.</p><p>Currently, most retail eCommerce sites are international, which means that they have multiple languages and markets that help them grow and easily reach customers from different parts of the world. In addition, in many cases the product catalogues offered can be extensive and vary frequently.</p><p>Checking each of the functionalities of several search sites in all the languages in which it’s available is a tedious and extremely lengthy task if we do it manually. This is the type of scenario where test automation is really necessary. It allows us, for example, to test that when making a specific query we are shown products with greater relevancy at the top of the page in every possible language or market configuration.</p><p>Through its use, we can detect errors in the service before it goes into the production environment, and then throughout its life cycle. In addition, by testing the API we manage to isolate the errors from the rest of the system, and verify that the search service is working correctly, regardless of the market or the language in which we access the search site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IE3RvRkckCTFdIFkMOKp2A.jpeg" /><figcaption>Early detection of errors considerably reduces the cost to fix.</figcaption></figure><p>Automating these types of checks has the main advantage of saving time, as well as enabling the reuse of the tests. Thus, each time a new version of the service is developed, the tests are executed to ensure that when an improvement is introduced, everything continues to work as it did previously.</p><h4><strong>The final user’s point of view</strong></h4><p>One of the parts that the user values most from a site search is its interface. It’s essential to ensure that it provides the best possible browsing experience, useful functionality and provides a pleasant search experience for the user.</p><p>Testing the functionalities that the user interface provides is essential. We must be clear about what the interface should allow us to do and make sure that it actually does it.</p><p>At EmpathyBroker we verify this by using automated user interface tests for each of the functionalities that we provide with the eCommerce graphical interface such as instant search, autocompletion, infinite scrolling, related queries, or user search history.</p><p>To do this, we design tests that simulate the behaviour of the end user on an eCommerce site. Each of the functionalities of the graphical interface is covered with one or more tests, which represent different use cases or a sequence of interactions that a user performs with that functionality. For example, searching for a product by its reference and then clicking on it. We verify it’s accuracy, not only on the fact that the action undertaken was successful, but also that the calls to the different services, such as the search service, were carried out correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hLIxF2AKMRU6BbkLAeJNsw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/aX6YUeCtds8?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">rawpixel</a> on <a href="https://unsplash.com/search/photos/testing?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Automating this type of test allows us to verify the functionality of products from the perspective of the end user, in an efficient way and one that’s faster than if we were to perform them manually. In addition, we don’t have to worry about if the internal components are modified, the tests will remain valid as long as the functionality of the interface remains the same. This type of testing technique is known as black box testing, since the tester knows nothing about the internal functioning of the system, it only verifies the outputs against the expected result.</p><p>Today, more than half of eCommerce users access online retail sites through their mobile phones. Automating these user interface tests allows us to easily check the functionality simultaneously in different types of devices and browsers. To perform these checks manually would take a considerable amount of time.</p><p>We do however, leave other aspects, such as the intuitiveness and comprehensiveness of the interface, in the hands of manual testing, as these factors are easier to verify from a human point of view.</p><h4><strong>Conclusion</strong></h4><p>It’s important to verify that users can use a product correctly, and it’s equally important to make sure that the system responds appropriately when a query is performed or any other, perhaps slightly unexpected, actions take place.</p><p>By introducing automated testing within different layers of the system such as with the service and user interface, we’re able to facilitate this task, identify errors quickly during development, and guarantee a high level of quality in the final product.</p><p>In the next articles, we’ll look in more detail into how we approach automated testing in each of these different layers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a61c0536ba3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/empathyco/automated-testing-for-ecommerce-7a61c0536ba3">Automated Testing for eCommerce</a> was originally published in <a href="https://medium.com/empathyco">Empathy.co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Impact of Automated Testing in QA Environments]]></title>
            <link>https://medium.com/empathyco/the-impact-of-automated-testing-in-qa-environments-c700e0aa3491?source=rss-a224d2b79cbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c700e0aa3491</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Ana González García]]></dc:creator>
            <pubDate>Tue, 28 Aug 2018 07:15:29 GMT</pubDate>
            <atom:updated>2018-08-28T08:09:30.572Z</atom:updated>
            <content:encoded><![CDATA[<p>The never-ending discussion of manual versus automated testing continues unabated in work environments when we face the challenge of controlling the quality of a product. This is because there is more than one way to perform a QA process with good results. The key is to find a quality control process that best suits the product we want to test and define the working methodology of the development and testing teams. This is what EmpathyBroker is putting into practice to improve its quality control process.</p><p>The “controversial” automation of testing brings benefits, allowing us to improve the quality control process just as long as it’s applied in appropriate areas or scenarios. As Jorge Gabriel concluded in his post <a href="https://medium.com/empathybroker/let-s-talk-about-testing-9662b597579a">“Let’s talk about Testing”</a>, the objective of this technique should not be to eliminate manual testing, but to complement it.</p><h4>Myths and Facts</h4><p>On many occasions, I have read that automatic tests are more reliable than the manual ones. The truth is that test software is like any other software, it can contain bugs. One of the most important limitations is the fact that <strong>automation can only verify what it has been programmed to verify</strong>.</p><p>For example, let’s imagine an eCommerce quality control process. We can check that when we search for dresses that product is being returned in the results, but we can’t check whether the colours and clarity of the accompanying texts allow us to read them clearly. Automated tests can detect if the filtering of search results is working correctly, but we would not have information about whether the use of this functionality is intuitive.</p><p>In short, we can check for bugs, but we cannot guarantee their absence. Does this mean that automation is not useful and that we should leave everything to manual testing? I think the answer has to be no.</p><p>In order to achieve a complete and more efficient quality control process, it’s essential to ask yourself <strong>which processes can I automate and how?</strong> The real challenge is to correctly determine when an automated test is useful. To answer this question developers and manual testing teams play a key role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8c333d_YNEHG4q3UDb1wTA.jpeg" /><figcaption>Photo by Helloquence on Unsplash</figcaption></figure><p>In most cases, <strong>the tasks to be automated are checks that the manual testers have previously detected</strong>. As some articles highlight: “Automated testing is not really testing, but fact checking.” This type of check has the main advantage of saving time. This is why repetitive testing tasks for manual testers are the most likely to be automated.</p><p>For example, let’s imagine that in our eCommerce site we have different markets and languages. To manually test a functionality like the search engine we would need to try all the possible combinations of all the possible market and language variables, which would take a considerable amount of time for the manual tester. In addition, human errors may occur as a result of the continuous repetition. However, through automation, we could check, for example, if the non-results page is displayed in all markets or in all the different languages in a way that’s faster and less tiring for the tester.</p><p>Thanks to the time savings automation can achieve, this frees up the manual testers to be able to focus on exploratory tests to find other bugs or to test new features that may have been developed. The work of the manual tester is not replaced, both practices feed off each other to find a harmonious balance.</p><h4>Practical Usage</h4><p>One of the most common uses of this type of testing is <strong>smoke tests</strong>. Its objective is to ensure that the critical functionalities of the system is working. These are usually simple tests, of a short duration, which are executed after a software build to check the basic functionalities.</p><p>A useful practice is to have a series of these tests running periodically. This ensures you’re able to quickly detect errors and save the QA team time by being able to check a system where errors have already been detected. On the other hand, these tests require continuous maintenance.</p><p>So-called <strong>regression testing</strong> is another type of check for which automation is perfectly suited. Its purpose is to determine whether the current functionality of an application is maintained after a new one has been added or after changes have been made. This is an essential feature if we bear in mind that when correcting a detected error, we may also be introducing a new one, and what worked yesterday may be broken today. Regression tests usually have a longer duration than the smoke test mentioned above, and are executed before a push into a production environment.</p><p>Sometimes, the behaviour of a system can vary according to the number of users that are using it, so another area where automation works well is in <strong>load and performance testing</strong>. This test allows us to simulate the use of a system by a large number of concurrent users, delivering valuable information such as the errors generated when requests are made or possible application response times. This type of testing is very valuable in systems that must support a significant number of simultaneous users. At the moment, there is no way to perform this type of test manually.</p><p>Additionally, the ability to store tests in code is not only a time saver for the project under development but these can be reused throughout the entire lifecycle of the project. They can also be used for newer versions of the product or even similar variants that may be developed in the future.</p><h4>Conclusion</h4><p>Like all types of tests, automated testing has its pros and cons. However, the benefits of automatic testing are greater than the time and extra effort of writing and maintenance.</p><p>With well-designed automated testing working in combination with manual testers and developers, we can make a positive step towards achieving the desired objective of ensuring product excellence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*rlHHnqM5dPcDlfJpaSkQSg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c700e0aa3491" width="1" height="1" alt=""><hr><p><a href="https://medium.com/empathyco/the-impact-of-automated-testing-in-qa-environments-c700e0aa3491">The Impact of Automated Testing in QA Environments</a> was originally published in <a href="https://medium.com/empathyco">Empathy.co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>