<?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 Hasan Ozyer on Medium]]></title>
        <description><![CDATA[Stories by Hasan Ozyer on Medium]]></description>
        <link>https://medium.com/@hasanozyer06?source=rss-846b2e20005a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zKyg_4wRwjoUVgtcRhRqtQ.png</url>
            <title>Stories by Hasan Ozyer on Medium</title>
            <link>https://medium.com/@hasanozyer06?source=rss-846b2e20005a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:17:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hasanozyer06/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[I will be starting a new series called “HasanMeter” — how original BRUUUUUUUUUH — a course…]]></title>
            <link>https://hasanozyer06.medium.com/i-will-be-starting-a-new-series-called-hasanmeter-how-original-bruuuuuuuuuh-a-course-1d5a95067ab6?source=rss-846b2e20005a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d5a95067ab6</guid>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[udemy]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Hasan Ozyer]]></dc:creator>
            <pubDate>Fri, 18 Jul 2025 20:23:36 GMT</pubDate>
            <atom:updated>2025-07-18T20:23:36.265Z</atom:updated>
            <content:encoded><![CDATA[<p>I will be starting a new series called <strong>“HasanMeter”</strong> — how original BRUUUUUUUUUH — a course feedback program where I share my thoughts on the courses that I finished in the Software Test Engineering industry. This will mostly include paid courses from Udemy and Jira (mostly Udemy).</p><p><strong>How this will happen is:</strong> I am going to take notes while studying the course, where I see there might be improvements, or it might not be exactly clear to understand the lecturer. There might even be times where the entire Udemy course is a scam and is read by an A.I. robot (that actually happened).</p><p><strong>How will you benefit?</strong> If you’re planning to take any of the topics or Udemy courses that I have an opinion on and shared my thoughts about, you will instantly know if it is:</p><ul><li>legit,</li><li>ChatGPT-free,</li><li>ACTUALLY useful,</li><li>or just overall mid-to-bad level — so it’s not worth purchasing.</li></ul><p><strong>Why am I doing this while you can already review the courses in the reviews section on Udemy?</strong><br> Because I will be giving my absolute best to provide the most useful feedback for the overall course — something you cannot find in those 1–2 sentence Udemy comments like “It was bad” or “It was good.”</p><p><strong>IDK MAN, I’M JUST TRYING OUT THINGS THAT SOCIETY CAN BENEFIT FROM, I GUESS.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*ibSXwg4Qwl0kcMQ132eJFg.png" /><figcaption>Me while writing this post lol</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d5a95067ab6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My 5-Year Career Plan Ahead: A Journey from Past to Future]]></title>
            <link>https://hasanozyer06.medium.com/my-5-year-career-plan-ahead-a-journey-from-past-to-future-601226bd6339?source=rss-846b2e20005a------2</link>
            <guid isPermaLink="false">https://medium.com/p/601226bd6339</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[future]]></category>
            <dc:creator><![CDATA[Hasan Ozyer]]></dc:creator>
            <pubDate>Sun, 15 Sep 2024 11:07:16 GMT</pubDate>
            <atom:updated>2024-09-16T08:59:07.080Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*48numkGt3wLDpTHD_xxkQA.png" /></figure><p>The story of a young person feeling a bit stuck and anxious… The plans he made to open new paths for himself and the time spent pursuing these plans. Here is the story of my 5-year career journey from past to future!</p><h3>A Brief Summary of the Past 2 Years: Transitioning from History to Technology</h3><p><strong>February 2022:</strong> Back then, I was a second-year student majoring in History at Ankara Social Sciences University. Our program was 100% in English, and to be honest, I had the idealistic dream of becoming an academic. But the harsh reality was this: I would spend at least 5 more years at the university. I wanted to earn my own money as soon as possible. I started thinking, “If I took a software course and dedicated myself to it day and night, could I get a job?” After all, I could encounter much better opportunities 5 years later, and during this time, I would have earned my own salary.</p><p>A friend told me about software test automation. I researched it, it made sense to me, and I enrolled in a Software Test Automation course.</p><p><strong>March 2022:</strong> I started the test automation bootcamp. It lasted 8 months. In the first 4 months, I learned Java and passed Oracle’s Java certification exam. In the next 4 months, I learned the basic concepts of testing and test automation. After passing the ISTQB exam and obtaining my certification, I learned Web UI, API, Database, and Mobile Testing processes using tools like Selenium, Postman, RestAssured, MySQL, and Appium. The course fee was €2,500, but it was worth every penny.</p><p>In <strong>December 2022</strong>, I found a job! Since I didn’t have a university degree, the salary was a bit low, but starting work was enough for me.</p><p>Immediately after starting work, I enrolled in the Associate Degree Program in Computer Programming at Anadolu University’s Open Education Faculty (AÖF). For two years, I have been successfully continuing my courses there. My goal is to graduate in <strong>January 2025</strong> with at least a 3.5 GPA.</p><h3>My Plans for the Next 5 Years</h3><p><strong>Currently:</strong> In the project I’m working on now, we use Cypress as our Web UI testing tool. But my love for Java is immense! As soon as I finish my work with Cypress, I will return to Java with RestAssured for API automation. All 189 endpoints in my project are prepared in Postman collections for four different environments (dev, test, pre-prod, prod). My next goal is to automate these.</p><h3><strong>1-) My Project: PHR (Personal Health Record)</strong></h3><p>In this project, I am solely managing all QA processes: Web, mobile, and automation testing. When I consider that 3 million people will use this project, the weight on my shoulders feels truly heavy and sacred.</p><p>The FHIR (Fast Healthcare Interoperability Resources) standard we use is a globally accepted system in healthcare software. Testing each of these resources in Postman and constantly updating them according to new requests is a big job, but I have learned to handle it. In this process, most people complain about preparing request bodies, and they’re right. But I have a solution for my company:</p><h4>1.1-) FHIR Automation Tool with RestAssured + Java</h4><p>I will develop an application that automates all FHIR resources in Postman. This application will not require users to enter complex data. With just a few clicks, you will be able to enter the patient information you want and create the desired resources. Normally, this task takes 3 hours for someone unfamiliar with the work, but with my application, I will reduce this time to 10 seconds. (Yes, literally a 1000× speedup!)</p><h4>1.2-) ChatGPT &amp; JIRA Integration</h4><p>By using ChatGPT API’s and JIRA APIs, I will create and upload a bug report to JIRA by simply pasting the text. Thus, the 10-minute bug entry time will be reduced to 10 seconds. Again, with a 60× speedup, I am going to add so much 10-minutes to my life, which is invaluable for me and my job! 🎉</p><h3>2-) Automating PHR Mobile Application Testing with Appium and Android Studio</h3><p>Our PHR mobile application currently undergoes entirely manual testing processes. One of my goals is to implement end-to-end automation testing using Appium and Android Studio. By automating these tests, we can significantly reduce testing time and ensure a more reliable application for our users. This will also free up valuable time for the team to focus on new features and improvements.</p><h3>3-) Completing and Mastering Harvard University’s CS50 Course</h3><p>I plan to complete and fully internalize Harvard University’s renowned CS50 course. This course offers a comprehensive introduction to computer science and programming, which will deepen my understanding of software development principles.</p><h3>4-) Passing the ISTQB Test Automation Certification Exam</h3><p>After obtaining my ISTQB Foundation Level certification, my next target is the ISTQB Test Automation certification exam. Achieving this certification will validate my expertise in test automation and demonstrate my commitment to excellence in the field.</p><h3>5-) Gaining Basic Knowledge in Cloud Management with AWS Cloud Practitioner Certification</h3><p>To broaden my technical skill set, I aim to study for the AWS Cloud Practitioner exam and earn its certification. This will provide me with a foundational understanding of AWS cloud management. Having basic knowledge in cloud services will allow me to integrate cloud-based solutions into our testing environment.</p><h3>Academic Plans: Continuous Learning</h3><p>In <strong>January 2025</strong>, I will graduate from the Open Education Faculty’s Computer Programming program.</p><p>In <strong>June of the same year</strong>, I aim to take the Vertical Transfer Exam (DGS) to transfer to the Management Information Systems department. The DGS is an exam in Turkey that allows students to transfer from a 2-year associate degree to a 4-year bachelor’s degree program. From there, I plan to graduate in <strong>August 2027</strong>.</p><p>Then, I will join Gebze University’s Master’s Program in Software Test Engineering. By the time I turn <strong>29</strong>, I will have an associate degree in computer programming, a bachelor’s degree in management information systems, and a master’s degree in software test engineering.</p><h3>Passion for Continuous Improvement</h3><p>I plan to achieve all these goals within the next 5 years, and perhaps even sooner. My passion for improving my work and myself in this field is immense. I am genuinely happy to have turned to this field, as it aligns perfectly with my interests and aspirations.</p><h3>Conclusion</h3><p>I am progressing step by step towards achieving my career goals. Hopefully, at the end of these 5 years, I will be either a Senior Test Automation Engineer or in a Team Lead position. Of course, life may take me to different places, but the most important thing in this journey is to continue developing at every step.</p><p>Thank you for taking the time to read about my journey and future plans. If you have any questions or would like to connect, feel free to reach out to me on <a href="https://www.linkedin.com/in/hasan-ozyer/">LinkedIn</a>. Your support and interest mean a lot to me!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=601226bd6339" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Opportunities: The Power of a Polished LinkedIn Profile for Recruiters Part — 1]]></title>
            <link>https://hasanozyer06.medium.com/unlocking-opportunities-the-power-of-a-polished-linkedin-profile-for-recruiters-part-1-69397a96ff5f?source=rss-846b2e20005a------2</link>
            <guid isPermaLink="false">https://medium.com/p/69397a96ff5f</guid>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[linkedin]]></category>
            <category><![CDATA[profile]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[hr]]></category>
            <dc:creator><![CDATA[Hasan Ozyer]]></dc:creator>
            <pubDate>Sun, 24 Mar 2024 22:00:33 GMT</pubDate>
            <atom:updated>2024-03-29T21:14:36.222Z</atom:updated>
            <content:encoded><![CDATA[<h3>LinkedIn Secrets to Success: Building a Profile That Opens Doors — Part 1</h3><p>If you doubt the importance of a LinkedIn profile in landing a job, this might not be for you. Good luck with your job search — you’ll need it.</p><p>In today’s professional landscape, most of us have a LinkedIn profile. However, this article reveals that crucial 1% that distinguishes an ordinary profile from a standout one. A well-crafted LinkedIn profile is key to unlocking new job opportunities. For those unaware of its power or lacking knowledge on optimizing their profile, I’ll share tips on how to upgrade to an almost premium LinkedIn experience for free.</p><p>✅ Ensure you have a professional-looking LinkedIn profile picture. If you don’t, consider hiring a professional photographer to take a high-quality LinkedIn photo for you. There’s no need to print it; ask them to email it to you instead. The cost is more affordable than you might think. When recruiters review your resume, they often visit your LinkedIn profile next, and the first thing they notice is your profile picture, which can reveal a lot about you.</p><ol><li>Visit <a href="https://www.photofeeler.com/">Photofeeler.com</a> and upload your chosen LinkedIn profile picture. Select the ‘Business’ category and let people vote on it. For good karma, you can vote on other people’s pictures too. You can receive quick feedback within 1–2 days from REAL people who provide their honest opinions about your business photo upon first seeing it. I’ve tried this in the past and it worked out well for me. Now, I’ll share my real experience:</li></ol><p>This was my <strong>actual </strong>LinkedIn profile picture when I first started job hunting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-qbguGQa08yiaAXk3AMw3g.jpeg" /><figcaption>Look how poor the ratings were; it was a disaster!</figcaption></figure><p>This was after I had a professional photo taken by my local photographer to see if it made a difference:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvhGoOrJeh6iVRS4vU8zDg.jpeg" /><figcaption>It was a nice feeling to receive good feedback.</figcaption></figure><p>I don’t think I need to say much more. The results speak for themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*tfdYoibP4NVuRk-SpB1-pQ.gif" /></figure><p>Now that you have an impressive LinkedIn Profile Picture, the next step is refining your headline, the second most critical element when recruiters view your profile.</p><p>✅ Visit the <a href="https://careersidekick.com/linkedin-headlines-job-seekers/">12 Best LinkedIn Headline Examples for Job Seekers </a>for a much better explanation and understanding of their importance. I will summarize these and add my opinions. Use any one of them and tailor it to your role. Here are the best suggestions:</p><ol><li><strong>Be a Bragger, But with Class:</strong> Show off those eye-popping achievements like “B2B Sales Rep | $2.4MM generated while binge-watching Netflix.” It’s not just for sales! Whether you’re tech support with a record number of solved requests, make sure your headline screams, “I’m awesome, and here’s why!”</li><li><strong>Spill the Beans with a Twist:</strong> “Human Resources Manager | 10+ Years of People Wrangling | Can Quote Every Disney Movie.” Mixing professional cred with a dollop of personal flair makes you stand out. It’s like saying, “Yes, I’m a pro, but I can also be the life of the party.”</li><li><strong>Niche It Up:</strong> “Director of HR at Oracle | Master of Software Tech | Can Train You While Blindfolded.” Focus on your role, your playground (industry), and throw in a unique skill or hobby that makes you memorable.</li><li><strong>Be the Hero Company Needs:</strong> “Social Media Manager | Turning Startups into Social Butterflies.” Suggest how you’re the magic potion to a company’s woes. It’s like being a professional superhero, minus the cape.</li><li><strong>Keywords with a Side of Humor:</strong> “Making Factories Run Smoother Than My Bald Head | Lean Manufacturing | Six Sigma | Efficiency Guru.” Use keywords that scream your skills and add a personal touch that makes people chuckle.</li><li><strong>Simplicity is Key But Make It Fancy:</strong> “Content Wizard Specializing in Spellbinding Press Releases, Blogs, and Social Media Enchantments.” Highlight your job title and sprinkle your specialties like fairy dust. It tells people, “I’m the master of my domain, and I also have a magic wand.”</li><li><strong>Experience with a Purpose:</strong> “Decade of Decoding Software Mysteries | I Make Apps Everyone Loves.” Start with your years of experience but spin it to show how you make the world (or at least companies) a better place.</li></ol><p>✅ The importance of summary section. You need to <strong>Write a Summary Section that Makes the Reader Want to Read More</strong>. To make your LinkedIn summary an irresistible click magnet, treat it like the opening scene of your favorite TV show — it should hook your audience instantly and leave them craving more. Here’s how you can apply this to crafting a LinkedIn summary:</p><ol><li><strong>Start Strong:</strong> Begin with something surprising or really interesting. It could be a big achievement or a fun fact about your work life. Make it so good that people won’t want to miss out.</li><li><strong>Use Important Words Smartly:</strong> Important words help people find you. Don’t just list them; mix them into your story. Pick words that show off your skills and dreams and tell a story instead of just showing what you can do.</li><li><strong>Show Off a Little:</strong> Talk about your big wins but don’t give away all the details. Say something impressive, like you helped your company a lot, but make people click to find out how.</li><li><strong>Be Yourself:</strong> Let people see the real you, not just the work you. Showing your true self makes you stand out and seem more real.</li><li><strong>Tease the Future:</strong> Give a hint of what people will learn if they keep reading. It’s like showing a sneak peek of what’s coming next, without revealing everything.</li></ol><p>For much better and detailed explanation, i would recommend reading this article <a href="https://careersidekick.com/write-linkedin-summary/">5 LinkedIn Summary Examples for Job Seekers</a>.</p><p>For now, I’ll leave things here. I’m eager to dive into Part 2 of this series, but I want to ensure this piece proves valuable first. If you found this article helpful, I’d deeply appreciate your applause — it’s not just encouraging; it motivates me to continue sharing insights that could assist even more people. Your support means we can explore these topics together, further and deeper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v89su6ftryLjRi84ksGZdA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69397a96ff5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cracking the Code: My Adventure in JSON Parsing with Selenium WebDriver]]></title>
            <link>https://hasanozyer06.medium.com/cracking-the-code-my-adventures-in-json-parsing-with-selenium-webdriver-7d9d119da662?source=rss-846b2e20005a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d9d119da662</guid>
            <category><![CDATA[testng]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Hasan Ozyer]]></dc:creator>
            <pubDate>Sat, 21 Oct 2023 15:02:44 GMT</pubDate>
            <atom:updated>2023-10-21T15:25:16.917Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*TaNhrIqlZCBWoAwQ9GzFSQ.png" /></figure><p>Hi everyone. In today’s article i will try to explain how to read a JSON data with Selenium by executing a test case from TestNG in an automation site called DemoQA.</p><p>But because it is so hard to explain a code structure in plain text, I tried my best to make it more understandable by adding comment lines.</p><p>1-) Firstly, we need these dependencies imported to your <a href="https://medium.com/@hasanozyer06/beginner-friendly-maven-explanation-d33f3f2d7d79">Maven pom.xml</a> file:</p><pre>&lt;!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java --&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;<br>            &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;<br>            &lt;version&gt;4.11.0&lt;/version&gt;<br>        &lt;/dependency&gt;<br><br>&lt;!-- this is for json --&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;com.googlecode.json-simple&lt;/groupId&gt;<br>            &lt;artifactId&gt;json-simple&lt;/artifactId&gt;<br>            &lt;version&gt;1.1.1&lt;/version&gt;<br>        &lt;/dependency&gt;<br><br>&lt;!-- https://mvnrepository.com/artifact/org.testng/testng --&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;org.testng&lt;/groupId&gt;<br>            &lt;artifactId&gt;testng&lt;/artifactId&gt;<br>            &lt;version&gt;7.1.0&lt;/version&gt;<br>        &lt;/dependency&gt;</pre><p>2-) Then a simple JSON file (Elements.json) that includes the locators and the type’s that we will use in our code:</p><pre>{<br>  &quot;DemoQA&quot;: {<br>    &quot;FullName&quot;: {<br>      &quot;type&quot;: &quot;xpath&quot;,<br>      &quot;locator&quot;: &quot;//input[@id=&#39;userName&#39;]&quot;<br>    },<br>    &quot;Email&quot;: {<br>      &quot;type&quot;: &quot;id&quot;,<br>      &quot;locator&quot;: &quot;userEmail&quot;<br>    },<br>    &quot;Current Address&quot;: {<br>      &quot;type&quot;: &quot;css&quot;,<br>      &quot;locator&quot;: &quot;#currentAddress&quot;<br>    },<br>    &quot;Permanent Address&quot;: {<br>      &quot;type&quot;: &quot;classname&quot;,<br>      &quot;locator&quot;: &quot;btn btn-primary&quot;<br>    }<br>  }<br>}<br></pre><p>3-) Let’s create a Java class and read the JSON:</p><p>🔶3.1-) Example of Parsing and Printing JSON Data:</p><pre>public class JsonReadingClass{<br>  public static void Main(String[] args){<br>    <br> // 1. Defines the file path for the JSON file containing the data.<br>        String jsonFile = &quot;src/test/resources/datafiles/Elements.json&quot;;<br><br> // 2. Reads the JSON file for the first time and parses it into a JSONObject.<br> //    The contents of the JSON file are parsed and stored in the &#39;object&#39; variable.<br>        JSONObject object = (JSONObject) JSONValue.parse(new FileReader(jsonFile));<br>    <br> // 3. This statement outputs the entire parsed JSON object to the console.   <br>        System.out.println(object);<br>  }<br><br>}<br>/*<br>The result: <br>{<br>  &quot;DemoQA&quot;: {<br>    &quot;Current Address&quot;: {<br>      &quot;type&quot;: &quot;css&quot;,<br>      &quot;locator&quot;: &quot;#currentAddress&quot;<br>    },<br>    &quot;Email&quot;: {<br>      &quot;type&quot;: &quot;id&quot;,<br>      &quot;locator&quot;: &quot;userEmail&quot;<br>    },<br>    &quot;Permanent Address&quot;: {<br>      &quot;type&quot;: &quot;classname&quot;,<br>      &quot;locator&quot;: &quot;btn btn-primary&quot;<br>    },<br>    &quot;FullName&quot;: {<br>      &quot;type&quot;: &quot;xpath&quot;,<br>      &quot;locator&quot;: &quot;//input[@id=&#39;userName&#39;]&quot;<br>    }<br>  }<br>}<br>*/<br></pre><p>🔶3.2-) Parsing JSON Element Type and Locator:</p><pre>public class jsonReadingClass{<br>  public static void Main(String[] args){<br>    <br> String JSONFile = &quot;src/test/resources/datafiles/Elements.json&quot;;<br><br>// 1. Parses the JSON file as a whole into a JSONObject.<br>JSONObject object = (JSONObject) JSONValue.parse(new FileReader(JSONFile));<br><br>// 2. Extracts the &#39;FullName&#39; object under the &#39;DemoQA&#39; section from the parsed JSON data.<br>JSONObject demoQA = (JSONObject) object.get(&quot;DemoQA&quot;);<br>JSONObject fullName = (JSONObject) demoQA.get(&quot;FullName&quot;);<br><br>// 3. Extracts &#39;type&#39; and &#39;locator&#39; values from the &#39;FullName&#39; object.<br>String type = fullName.get(&quot;type&quot;).toString();<br>String locator = fullName.get(&quot;locator&quot;).toString();<br><br>// 4. Prints the extracted &#39;type&#39; and &#39;locator&#39; values to the console.<br>System.out.println(&quot;type = &quot; + type);<br>System.out.println(&quot;locator = &quot; + locator);<br>  }<br><br>}<br><br>/*<br>The result: <br>type = xpath<br>locator = //input[@id=&#39;userName&#39;]<br>*/</pre><p>Okay, we got the basics down, but how on earth would you convert this into something usable? Well, here we will head over to the fourth step. Which is Writing a switch case method:</p><p>4-) This method is for Mapping Types to WebDriver Locators:</p><pre>// This method returns a By object based on the given type and locator.<br>public static By getBy(String type, String locator) {<br><br>            switch (type) {<br>                case &quot;xpath&quot; -&gt; {<br>                    return By.xpath(locator);<br>                }<br>                case &quot;css&quot; -&gt; {<br>                    return By.cssSelector(locator);<br>                }<br>                case &quot;id&quot; -&gt; {<br>                    return By.id(locator);<br>                }<br>                case &quot;tagname&quot; -&gt; {<br>                    return By.tagName(locator);<br>                }<br>                case &quot;classname&quot; -&gt; {<br>                    return By.className(locator);<br>                }<br>                case &quot;linktext&quot; -&gt; {<br>                    return By.linkText(locator);<br>                }<br>                case &quot;partiallinktext&quot; -&gt; {<br>                    return By.partialLinkText(locator);<br>                }<br>                default -&gt; {<br>                    return null;<br>                }<br>            }<br>        }</pre><p>Now, let’s also mix the Step 3.2 and the Step 4 as a method, because it will be so much easier for us.</p><p>5-) JSON Configuration-based Web Element Locating method:</p><pre>/**<br> * Retrieves a web element locator using JSON configuration.<br> *<br> * @param main The main node within the JSON structure.<br> * @param sub  The sub-node containing &#39;type&#39; and &#39;locator&#39; information.<br> * @return By object representing the located web element.<br> * @throws FileNotFoundException If the JSON file specified by &#39;jsonFile&#39; is not found.<br> */<br>public static By getBy(String main, String sub) throws FileNotFoundException {<br>    // 1. Defines the file path for the JSON file containing the data.<br>    String jsonFile = &quot;src/test/resources/datafiles/Elements.json&quot;;<br><br>    // 2. Reads the JSON file and parses its contents into a JSONObject.<br>    JSONObject object = (JSONObject) JSONValue.parse(new FileReader(jsonFile));<br><br>    // 3. Extracts the JSON objects corresponding to the specified &#39;main&#39; and &#39;sub&#39; nodes.<br>    JSONObject mainNode = (JSONObject) object.get(main);<br>    JSONObject subNode = (JSONObject) mainNode.get(sub);<br><br>    // 4. Extracts &#39;type&#39; and &#39;locator&#39; values from the &#39;sub&#39; node.<br>    String type = subNode.get(&quot;type&quot;).toString();<br>    String locator = subNode.get(&quot;locator&quot;).toString();<br><br>    // 5. Returns a By object based on the extracted &#39;type&#39; and &#39;locator&#39;.<br>    switch (type) {<br>        case &quot;xpath&quot; -&gt; {<br>            return By.xpath(locator);<br>        }<br>        case &quot;css&quot; -&gt; {<br>            return By.cssSelector(locator);<br>        }<br>        case &quot;id&quot; -&gt; {<br>            return By.id(locator);<br>        }<br>        case &quot;tagname&quot; -&gt; {<br>            return By.tagName(locator);<br>        }<br>        case &quot;classname&quot; -&gt; {<br>            return By.className(locator);<br>        }<br>        case &quot;linktext&quot; -&gt; {<br>            return By.linkText(locator);<br>        }<br>        case &quot;partiallinktext&quot; -&gt; {<br>            return By.partialLinkText(locator);<br>        }<br>        default -&gt; {<br>            return null;<br>        }<br>    }<br>}</pre><p>6-) Here comes the final class to unite the 2 methods above within a test case powered by TestNG!</p><pre>public class JsonTest {<br>    WebDriver driver;<br><br>    {<br>        driver = new ChromeDriver();<br>        driver.manage().window().maximize();<br>        driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));<br>    }<br><br>    @Test<br>    public void test1() throws FileNotFoundException {<br>        driver.get(&quot;https://demoqa.com/text-box&quot;);<br>        driver.findElement(getBy(&quot;DemoQA&quot;,&quot;FullName&quot;)).sendKeys(&quot;hasan&quot;);<br>        driver.findElement(getBy(&quot;DemoQA&quot;,&quot;Email&quot;)).sendKeys(&quot;test@test.com&quot;);<br>        driver.findElement(getBy(&quot;DemoQA&quot;,&quot;Current Address&quot;)).sendKeys(&quot;Qatar&quot;);<br>        driver.quit();<br><br><br>    }<br><br>    public static By getBy(String main, String sub) throws FileNotFoundException {<br><br>        String jsonFile = &quot;src/test/resources/datafiles/Elements.json&quot;;<br><br>        JSONObject object = (JSONObject) JSONValue.parse(new FileReader(jsonFile));<br>        JSONObject mainNode = (JSONObject) object.get(main);<br>        JSONObject subNode = (JSONObject) mainNode.get(sub);<br><br><br>        String type = subNode.get(&quot;type&quot;).toString();<br>        String locator = subNode.get(&quot;locator&quot;).toString();<br><br>        switch (type) {<br>            case &quot;xpath&quot; -&gt; {<br>                return By.xpath(locator);<br>            }<br>            case &quot;css&quot; -&gt; {<br>                return By.cssSelector(locator);<br>            }<br>            case &quot;id&quot; -&gt; {<br>                return By.id(locator);<br>            }<br>            case &quot;tagname&quot; -&gt; {<br>                return By.tagName(locator);<br>            }<br>            case &quot;classname&quot; -&gt; {<br>                return By.className(locator);<br>            }<br>            case &quot;linktext&quot; -&gt; {<br>                return By.linkText(locator);<br>            }<br>            case &quot;partiallinktext&quot; -&gt; {<br>                return By.partialLinkText(locator);<br>            }<br>            default -&gt; {<br>                return null;<br>            }<br>        }<br><br>    }<br><br>}</pre><p>In summary, this code demonstrates a basic Selenium WebDriver test case that interacts with the elements on a page using locators fetched from a JSON file.</p><p>🎗️Connect with me on LinkedIn: <a href="https://www.linkedin.com/in/hasan-ozyer/">Hasan Özyer | LinkedIn</a></p><p>🎗️Check out my GitHub: <a href="https://github.com/hasanozye">hasanozye (Hasan) (github.com)</a></p><p>🎗️For inquiries, please feel free to reach me at: hasanozyer06@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d9d119da662" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Selenium Driver Class, Full Explanation]]></title>
            <link>https://hasanozyer06.medium.com/selenium-driver-class-full-explanation-faf43e8ddfbe?source=rss-846b2e20005a------2</link>
            <guid isPermaLink="false">https://medium.com/p/faf43e8ddfbe</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[passion]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[qa-testing]]></category>
            <dc:creator><![CDATA[Hasan Ozyer]]></dc:creator>
            <pubDate>Sat, 26 Aug 2023 12:39:54 GMT</pubDate>
            <atom:updated>2023-08-26T12:39:54.423Z</atom:updated>
            <content:encoded><![CDATA[<p>Heello again people! Normally this publications are for noob junior test automation engineers like me who feels stuck about overwhelming Test Automation Concepts and tries to understand them, but lately i got a notification says that one of the biggest Test Automation author in this platform, dropped a follow on me. That encorugaes a lot and i want to thank him specifically before starting this article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/0*CuYM-lGke2wROxGC.png" /></figure><p>Today’s article, i will try to explain the singleton driver class model to younger me when i was having trouble learning it. This is crucial for anyone who is trying to become a <strong>real </strong>test automation engineer. I remember all of my questions when i was first learning this class(It was not a long time ago lol). Bear with me passionate QA Automation Engineer wannabe Hasan because i will answer all of your questions.</p><p>Let’s start with this. The below Singleton driver class model is today’s topic.</p><pre>public class Driver {<br><br>    private static WebDriver driver;<br><br>    public static WebDriver getDriver() {<br>        return getDriver(Browsers.CHROME);<br>    }<br> <br><br>    public static WebDriver getDriver(Browsers browser) {<br><br>            switch (browser) {<br>                case EDGE -&gt; {<br>                    WebDriverManager.edgedriver().setup();<br>                    driver = new EdgeDriver();<br>                }<br>                case FIREFOX -&gt; {<br>                    WebDriverManager.firefoxdriver().setup();<br>                    driver = new FirefoxDriver();<br>                }<br>                case SAFARI -&gt; {<br>                    WebDriverManager.safaridriver().setup();<br>                    driver = new SafariDriver();<br>                }<br>                default -&gt; {<br>                    WebDriverManager.chromedriver().setup();<br>                    driver = new ChromeDriver();<br>                }<br>            }<br>        return driver;<br>    }<br><br><br>}</pre><p>This is what i will be explaining in this article. My approach will be to answer like it is a Q&amp;A and tell which problem is solved by every feature of this class. All these questions were actual questions of mine when i was first learning it.</p><h4><strong>Q:</strong> Why I need to setup my driver in driver class while i can just create it on my own test class?</h4><p><strong>A:</strong> It is because to avoid confusion on hundreds of tests in your project. Not in every test you can setup your driver. It is against the most important rule of the coding DRY(Don’t Repeat Yourself).</p><p><strong>A2:</strong> Even though you can come up with an arguments like writing a setupDriver method on your class and recalling on the test method, is just an extra work for every class you have, and tbh it just shows you are amateur(yeah!!). This is why we set our driver only once, when they have been needed with switch-case.</p><h4>Q: Why do i have to check the driver with if condition wheter it is null or not? I don’t get it?!</h4><p><strong>A: </strong>Because it check’s wheter or not you have a driver working for you. I will give an example without the if statement. Let’s say you have a class like this;</p><pre>public class Test1 {<br>    @Test<br>    public void test1() {<br>        WebDriver driver = Driver.getDriver(Browsers.EDGE);<br>        driver.get(&quot;https://google.com&quot;);<br>    }<br><br>    @Test<br>    public void test2() {<br>        WebDriver driver = Driver.getDriver(Browsers.EDGE);<br>        driver.get(&quot;https://yahoo.com&quot;);<br>    }<br><br><br>}</pre><p>And your Driver class do not have if condition;</p><pre><br><br>public class Driver {<br><br>    private static WebDriver driver;<br><br>    public static WebDriver getDriver() {<br>        return getDriver(Browsers.CHROME);<br>    }<br><br>    public static WebDriver getDriver(Browsers browser) {<br><br>            switch (browser) {<br>//we do not have if statement here<br>                case EDGE -&gt; {<br>                    WebDriverManager.edgedriver().setup();<br>                    driver = new EdgeDriver();<br>                    driver.manage().window().maximize();<br>                }<br>                case FIREFOX -&gt; {<br>                    WebDriverManager.firefoxdriver().setup();<br>                    driver = new FirefoxDriver();<br>                    driver.manage().window().maximize();<br>                }<br>                case SAFARI -&gt; {<br>                    WebDriverManager.safaridriver().setup();<br>                    driver = new SafariDriver();<br>                    driver.manage().window().maximize();<br>                }<br>                default -&gt; {<br>                    WebDriverManager.chromedriver().setup();<br>                    driver = new ChromeDriver();<br>                    driver.manage().window().maximize();<br>                }<br>            }<br>        return driver;<br>    }<br>}</pre><p>In this case, It will create 2 instances of EDGE driver, because everytime you recall it, it recreates the new driver without checking if already one driver exists.</p><blockquote>chatGPT: The if statement is a safeguard to prevent unnecessary reinitialization of the driver if it is already been created. If the driver is null, it means that there’s no active WebDriver instance available.</blockquote><h4>Q: Why is ENUM (Browsers) class is used instead of Strings?</h4><p><strong>A: </strong>Because it prevents the failures that might happen with a string. First lets understand the beauty of ENUM classes.</p><blockquote>chatGPT: ENUMs make your code more readable, less error-prone, and easier to understand because they give meaningful names to possible values. They also restrict the variable to only hold one of the specified values, which helps catch mistakes early and makes your code more robust.</blockquote><p>In our case ENUM class looks like this;</p><pre>public enum Browsers {<br><br>    CHROME,<br>    EDGE,<br>    FIREFOX,<br>    SAFARI;<br>}</pre><p>If you use a string method, you are giving yourself an oppourtunitity to do things wrong. Like this;</p><pre>@Test<br>    public void test2() {<br>        WebDriver driver = Driver.getDriver(&quot;egde&quot;);<br>        driver.get(&quot;https://yahoo.com&quot;);<br>    }</pre><p>When you execute it, it will give an error and waste your time. So instead of having this issue, ENUM allows you to write only it’s variables, see the below ss;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LHxUx_dCsMwcpiUSQg7CsQ.png" /><figcaption>See how easy it is to type edge?</figcaption></figure><h4>Q: Why do i have to initialize my driver instance with “private” access modifier?</h4><p><strong>A: </strong>Because, when coding especially with Java, you should be implementing OOP concepts in your code whenever it is possible. This OOP concept used here called <a href="https://medium.com/@hasanozyer06/oop-concepts-encapsulation-aced12834419">Encapsulation</a>(My explanation of it is here!). You are preventing yourself or others inside of your project from accessing this driver and changing it to something else. This variable must only be used here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/0*qkELTm3CckiAUOG3.png" /><figcaption>this was the only meme i found about private i m sorry :{</figcaption></figure><h4>Q: Why it has be static bro?? I do not get this why it can’t be just normal…</h4><p><strong>A: </strong>Ok little bro, i think i will explain this with an example that taught me how <strong>static </strong>works.</p><p>Below i have a BaseClass with a method called <strong>getnum(); </strong>When <strong>this </strong>method is called from another class, it will generate a value between 0–10.</p><pre>public class BaseClass {<br><br>    protected int i;<br><br>    {<br>        i = new Random().nextInt(10);<br>    }<br><br>    protected int getNum() {<br>        return i;<br>    }<br>}</pre><p>Now i have a BaseStatic class with <strong>static </strong>keyword, this is the same class as above, it just has a static keyword in it.</p><pre>public class BaseStatic {<br>    static int i;<br><br>    static {<br>        i = new Random().nextInt(10);<br>    }<br><br>    public static int getNum(){<br>        return i;<br>    }<br>}</pre><p>Now let’s say i have two classes that is called Test1 and Test2, and both of them extends the BaseClass and prints their randomly generated <strong>i</strong> value.</p><pre>public class Test1 extends BaseClass{<br><br>    public void test01(){<br>        System.out.println(getNum());<br>    }<br>}</pre><pre>public class Test2 extends BaseClass{<br><br>    public void test02(){<br>        System.out.println(getNum());<br>    }<br>}</pre><p>Now i will have a MainApp class that initalizes variable from their extended class and access the method;</p><pre>public static void main(String[] args) {<br><br>        Test1 t1 = new Test1();<br>        Test2 t2 = new Test2();<br><br>        System.out.println(&quot;Test1 Value = &quot; + t1.getNum());<br>        System.out.println(&quot;Static Value = &quot; + BaseStatic.getNum());<br>        System.out.println(&quot;Test2 Value = &quot; + t2.getNum());<br>        System.out.println(&quot;Static Value = &quot; + BaseStatic.getNum());<br><br><br>    }</pre><p>Here i created t1 and t2 variables(they both extend the same class remember) and a static initialization of BaseStatic.getNum(); method.</p><p>Now When i execute it, let’s see the results;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p_8mZtbDPcp6E6g6JCYyeQ.png" /><figcaption>The static variable stays the same when accessed repeteadly.</figcaption></figure><p>In this example, we have seen that static variable can only be initalized once. Whenever you access it/recall it again, it will return the first created value.</p><p>Switch back to Drivers, when initialized with <strong>static, </strong>the driver is going to be generated once, and continue its journey from another tests when accessed again and again.</p><p>To sum up, i think i covered all of the questions i had in mind, if you have a better solutions than the one i have, please tell me. I would be more than happy to learn more effective and productive things in this field.</p><p>Connect me on: <a href="https://www.linkedin.com/in/hasan-ozyer/">https://www.linkedin.com/in/hasan-ozyer/</a></p><p>My Github Profile: <a href="https://github.com/hasanozye">https://github.com/hasanozye</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faf43e8ddfbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Selenium Wait, Implicit and Explicit Waits]]></title>
            <link>https://hasanozyer06.medium.com/selenium-wait-implicit-and-explicit-waits-a6d2ddf2ef2f?source=rss-846b2e20005a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6d2ddf2ef2f</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[selenium-test-automation]]></category>
            <category><![CDATA[selenium]]></category>
            <dc:creator><![CDATA[Hasan Ozyer]]></dc:creator>
            <pubDate>Wed, 19 Jul 2023 14:27:05 GMT</pubDate>
            <atom:updated>2023-07-19T14:27:05.355Z</atom:updated>
            <content:encoded><![CDATA[<p>Today i will try to Explain the What is Implicit wait, What is Explicit wait and their difference from each other. Let’s first start with why there was a need for these Waits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h2y0krFJbk5MdKup.png" /></figure><p>If you are like me, When you try to automate a certain web application, you might have already faced the problem that caused these methods/classes to be created. It is the Synchronization Problem.</p><h3>💡 What is <strong>Synchronization Problem?</strong></h3><p>Let’s say you have written multiple lines of code for an automation script. You are automating the amazon’s official site for shopping. You entered the landing page, you automated it, you went in to another page etc.</p><p>When you try to execute your code, your selenium automation script will be a lot faster than response of your application most of the times. Especially now in Selenium 4, WebDriver APIs adopt the W3C standardization. Since major browser drivers such as geckodriver, chromedriver, etc. , follow the W3C standard, the WebDriver in Selenium 4 will directly communicate with the web browser. So it has gotten a lot faster than it used to be.</p><p>So there will not be balance between your automation java script and your application. Most of the times your automation will be a lot faster than your application’s reponse. So that is one of the reasons that your automation script will definitely fail sometimes. Because of the element will not be available by the time. This is a synchronization problem. To solve this problem we have multiple types of waits available in selenium.</p><ul><li>Thread.sleep(MS)</li><li>Implicit Wait</li><li>Explicit Wait</li><li>Fluent Wait</li></ul><h3><strong>💡 Thread.sleep(MS)</strong></h3><p>❗ This sleep belongs to Java. This should not be confused with an elementWait, It stops the Java execution. It is advised not to use this in Automation because it completly stops the java code.</p><h3><strong>💡 Implicit Wait</strong></h3><p>❗ Selenium waits until driver.findElement(); finds an element</p><p>❗ It Belongs to driver, it is defined in driver. It is defined once, works for every element. It looks like this;</p><ul><li>driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(20));</li></ul><p>❗ It waits until the element is present (**presence**) With a given amount of time(In this case, it is 20 Sec)</p><p>❗ In this time period within every 500 milisecond it searches for the element.</p><ul><li>If it finds the element it continues without giving error.</li><li>If it could not find the element within given tamount of time, it throws error.</li></ul><h3><strong>💡 Explicit Wait</strong></h3><p>❗ It is used for spesificially every element situations.</p><p>❗ It is defined seperately as ``WebDriverWait wait;``</p><p>❗ It is used with WebElement or Locator (By).</p><p>❗ It is used for the cases like below;</p><ul><li>visibility</li><li>clickability</li><li>attribute</li><li>invisibility</li><li>presence</li><li>elements size</li><li>….</li></ul><p>❗ The definement;</p><p>WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));<br>WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id(“id”)));<br>element.click();</p><p>❗ The examples for Explicit wait;</p><ul><li>ExpectedConditions.presenceOfElementLocated();</li><li>ExpectedConditions.presenceOfAllElementsLocatedBy();</li><li>ExpectedConditions.visibilityOf();</li><li>ExpectedConditions.visibilityOfAllElementsLocatedBy();</li><li>ExpectedConditions.visibilityOfAllElements();</li><li>ExpectedConditions.elementToBeClickable();</li><li>ExpectedConditions.elementToBeClickable();</li><li>ExpectedConditions.invisibilityOfElementLocated();</li><li>ExpectedConditions.invisibilityOf();</li><li>ExpectedConditions.alertIsPresent();</li><li>ExpectedConditions.attributeContains();</li><li>ExpectedConditions.attributeContains();</li><li>ExpectedConditions.attributeToBe();</li><li>ExpectedConditions.attributeToBe();</li><li>ExpectedConditions.elementToBeSelected();</li><li>ExpectedConditions.elementToBeSelected();</li><li>ExpectedConditions.numberOfElementsToBe();</li><li>ExpectedConditions.numberOfElementsToBeLessThan();</li><li>ExpectedConditions.numberOfElementsToBeMoreThan();</li><li>ExpectedConditions.numberOfWindowsToBe();</li><li>ExpectedConditions.titleIs();</li><li>ExpectedConditions.attributeToBeNotEmpty();</li><li>ExpectedConditions.invisibilityOfElementWithText();</li><li>ExpectedConditions.textMatches();</li><li>ExpectedConditions.textToBe();</li><li>ExpectedConditions.textToBePresentInElement();</li><li>ExpectedConditions.textToBePresentInElementLocated();</li><li>ExpectedConditions.titleContains();</li></ul><p>❗ An example for ExplicitWait(Below methods does the same job);</p><pre>public void click(By locator){<br>        wait.until(ExpectedConditions.elementToBeClickable(locator)).click();<br>    }</pre><pre>private void click(By locator){<br>        wait.until(driver -&gt; {<br>            try {<br>                driver.findElement(locator).click();<br>                return true;<br>            }catch (Exception e){<br>                return false;<br>            }<br>        });<br>    }</pre><ul><li>The “ExpectedConditions” is a predicate within the “wain.until();’’ that returns true or false.</li><li>In first click() method, “ExpectedConditions” is used</li><li>In second click() method, “try-catch” is used within the “lambda” method, so unti l“driver.findElement” will return true within the given amount of time, this process will repeat itself.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6d2ddf2ef2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginner Friendly Maven Explanation.]]></title>
            <link>https://hasanozyer06.medium.com/beginner-friendly-maven-explanation-d33f3f2d7d79?source=rss-846b2e20005a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d33f3f2d7d79</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[sdet-training]]></category>
            <dc:creator><![CDATA[Hasan Ozyer]]></dc:creator>
            <pubDate>Fri, 30 Jun 2023 09:18:49 GMT</pubDate>
            <atom:updated>2023-06-30T09:18:49.632Z</atom:updated>
            <content:encoded><![CDATA[<p>Alright, Maven seems to play a core role in terms of a project structure so i am here to explain therefore understand what the hell is going on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*z5bTVyIv8hRcnOB4hToU9w.jpeg" /><figcaption>In a Nutshell</figcaption></figure><p><strong>What is it?</strong></p><p><a href="https://maven.apache.org/what-is-maven.html#introduction">“Maven, a Yiddish word meaning <em>accumulator of knowledge</em>, began as an attempt to simplify the build processes in the Jakarta Turbine project.</a>” according to their offical website.</p><p><strong>A Project Without Maven?!?!?!</strong></p><p>📌First it would be better to understand what did maven solved, so that i could understand what led Maven to become the most popular choice while creating projects in Java and C#.</p><p>📌Let’s assume you want to create a Java project Hasan. To complete this project you need a third party libraries. Without further chit-chatting, i will show you step by step how we implement a Selenium JAR file without using Maven. So you can see it yourself.</p><p>1-) Create a Normal JAVA Project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tf69bAftohQZ646Lf2oflA.png" /></figure><p>2-) If you write down a Scanner object and initialize it, it will turn red. Because you didn’t imported it yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJmJvqxE9-5sdkH9LuNDuQ.png" /></figure><p>3-) Now when you import it the redness will be gone. BTW, this one was built-in package within the Java. You just imported it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYx3uMUXLqaB3PnYBrxa3Q.png" /></figure><p>4-) Now, imagine Selenium. Because it is a third party, it is not a pre-built feature like java.util.* library, so first you have to find the official website and download the JAR file to our External Libraries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VdkwMCVmyZw4w6Xka41kjA.png" /></figure><p>5-) You download it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aVbyI--A9JsRoia5sjj0YQ.png" /></figure><p>6-) Now go to your IntelliJ and press Ctrl+Alt+Shift+S to open your Project Structure. From there, click on Libraries tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w-kPqkP20WKflWZ7UrczdQ.png" /></figure><p>7-) Click on Plus icon and select Java.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cxs3kwO8kGNDtyUb56XZPw.png" /></figure><p>8-) Now, find your newly downloaded Selenium Jar folder and import them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UpOPa_9kwt80yi3b_J9qlA.png" /></figure><p>9-) Sound like fun! now you downloaded the JAR file, you can access to import it to your Brand new Java project!!!</p><p>🔑 Now, snap back to reality, not only two or three, there are so many types of libraries which we need to complete a project. To do this, we need to go to each and every website, and from there, we need to download the JAR files, then we need to attach them to your project. These are Manuel processes without Maven.</p><p>🔑 Apart from this, let’s suppose you added the third party libraries and attached them to the project, let’s say you want to update your project to the latest version, so you have to get all of the latest versions of third party libraries. What you’ll do is, let me tell you what you’ll do, you have to remove all of the existing libraries from you project, then you have to do the first part again, then add them to your project. This is also continues process.</p><p>🔑 In conclusion, There are the two major problems we face if we dont use Maven. First thing is we have to download all the third party libraries from different websites and add them to our project manually. The second thing is upgrades. If you want to upgrade all the third party libraries into latest versions, you need to remove all th existing ones and add the latest ones.</p><p><strong>A Project With Maven?!?!?!</strong></p><p>📌Maven is basically a build tool. Whenever you create a Maven Project, you will always get a <strong>pom.xml </strong>file that is created automatically for you.</p><p>📌Maven will give you project structure. By default, whatever the fold structure we will need in the project, it will be provided by the maven.</p><p>📌 It will provide you with a pom.xml file, which we will add <strong>dependincies</strong> and <strong>plugins</strong>. When you have dependincies in the pom.xml, it will automatically download all the third party libraries into your project. That is the main advantage of dependincies. Plugins are basically all the configuration things realted to the project like compilig the project and runnig the project etc.</p><p>📌 You can generate some documentation that is related to your project.</p><p>📌 You can package the project which is another powerful tool that maven provides. Packaging means, once you have done with your project, you do not provide all the hard-code project to your client. That would be not very pleasant. So you need to package it and submit it to your client .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d33f3f2d7d79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOP Concepts, Polymorphism]]></title>
            <link>https://hasanozyer06.medium.com/oop-concepts-polymorphism-1c2970535803?source=rss-846b2e20005a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c2970535803</guid>
            <category><![CDATA[new-author]]></category>
            <category><![CDATA[software-test-automation]]></category>
            <category><![CDATA[madagascar]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[idk-what-im-doing]]></category>
            <dc:creator><![CDATA[Hasan Ozyer]]></dc:creator>
            <pubDate>Sun, 25 Jun 2023 17:06:31 GMT</pubDate>
            <atom:updated>2023-06-25T17:06:31.869Z</atom:updated>
            <content:encoded><![CDATA[<p>Alright, lets teach me some Polymorphism! I will continue my journey with explaining with analogies to get better grasp of the topic, and also my flaws about this topic. Today I will be discussing about Polymorphism using Feynman Technique, which is the base motivation of my journey here on medium.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*PA_aKcBKuycbI90OctnkVA.jpeg" /><figcaption>Mr. Feynman</figcaption></figure><p>Let’s start with breaking down the concept of polymorphism.</p><p>▶️ <strong>Poly-morphism = Many shapes-forms.</strong></p><p>I will try to mix some coding with the storytelling, in this way i think i would learn better.</p><p>Now Mr Hassen, once upon a time, let’s say you are in the wild nature of Madagascar..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*yTbSm82CRp-UVKZfAVmkGw.jpeg" /><figcaption>Penguings visiting Antartica(Madagascar)</figcaption></figure><p>Imagine an area where various of animals are hanging out, hunting and chilling in a Zoo. The ZooKeepers wants from you to write a Software Program to teach you how polymorphism works. You luckyyy fellla!!!</p><p>💡So you sit tight, and began thinking about what are the common functionalities (or perhaps, methods) that animals are doing? Maybe i can just start by eating!</p><p>So first i can create an Animal class to inherit the same behaviours to sub-classes.</p><pre><br><br>package Homeworks.polypoly;<br><br>public class Animal {<br><br>    public void eat() {<br>        System.out.println(&quot;The animal is eating.&quot;);<br>    }<br><br>}</pre><p>Good! Now, the zookeeper with the calm of his voice, asking me if i could create subclasses for different animal species that should inherit from the Animal class and override their own specific eating methods as well:</p><p>💡 a Leopar Class could extend the animal class and use its suitable method, eat!</p><pre>package Homeworks.polypoly;<br><br>public class Leopar extends Animal {<br><br>    @Override<br>    public void eat(){<br>        System.out.println(&quot;the Leopard is enjoying a meaty meatty meal.&quot;);<br>    }<br><br>}<br>// Leopar specific method</pre><p>💡Koala!</p><pre>package Homeworks.polypoly;<br><br>public class Koala extends Animal{<br>    @Override<br>    public void eat() {<br>        System.out.println(&quot; the Koala is taking a nap while laying on the tree.&quot;);<br>    }<br>}<br>// Koala specific method</pre><p>💡Penguins of the Madagascar!</p><pre>package Homeworks.polypoly;<br><br>public class Penguin extends Animal {<br><br>    @Override<br>    public void eat() {<br>        System.out.println(&quot;The penguins killed the humans and ate their livers.&quot;);<br>    }<br>}<br>// Penguin specific method</pre><p>(<a href="https://www.youtube.com/watch?v=RoTJLSWAOUc&amp;ab_channel=PotatoDoesStuff">Just kiddin doll, the ppl are fine 🐧🐧🐧🐧</a>)</p><p>I don’t think the Zookeepers get my joke but, oh well it is what it is.</p><p>Then the ZooKeeper asked me calmly that if i could create a main class to execute my classes and objects!</p><p>I said sure, and created new instances for each of the classes.</p><pre>package Homeworks.polypoly;<br><br>public class MainApp {<br>    public static void main(String[] args) {<br>        Animal leopar = new Leopar();<br>        Animal koala = new Koala();<br>        Animal penguin = new Penguin();<br><br>        leopar.eat();<br>        koala.eat();<br>        penguin.eat();<br><br>    }<br>// Notice that each time i am only using one and only method,<br>// &quot;eat&quot; for all the animals..<br>}</pre><p>And the Result iiisss:</p><pre>the Leopard is enjoying a meaty meatty meal.<br>the Koala is taking a nap while laying on the tree.<br>The penguins killed the humans and ate their livers.</pre><p>💡In this example, the parent class which is Animal, contains the common method which can be shared by all animals.</p><p>The subclasses (Lion, Koala and Penguin) inherit this method from the parent class which is Animal class and provide their own way of doing those behaviours.</p><p>The zookeepers can create objects of various animal species, consider them as instances of the Animal class, and use the standard method (eat) on them while still taking advantage of the unique behaviors specified in the subclasses by utilizing inheritance and polymorphism.</p><p>Congrats Mr. Hassen! they say, you are officialy began to understand Polymorphism!!!!!!</p><p>HURREY!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c2970535803" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOP Concepts, Encapsulation.]]></title>
            <link>https://hasanozyer06.medium.com/oop-concepts-encapsulation-aced12834419?source=rss-846b2e20005a------2</link>
            <guid isPermaLink="false">https://medium.com/p/aced12834419</guid>
            <category><![CDATA[sdet]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Hasan Ozyer]]></dc:creator>
            <pubDate>Tue, 20 Jun 2023 10:20:26 GMT</pubDate>
            <atom:updated>2023-06-20T10:20:26.356Z</atom:updated>
            <content:encoded><![CDATA[<p>Encapsulation in Java. It is one of the most essential concept in OOP. Encapsulation allows code to be organized into modular and self-contained parts, which provides benefits such as data security, code reuse, and simpler maintenance. However, this definition does not matter because i strongly stand by the saying of Albert Einstein; “You do not really understand something unless you can explain it to your grandmother.” So, listen grandma, i am about to explain you what does encapsulation means. So sit tight, and read carefully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*Kk2rRn5raKMVeVznJUJ3Gw.jpeg" /><figcaption>Albert</figcaption></figure><h3>For My Grandma.</h3><p>So Grandma. Let’s not look at young and handsome Einstein plz, he died years ago. Getting back to our topic, <strong>ENCAPSULATION. </strong>I always like to explain with examples first. Let’s think about the real world.</p><p>Listen grandma, You know atm machines right?</p><p>💡 The ATM machine is covered with layers of security, someone who does not have your credit card can not <strong>access</strong> to your assets.</p><p>💡 It is protected from outsiders to came and take your money without your <strong>permission.</strong></p><p>💡 Your money is packaged and encapsulated safely.</p><p>💡 You removed the access of others to your money. It is hidden.</p><p>So now, think grandma! think outside the box! why do they cover your valuable money with layers of security? Why are they doing that?!?</p><p>There is various answers to this question dear grandma, but i see that you already napping in front of me so, i am just gonna move on to explain to my audience. Which there are none so i am just gonna pretened i have a bunch of Software Developers or Software QA Engineers following me and reading my stories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*f19tWHatgraree1zOK0y-w.png" /><figcaption>Eugene.</figcaption></figure><h3>For You, SDET wannabe(s) Hasan(s).</h3><p>Alright coding world, let’s teach some encapsulation to me. While writing code, if you are like me, as a beginner you write everything in <strong>public. </strong>Which means that everything can be accessed from someone else in the same project.</p><p>Yea, so what is the problem with that? the junior me says.</p><p>Have you ever heard of spaghetti code? i respond, if you always write you codes with no encapsulation, your code will probably be hard to read, hard to trace and therefore hard to track. Just a big load of <strong>SPAGHETTI.</strong></p><p>Now, i will prove to myself that grandma saving her money in atm machine relates to encapsulation in Java. Because why not.</p><p>Now Hasan, think that Grandma putting her money in an ATM machine. The ATM machine can be viewed as an object that <em>encapsulates </em>both data and methods for dealing with your Grandma’s money.</p><p>▶️ <strong>Encapsulation of The Data: </strong>There are private variables or data fields inside the ATM machine that hold your Grandma’s information, such as her account number, PIN, and current balance. Now Hasan, These variables are encapsulated, which means they are protected from outside access (e.g. you) and can only be accessed or modified via predefined methods.</p><p>▶️ <strong>Encapsulation of The Method:</strong> Hasan, the ATM machine provides a wide range of functions (methods) to engage with your grandmother’s money. For example, a “withdrawMoney” function (method) may receive an amount as input and subtract it from your Grandma’s account balance. likewise, a “deposit” function that adds money to her account may exist. These methods are wrapped within the ATM object, which means that they can only be accessible through a specific interactions that ATM machine provides( maybe API’s).</p><p>💡<strong>Conclusion 1:</strong> Grandma’s money has been protected by encapsulating her money (data) within the ATM object. The private data fields cannot be accessed or changed directly from outside of the object, guaranteeing the security of her account information. The ATM object’s functions enable Grandma to interact with her money in a controlled and secure manner.</p><p>💡<strong>Conclusion 2: </strong>Mr. Hasan, there is also another aspect of this, which is that Encapsulation also allows for code reusability. The ATM object can be reused in multiple contexts or not just by your granny, but also from different users as long as the established <em>interface</em> is followed. It also simplifies maintenance since any modifications or updates that are required may be done within the encapsulated object without impacting the external code that your granny or other users that uses the ATM machine.</p><p>Overall, in this example, Mr. Hasan, you tried to explain yourself that encapsulation shows how your Grandma’s money are bundled together within the ATM object, which in this case, points towards to encapsulation, giving security, reusability, and maintainability; To the money, and to your code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aced12834419" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOP Concepts, Abstraction.]]></title>
            <link>https://hasanozyer06.medium.com/oop-concepts-abstraction-9f94afd909be?source=rss-846b2e20005a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f94afd909be</guid>
            <category><![CDATA[newprogrammer]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[my-journey-in-tech]]></category>
            <dc:creator><![CDATA[Hasan Ozyer]]></dc:creator>
            <pubDate>Sat, 03 Jun 2023 05:56:14 GMT</pubDate>
            <atom:updated>2023-06-03T12:16:37.952Z</atom:updated>
            <content:encoded><![CDATA[<p>This is my programming diary for future myself. My opinions, my learning and my adventures. To do not forget where i have come from. I am a huge fan of teaching, and i strongly stand for Bernard Shaw saying in his 1905 stage play Man and Superman; <strong>“Those who can, do; those who can’t, teach.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*TtcjuBf9XuZKuC4VVhJsIQ.jpeg" /><figcaption>Daaamn Shawn, lookin sharp there G!</figcaption></figure><p>I think i am the Mastermind and i know programming concepts such as OOP, but when i try to tell and teach about it, i realize that i do not know shit and therefore here i am. This is for me, to understand what are my gaps and fill them by trying to teach to my 0 viewer audience.</p><p>OOP stands for Object-Oriented-Programming. I think you heard this term countless times before so i am just going to skip to my opinions and explain what it is, so i can learn better. The first and very important concept of OOP is <strong>ABSTRACTION. </strong>“What is abstraction? oh mighty Mr. Hasan please explain, Your opinions matter a lot to programmers.” i hear you say.</p><p>OK, OK. slow down there buddy, allow me to explain.</p><p>Before jumping into programming perspective, let’s talk about real world scenarios. For example, let’s say you are young and crazy, maybe a little bit reckless, and you want to be a driver. That is fine, but, there is one twist. You live in the Banana Republic, and there is no concept called Abstraction. Which means that if you want to be a driver, first you must learn how car works in all terms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*_hoOsg6xliMG6S4ApTY2hQ.png" /><figcaption>YOU SHALL NOT DRIVE!!!</figcaption></figure><p>But, but Mr. Hasan! How can i learn all of this?!!? I just want to drive my car man! I do not care about this shit! What is this? i hear you say.</p><p>With laughing like a psycho maniac, i tell you, well well my little butterfly… In this Banana Republic, we do not implement abstraction in our daily lives. In this spesific case, this means that you <strong>MUST </strong>learn all of these concepts…</p><p>I think you would look for to escape from that country immediately. The abstraction basically says that if you are driving a car, you do not need to learn and care about how dynamics work, how electric systems works etc… you just need an basic interface like steering wheel and gas, break pedals to drive a car. And that should be it.</p><p>Implementing this method to programming can be like this;</p><p>Every little block of code or function or method that you write, should do bunch of stuff as everyone expects, <strong>BUT </strong>that stuff is relatively unimportant to the user who uses your function or method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*haBLtPyu_VrL6s0OlH7ZfA.png" /><figcaption>Abstraction simply means you are hiding stuff away from the user or programmer.</figcaption></figure><p>In your daily software development work, let’s say you work in a team. Your job is to provide the data that is needed for that spesific job, and other programmers job is to display the data to their customers. They say to you that please get this data, and you say ok! no problem mate, i can get it. And you go to wherever and get the data to them.</p><p>Now, the others do not care about how you get the data. They just want to say to you; “<strong>Get me some Data”(Input) </strong>and the rest is up to you. However you do it, it does not matter to them (It’s crucial world we live in, i know), that is the whole point.</p><p>So the beautiful aspect of Abstraction comes into play here, when you do work like this, everything becomes kinda easy and module-like. You can Think of it as a Lego blocks. Every Lego block can communicate with each other in terms of input-output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*Xq7PqH0Aa4V8wGGgPQUhnQ.png" /><figcaption>The comminication is easy, i just know how to input and that is what matters to me.</figcaption></figure><p>In programming and especially in OOP, you should make other people lives easy, by implementing this method to all of your programming life. Your aim should be hiding complexity from users and show them only relevant information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f94afd909be" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>