<?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 Mirela Georgieva on Medium]]></title>
        <description><![CDATA[Stories by Mirela Georgieva on Medium]]></description>
        <link>https://medium.com/@mirela.georgieva?source=rss-7286a8078924------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Z7gkE7OdMyDicGYl4KR3Rw.png</url>
            <title>Stories by Mirela Georgieva on Medium</title>
            <link>https://medium.com/@mirela.georgieva?source=rss-7286a8078924------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:17:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mirela.georgieva/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[Enhancing the Quality Assurance process through the use of automation]]></title>
            <link>https://medium.com/@mirela.georgieva/enhancing-the-quality-assurance-process-through-the-use-of-automation-b5c70697ea75?source=rss-7286a8078924------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5c70697ea75</guid>
            <category><![CDATA[software-life-cycle]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[cypress]]></category>
            <dc:creator><![CDATA[Mirela Georgieva]]></dc:creator>
            <pubDate>Mon, 22 Aug 2022 16:35:40 GMT</pubDate>
            <atom:updated>2022-08-22T16:35:40.409Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Cypress end-to-end testing</em></strong></p><p>At Hackney, we always strive to deliver high quality digital services to our residents. To achieve that, we continuously review and seek to improve our development processes and practices.</p><p>Our API development is already enhanced by strong processes such as test driven development and API integration testing.</p><p>A new change in our processes is the quality assurance end-to-end testing using Cypress we have introduced as part of our software delivery lifecycle.</p><h3>Current QA process</h3><ul><li>User stories are refined with clearly defined acceptance criteria</li><li>Cypress end-to-end tests are written to reflect the acceptance criteria</li><li>The end-to-end tests are run after each deployment to an environment, making continuous delivery only available if the tests have successfully run against the current environment.</li><li>Manual exploratory testing is performed on our Staging environments</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r0tPRGIDnQgTm7HcDD0jbg.png" /></figure><h3>Writing Cypress tests — the components</h3><h3>Acceptance Criteria</h3><p>These are written using the Gherkin syntax which is a language utilised by the Cucumber test plugin. These are generally agreed with the rest of the development team and/or business stakeholder during refinement or planning sessions. They are written in a ‘<em>Given, When, Then</em>’ format and represent a sequential flow of actions that should be performed. It is not necessary to follow the exact format as presented as part of the ACs, but rather use it as a guide from which to gain confidence that the correct amount of coverage around the feature(s) has been achieved.</p><h3>Feature files</h3><p>These are physical files that contain the acceptance criteria as discussed above. In general, they should be written to match the acceptance criteria, although this is not always possible due to concurrency of the actions being performed.</p><ul><li>Make use of background steps to create testing state</li><li>Reuse existing features where possible</li><li>Leverage feature tags and data tables to allow for flexible test scenarios that can be parameterised or data driven.</li></ul><p>Written in this way, the feature files effectively become the living documentation of the application, so we are able to infer not only the thing we are testing but also the expected behaviour.</p><h3>Page objects</h3><p>We utilise the page object pattern to create a set of reusable page elements that we can then call within our steps file. They also may take environment context from an environment config file.</p><ul><li>Each view should be mapped within separate classes. Components that are shared across multiple views (such as page headers) should have a single page object file.</li><li>Make use of robust selectors — prioritising the use of button text. If necessary update the front end code to provide this more effectively (via use of “data-testid”) and avoid hard coding transient selectors (for instance for table elements of an unknown length etc.)</li><li>Only map elements that you will actually use as part of a test</li><li>Limit the abstraction of sequential and/or ‘bundled’ actions as part of the page objects file itself. If necessary, create a separate ‘actions’ class relating to the page object which contains all of the performable actions that can be called by the steps file</li></ul><h3>Steps files</h3><p>These are effectively the implementation of our tests, calling on the features and page objects to create our runnable test cases and generally follow the principles already outlined as part of the testing approach in our <a href="https://playbook.hackney.gov.uk/API-Playbook/tdd">API playbook </a>.</p><h3>Automating tests runs</h3><p>Tests are triggered automatically after each deployment to a development, staging or production environment.</p><p>To achieve that, the CI/CD pipeline is configured to invoke a separate, independent end-to-end testing pipeline at the end of each environment deployment.</p><p>Any subsequent deployments depend on whether tests have successfully run against a given environment as the staging and production deployment pipelines only become available if the end-to-end tests have passed.</p><p>Benefits to this process:</p><ul><li>No deployment to a staging or production environment unless tests are passing.</li><li>No way to manually bypass the tests and proceed with deployment unless a PR is raised and approved.</li><li>No dependency on a QA engineer to manually run tests against each environment.</li></ul><p>Hackney’s deployment flow goes as described below:</p><ul><li>Frontend code gets deployed to development</li><li>CircleCI (Hackney’s tool of choice for implementing a CI/CD pipeline, however, any other tool can be used to replicate this flow) triggers the end-to-end project’s pipeline as the last step of the deployment process.</li><li>The end-to-end tests get run.</li><li>If all tests have successfully passed, the end-to-end project’s pipeline triggers a downstream deployment — it enables the target project’s pipeline to deploy to staging.</li><li>Once the staging pipeline is available, engineers manually authorise the deployment to proceed.</li><li>At the end of the staging deployment, the same testing process repeats and the production deployment pipeline only becomes available if the tests are successfully run against the staging environment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lPH7c4F2EaRqL_tbfwUI2g.png" /></figure><p>This was implemented with the use of CircleCI’s API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2h6bPdfVOB-0HLgGg7dVUA.png" /></figure><h3>Manual QA testing</h3><p>QA engineers are still able to run their Cypress tests suite manually — this is particularly useful for running smoke tests against a production environment or tests related an individual feature only.</p><p>This has been achieved through the use of tags — tests and feature files include tags, which group tests (for example accessibility tests) and give the engineers the flexibility to cherry pick what tests to run.</p><h3>Manual exploratory testing</h3><p>Another important part of the quality assurance process is performing manual exploratory testing — manually testing the system in the capacity of an end user.</p><p>Although end-to-end test automation is a great way to raise the confidence in a deployment and to check for bugs, manual exploratory testing can help uncover issues that could have been missed by the implemented tests use cases.</p><h3>Conclusion</h3><p>For several of our projects, we follow the micro-frontend architecture approach. Each of those frontend applications live in a separate repository. Centralising our Cypress tests in a single repository, although they cover functionality delivered by multiple micro-frontends, has helped us streamline and speed up the work of our QA engineers. Embedding the centralised tests into the deployment process of each individual frontend pipeline has removed the need to manually trigger tests and has provided additional assurance that deployments to staging and production environments would only happen if end-to-end tests are successfully passing.</p><p>We always strive to continuously improve our processes, so we didn’t stop here. Some other improvements to our assurance processes include introducing vulnerability and secrets scanning, infrastructure compliance testing and contract testing. We will be sharing more details about those soon.</p><p>Special thanks to Sam Greig, Amido, for the extensive Cypress documentation he provided, which is featured in this blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5c70697ea75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SwaggerHub: the API Blueprint]]></title>
            <link>https://medium.com/@mirela.georgieva/swaggerhub-the-api-blueprint-6be2d6d3d01c?source=rss-7286a8078924------2</link>
            <guid isPermaLink="false">https://medium.com/p/6be2d6d3d01c</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[api-documentation]]></category>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[swaggerhub]]></category>
            <dc:creator><![CDATA[Mirela Georgieva]]></dc:creator>
            <pubDate>Thu, 09 Jul 2020 16:32:40 GMT</pubDate>
            <atom:updated>2020-07-10T11:47:02.774Z</atom:updated>
            <content:encoded><![CDATA[<p>At Hackney, we believe in working in a collaborative way and this is embedded into our API development process. Before commencing the implementation stage, each API endpoint will first need to be documented using SwaggerHub. The benefits include:</p><ul><li>Open specification standards.</li><li>Opportunity to mock the API and avoid possible blockers for front end development.</li><li>Opportunity to share and reach a common agreement of what the API request and response should look like before any work has commenced.</li></ul><p>The documentation aids our collaboration process, as it is shared with the whole team. People, both from technical and non-technical backgrounds, can provide feedback and request changes. This can save hours of development and also ensures that every team member has an understanding of the main question — what will this API do?</p><p>We have chosen SwaggerHub as a tool to document our APIs as it contributes to the efficiency of our development process, by giving us a central point of reference, built collaboratively, with a defined objective for the eventual shape of the API.</p><p>SwaggerHub allows us to build an implementation specification, and serves as a documentation of the API we are developing. In this way, developers have clearly defined requirements of how the API endpoint they are working on needs to look — this includes request parameters, response object and error responses.</p><p>Additionally, we share the API blueprint with other relevant parties, such as the Product Owner, to confirm that the data, that is part of the request and response of the API, is correct, based on the business area understanding of the wider team and any prior discovery work completed. It is a way of getting everyone from the team to work towards the same, shared goal.</p><p>The process of documenting an API endpoints involves working with a YAML file, where we would specify information such as the path to the API endpoint, the search parameters, API response object, the data types used and whether input fields are mandatory or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*OVw_HDH7O1A7a8aH9n8v3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*Tr_UFiNjdXRbzJY-AaLZ2A.png" /></figure><p>SwaggerHub’s online editor automatically validates the yaml file produced and allows developers to instantly see any changes they make by reflecting them onto the visual representation of the API endpoint. For easy visualisation, SwaggerHub interprets the OpenAPI document as easy to read documentation. This UI clearly lays out the endpoints for the API, which the development team can use for reference when writing code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*ww1Woja7qp3D8-O_pNSSmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_gwAXgzEfD-gf5xyGAE3ZA.png" /></figure><p>Documenting the API with SwaggerHub means that we have a consistent specification to follow throughout the development of the API. This is beneficial for the team as we can refer to the swagger docs to confirm that the API is functioning as specified and that the completed API matches the swagger doc specification. At the end of the project, we can continue to use SwaggerHub as documentation, giving an easy summary of the functions of the API.</p><p>Additionally, SwaggerHub provides a way to mock the APIs developed via the tool and make requests against them. This is particularly useful when front end and back end teams are working on the same project. Often, front end work might get blocked as it has a dependency on an API. Providing a mock API and API blueprints will remove this blocker as it will give the front end developers all the information they need to proceed with their work, while back end developers can focus on developing good, reliable and resilient APIs. This is highly important as often back-end developers would be rushed to deliver something in a quicker manner, as it is blocking other project work, which may result in lower quality APIs.</p><p>The process of developing API blueprints first has now been embedded into our API development and will be included in the new iteration of our API playbook. We have recently held a training session, where one of our apprentices presented how we use Swaggerhub in our Platform APIs project. Other developers that work on different projects have now adopted this new way of documenting APIs after seeing the benefits.</p><p>Hackney SwaggerHub is located at: <a href="https://app.swaggerhub.com/organizations/Hackney">https://app.swaggerhub.com/organizations/Hackney</a>.</p><p>All the Platform APIs in development have been documented and are viewable on the SwaggerHub.</p><p>This blog has been written in collaboration with <a href="https://medium.com/u/e86def721776">Ben Reynolds-Carr</a> and <a href="https://medium.com/u/5177942c3191">Bukky Omotoso</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6be2d6d3d01c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>