<?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 Taylan Derinbay on Medium]]></title>
        <description><![CDATA[Stories by Taylan Derinbay on Medium]]></description>
        <link>https://medium.com/@sinefil?source=rss-a86f5e7acf45------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6oqMCs-MGGof-zsmXmKLuA.png</url>
            <title>Stories by Taylan Derinbay on Medium</title>
            <link>https://medium.com/@sinefil?source=rss-a86f5e7acf45------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:25:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sinefil/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[Test Automation Best Practices]]></title>
            <link>https://medium.com/@sinefil/test-automation-best-practices-bc180a0b5c20?source=rss-a86f5e7acf45------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc180a0b5c20</guid>
            <category><![CDATA[test-automation-framework]]></category>
            <category><![CDATA[selenium-best-practices]]></category>
            <category><![CDATA[selenium]]></category>
            <dc:creator><![CDATA[Taylan Derinbay]]></dc:creator>
            <pubDate>Mon, 29 Aug 2016 06:52:25 GMT</pubDate>
            <atom:updated>2016-08-29T07:03:55.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RZfZfhgfZXY9ZRdE.jpg" /></figure><p>In my first post, I’d like to talk about a more general subject rather than a particular problem and its solution. Let’s say we want to build a <strong>test automation framework</strong>. For the sake of following the tradition, we completed our market research, and come to the conclusion of developing a project based on <strong>selenium</strong> will be our company’s best interest (what a surprise!). So where do we start? What will be our main focus when writing codes?</p><p>I will talk about these details separately on another post, but for now I’ll summarize the topic in 6 quotes:</p><p><strong>1- Browser synchronization</strong></p><p>You should never use <strong>Thread.sleep</strong>() unless you really have to. Instead, there are <strong>FluentWait</strong>(), <strong>ImplicitlyWait</strong>() or <strong>ExplicitlyWait</strong>() methods that <strong>selenium</strong> offers.</p><p><strong>2- Do not try to perform UI tests with Selenium</strong></p><p>Unfortunately <strong>UI testing</strong> is not a big part of the test automation area and <strong>selenium</strong> is quite ineffective on this. Instead of trying to use Selenium for this, there are specific frameworks you can benefit that focus on UI testing.</p><p><strong>3- Write simplest code blocks on test layer</strong></p><p>You designed your architecture, created layers and started coding, and now you need to develop your layers starting from the simple to the advanced. Your <strong>test layer</strong> (top layer) should be written in the simplest way that anyone can understand while reading. Keep in mind that you will need your teammates on <strong>QA</strong> being able to <strong>run and debug the tests</strong>, whenever they have to be run or debugged. Since most of the time <strong>QA</strong> members are not developers, we need to make their lives easier (and ours in advance).</p><p>Sub layers can be more technical of course, but remember: <strong>Simple is better</strong>. So don’t make anything complex when it can be simple. But also don’t forget that <strong>simple is difficult</strong>, writing simple codes require experience.</p><p><strong>4- Errors vs. Failures</strong></p><p><strong>Code error</strong> is an unwanted situation on test projects. These <strong>false negatives</strong> may cause the teams on company losing their trust to the project. You can call them bugs of your test project. You can minimize these code errors by writing quality codes with software development standards (<strong>oop</strong>, <strong>clean code</strong>, <strong>solid</strong>, <strong>dry</strong>, <strong>design patterns</strong> etc.) and by <strong>continuous refactoring</strong>. <strong>Continuous refactoring</strong> is a must on projects that are being developed with <strong>scrum</strong> since the website or app changes on every <strong>sprint</strong>. Otherwise, at some point you cannot handle the <strong>test maintenance</strong>. There are lots of projects that fail after some time and the reason is this uncontrolled growing. Without refactoring, expanding a project with <strong>technical debts</strong> can make the managers happy because of the rapidly increasing test counts. But added value will be less and less in time.</p><p>It’s not just bad coding that causes errors, there could be many variables as well: <strong>Test environment</strong>, <strong>parallel testing</strong> problems, <strong>test infrastructure</strong>, <strong>test data corruption </strong>etc. You can reduce these effects by setting up a rule that reruns failed tests <strong>(rerunFailingTestsCount).</strong> But they still need to be fixed for a stable project.</p><p><strong>5- No need to execute tests for all browsers and OSs</strong></p><p><strong>Test automation does not focus on cross browser testing</strong>, even though the consulting companies say otherwise — and with large fonts for marketing purposes! Specifically, with <strong>IE</strong> and <strong>Safari</strong>, your tests will be very unreliable and unsecured. Unless you have a team of 10 people dedicated for test automation, you should focus on 1 browser and 1 version, preferably the latest version that selenium supports (at the moment chrome 52 for <strong>chromedriver</strong> and firefox 47 for <strong>firefoxdriver</strong>, firefoxdriver will be deprecated soon and <strong>gecko driver </strong>will be on the table but that’s a subject for another post :)</p><p><strong>6- Start with the simplest smoke tests</strong></p><p>There is no point in starting with big scenarios when you start a new project. It would have a negative impact on the progress. Instead, when you start with <strong>smoke tests</strong> with testing just one little functionality, your project will be on solid ground. Once you finish coding enough <strong>smoke tests</strong>, your framework layer will be tough enough to handle <strong>more complex scenarios</strong>. This way your project will grow properly and also you will get fast results from day 1.</p><p>P.S: You can find further discussions from <strong>Joe Colantonio</strong>’s podcasts on this subject. Also, there is an awesome book by <strong>Dima Kovalenko</strong> called <strong>Selenium Best Practices &amp; Design Patterns</strong>.</p><p><em>Originally published at </em><a href="http://seleniumnotes.com/en/2016/08/29/test-automation-best-practices/"><em>Selenium Notes</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc180a0b5c20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hello World]]></title>
            <link>https://medium.com/@sinefil/hello-world-41b8c3bc9b4d?source=rss-a86f5e7acf45------2</link>
            <guid isPermaLink="false">https://medium.com/p/41b8c3bc9b4d</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Taylan Derinbay]]></dc:creator>
            <pubDate>Sat, 30 Jul 2016 23:51:54 GMT</pubDate>
            <atom:updated>2016-08-28T12:20:26.409Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hello Test</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dFYj6Zp_qjO4ugCJ.jpg" /></figure><p>Hi all;</p><p>I will write about mostly <strong>selenium</strong> based, <strong>software testing</strong>, <strong>test automation</strong>, <strong>continous integration</strong> etc. posts. There will be the problems I’ve been faced before and their solutions. I hope it’ll help people who have the same problems. For now I’m thinking about 1 post per week. Normally I can’t do such routines like this. But we’ll see…</p><p><em>Originally published at </em><a href="http://seleniumnotes.com/en/2016/07/30/hello-world/"><em>Selenium Notes</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41b8c3bc9b4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>