<?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 Olya Kabanova on Medium]]></title>
        <description><![CDATA[Stories by Olya Kabanova on Medium]]></description>
        <link>https://medium.com/@olgamsk4?source=rss-8bbe34b4c636------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7VmDiEDruUwps0TO5HauWA.jpeg</url>
            <title>Stories by Olya Kabanova on Medium</title>
            <link>https://medium.com/@olgamsk4?source=rss-8bbe34b4c636------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:35:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olgamsk4/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[Top 5 Junior Automation Tester’s Questions About Automated Testing]]></title>
            <link>https://medium.com/hh-ru/top-5-junior-automation-testers-questions-about-automated-testing-c7c03c674eeb?source=rss-8bbe34b4c636------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7c03c674eeb</guid>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Olya Kabanova]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 06:03:27 GMT</pubDate>
            <atom:updated>2022-07-19T06:03:27.726Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Rc3klMp1SMHje6-_PkPSgw.jpeg" /></figure><p>Hey everyone! I’m Olya, mobile app tester at hh.ru. Today we’re finishing the series of answers to the most popular questions on testing automation. We have already answered the questions from a <a href="https://medium.com/hh-ru/top-5-manual-testers-questions-about-automated-testing-aae16a3402bc">manual tester</a>, a <a href="https://medium.com/hh-ru/top-5-manager-questions-about-automated-testing-4f194bc02375">manager</a>, and a <a href="https://medium.com/hh-ru/top-5-technical-directors-questions-about-automated-testing-ca2fe4619aab">chief technology officer</a>. Now it’s time to answer the five most interesting questions that beginner test automation engineers ask — about flaky tests and production bugs, our fight for stability and how to live up to the expectations regarding autotests.</p><p>The video version of my Q&amp;A is available <a href="https://www.youtube.com/watch?v=jVATgT-IOEY&amp;feature=youtu.be">here</a>.</p><h4>Question #1<strong>. We write and run autotests, but production bugs are still haunting us</strong></h4><p>Let’s start with the idea that production bugs will keep occurring anyway, it’s absolutely normal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*vNz3uEPMCxAIF_ekkz3Rjg.png" /></figure><p>Users may perform unbelievable operations with your app and go through fascinating and unpredictable scenarios: open a tab, switch to another app, block the phone, receive push notifications, surf the feed, and then come back to our app. That’s where the bug is waiting. You can partially automatize such cases — with the help of overload, interruptions and other operations. However, you shouldn’t cover all possible unique scenarios with autotests. At least because no CI will ever survive such a load, and the time wasted on test running is not worth it.</p><p>Apart from that, beware of the device-dependent bugs, which you can’t catch with autotests, if you were put to test this very troubled machine. Of course, you can try to configure CI so that it creates various emulators, or run tests on various real devices, but it will significantly complicate the process of supporting such autotests and most likely reduce the stability. And again, it won’t be worth the time wasted on support and runnings, especially due to the fact that the bugs you find will be minor.</p><h4><strong>Question #2. How to make autotests less painful for everybody?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*vGALbq6BPEv4986ckEBv3g.png" /></figure><p>In order for autotests not to make everybody suffer all the time, it’s enough to follow several rules:</p><p><strong>Rule 1. Write a clear and coherent code, set the reports.</strong></p><p>The tests should be comprehensible not only for you, but for other testers and developers. If your tests failed, the person in charge shouldn’t sit with it half a day or pester the author crying “help me identify the crash”. They should be able to understand the location and reason of it. It’s even better if you arrange transparent reports, where it’s possible to trace the steps and the exact spot of test failure.</p><p>Nobody wants to waste time on checking how the test works and what it does in general — all of this should be clear.</p><p><strong>Rule 2. A review is required.</strong></p><p>In order to make sure that your test is actually helpful and perfect, somebody else needs to confirm it. Only then you can sleep well at night.</p><p>Here at hh.ru we require a necessary review for all tasks. For all tasks with autotests it’s obligatory to have a review from QA. It’s extremely important, as the reviewer helps find not only an incorrect indent, but also mistakes in logics. They can also conduct additional testings or identify an error that you might have missed.</p><p><strong>Rule 3. Implement autotests in your CI/CD right away.</strong></p><p>It’s essential that you benefit from autotests here and now. Don’t put them on the back burner. The sooner your people start to get used to the fact that their code is now tested, the easier it will be for you to live. Meanwhile, it’s important to remember that autotest releases should be as stable as possible. Before merging your tests, it’s better to run them on CI 100 times (I’m not joking). Only after becoming 100% sure that your test doesn’t flake, doesn’t crash at random spots, and works properly — only then move forward!</p><h4><strong>Question #3. Why do tests constantly crash? How can I trust them?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*dtUjEftotNz5tmd9dsLHmw.png" /></figure><p>Let’s start with the fact that such autotests will be crashing anyway. It’s absolutely normal, so if they crash all the time, it’s worth pondering whether they actually check anything.</p><p>Our duty is to make them fail less. In order to do so, we need to learn to detect and solve the problems which cause the crash, plus, improve the weak points.</p><p>While working with autotests, I detected my personal TOP-4 problems with autotests:</p><ol><li><strong>Somebody released something and everything crashed.</strong></li></ol><p>Here everything is simple. The functional changes should be made simultaneously with autotest correction. Such corrections take some time, which we consider during task evaluation and decomposition. When a developer changes somethings in the functions that had already been covered with autotests, before merging the branch, he needs to edit autotests, so that they keep checking these functions. It’s essential to stabilize this process and not to ignore the tests. Always keep them relevant.</p><p><strong>2. Tests started crashing, although we hadn’t changed anything</strong></p><p>It’s even more exciting. The developer hadn’t changed anything, but for some reason the tests started to fail. It could be that they changed something on backend.</p><p>Why do our UI-autotests depend on backends?</p><p>Our autotests are run on test stands — it’s a copy of production backend (without prod database). We update their relevance — every day autotests are run on relevant backends. Therefore, if somebody releases anything new, our autotests correspond to that and may crash. It’s an emergency for us, so we instantly check if it’s a bug or our new reality, which should be updated. Then we contact the team or correct the tests.</p><p>It’s important to mention that it doesn’t happen with every backend change. Most of the time we synchronize our teams. However, the reality dictates different rules: sometimes we omit tiny details (e.g. somebody didn’t consider affecting mobile apps). Our tests are very sensitive to this.</p><p>Every time it happens, we think of mocks. Mocks are good, if you don’t use them too much. But I think that such autotest sensitivity to changes — it’s ok, because this way we’re in the loop of new features, which affect our app from other teams’ perspective. Plus, mocks require time for support and updating. Here it’s up to each person what they want to support more.</p><p><strong>3. Bugs</strong></p><p>My favourite reason of autotest crashes. No comments here. If your autotest found a bug, it’s a very good autotest. And you’ve done a great job.</p><p><strong>4. Flaking</strong></p><p>My least favourite reason. That’s what we’re going to discuss next.</p><h4><strong>Question #4. Why do my tests flake?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*Vo2YzI--hzSuJWs3GBhO7Q.png" /></figure><p>Flaking is like emotional swings — your tests are green, then red, everybody is sad, then happy, and nobody knows how to live with it. In order to make your app’s and test’s relationship healthy, we suggest that you follow several rules about how to avoid flakes and create more stable autotests:</p><p><strong>1. Unique test data</strong></p><p>Each autotest should be accompanied with new unique test data, which only this test works with. You can’t just hope that something would pop up on the screen and that’s ok. Predictability is key.</p><p><strong>2. Wait till all elements appear on the screen</strong></p><p>You made a logical test, step-by-step, but it still crashes at random spots. It must be that it doesn’t wait till the necessary element and taps in the wrong place. Animations, loaders, alerts only worsen the situation.</p><p>To prevent that from happening, before any action (tapping, swiping) or assert (checking) you need to wait until this element is shown on the screen and becomes available.</p><p><a href="https://github.com/KasperskyLab/Kaspresso">Kaspresso</a> for Android has an embedded mechanism, which waits for the necessary element, (meanwhile doing retries on isVisible), and only then it commits the action. Thanks to that, your autotests will have no problems with wrong or early tapping. Also you can set the timer for this waiter, because apparently waiting for an element during 10 seconds may be a bug too.</p><p>XCUITest on iOS has waiters too, but you have to set them by yourself before any each action. Or it’s worth to write a mechanism similar to Kaspresso.</p><p>The main thing is not to leave waits in code for a particular amount of seconds, because it might prolong the test’s time. And make it a rule: before messing with the element, make sure that it’s present on screen.</p><p><strong>3. Configure stable infrastructure</strong></p><p>If the test infrastructure keeps bringing you down, it’s needed to solve this problem ASAP. Freezing and slow emulators, crashing test stands — this atmosphere is not beneficial for your tests. Plus, everyone will soon get fed up with investigating the reasons of another fall. That’s why it’s necessary to dedicate the team’s time and resources to infrastructure stabilization. If everything is optimized, but there’re still problems, maybe you need to update your hardware. Time to empty the budget.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*uDp_XALHGbu5QBT9jGjBsw.png" /></figure><h4><strong>Question 5. What should I do, if there are too many tests now?</strong></h4><p>At first you coded small autotests — open a screen on some app and check whether it launches or not. Then you start automatizing more complicated scenarios. The number of tests rises, the test time increases. When something breaks down, it’s not one test that crashes, but ten, all with the same mistake, whereas the time of the crashed build increases, because the failed tests were retried.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*S-YhmZjvfSaXE5Gym34XlQ.png" /></figure><p>In this situation it’s important to let go of your old yet stable tests and delete them, if the same checkupsappeared in the new ones. The hardware is not immortal, plus spending double time on app launch for each new test is antiproductive and expensive.</p><p>In order to avoid diving into huge future refactoring, use the following rule — update the old things before starting to write the new ones. If you start applying this principle right away, you won’t have to deal with such a problem.</p><h3><strong>Instead of conclusion:</strong></h3><p>This article is the final article from the Q&amp;A series on automation, but we will continue posting about testing and automation at hh.ru, sharing how our releases go and a lot of other helpful and interesting things.</p><p>Follow <a href="https://t.me/hh_tech_news">our Telegram news channel</a> and <a href="https://www.youtube.com/c/hhtech/">Youtube channel with “HHella cool stories</a>” to keep up with the new videos, articles and other news. You can also ask any questions to our engineers in the comments or <a href="https://t.me/hh_tech">contact the developers in our Telegram chat</a> or privately.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7c03c674eeb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hh-ru/top-5-junior-automation-testers-questions-about-automated-testing-c7c03c674eeb">Top 5 Junior Automation Tester’s Questions About Automated Testing</a> was originally published in <a href="https://medium.com/hh-ru">hh.ru</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 Technical Director’s Questions About Automated Testing]]></title>
            <link>https://medium.com/hh-ru/top-5-technical-directors-questions-about-automated-testing-ca2fe4619aab?source=rss-8bbe34b4c636------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca2fe4619aab</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[automation-testing]]></category>
            <dc:creator><![CDATA[Olya Kabanova]]></dc:creator>
            <pubDate>Tue, 14 Jun 2022 07:17:20 GMT</pubDate>
            <atom:updated>2022-06-14T07:17:20.241Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vAXwuRIbi2m0hpFNeOhzzA.jpeg" /></figure><p>Hey everyone! I’m Olya, mobile app tester at hh.ru. We continue the series of the top questions about automated testing. We answered questions of <a href="https://medium.com/hh-ru/top-5-manual-testers-questions-about-automated-testing-aae16a3402bc">manual testers</a> and <a href="https://medium.com/hh-ru/top-5-manager-questions-about-automated-testing-4f194bc02375">managers</a> earlier. Now it’s time to answer the top-5 of the scariest questions from technical directors: how to choose an automatization framework and win, hiring difficulties, and labor costs for autotest support.</p><p>The video version of my answers is available <a href="https://youtu.be/yPHjqljBCHc">here</a>.</p><h4>Question #1. How to choose an autotest framework?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*JybEVb0CQ8bm-wpPG9oVEA.png" /></figure><p>Let’s start with a story about how we selected a framework for android autotests.</p><p>Once upon a time, a team of hh.ru’s developers and testers decided that it would be nice to automate regress. Here comes a large and detailed research.</p><p><strong>We were learning what existed in the market:</strong></p><ul><li>what issue those frameworks users face,</li><li>how quick and how well those issues are solved,</li><li>how often do you have to use kludges for autotests to work in a stable manner,</li><li>relevance in the community</li></ul><p>In the end, we’ve got a pros-and-cos table for each framework, which we were going to choose from.</p><p>We determined what was of greater importance to us. For instance, to write autotests easily in order to make them readable and easy to understand for testers and developers. So, we excluded unsupported, complex, cross-platformed, unstable frameworks and chose Kakao.</p><p><a href="https://github.com/agoda-com/Kakao">Kakao</a> is a framework for the well-known Espresso. Writing autotests on it was much easier and more convenient. At least, element detection didn’t take us 3–5 lines of code, as it did in Espresso. We had been automating on Kakao for about half a year, and over that time we got a clear idea of what we were lacking in the chosen framework. So Kaspresso came along, which fulfilled all our desires.</p><p><a href="https://github.com/KasperskyLab/Kaspresso">Kaspresso</a> is a more convenient framework. It helps not only to write autotests easily, but also makes them stable and readable. Under the hood, Kaspresso has a lot of useful functionality, thanks to which even the most complicated mobile app checks are written quite easily.</p><p>In addition to everything written about the benefits and delights of Kaspresso, we have added steps — a human-readable description of what we do in a test or in a method. From these steps, a step-by-step report is generated — you can see what steps the test passed and at what step it failed. We also made dsl to create test data. You can read more about it <a href="https://habr.com/ru/company/hh/blog/455042/">in this article</a>.</p><p>It’s all much shorter and easier with iOS. Everything here is out of the box — XCUITest, with which everything works perfectly and stably. The framework is up-to-date, supported, stable, and convenient. We didn’t have to try any other possible options, because XCUITest meets all our requirements.</p><h4>Question #2. How is life with automated regressions for you?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*OwVwT-7as8Bo0-CHkDnxfg.png" /></figure><p>Over the two years that we’ve been living with automated regression, we have a solidly established weekly release train. Releases are regularly sent to production without manual regression thanks to quantity, quality, and, most importantly, trust in autotests.</p><p>In addition to launching autotests on release branches, the entire set of autotests is always run on the dev feature branches before the merge. No code that has dropped tests is allowed into the developer/master. Because of this, we keep the development stable, we have confidence in it, and we can cut off the release branch at any time.</p><p>For the tester, automated regress can mean more free time for more important and useful tasks — such as writing new autotests, increasing the stability of existing tests, developing their direction, and similar cool tasks.</p><h4>Question #3. Does it take a lot of time to support autotests?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*_i83C9rYKybgtZ9_Eylicg.png" /></figure><p>Support for autotests is built into our development processes. How it works: every week a duty tester is assigned, one of whose tasks is to monitor the stability of the tests. If a test is dropped, the person on duty must figure out the reason for the drop and assign someone responsible to fix it. If the test dropped because of its own instability, It’s the tester’s task, if the test found a bug, It’s on the developer whose code has affected the autotest. According to experience, most often it does not take much time — one tester spends a few hours in a week.</p><p>More complex tasks are development, improvement and optimization, and infrastructure fixes. Such tasks go along with the development of product functionality and have a corresponding flow (elaboration, decomposition, assessment, development, etc.). This does not happen too often, on average once a quarter per platform. Note that most often these are not high-priority tasks, and they are done when the team has the resources to do them.</p><p>If you set everything up clearly, learn how to work with flaky tests, and avoid them as much as possible, then supporting autotests takes little time and brings plenty of benefits.</p><h4>Question # 4. How hard is it to find a mobile automator?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*jZwE3Nj1VeYH7_pf9eteYQ.png" /></figure><p>Sometimes it’s hard to find just a good mobile tester with relevant experience, and things get even harder if automation experience in a particular technology stack is required.</p><p>In hh.ru mobile teams, we usually look for just cool manual testers who want to develop towards automation. During interviews, a basic knowledge of programming is certainly a plus, but not the decisive factor. We are willing to teach automation in-house. But what really matters is that a person must be eager to develop, able and willing to learn, and be proactive in these aspects. Of course, it’s difficult to accurately determine this during interviews, but it’s not completely impossible either.</p><h4>Question #5. How long does take for a manual tester to become an engineer of automated testing?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*bgmKswHJlcmqExaccyT7IQ.png" /></figure><p>Again, based on our experience, we hire a person with no automation experience and for the trial period (3 months) he is tasked with writing his first autotest on whichever platform he likes the most or seems easier. And no one has ever failed a probationary period.</p><p>Naturally, the fact that a person is not writing autotests completely from scratch makes a big difference. We already have ready-made autotests that you can look at and write by analogy, and people who are willing to help and answer questions.</p><p>As a result, in 3 months, we get a person who already understands how to write autotests for at least one of the platforms. The next step is to write the same test for the second platform. In another 3–4 months we will get an independent automator of mobile applications for both platforms, who may need help with some complicated things for a while. But he will be free to write simple autotests for both platforms in six months.</p><h3>Instead of a summary:</h3><p>This article is a follow-up to the series of answers to questions about automation. Next, we’ll find the final TOP-5 questions of a junior automator about autotests. Let’s talk about flakiness, stability, and bugs from production.</p><p>If you don’t want to miss new videos, articles, and other news, subscribe to our<a href="https://t.me/hh_tech_news"> news channel on telegram</a> and “<a href="https://www.youtube.com/channel/UCWztYdpQS3v9Gjno8bBZcNA">HHella cool stories” channel</a>. And you can ask our engineers any questions on any topic in the comments, in hh<a href="https://t.me/hh_tech"> developers’ telegram-chat</a> or in DM.</p><p>Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca2fe4619aab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hh-ru/top-5-technical-directors-questions-about-automated-testing-ca2fe4619aab">Top 5 Technical Director’s Questions About Automated Testing</a> was originally published in <a href="https://medium.com/hh-ru">hh.ru</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 Manager Questions About Automated Testing]]></title>
            <link>https://medium.com/hh-ru/top-5-manager-questions-about-automated-testing-4f194bc02375?source=rss-8bbe34b4c636------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f194bc02375</guid>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[mobile-app-testing]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Olya Kabanova]]></dc:creator>
            <pubDate>Tue, 17 May 2022 06:00:05 GMT</pubDate>
            <atom:updated>2022-05-17T06:15:05.329Z</atom:updated>
            <content:encoded><![CDATA[<h3>Top 5 Manager’s Questions About Automated Testing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mu_pokW83cenyUoaXOtbjw.jpeg" /></figure><p>Hey everyone! I’m Olya, mobile app tester at hh.ru. Previously we’ve already released an article with answers to <a href="https://medium.com/hh-ru/top-5-manual-testers-questions-about-automated-testing-aae16a3402bc">manual tester’s questions about autotests</a>. Let’s continue the series of answers: in this article, we will answer<strong> the 5 most popular manager’s questions about autotests</strong>. We will talk about how much time and resources will be spent on automation and how soon it will start yielding results.</p><p>You can watch the video version <a href="https://www.youtube.com/watch?v=WqAd9g6SjWU&amp;ab_channel=hhtech"><strong>here</strong></a>.</p><h4><strong>Question #1. Do autotests slow down development?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*YGnVZnLBfweKIOy7Dcrg2Q.png" /></figure><p>First of all, autotests greatly reduce the time for testing and regressions, which means they help to get features into releases faster.</p><p>But, indeed, they sometimes increase development time. For example, when a developer changes the functionality covered by the autotests, he needs to fix the falling autotests before merging new code.</p><p>To avoid additional work and unpredictable problems, you should set aside your time for the possible autotests fixes when assessing and decomposing your task. Ideally, QA engineers should be present at decomposition meetings and be able to tell developers which autotests may be affected by the new functionality. Then the features development time will be predictable and will not increase occasionally.</p><p>But you need to have a stable autotests infrastructure and understand autotests crash reasons on your project to work process properly. This way developers won’t have to waste their valuable time figuring out why autotests are crashing — it was its code or a problem on the test server.</p><h4><strong>Question #2. Can I write one single autotest for both platforms at once?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*ElTL664SqOxTAUiVdWDFEg.png" /></figure><p>Of course, you can. There are cross-platform frameworks, and many people use them. But we chose native ones right away, as they are more stable, reliable, and easy to maintain.</p><p>What are the main problems with cross-platform frameworks?</p><ol><li>The cross-platform framework codebase lives separately from your application. If you need to change or customize framework code, you have to go to framework developers, make pull requests and wait for them to merge and release it on their side, which is not always convenient or productive.</li><li>Frequent problems with new OS releases and bugs. You have to wait for support from the framework developers, and the time of this waiting is very unpredictable. You don’t know when everything will be fixed and optimized and when it will finally work for you. So you’re dependent on other people.</li><li>Your chosen cross-platform framework may be written in a programming language that your developers are not familiar with. It may be more difficult to get help from them if you need it. Also, the developers will not be able to write and edit the autotests themselves.</li></ol><p>It might seem faster and easier to write one cross-platform autotest than two native ones. But in fact, this is not the case.</p><p>Firstly, all the “saved” time may later be spent supporting such an autotest for two platforms. This can be a problem due to the updatable specifics of the different operating systems. Also, often the behavior of the same feature or button can be different for iOS and Android.</p><p>Secondly, when choosing between a cross-platform framework and a native one, the main argument is that “learning one programming language is easier than two”, don’t be in a hurry to decide. The syntax of Kotlin and Swift are very similar (at least when it comes to writing autotests). If you write an autotest in one of the languages, you can easily write the same one for the second platform.</p><h4><strong>Question #3. When will autotests start to bring more benefits than problems?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Ty-bxXz8kNKlj_fqZQeOsg.png" /></figure><p>Exactly when:</p><ul><li>a stable infrastructure will be set up for your project,</li><li>autotests will be built into your CI/CD pipeline and not run locally by someone else when they are reminded of autotests&#39; existence,</li><li>autotests will fail an acceptable number of times, i.e. they will not be flaky.</li></ul><p>Even if there are very few tests, but they are already running at least before the developer branch merging, that’s already a benefit: minus some manual checks and a guarantee that your application at least launches.</p><h4><strong>Question #4. In how many months is it possible to reach 100% coverage?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*TSC3GJY-dh71Eq9h4226-g.png" /></figure><p>The question of 100% coverage is a very slippery one. I don’t want to get into useless arguments about whether it even exists and whether it should be pursued. But since it is asked very frequently, let’s get to the bottom of it.</p><p>Firstly, it is worth considering the coverage of each feature separately.</p><p>Secondly, overall the answer to the question “how much of this feature you have covered” will be based on the QA’s experience and knowledge of the product.</p><p>In assessing the coverage of the feature, my reasoning is as follows:</p><ul><li>all positive checks are 60–70% of the overall coverage,</li><li>after that add negative checks (all sorts of interruptions, screen roll-ups, zero screens, etc.) — we get 90%.</li><li>The remaining 10% are hard-to-reproduce scenarios, dependant on other features, etc., which are either not worth covering at all (think about whether your CI can handle such a load, or whether the time to support such autotests is worth it), or leave it as the very last thing.</li></ul><p>I would also add that not all features need to be automated in principle. Sometimes the effort involved in automating some incredibly complex check greatly exaggerates the ability to quickly check it by hand once before a release.</p><p>In order not to leave the manager’s question unanswered, we identify the most critical functionality of the application and look at how many positive and negative tests we need to automate first, to be sure the functionality works. Next, we look at how many testers are willing to spend what amount of time on automation and calculate how long it will take us to automate it.</p><h4><strong>Question #5. How many QA engineers does it take to automate the whole project?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*w5CdDEXReAskkVynFiLPXQ.png" /></figure><p>I’ll tell you a story about mobile app automation at hh.ru.</p><p>At different periods of time, we had between 2 and 4 QA engineers for the whole mobile area. In about a year we came to almost full coverage of regressions on both platforms. And that’s taking into account the fact that we continued to test the functionality manually and do manual regressions, and on Android, we moved to a new framework twice. In the end, by the way, we settled on <a href="https://github.com/KasperskyLab/Kaspresso">Kaspresso</a>, with which the tests became much more stable and easier to write. Each move was a big amount of refactoring because before that we had already managed to write a significant number of autotests. But nevertheless, in one year the regressions were automated.</p><p>In other words, any number of testers can automate a project if enough time is given to it.</p><p>But it begs the question: how does a tester have time to do both manual testing and autotest writing?</p><p>Sometimes it is really difficult. Especially if there is a big flow of new functionality that urgently needs to be tested. Everyone wants to be on time for the release, and tasks are given a higher priority. This is a familiar situation. What to do?</p><ol><li>We sit down.</li><li>We realize that autotests will be of maximum benefit to us in the near future, so, for example, we allocate one day a week for automation to each tester.</li></ol><p>We do this when testers are stuck with manual testing, and it works. For automation, you can choose the day after release, when nothing is burning anymore, and the tester can write autotests with a clear conscience, without being distracted by other tasks.</p><h3>Instead of a conclusion:</h3><p>This article is the second in a series. The next ones that await us are:</p><ul><li>Top 5 CTO’s questions about autotests</li><li>Top 5 Junior Automation Engineer’s questions about autotests</li></ul><p>Sounds fun? Subscribe to our <a href="https://t.me/hh_tech_news">news channel on telegram</a> and “<a href="https://www.youtube.com/channel/UCWztYdpQS3v9Gjno8bBZcNA">HHella cool stories</a>” channel so you won’t miss new videos, articles, and other news. And you can ask our engineers any questions on any topic in the comments or in <a href="https://t.me/hh_tech">hh developers’ telegram-chat</a>.</p><p><strong>Stay tuned!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f194bc02375" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hh-ru/top-5-manager-questions-about-automated-testing-4f194bc02375">Top 5 Manager Questions About Automated Testing</a> was originally published in <a href="https://medium.com/hh-ru">hh.ru</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 Manual Testers’ Questions About Automated Testing]]></title>
            <link>https://medium.com/hh-ru/top-5-manual-testers-questions-about-automated-testing-aae16a3402bc?source=rss-8bbe34b4c636------2</link>
            <guid isPermaLink="false">https://medium.com/p/aae16a3402bc</guid>
            <category><![CDATA[mobile-app-testing]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Olya Kabanova]]></dc:creator>
            <pubDate>Wed, 27 Apr 2022 06:02:27 GMT</pubDate>
            <atom:updated>2022-04-27T06:02:27.114Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RRi6TFuy3-W7Zog5ahDrug.jpeg" /></figure><p>Hey everyone! I’m Olya, mobile app tester at hh.ru. Our team has a <a href="https://www.youtube.com/channel/UCWztYdpQS3v9Gjno8bBZcNA">YouTube vlog</a>, where we tell about our way of mobile app development. Now we’re starting a new topic — the testing of all those developments. For those who are interested, we created <a href="https://www.youtube.com/playlist?list=PLExO6wRTJucTjpgdUd-xSfsC1FmXrV730">a separate playlist</a> of videos about testing and automation.</p><p>This article covers <strong>TOP-5 manual testers’ questions about automation</strong>. <a href="https://youtu.be/C1a8Pc4pps4">Click</a> to see a video version.</p><h4><strong>Who will benefit from this article?</strong></h4><ul><li>Projects that are under development and are starting to think about test automation.</li><li>Manual testers who want to get into automation.</li></ul><h4><strong>Question #1. Why do we need automation when our manual testers handle it?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*EndgMqRveNT_EkaHboGbAQ.png" /></figure><p>Indeed, before you introduce automation to a project because it’s “À la mode” and everyone has it, it’s worth considering the following factors:</p><ul><li>How long the project will last, what is its scale, how much and how often it is changed.</li><li>Evaluate how labor-intensive it will be to write autotests in each case. Maybe it will be much harder, longer and more expensive to automate your functionality than to test it manually.</li><li>Also, if your project is expected to “cut out all the old and write new from scratch”, the time for autotests has not come yet.</li></ul><p>But if your project is:</p><ul><li>is steadily developed and growing,</li><li>increasing number of developers,</li><li>the application that begins to acquire new functionality,</li></ul><p>then the testing time will start to increase in direct proportion. Sooner or later it will come to a critical point, when regress will take more time than the development. This means that it is time to think about automating testing.</p><p>Autotests will ensure that the old stuff didn’t fall off while the developers were building cool new features. Especially if this new stuff was done in completely different parts of the code. Manual regresses are good in this case, of course, but there is also the human factor, a washed out eye and unpredictability of places where bugs can pop up. At the same time, manual testing is not completely abandoned because the new functionality will still be tested manually. There’s no sense in automating things that probably won’t fly high and will be kicked out in a week or sent in for revision.</p><p>But instead of keeping a manual tester busy writing test cases for new functionality, supporting documentation and constant regresses, you can give him at least one day a week for automation, to help with the initial configuration of the infrastructure, and after a few months you will have the first autotests, your tasks will be many times faster to the releases and at the same time you will become more confident in the stability of the released code.</p><p>Still, automated regression allows testers to devote more time to useful tasks, such as exploratory testing. In addition, there will be a better understanding of how the application works under the hood, which will definitely come in handy even in manual testing.</p><h4><strong>Question #2. Is it possible to start writing autotests in a one-day time?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*juld6YplFQF3JktG-j_V3w.png" /></figure><p>You can start writing autotests right away, but it’s better not to rush and to take a thoughtful approach to the question.</p><p>If the project has not yet had automation, you should definitely start with research on existing tools, frameworks, and approaches. Read about the problems users face and how quickly they are solved. Evaluate the pros and cons, and choose the most suitable, which will be easy and pleasant to work with. The price of a mistake at the start is much lower than when you are actively automating and suddenly realize that the framework you have chosen is not convenient and does not suit at all.</p><p>If you’ve never practiced autotests before, it can seem difficult at first… It’s not easy to start writing autotests right away if you don’t have any examples and nothing to lean on. Fortunately, there are a lot of various articles with a lot of good code examples available on the Internet now, which you can take, tweak to fit your own needs, and figure out how they work.</p><p>Finally, to learn to automate, you need to start automating. This really works!</p><p>After all, to learn how to automate, you just have to start automating. It really works.</p><p>It is perfect if you have developers who are willing to help you understand the code and answer all your questions at the beginning. At hh this was exactly the case — in the early days, when we first started writing our first autotests, we just flooded our guys with all sorts of questions. Thanks to them, we got to where we are today.</p><p>But it is possible that your team may not have time to assist you with autotests. Unfortunately, it is possible, and you shouldn’t blame them for that. If you are in this situation, do not despair! Our team created a chat on Telegram where we are ready to answer all the questions related to the development, testing and automation of mobile applications. Feel free to ask, learn, and start writing your first autotests!</p><p>It is also worth noting that there is a very powerful community of testers on the Internet. There are chat rooms on the very same Telegram, where they will answer all your questions 24/7 and help you figure things out.</p><h4><strong>Question #3. Is it possible to become an automator without manual testing experience?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*CJlE6LLB2iaG_0HJSw6tQw.png" /></figure><p>It’s possible, if you have experience in programming. In some companies, this is precisely how it works. Manual testers write test cases (steps + expected result), the automator takes them and translates into code. In general, this approach is quite valid and working, but I see some drawbacks in it.</p><p>First, when you write autotests for a functionality that you know well, you can add some tests that you might have missed when writing test cases. Plus, you know other autotests, which you can add</p><p>Secondly, test automation is interesting and useful. You start to learn the code, expand your product knowledge, and understand how everything works from the inside. This is useful for manual testing as well. You start to understand developers slightly better.</p><h4><strong>Question #4. Is it possible to make developers write autotests?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*lFausHCBZfPST9PJ1mIZGQ.png" /></figure><p>In theory, of course, it is possible. But most likely they will not be very happy about this, and it is unlikely that anyone will be happy in general.</p><p>First, it will slow down the development process. Instead of writing code, developing product functionality, developers will be busy writing autotests.</p><p>Secondly, it’s expensive.</p><p>And third, everyone should have their own area of responsibility. Developers create the functionality, and testers test it. Everything is the same with autotests as with ordinary testing. The unit-tests are the developers’ responsibility, but the UI is the testers’.</p><p>In fact, this question is like “Why do we need testers when we can ask developers to test what they have written?”</p><h4><strong>Question #5. Is it possible to write autotests automatically? I don’t want to learn how to program.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*D6X1OkUJSu-OYvrVsuuphw.png" /></figure><p>You can give it a shot. We tried. There are recorders for such things. But the tests they create are monstrous and unsupported pieces of code.</p><p>Perhaps it would work if, let’s say, there was some button in the application that would never change. Neither the path to it, nor its functionality and position, will be changed. Then the code of this test will never need to be changed and let this test live. But unfortunately, it doesn’t work that way in practice. Tests should be easy to maintain, understandable, and readable. You can’t achieve it with a recorder.</p><p>You can use recorders in some complex areas of the application to see how you can interact with some hard-to-find element. That is, use it as an assistant, as an auxiliary tool, but not as the main means of automation.</p><h3>Instead of a conclusion:</h3><p>This article opens a series of articles. Next to arrive:</p><ul><li>Top 5 manager’s Questions About Autotests</li><li>Top 5 CTO’s Questions About Autotests</li><li>Top 5 Junior Automator’s Questions About Autotests</li></ul><p>Sounds fun? Subscribe our<a href="https://t.me/hh_tech_news"> news channel on telegram</a> and<a href="https://www.youtube.com/c/hhtech/"> </a>“<a href="https://www.youtube.com/channel/UCWztYdpQS3v9Gjno8bBZcNA">HHella cool stories” channel</a> so you won’t miss new videos, articles and other news. And you can ask our engineers any questions on any topic in the comments or in <a href="https://t.me/hh_tech">hh developers’ telegram-chat</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aae16a3402bc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hh-ru/top-5-manual-testers-questions-about-automated-testing-aae16a3402bc">Top 5 Manual Testers’ Questions About Automated Testing</a> was originally published in <a href="https://medium.com/hh-ru">hh.ru</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Olya, tests and factory — the path to beautiful architecture and clean code]]></title>
            <link>https://medium.com/hh-ru/olya-tests-and-factory-the-path-to-beautiful-architecture-and-clean-code-b0bb0766d46d?source=rss-8bbe34b4c636------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0bb0766d46d</guid>
            <category><![CDATA[mobile-app-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[xctest]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Olya Kabanova]]></dc:creator>
            <pubDate>Tue, 22 Mar 2022 09:29:05 GMT</pubDate>
            <atom:updated>2022-03-22T10:04:59.311Z</atom:updated>
            <content:encoded><![CDATA[<h3>Olya, tests and factory — the path to beautiful architecture and clean code</h3><p>There are many different approaches, solutions and ways to automate testing. The most common and indispensable is the Page Object (Screen Object) pattern. I have dealt with two approaches when working with this pattern: with and without a factory for my page objects. In this article, we will compare both approaches, their pros and cons on the example of our autotests. I will show you what our factory of page objects looks like. I will also tell you about the challenges we have faced with in autotests with the factory and how we have solved them.</p><p>All the examples in the article will be in Swift, but for Android autotests everything works the same way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KpHYjHq_3PkfwqqHSPtr4Q.png" /></figure><h3>Before we start.</h3><p>Hi, my name is Olga. I am a mobile QA at hh.ru. For two and a half years we have converted 90% of manual testing to automated testing. During this time we have managed to run into all sorts of pitfalls many times and overcame hundreds of arguments, and now I want to share my experience with the world.</p><p>We write autotests for both Android (Kotlin, <a href="https://github.com/KasperskyLab/Kaspresso">Kaspresso</a>) and iOS (Swift, XCUITest). We try to make our UI-tests small, checking only single test cases. Luckily, we have enough server capabilities for that, so the regression testing which consists of ~300–400 UI autotests on each platform takes on average 30–40 minutes.</p><p>In our autotests we use the <a href="https://martinfowler.com/bliki/PageObject.html">Page Object</a> pattern. Thousands of articles have been written about it, so we won’t dwell on it in detail.</p><p>Historically, when creating the first autotests for iOS and Android, we chose different approaches of working with page objects. For Android we just follow a pattern, while for iOS we also created a factory of page objects (for implement the fluent interface). The factory is the place where all page objects are initialized. We can use it to pass other page objects in our screen methods, thereby building a chain of interactions similar to the app behavior.</p><h3>Is there a need for a page object factory?</h3><p>After creating hundreds of test cases, we made the conclusion that using a page object factory is a matter of tester’s taste who will write the autotests. There is no difference in performance and stability when working with different approaches. But to avoid struggling with your own code in the future, you need to decide as early as possible whether there will be a place for the page objects factory in your autotests architecture or not.</p><p>Here are two examples of the same test, written with and without the factory.</p><p>What this test does: the user tries to go to the profile tab from the main application screen. In the profile, he selects “Login”, then signs up by login method and enters his login and password, then clicks the “Login” button.</p><pre>// test without a factory <br><strong>class</strong> <strong>ExampleLoginTestSuit</strong>: <strong>BaseTestCase</strong> {<br>   <strong>let</strong> mainScreen = MainScreen()    <br>   <strong>let</strong> profileScreen = ProfileScreen()   <br>   <strong>let</strong> authorizationScreen = AuthorizationScreen()    <br>   <strong>let</strong> loginScreen = LoginScreen()</pre><pre><strong>   func</strong> <strong>testExampleLogin</strong>() {         <br>         <strong>let</strong> user = userFixtureService.createUser()</pre><pre>         mainScreen.openProfileTab()  <br>         profileScreen.goToAuthorization()        <br>         authorizationScreen.goToLogin()    <br>         loginScreen<br>            .enterLogin(user.login)            <br>            .enterPassword(user.password)           <br>            .logIn()      <br>   } <br>}</pre><pre>// test with a factory<strong><br>class</strong> <strong>ExampleLoginTestSuit</strong>: <strong>BaseTestCase</strong> {     <br>   <strong>func</strong> <strong>testExampleLogin</strong>() {         <br>      <strong>let</strong> user = userFixtureService.createUser()</pre><pre>      pageObjectsFactory             <br>         .makeMainScreenPageObject()             <br>         .openProfileTab()             <br>         .goToAuthorization()             <br>         .goToLogin()             <br>         .enterLogin(user.login)             <br>         .enterPassword(user.password)             <br>         .logIn()     <br>   } <br>}</pre><p>If after this example you decided on tests without a factory looking good, just go ahead and write without one. This advice is especially relevant if your app is not large with a variety of non-repeating content and elements. Or if you write tests with no more than 10–15 steps. In that case, a factory won’t make a difference.</p><p>But if it doesn’t, or if tests with a factory resonated in your heart, then this article is for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jKFbzgWXzBUckAwEobpG_Q.jpeg" /></figure><h3>What our factory looks like</h3><p>Let’s find out what the page object factory is needed for, what it looks like, and what it does.</p><p>The standard test case is a set of steps:</p><p>1. Run the app</p><p>2. Open the Profile screen</p><p>3. Tap on “Login.”</p><p>4. Select the sign in method by login and password</p><p>5. Enter user’s data (login and password)</p><p>6. Tap the “Login” button</p><p>[<a href="https://youtu.be/nYHsgZiJgo8"><strong><em>Test Screencast</em></strong></a>]</p><p>Each step of the test case corresponds to a step in the autotest. I can also say that each step is a separate method of page object of the corresponding screen.</p><p>If we want to exactly repeat this test case in the autotest, building the same uninterrupted chain of method calls, we need each method to return the page object of the next screen.</p><p>When you create a page object, you need to initialize it. So, if we want to create page objects inside other pages, each page object will have many of the same initialisations. To avoid this, we move initialization of all page objects to a factory: pageObjectFactory (or screenFactory, etc.). At the end of each method, we ask the factory to create the screen we want.</p><pre><strong>final</strong> <strong>class</strong> <strong>ProfilePageObject</strong>: <strong>BasePageObject</strong> {       <br>   <strong>func</strong> <strong>goToAuthScreen</strong>() -&gt; AuthPageObject {  <br>       openAuthButton.tap()         <br>       <strong>return</strong> pageObjectsFactory             <br>          .makeAuthPageObject()     <br>   } <br>}</pre><p>All page objects are inherited from BasePageObject, which contains the main parameters. In it, we must write a required constructor so that the factory can create any of its descendants. In our case, the base class looks like this:</p><pre><strong>class</strong> <strong>BasePageObject</strong> {     <br>   <strong>let</strong> pageObjectsFactory: PageObjectsFactory     <br>   <strong>let</strong> application: XCUIApplication       <br>   <strong>required</strong> <strong>init</strong>(pageObjectsFactory: PageObjectsFactory, <br>                       application: XCUIApplication) {          <br>      <strong>self</strong>.pageObjectsFactory = pageObjectsFactory        <br>      <strong>self</strong>.application = application     <br>   } <br>}</pre><p>And the screen initialization in the factory eventually looks like this:</p><pre><strong>final</strong> <strong>class</strong> <strong>PageObjectsFactory</strong> {       </pre><pre><strong>   private</strong> <strong>func</strong> <strong>initializePageObject</strong>&lt;PageObject: BasePageObject&gt;(ofType type: PageObject.<strong>Type</strong>) -&gt; PageObject {         <br>      <strong>return</strong> type.<strong>init</strong>(pageObjectsFactory: <strong>self</strong>, application: application)     <br>   }       </pre><pre><strong>   func</strong> <strong>makeAuthPageObject</strong>() -&gt; AuthPageObject {         <br>      <strong>return</strong> initializePageObject(ofType: AuthPageObject.<strong>self</strong>)     <br>   }<br>}</pre><p>As a result, in any page object method, we can call the factory method of creating the screen, which will initialize it itself.</p><h3>Pros of factory-free autotester’s life</h3><ol><li><strong>It is always clear from the test on which screen the action takes place</strong></li></ol><p>Without a factory, each line of test clearly contains the screen and the action to be performed on it. This allows us to avoid reading the whole test code from the very beginning, e.g., when debugging and patching. The absence of a factory especially adds readability when actions or tests are performed on a one screen.</p><pre><strong>class</strong> <strong>ExampleLoginTestSuit</strong> : <strong>BaseTestCase</strong> {</pre><pre>   // create objects of the screens used in the test     <br>   <strong>let</strong> mainScreen = MainScreen()     <br>   <strong>let</strong> profileScreen = ProfileScreen()     <br>   <strong>let</strong> authorizationScreen = AuthorizationScreen()     <br>   <strong>let</strong> loginScreen = LoginScreen()</pre><pre><strong>   func</strong> <strong>testExampleLogin</strong>() {         <br>      <strong>let</strong> user = userFixtureService.createUser() // create a test user</pre><pre>      mainScreen.openProfileTab() // from the main screen open Profile Tab<br>      profileScreen.goToAuthorization() // on the profile screen select &quot;Login&quot;<br>      authorizationScreen.goToLogin() // on the login selection screen select login and password <br>      loginScreen // on the login screen, enter your login and password and press the login button             <br>         .enterLogin(user.login)            <br>         .enterPassword(user.password)             <br>         .login()        <br>   } <br>}</pre><p>Even if you are not too well awared of the app details, it is immediately clear from the above example that the enterLogin / enterPassword actions are performed on the same screen. In the test with the factory you won’t see this clarity; you might think that the enterLogin action took the user to the next screen.</p><p><strong>2. It is more convenient to write tests with actions that can lead to different screens</strong></p><p>When writing tests without a factory, you don’t have to think about the fact that any user action may behave differently depending on the state of the app, you just describe the logic of what happens:</p><pre>// a response from an unauthorized user opens the app login screen<br>   vacancyScreen.tapResponseButton()     <br>   authScreen.authUser(user)    <br>   responseScreen.checkScreenIsOpened()</pre><p>or</p><pre>// a response by an authorized user immediately opens the response screen<br>   vacancyScreen.tapResponseButton()<br>   responseScreen.checkScreenIsOpened()</pre><p>In the case of the page object factory, you have to think about how to return the desired screen in the tapResponseButton() method (or duplicate a method like tapResponseButtonAndLogin() ), depending on the user’s authorization.</p><pre><strong>final class VacancyPageObject</strong>: <strong>BasePageObject </strong>{<br>   <br>   ...</pre><pre>   <strong>func tapResponseButton</strong>() -&gt; ResponseSendPageObject {<br>      responseButton.tap()<br>      <strong>return </strong>pageObjectsFactory<br>         .makeResponseSendPageObject()<br>   }<br> <br>   <strong>func tapResponseButtonAndLogin</strong>(login: String) -&gt; ResponseSendPageObject { <br>      responseButton.tap()<br>      pageObjectsFactory<br>         .makeAuthorizationPageObject()<br>         .goToLogin()<br>         .logIn(login)<br>      <strong>return </strong>pageObjectsFactory<br>         .makeResponseSendPageObject()<br>   }<br>}</pre><p>We have 6 such methods on this screen, and they all tap on the same button.</p><p><strong>3. No need to convey each action and each check into a separate method</strong></p><p>The page objects without a factory method do not need to return the next screen for the chain continuation, so you don’t need to create separate methods per an action.</p><p>For example, a tap on a button in a test without a factory can look like this:</p><pre>vacancyScreen.responseButton.tap()</pre><p><strong>4. You don’t have to think about complex solutions, additionally think over the page objects architecture</strong></p><p>In my experience, when writing autotests without a factory, almost no problems arise with page objects. Describing a new page object is easy and fast.</p><p>The factory, along with its capabilities, adds some complications, which I’ll share later.</p><h3>Undoubted pros of the factory</h3><p><strong>1. There is no way to skip a step while writing a test</strong></p><p>All page object methods are links in the same chain. Each new link (method) must be connected with the next. This is due to the fact that all methods return some page object (itself or another), so that when writing a test we do not have the possibility to choose the method of any screen, only of the next one.</p><p>First, it greatly speeds up a new tester’s writing their first autotest. The IDE itself prompts which actions and on which screen you can perform next.</p><p>Second, this autotest architecture allows you to learn the app through writing them and not reverse order. (again — good motivation for junior autotesters).</p><p>Third, there is no opportunity to skip a step, because the desired method simply won’t appear until you go through the script correctly. Such omissions are quite common when writing tests without a factory, and you find out them only when running the test.</p><p><strong>2. If you change the signature of the page object method, the IDE will change all the tests related to the object</strong></p><p>This point follows on from the previous one. All page object methods replicate the app logic and behavior. If the application changes the logic of transitions between screens or adds new ones, we fix the method we need and change its return value. In autotests with the factory you don’t need to run all tests to find all the tests affected by this change. The IDE itself will point to all places where the “chain” is broken. Tests without a factory do not keep track of this.</p><p><strong>3. The architecture and cleanliness of the code are not affected by the creation of unnecessary screen objects</strong></p><p>If you do not use a factory, and the test passes through dozens of screens in the script, then at the beginning of the class with the test you have to write a whole block of creating objects of each screen. And you have to do this every time for each test class. Even worse, if you write several tests in one class. Then the size of this “block” increases many times alongside with creation of all page objects.</p><p>An example from a real test, where a user responds to a vacancy, gets logged out and authorized by using other user account. This block moves from class to class with minor changes for all similar tests.</p><pre><strong>final</strong> <strong>class</strong> <strong>CounterUpdateAfterOtherUserLoginTest</strong>: <strong>BaseTestCase</strong> {   <br>    <br>   <strong>private</strong> lazy <strong>var</strong> mainScreen = MainScreenPageObject()     <br>   <strong>private</strong> lazy <strong>var</strong> vacanciesScreen = VacanciesScreenPageObject()     <br>   <strong>private</strong> lazy <strong>var</strong> responseToVacancyScreen = ResponseToVacancyBottomSheet()     <br>   <strong>private</strong> lazy <strong>var</strong> successResponseBottomSheet = SuccessResponseBottomSheet()     <br>   <strong>private</strong> lazy <strong>var</strong> settingsScreen = UserSettingsScreenPageObject()     <br>   <strong>private</strong> lazy <strong>var</strong> chooseAuthScreen = ChooseAuthScreenPageObject()     <br>   <strong>private</strong> lazy <strong>var</strong> authScreen = NativeAuthScreenPageObject()     <br>   <strong>private</strong> lazy <strong>var</strong> navigation = NavigationPageObject()     <br>   <strong>private</strong> lazy <strong>var</strong> moreScreen = MoreScreenPageObject()     <br>   ... <br>}</pre><p>There is an option to bring initialization of all page objects into the base class of tests, using lazy initialization. Then all screens will be available in each test and no unnecessary objects will be created. But the problem with enumerating many screens will return when we want to initialize page objects in the page objects themselves, if we need to write a method that passes through a different screen.</p><p>The factory, on the other hand, takes on the task of initializing the required page objects when we need them.</p><p><strong>4. A great opportunity to immerse yourself deeper into the application code, study its architecture, modules, their interaction etc.</strong></p><p>Having a page object factory will require you to wrap all screen actions in methods that return the next screen. Because of this, page objects get really big, which makes you wonder how to make things look nicer and neater. For this reason, we try to use architecture tricks, look at the implementation of different screens in the app code, trace the interaction of modules to build a similar system in your autotests, which will be nice and comfortable to use.</p><p>As a bonus, we get to know how the application works from the inside. At a minimum, this is useful for general development, and often very helpful in testing.</p><p><strong>5. The test code looks very neat and clean</strong></p><p>No comment here, it’s really a matter of taste. About how “neater and cleaner” for you can be decided by the very first example.</p><h3>Pitfalls // how to stumble and get around</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HY25dmz53pOBzk2qwv1xzw.png" /></figure><p>We can conclude that it’s better to use the page object factory when writing autotests. Whoever you ask why they use the factory, the answer is always the same: “And you try to write a test without it and compare”. Factory really takes care of a large part of tasks, the responsibility for absence of errors in autotest sequence, etc. It also opens up some interesting possibilities, which I have already written about above.</p><p>But I want to note that everything is not always rosy with these opportunities. When automating with the factory we encountered some very unpleasant problems, but in the end we solved them.</p><h4>Protocols and common elements for the entire app</h4><p>In any mobile app, there are elements that can be accessed from any screen. As an example, we can take the tabbar (menu). The question arises: how can we access the tabbar methods at any moment of the test without interrupting the chain of page object method calls?</p><p>The most obvious and our initial solution is to make an extension of the base class of page objects with these methods.</p><pre><strong>import</strong> XCTest   </pre><pre>/*  <br>An extension to use the tabbar in the application.<br>*/</pre><pre><strong>extension</strong> <strong>BasePageObject</strong> {       <br>   <strong>private</strong> lazy <strong>var</strong> tabBar = application.tabBars[Accessibility.TabBar.identifier].firstMatch     <br>   <strong>var</strong> searchTab =  tabBar.buttons[Accessibility.TabBar.searchTab].firstMatch    </pre><pre> …       </pre><pre><strong>   func</strong> <strong>openSearchTab</strong>() -&gt; MainScreenPageObject {         <br>      searchTab.tap()         <br>      <strong>return</strong> pageObjectsFactory.makeMainScreenPageObject()     <br>   }     </pre><pre>   … <br>}</pre><p>During the discussion, we realized that the tabbar is not the only element that is needed on all screens, and concluded that by adding more and more extensions, we would quickly clutter up the base class.</p><p>Another disadvantage of this solution is that methods become available to absolutely all page objects, which is wrong. This breaks the contract of derived classes, which are supposed to contain only methods specific to them. For example, we don’t need tabbar methods for page object-alerts.</p><p>Our final solution — we made TabBarUsable protocol from page object (similar to Kotlin — interface). And wrote its extension (extension, implementation), which allows not to duplicate code and at the same time replace inheritance by composition.</p><pre><strong>import</strong> XCTest   </pre><pre><strong>protocol</strong> <strong>TabBarUsable</strong> {     </pre><pre><strong>   var</strong> searchTab: XCUIElement { <strong>get</strong> }       </pre><pre><strong>   func</strong> <strong>openSearchTab</strong>() -&gt; MainScreenPageObject   <br>   … <br>}  </pre><pre><strong>extension</strong> <strong>TabBarUsable</strong> <strong>where</strong> <strong>Self</strong>: <strong>BasePageObject</strong> {       <br>   <br>   <strong>private</strong> <strong>var</strong> tabBar: XCUIElement { application.tabBars[Accessibility.TabBar.identifier].firstMatch }     <br>   <strong>var</strong> searchTab: XCUIElement { tabBar.buttons[Accessibility.TabBar.searchTab].firstMatch }       </pre><pre><strong>   func</strong> <strong>openSearchTab</strong>() -&gt; MainScreenPageObject {         <br>      searchTab.tap()         <br>      <strong>return</strong> pageObjectsFactory.makeMainScreenPageObject()     <br>   } <br>   … <br>}</pre><p>For all screens that have a tabbar, we add adoption to this protocol.</p><pre><strong>final</strong> <strong>class</strong> <strong>VacancyPageObject</strong>: <strong>BasePageObject</strong>, <strong>TabBarUsable</strong> {     <br>   … <br>}</pre><p>Accordingly, all methods of working with the tabbar become available on all these screens.</p><pre><strong>class</strong> <strong>ExampleTabbarTestSuit</strong>: <strong>BaseTestCase</strong> {       </pre><pre><strong>func</strong> <strong>testExampleOpenSearchTab</strong>() {         <br>      pageObjectsFactory             <br>         .makeMainScreenPageObject()             <br>         .openVacanciesList()             <br>         .openVacancy() // method returns .makeVacancyPageObject()             <br>         .openSearchTab() // method from TabBarUsable      <br>   } <br>}</pre><p>This does not break the architecture, the tabbar methods are available only for the screens we want, and the code of the same methods is not duplicated.</p><h4>Protocols and Code DRYing</h4><p>As mentioned above, when you use the page object factory, all actions and tests are wrapped in methods. After a while, when you create another autotest, you start to notice that you write the same methods for every page object, which even don’t differ in elements. Examples of such methods are zeroscreen tests, handling the same list items on different screens and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*6S3anmpvKnzdWXCt4MN9Cw.png" /></figure><p>A logical thought arises: “Why in the world would I do that? How to stop duplicating code?</p><p>The first way, which I have already written about, is to move all such methods to a base class. This can be done, but very cautiously. First of all, it is a very engaging process. It seems a single method in a base class won’t break anything, but sooner or later the base class turns into an incomprehensible, unstructured, cluttered monster, in short, it becomes completely unusable. We’ve tried it, we know it. Getting rid of this monster is even harder than making it correctly right away.</p><p>Over time, we realized that the DRY (Don’t Repeat Yourself) principle was invented for a reason. We began to look for the same methods that are used in many page objects. When we found them, we had a long discussion about whether they were used everywhere in the same way and had the same logic. Finally, we decided that if 80% of the methods are used in the same way, we should put them in a separate protocol.</p><p>One of the first methods that we brought out was the waitView() method. We described a special ViewWaitable protocol and its implementation in protocol extension, and now to make this method available in page object you just need to add the conformity of the protocol. Since all screens have different view IDs, all page objects that use the protocol must declare their own view.</p><pre><strong>protocol</strong> <strong>ViewWaitable</strong> {     <br>   <strong>var</strong> view: XCUIElement { <strong>get</strong> } <br>}  </pre><pre><strong>extension</strong> <strong>ViewWaitable</strong> <strong>where</strong> <strong>Self</strong>: <strong>BasePageObject</strong> {  <br>     <br>   @discardableResult     <br>   <strong>func</strong> <strong>waitView</strong>() -&gt; Self {     <br>      testWaiter.waitForElementToAppear(view)         <br>      <strong>return</strong> <strong>self</strong>     <br>   } <br>}</pre><pre><strong>final</strong> <strong>class</strong> <strong>VacancyPageObject</strong>: <strong>BasePageObject</strong>, <strong>TabBarUsable</strong>, <strong>ViewWaitable</strong> {       </pre><pre>   lazy <strong>var</strong> view = application.otherElements[Accessibility.view].firstMatch    <br>   … <br>}</pre><p>Another example from our hh.ru app: we have a job list that appears on many different screens, with the only difference being the view ID again where the list appears. There are a lot of actions and a ton of tests associated with this list. Multiply them by about 10 (by the number of screens on which this list occurs) to estimate the scale of code duplication.</p><p>Once again, the solution to the problem was protocols. To make protocols even clearer and more easy-to-use, we separated list elements (VacancyListContainig), cell elements (VacancyCellContainig), methods with tests (asserts, checks) and interaction methods (actions). This separation perfectly solved the problem of a huge page object readability. The final architecture looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*gbu8XFDDZ9Bnw4Zt5Ts0zw.png" /></figure><p>Page objects that have a job list can add conformity to the VacancyListPageObject protocol. This makes all methods from the implementation of this protocol available to the screen without any code duplication.</p><pre><strong>final</strong> <strong>class</strong> <strong>SearchResultPageObject</strong>: <strong>BasePageObject</strong>, <strong>ViewWaitable</strong>, <strong>VacancyListPageObject</strong> {       </pre><pre>   lazy <strong>var</strong> view = application         <br>      .otherElements[Accessibility.SearchResults.view].firstMatch      <br>   lazy <strong>var</strong> listView = application         <br>      .tables[Accessibility.SearchResults.tableView].firstMatch     <br>   … <br>}</pre><p>As a result, by following the DRY principle, we have very clean, neat page objects, identical method names, and no unnecessary code.</p><h4>Same alerts on different screens // Sources</h4><p>System errors, alerts, and bottom sheets are an integral part of regresses, which we definitely want to cover with autotests. Errors and alerts occur on different screens, in different cases, and in different app states, but the elements themselves basically have the same identifiers and behavior. Obviously, the same type of alerts with two buttons (e.g. Ok/Cancel) = one separate page object.</p><p>Back to the desire not to interrupt the chain of method calls. We have dozens of screens from which we can open the same alert. When we close such an alert, we should return to the page object from which it was opened. We don’t want to write these dozens of duplicate methods in the page object of such alert; they will differ from each other only by the return page object.</p><p>The simplest solution is to stop care and break the test once. There’s nothing wrong with that either. And life gets much easier.</p><pre><strong>class</strong> <strong>ExampleTestSuit</strong>: <strong>BaseTestCase</strong> {       </pre><pre><strong>func</strong> <strong>testExample</strong>() {         <br>      pageObjectsFactory             <br>         .makeMainScreenPageObject()             <br>         .openVacanciesList()             <br>         .openVacancy()             <br>         .openAlert()             <br>         .closeAlert() // does not return the screen we want, so the call chain is broken          <br>      pageObjectFactory             <br>         .makeVacancyPageObject() // re-create the screen<br>         …     <br>   } <br>}</pre><p>Our solution is more complicated, but it’s so beautiful! We added a type parameter (<a href="https://docs.swift.org/swift-book/LanguageGuide/Generics.html">generic</a>) alert to the page object. This will be the type of the page object from which we open the alert. The page object of this screen will be passed to the page object of the alert during initialization and stored as a generic variable source.</p><p>More details about how it works: When opening (and initializing) an alert we pass the target screen in the generic variable source. This is done in the page method of the object that opens the alert:</p><pre><strong>final</strong> <strong>class</strong> <strong>VacancyPageObject</strong>: <strong>BasePageObject</strong> {     </pre><pre>   …       <br>   <strong>func</strong> <strong>openAlert</strong>() -&gt; AlertPageObject&lt;VacancyPageObject&gt; {        <br>      button.tap()         <br>      <strong>return</strong> pageObjectsFactory             <br>         .makeAlertPageObject(from: <strong>self</strong>) // pass source VacancyPageObject<br>   } <br>}</pre><p>Then this source (in this example it’s VacancyPageObject) goes through all the methods needed in the test and gets to the final dismissAlert(). As a result, the dismissAlert() method returns the desired screen, on which we can immediately continue the test.</p><pre><strong>final</strong> <strong>class</strong> <strong>AlertPageObject</strong>&lt;<strong>Source</strong>: <strong>BasePageObject</strong>&gt;: <strong>BasePageObject </strong>{       </pre><pre><strong>   func</strong> <strong>dismissAlert</strong>() -&gt; Source {         <br>      cancelButton.tap()         <br>      <strong>return</strong> source // return the screen from which you opened the alert - VacancyPageObject<br>   } <br>}</pre><p>As I said, for a page object to be able to receive and return the required screens (sources), it needs to be assigned a generic type limited to the basic page object type, and initialized using the page object to be returned at the very end:</p><pre><strong>final</strong> <strong>class</strong> <strong>AlertPageObject</strong>&lt;<strong>Source</strong>: <strong>BasePageObject</strong>&gt;: <strong>BasePageObject</strong> {       </pre><pre>   // a generic variable to store the screen for later return to the general call chain     <br>   <strong>private</strong> <strong>let</strong> source: Source</pre><pre><strong>   init</strong>(pageObjectsFactory: PageObjectsFactory,          <br>        application: XCUIApplication,          <br>        source: Source) {         <br>      <strong>self</strong>.source = source         <br>      <strong>super</strong>.<strong>init</strong>(pageObjectsFactory: pageObjectsFactory, application: application)     <br>   }       </pre><pre>   // BasePageObject has a mandatory constructor, but here we forbid its use<br>   <strong>required</strong> <strong>init</strong>(pageObjectsFactory: PageObjectsFactory, application: XCUIApplication) {         <br>      fatalError(&quot;init(pageObjectsFactory:application:) has not been implemented. Use another init&quot;)     <br>   } <br>}</pre><p>The initialization of a generic page object in the factory would look like this:</p><pre><strong>final</strong> <strong>class</strong> <strong>PageObjectsFactory</strong> {     <br>   …     <br>   <strong>func</strong> <strong>makeAlertPageObject</strong>&lt;Source: BasePageObject&gt;(<br>      from source: Source     <br>   ) -&gt; AlertPageObject&lt;Source&gt; {         <br>      <strong>return</strong> AlertPageObject(pageObjectsFactory: <strong>self</strong>,                                                  <br>                             application: application,                                           <br>                             source: source)     <br>   } <br>}</pre><p>Ta-da! Done. Now we can continue the test without breaking the call chain.</p><pre><strong>class</strong> <strong>ExampleSourcesTestSuit</strong>: <strong>BaseTestCase</strong> {       </pre><pre><strong>   func</strong> <strong>testExampleSource</strong>() {         <br>      pageObjectsFactory             <br>         .makeMainScreenPageObject()             <br>         .openVacanciesList()             <br>         .openVacancy()             <br>         .openAlert()             <br>         .dismissAlert()             <br>         .checkVacancyScreenIsOpened() // after closing the alert, we get back to the screen we left and can continue working with it<br>         …     <br>   } <br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*M5L1Y3IjerIoi0SfecTGyg.png" /></figure><h4>A huge page object, how to understand it</h4><p>There are screens (there really are) on which there is a lot of different content, various interface elements, individual logical blocks. At the same time, all of them are on the same screen, and we want to interact with them through a page object that describes this screen.</p><p>Let’s take the main screen of our mobile app as an example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IZoMqNkRjLwxQduhIbrNRA.jpeg" /></figure><p>This screen can be divided into three completely independent sections: search bar, search history block and tabs with vacancies listings. You could describe everything in one page object (because it’s a full-fledged screen), but it wouldn’t be very easy to use, because each section has its own logic, its own checks, etc.</p><p>Sooner or later, we’ll also face the problem of method naming. There are a lot of different cells, titles, subtitles, etc., so you end up with long names instead of simple ones. Writing tests becomes very inconvenient and complicated. Every time you select a method in a test, you have to open the page object code and look into it to make sure you don’t make a mistake.</p><pre><strong>final</strong> <strong>class</strong> <strong>VacancyListPageObject</strong>: <strong>BasePageObject</strong> {     <br>   …       <br>   <strong>func</strong> <strong>assertHistoryListFirstCellTitleExists</strong>() -&gt; Self { ... }     <br>   <strong>func</strong> <strong>assertHistoryListCellByTitleExists</strong>(title: String) -&gt; Self { ... }     <br>   <strong>func</strong> <strong>assertRecommendationsListFirstCellTitleExists</strong>() -&gt; Self { ... }     <br>   <strong>func</strong> <strong>assertVacancyNearbyListFirstCellTitleExists</strong>() -&gt; Self { ... }     <br>   … etc.<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*e-foSzP1r_WZ1cYdVGNPGQ.png" /></figure><p>The easiest solution is not to see it as a problem. No matter how big a page object gets, you can still use it (especially if you get used to it). But you don’t want to get used to it, and you want it to be nice and convenient.</p><p>In addition, these “sections” can be different modules in the code, which means that they can be reused on different screens of the app. If we build a similar architecture with page objects, we could also reuse them.</p><p>We have decided to write different page object classes for these sections. We add an empty MainScreenSection: BasePageObject { } to each of them.</p><p>Let’s take the search history section of the main screen as an example. Its page object will look like this:</p><pre><strong>final</strong> <strong>class</strong> <strong>SearchHistoryPageObject</strong>: <strong>BasePageObject</strong>, <strong>MainScreenSection</strong> {     <br>   // variables     <br>   // methods <br>}</pre><p>In the main page object MainScreenPageObject, which describes the main screen, we made a method that tells the test in which section we are now going to do something. It looks like this.</p><pre><strong>final</strong> <strong>class</strong> <strong>MainScreenPageObject</strong>: <strong>BasePageObject</strong>, <strong>TabBarUsable</strong> {     <br>   …     <br>   <strong>func</strong> <strong>section</strong>&lt;Section: MainScreenSection&gt;(_ section: Section.<strong>Type</strong>) -&gt; Section {         <br>      <strong>return</strong> section.<strong>init</strong>(pageObjectsFactory: pageObjectsFactory, application: application)     <br>   } <br>}</pre><p>In this method, we pass the section type and initialize the page object inside using the generic method of the factory.</p><p>As a result, we get uninterrupted test, no unnecessary initializations of huge page objects and readability of the code.</p><pre>// open the main screen and work with the &quot;Search History&quot; section<br>   .openSearchTab() // appears in MainScreenPageObject<br>   .section(SearchHistoryPageObject. <strong>self</strong>) // go to the Search History section<br>   .waitHistoryIsLoad() // work in the page object of the search history<br>   .section(MainScreenPageObject. <strong>self</strong>) // in the same way we can go back to the main screen</pre><h3>To summarize</h3><p>It is possible to write autotests without a page object factory. Page objects can be written very quickly and easily, especially if they do not need complex initialization. On the other hand, you have to be very careful when writing a test. The tester is responsible for the sequence of steps in the test, initialization of page objects, lack of wrappers over some actions, etc. If your application isn’t very complex, there’s probably no need to complicate it, and all these problems won’t be noticeable at all.</p><p>If at the very beginning you spend a little time on creating a factory, in the future it will, first, take care of all of the above responsibilities, and secondly, make the process of writing autotests very easy and with almost no chance of error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*kQv7oOcvEmnIzGHfhVecBQ.jpeg" /></figure><p>Since there is no single correct solution here, it is up to you to decide. We continue to use both approaches, and everyone is comfortable and happy. Good luck and have beautiful autotests!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0bb0766d46d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hh-ru/olya-tests-and-factory-the-path-to-beautiful-architecture-and-clean-code-b0bb0766d46d">Olya, tests and factory — the path to beautiful architecture and clean code</a> was originally published in <a href="https://medium.com/hh-ru">hh.ru</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>