<?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 Gokhan Ozturk on Medium]]></title>
        <description><![CDATA[Stories by Gokhan Ozturk on Medium]]></description>
        <link>https://medium.com/@gokhan.ozturk?source=rss-be9f36ac2925------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*koBVP9_tgYaBHlmp1wNa0Q.jpeg</url>
            <title>Stories by Gokhan Ozturk on Medium</title>
            <link>https://medium.com/@gokhan.ozturk?source=rss-be9f36ac2925------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 05:39:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gokhan.ozturk/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[“Beware of Dead Weight on Your Wagon: E2E Testing - Login”]]></title>
            <link>https://medium.com/@gokhan.ozturk/beware-of-dead-weight-on-your-wagon-e2e-testing-login-444fc7c6025e?source=rss-be9f36ac2925------2</link>
            <guid isPermaLink="false">https://medium.com/p/444fc7c6025e</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[efficiency]]></category>
            <dc:creator><![CDATA[Gokhan Ozturk]]></dc:creator>
            <pubDate>Tue, 11 Jun 2019 08:48:24 GMT</pubDate>
            <atom:updated>2019-06-11T11:47:25.772Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of the builders, testers, designers and even customers(!) start discussing, telling, teaching .. each other with a “fat” login example. — yes, I do, too — Dramatically, “to log in” is an essential part of our professional lives: when we want to tell a behavior of a user, the state of the application or designing our brand new app. But this is not a weak reference, it all starts with logging in.</p><p>Although there are many use cases to talk on this end-user behavior, this story focuses on test automation and the loss of efficiency for a specific test design approach. Especially when it comes to E2E testing. Since I am going to focus on “log in” in this story, it is obvious to apply the same design technique to any functional repeatable area when we are designing the test flow. So, let’s just focus on “log in” right now to have a better insight of the general idea.</p><p>I have seen many E2E tests rely on logging in every time again and again when the test case requires an authenticated user:</p><ul><li>Sending a message to other users,</li><li>Searching for a specific content we want to watch,</li><li>Adding a product to the shopping cart,</li><li>Changing account settings,</li><li>Mentioning someone,</li></ul><p>and many more… Most of those tests just require to be authenticated, and many tests provide that requirement by logging through the UI even you are not testing the login functionality itself. But you need to authenticate, right? So, what we do in common is, we apply the same reusable login test case to authenticate as a prerequisite before we move on “adding a product to the shopping cart” for example. Yes, we have to do so, but do we really need to use the login test case/steps through UI each time we are testing another functional area?</p><p>This type of test design is just like putting unnecessary dead weight onto your wagon, which comes with performance and flakiness side effects when your E2E test suite grows in time. For sure, it is important to fully test your app with most of the critical login test cases through UI. So be it, you still need to test all the risks through UI, that login functionality potentially has. That is a mission-critical objective; all the positive and negative cases that identify authentication risks through UI. But what about the rest? The rest of the functional areas, which only care about an authenticated user? Do they require to have some previous login tests that must be executed from UI? Unfortunately, — a big — no. So why? Many testers experienced the burdens and risks of the test flakiness when it comes to testing through UI level. Those types of tests are slower than unit and integration tests. You think that you should not rely on those tests to report the same outcome each time they are executed. That is why a concept called “testing pyramid” (BIG word alert!) tells professionals to write less E2E tests. I do not agree with this idea, but that should be another story to talk about. Let’s move back to our subject. Why we should not use UI tests we have written if they are just some helper functions to guide the flow on the main path? Because we need faster and more reliable E2E tests, that is the simple answer. Let’s think about two login test classes:</p><ul><li>(1) Login through UI, which needs screen/page rendering, relevant GUI components matching, waiting to be rendered, manipulating, redirecting, app state management and many more. Furthermore, “race conditions” such as network, hardware are the enemies at the gate.</li><li>(2) Login with http requests, getting/setting cookies. No rendering, no GUI components matching and manipulating. Still, there may be some race conditions, but much less that could be omitted.</li></ul><p>Now, let’s design 2 test suites. Authentication specific test suite, and Account Management specific test suite. The first test suite, itself, has to be tested in an E2E testing way. Some test cases should be:</p><ul><li>Login with correct credentials</li><li>Invalid username and/or password</li><li>Login through the integrated social media platform</li><li>credentials complexities, special characters, min. max. length etc.</li><li>Login attempt with a fraud user</li></ul><p>All the above needs validation through UI by implementing Logging through UI class and functions.</p><p>On the other hand, we still need to test the account management functional area. And all the test cases at our 2nd test suite require any user to be logged in to the app prior to apply those user journeys. Do we still need to implement Logging through UI class and functions? Please Do Not (!). Implement the second type of login classes, which do not execute against any UI interactions to provide the same functionality and outcome. Choose that design pattern to put in more reliable and faster tests for the rest of the functional areas rather than the login itself.</p><p>Sure, all we need more reliable and faster tests. So, how? This design pattern explains what to do, not how. Because it really depends on your tech stack. Test libraries/frameworks/tools you use, the programming language you write your tests, the SUT client technology — mobile, web, any other …—, the protocols you access to data and so on. I plan to write another story by giving more to the point explanations with the code samples later, but at least, I thought it would be a good start for the ones who agree with this design approach and start thinking about their current design and architecture.</p><p>We all know this is just one of the dead weights we should get rid off. There are still other dark sides at our current test architectures. And this is the fun part, ain’t it?</p><p>Happy testing…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=444fc7c6025e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keep The Lights On]]></title>
            <link>https://medium.com/@gokhan.ozturk/keep-the-lights-on-57f786e559fd?source=rss-be9f36ac2925------2</link>
            <guid isPermaLink="false">https://medium.com/p/57f786e559fd</guid>
            <category><![CDATA[roadmaps]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[evaluation]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Gokhan Ozturk]]></dc:creator>
            <pubDate>Sun, 12 Feb 2017 15:58:04 GMT</pubDate>
            <atom:updated>2017-02-12T16:03:17.129Z</atom:updated>
            <content:encoded><![CDATA[<p>Under rapidly changing circumstances at technology, tools &amp; techniques, lean product development approaches and digital world, it has been a real challenge to track the valuable change, not just for enterprises and start-ups also for people who intend to be a front seat driver on their own career path. About 10 years ago we were all discussing which OOP language was better C# or Java? The same discussion still continues, however not as popular as it was a decade ago (!) The digital world is changing, and so does the tech bucket list. And this movement really effects our company, project and career decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*-xeYxbSrEipusMYhfUkqqw.jpeg" /></figure><p>I am sure most of us see some tech guys around discussing on a brand new tech, tool or an approach. “Hey, I have read an article last night about a new complex event processing framework invested by <em>Super Dupa Big Brother Inc.</em> (**). It supports not just batch processing, also integrates with … and no overhead, ready to hear what! 10000 times faster…” Wow… And… Sh*t! Another cool (!) complex event processing framework I have to learn? But what about the current one we are working on? I have spent the last 12 months to learn, adopt and implement for our <em>Project Tiny Miny Space 2050 </em>(**)… Another 6 months for something new to learn? And, then, what will be next… Seems like chicken and egg problem… Whatever it is, the reality is we can’t stop the change and implement every change at this rapidly changing landscape.</p><p>But we can adopt the change and keep the lights on for our next big (!) decision to change. When? How? Agility is not just to make quick decisions, so change should be something staged. We should not put our efforts and valuable time trying to learn and implement every new approach. We shouldn’t jump into every lake. It is important to evaluate carefully and regularly, if we are on the path or lost in a rabbit hole. Starting with small increments and low-risk projects is a common approach. Trying a new technology on a project that can handle the risk will reduce the pain. While evaluating if it is worth to adopt a technology, collaborating with all the team members is valuable. Maybe the worst of all is to become a technology freak (!) Check out this <a href="http://dfkoz.com/big-data-landscape/">list</a> about Big Data Landscape. Even counting the list items is about 5 minutes long. I am sure that, every of those items at the list has a particular and valuable feature. However, value does not reside at implementing a new technology or a new tool. So we need to put the right solutions onto our radar to evaluate them, even if we have already implemented them in a project or dropped them off without using once at all. This is the main reason that we evaluate the changing landscapes regularly and keep the lights on.</p><p>I am sure most of us has some tools and techniques to keep the lights on even in our daily life, and certainly they are all valuable. As one of the most important DevOps principles; it is worth to invest on value over tools. But tools are still important for agility. Rather than all those techniques and tools, there is another one which is used by <a href="http://www.thoughtworks.com/">Thoughtworks</a> and it is a really smart way of keeping the lights on; a technology radar</p><p><a href="https://www.thoughtworks.com/radar">Technology Radar | Guide to technology landscape</a></p><p>My intend is not to deep dive into what it is, since it has been already stated by Neal Ford<strong> </strong>at his article “<a href="http://www.thoughtworks.com/insights/blog/build-your-own-technology-radar">Build Your Own Technology Radar</a>”. Makes sense to me, not just because it is a practical way of keeping the lights on, also I always have found the insights of Thoughtworks as valuable. As it is stated at the article; a <em>technology radar </em>is a living document to assess the risks and rewards of existing and nascent technologies. I’ve come to believe you need two radars: one for yourself, to help guide your career decisions, and one for your company, to help restore sanity to purchasing decisions and technology direction. If you intend to implement your own techradar, the software is shared at <a href="http://github.com/thoughtworks/build-your-own-radar">github</a> as a starting point. I have already started implementing one for my department as well as myself.</p><blockquote>Techradar is not a way of how to evaluate things you put on the radar, it helps what to evaluate under current circumstances</blockquote><p>With a software or not, it is really important to evaluate and consider the changing landscapes regularly. It seems to me that keeping the lights on is not a way of how to evaluate things you put on your own radar, it helps what to evaluate under current circumstances. Answer to question “How?” is another topic that I plan to share at another article based on my experiences, later.</p><p><em>** The company and project names portrayed and stated with double asterisk in this article are fictitious. No identification with those company and project name is intended or should be inferred.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57f786e559fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>