<?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 Burak Bayramoglu on Medium]]></title>
        <description><![CDATA[Stories by Burak Bayramoglu on Medium]]></description>
        <link>https://medium.com/@burkisilin?source=rss-af945bfe9109------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*59YrwoQHXbY2zE12hnPZlA.png</url>
            <title>Stories by Burak Bayramoglu on Medium</title>
            <link>https://medium.com/@burkisilin?source=rss-af945bfe9109------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:11:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@burkisilin/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[UI Automation using Page Object Model with Python]]></title>
            <link>https://medium.com/beyn-technology/ui-automation-using-page-object-model-with-python-dee3b9f5b227?source=rss-af945bfe9109------2</link>
            <guid isPermaLink="false">https://medium.com/p/dee3b9f5b227</guid>
            <category><![CDATA[ui-automation-testing]]></category>
            <category><![CDATA[pom]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Burak Bayramoglu]]></dc:creator>
            <pubDate>Tue, 31 May 2022 08:47:41 GMT</pubDate>
            <atom:updated>2022-05-31T08:47:41.671Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>What is the Page Object Model?</strong></h4><p><strong>Page Object Model (POM) </strong>is a design pattern that is commonly used with Selenium to automate test cases, creating an object store for elements in the user interface. POM can be used with any framework such as keyword and data driven as well as hybrid framework. While test cases are automated, these page classes create the object and interact with web elements by calling the functions of these classes.</p><h4><strong>Advantages of Page Object Model</strong></h4><p>1- Easier to maintain and manage your project: POM is very useful when a change is made in a UI element. For example, consider a selector that you have been using has changed and you are using the same selector in different parts of code. Your script won’t work until you take the necessary actions. In this case, with POM, all you have to do is replace the new selector with your old one and your code can get to work once more. So we will be controlling all of the functions that relate to the stated selector just with a single line of code.</p><p>2- Allows you to reuse the code: As mentioned earlier all pages are independent from each other. With the usage of POM, the flexible design allows you to use the code in different tests and save you time.</p><p>3- Increases readability and reliability of your code: One of the main ideas behind POM is readability, at large scale projects you might need to edit your code months after. When you take a quick look at the code you must be able to understand what you wanted to do earlier. And when it comes to reliability, if a change must be made to a certain section of code, it can be efficiently done without affecting other files.</p><h4><strong>Sample Project Structure for POM</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLGIFQRMExlROVC3Oc6Pxg.png" /><figcaption>Sample Project Structure for POM</figcaption></figure><p>There are usually 3 packages in POM projects. The main idea is to break the project into parts and make it more manageable. The folder structure consists of three python packages which are config, pages, tests. Config package contains the test dependencies. All of the test cases are affected from the content of <em>config.py</em> file. Any page that is used in test cases should be located under the Pages Package and there must be a <em>BasePage.py</em> script file which contains common methods on all pages and it’s the parent of other page classes. Other pages are used at the related page’s tests. Test cases are defined inside of the tests package. Also, the conftest file is located here so the driver can be booted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/0*Le7wmRmgO8o1kO0J" /><figcaption>Folder structure for project</figcaption></figure><p><strong>Config Package</strong></p><p>The purpose of having the config package in our project is to be able to import the static data used for testing in other parts of the project. Our project config file contains of the following data: Base URL, language code and dynamically changing assertion values due to change of language in each test run.</p><p>Example content of config.py:</p><pre>BASE_URL = &quot;https://www.apple.com/&quot;<br><br>BROWSERS = [&quot;chrome&quot;, &quot;firefox&quot;]</pre><p><strong>Pages</strong></p><p>Pages package contains every page class with their locators and methods which are unique to that page. These locators will help us to find web elements on that specific page. The main purpose of <em>BasePage.py </em>file to have the locators and methods that can be used on project scope.</p><p>Some of the basic methods available in <em>BasePage.py</em> are:</p><pre>find_element</pre><pre>click</pre><pre>hover</pre><pre>highlight</pre><pre>get_element_text</pre><p>While <em>ConfigurationPage.py</em> contains methods like: configure_iphone_specs and go_to_bag and selectors for colors, capacity, payment options…</p><p><strong>Tests</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MeM1Znhk3vbB_Mp-nUaUxw.png" /><figcaption>__init__.py and conftest.py</figcaption></figure><p>In the init file we create a parent class for our test classes. All of the test classes will be inherited from that parent class and its structure. As you can see we have used a decorator from pytest and we are pointing it to something named as “<em>init_driver</em>”. So you might be wondering what that is.</p><p>Before each test run, the existence of the “<em>conftest.py</em>” file is checked by <em>pytest</em>. The “<em>init_driver</em>” that has been pointing to is located at “<em>conftest.py</em>” and it helps us to create an instance of selenium webdriver.</p><p>The “<em>fixture</em>” decorator provides a connection between driver and test case and it takes 2 parameters:</p><ul><li>The first parameter is “<em>params</em>” : to run selected browser(s). (Can be passed one or more browser.)</li><li>The second parameter is “<em>scope</em>” : determines how the browser works.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikMgHmwaw_6zwUAmlYcnZQ.png" /><figcaption><em>test_BuyProduct.py</em></figcaption></figure><p>Test classes are inherited from the BaseTest which is located in the init file. Test classes can contain one or more test cases. In each test case, an instance of the required page class is created. After that, from the instances test steps are created using the page methods. In our project we wanted to create a test case where we have tested adding a customized IPhone 13 Pro to our basket and making assertions during the test.</p><p>Steps:</p><ol><li>Go to Apple Page with parameterized language data</li><li>Click on the Iphone button on the menu</li><li>Choose the Iphone 13 PRO</li><li>Click Buy button</li><li>Customize Iphone</li><li>Add to basket</li><li>Remove from basket</li></ol><p>You can access the project from the following link:</p><p><a href="https://github.com/kadirkaya28/AppleUIAutomation">GitHub - kadirkaya28/AppleUIAutomation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dee3b9f5b227" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beyn-technology/ui-automation-using-page-object-model-with-python-dee3b9f5b227">UI Automation using Page Object Model with Python</a> was originally published in <a href="https://medium.com/beyn-technology">Beyn Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Page Insights Nedir, Neye Yarar?]]></title>
            <link>https://burkisilin.medium.com/google-page-insights-nedir-neye-yarar-268a94e9c424?source=rss-af945bfe9109------2</link>
            <guid isPermaLink="false">https://medium.com/p/268a94e9c424</guid>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[insights]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[page-speed]]></category>
            <dc:creator><![CDATA[Burak Bayramoglu]]></dc:creator>
            <pubDate>Fri, 03 Dec 2021 00:01:02 GMT</pubDate>
            <atom:updated>2021-12-03T00:01:02.756Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S9OyTZFWDQURQXjY.jpg" /></figure><p>Herkese merhabalar, bu yazımda sizlere Google Page Insights’ın tanıtımını gerçekleştirerek, nasıl kullanıldığını Çiçek Sepeti üzerinde gerçekleştireceğimiz bir örnek ile aktarmaya çalışacağım.</p><p><strong>Google PageSpeed Insights Nedir?</strong></p><p>Google PageSpeed Insights bir web sitesi performans raporlama aracıdır. İsterseniz birlikte devam edelim! <a href="https://pagespeed.web.dev/">Bu linkten</a> dilediğiniz sitenin adresini girerek siz de hemen bir analiz gerçekleştirebilirsiniz. “Analiz Et” butonuna basmanızın ardından karşınıza gelecek olan başlıkları ve raporları birlikte inceleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y52nAptATevd8nasLlgtPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*GsVvSCH8_oVagQvZFxkkLQ.png" /></figure><p>Görebileceğiniz üzere ilk fark etmemiz gereken kısım raporlamanın yapılmış olduğu platform. Burada dilerseniz mobil platformlar için oluşturulmuş raporlara, dilerseniz masaüstü raporlarına ulaşabilirsiniz.</p><p>Karşımıza çıkan başlıklara birlikte kısaca bakalım.</p><p><strong>First Contentful Paint (FCP)</strong></p><p>First Contentful Paint (FCP), sayfanın yüklenmeye başladığı andan itibaren ilk sayfa içeriğinin yüklenmesinin tamamlanmasına kadar geçen süre ölçümüdür.</p><p><strong>First Input Delay (FID)</strong></p><p>First Input Delay (FID), kullanıcının yaptığı ilk tıklama ile tıklamanın gerçekten sonuçlanması arasında geçen sürenin ölçümüdür.</p><p><strong>Largest Contentful Paint (LCP)</strong></p><p>Largest Contentful Paint (LCP), sayfanın yüklenmeye başladığı andan itibaren, sayfadaki en yüksek boyutlu elemanının yüklenmesi tamamlanana kadar geçen süre ölçümüdür.</p><p><strong>Cumulative Layout Shift (CLS)</strong></p><p>Cumulative Layout Shift (CLS), sayfanın yüklenmeye başladığı an ile sayfanın yüklenmesinin tamamlandığı an arasında geçen sürenin ölçümü olarak tanımlanmaktadır.</p><p>Yukarıda gördüğünüz süreçler için Google referans değerleri belirlemiş durumda ve bu değerler ile kıyaslama yaparak analiz edilen siteye puan vermekte.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*0Ik5fbb0ZnDxgmiz1mY9lg.png" /></figure><p><strong>Bu Raporlar İle Ne Amaçlanıyor?</strong></p><p>Yukarıda tanımlarına kısaca değindiğimiz değerler ile performansı kullanıcı için en üst seviyeye taşıyarak, mümkün olan en optimize web sitesinin oluşturulması amaçlanmakta. Peki nasıl?</p><p><strong>Önerilen Geliştirmeler</strong></p><p>Sayfayı incelemeye devam ettiğimizde fırsatlar kısmı ile karşılaşıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*TK8pOufY79kJoU9wzw4M9w.png" /></figure><p>Burada olumsuzluklara karşı alabileceğimiz aksiyonlar hakkında fikir sahibi olmamıza yardımcı olacak aksiyon ile bu aksiyon ile ne kadar süre tasarrufta bulunabileceğimizi görmekteyiz.</p><p>Neyse ki Google sadece eksiklerimizi göstererek acımasız davranmıyor ve dilersek yapılan olumlu işlemlerden bize Başarılı Denetimler başlığı altında bahsediyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*iXb3quvpgkSj_S-UxtQiKg.png" /></figure><p>Sizlere Google tarafından geliştirilen PageSpeed Insights aracını elimden geldiğince anlatmaya çalıştım. Vakit ayırıp okuduğunuz için çok teşekkür ederim!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=268a94e9c424" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>