<?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 Sima Alkan Suğur on Medium]]></title>
        <description><![CDATA[Stories by Sima Alkan Suğur on Medium]]></description>
        <link>https://medium.com/@simaalkan?source=rss-6dfd776abac2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pgJk9QmoUxBSE_oPrCQxLw.jpeg</url>
            <title>Stories by Sima Alkan Suğur on Medium</title>
            <link>https://medium.com/@simaalkan?source=rss-6dfd776abac2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 06:15:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simaalkan/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[JMeter Performance Testing Practice II]]></title>
            <link>https://medium.com/@simaalkan/jmeter-performance-testing-practice-ii-7afe0c8fcfb2?source=rss-6dfd776abac2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7afe0c8fcfb2</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[jmeter]]></category>
            <category><![CDATA[performance-testing]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[load-testing]]></category>
            <dc:creator><![CDATA[Sima Alkan Suğur]]></dc:creator>
            <pubDate>Fri, 17 Jan 2025 20:04:31 GMT</pubDate>
            <atom:updated>2025-01-17T21:45:24.727Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the second session of JMeter practice! You can check out the <a href="https://medium.com/@simaalkan/jmeter-performance-testing-with-harry-potter-api-504365c5e60a">first part</a> here.</p><p>In this session, I will cover more detailed scenarios.</p><p>In the first scenario, using the same PotterDB API, I will demonstrate the use of <strong>HTTP Request Defaults</strong> and <strong>dynamic inputs</strong> to simulate searching for characters while extracting information from a <strong>CSV data set</strong>.</p><p>In the second scenario, I will utilize the MET Museum API to practice the following:</p><ul><li>Using a <strong>JSR223 PostProcessor</strong> with Groovy scripting.</li><li>Configuring a <strong>JSON Extractor</strong> to store response data as a variable for later use.</li><li>Implementing a <strong>ForEach Controller</strong> to loop through dynamic data.</li><li>Generating HTML and CSV reports on Mac.</li><li>Utilizing Test Script Recorder on Firefox browser (with proxy and SSL certificate settings).</li></ul><h3>Scenario #1</h3><p>Dynamically retrieving information from a CSV list of character names.</p><h4>HTTP Request Defaults:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*89-REsyGHfHAyAhT3Lmxng.png" /><figcaption><strong>Adding Default Base URL to Test Plan</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xgRNIRiJNgl3IuNxcN95GA.png" /><figcaption><strong>Ensuring all HTTP requests automatically use this base URL.</strong></figcaption></figure><h4><strong>CSV Data Set:</strong></h4><p>Created a CSV file named filters.csv and placed it in the same directory as the test plan (.jmx) file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*TM-aoDU9CfiDCkOCoP11bQ.png" /><figcaption><strong>CSV file content</strong></figcaption></figure><p><strong>Configuration:</strong></p><p>Number of Threads (users): 1.<br>Loop Count: Number of rows in CSV (3 in this case)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BQvueg6Ls9cXcCwvfZ2_Fw.png" /><figcaption><strong>Adding a CSV Data Set Config</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z04AbRcvGyiQl_3EhXd3KQ.png" /><figcaption><strong>Typing file name</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lD1GGIIbPr57zKUX6zpmRw.png" /><figcaption><strong>Setting HTTP Request</strong></figcaption></figure><p>This request will filter characters data by the character names on the CSV file.</p><p><strong>Checking Results in View Results Tree Listener:</strong><br>The test retrieves information for each character listed in the CSV file.<br>For example: <a href="https://api.potterdb.com/v1/characters?filter[name_cont]=Hermione.">https://api.potterdb.com/v1/characters?filter[name_cont]=Hermione</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_q4qHMJkIrPTrRc_MTgE3g.png" /><figcaption><strong>Harry as the first value in CSV file</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*94u006MS1T7rwHcTJ_rLYg.png" /><figcaption><strong>Hermione as the second value in CSV file</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qv4IaW_Gza-SN96h1Jh2Ow.png" /><figcaption><strong>Ron as the third value in CSV file</strong></figcaption></figure><p>A CSV file helps to simulate a list of inputs (filters, search terms, user credentials, product IDs etc.) for each virtual user. By using different values for each request, we can test real world scenarios. In this way, test data can be updated easily.</p><h3>Scenario #2</h3><p>Utilizing JSON Extractor, ForEach Controller, andJSR223 PostProcessor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xrw20va4b8EWHMAxCdMd0w.png" /><figcaption><strong>Setting default protocol and server name for all HTTP Requests</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*14qXEINUCEWWpZOxiDgdpw.png" /><figcaption><strong>Setting HTTP Request to get Van Gogh works from API</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YgRiHwY1vi1rNfqTUyvRcA.png" /><figcaption><strong>Van Gogh objects IDs Result</strong></figcaption></figure><h4><strong>JSON Extractor:</strong></h4><p>We will extract the objectID data for Van Gogh&#39;s works from the response of the first HTTP Request. This objectID will be stored as variables for later use in the second HTTP Requests to retrieve detailed information about each specific object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P19bYOfeVCiwh7UvhYH9vQ.png" /><figcaption><strong>Configurations for JSON Extractor</strong></figcaption></figure><p><strong>Configurations:</strong></p><ul><li><strong>Name of created variable</strong>: objectID_ to be able to name as _1,_2,_3,..</li><li><strong>JSON Path Expression</strong>: $.objectIDs[*] to extract all IDs.</li><li><strong>Match No.</strong>: -1 to capture all ID matches.</li></ul><h4><strong>ForEach Logic Controller:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u35C5_58sdpN5KC24VCBQA.png" /><figcaption><strong>Adding ForEach</strong></figcaption></figure><p>We will add a loop with ForEach Controller and limit it to the first 5 objectIDs, as there are 475 results for Van Gogh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B30aq35ANMLLM9yYmpTWXQ.png" /><figcaption><strong>Configurations for ForEach logic</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6F13ty6XOY80cHweajFjdw.png" /><figcaption><strong>Adding another HTTP Request</strong></figcaption></figure><p>With the second request under the ForEach<strong> </strong>logic, the ${objectID} variable is dynamically replaced during each iteration of the loop. The value is the object ID extracted from the first request, where we searched for Van Gogh. This second request gets the details of the first 5 Van Gogh works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YgNqpwsVxjU125uLVByJw.png" /><figcaption><strong>Result for the first object ID</strong></figcaption></figure><h4>JSR223 PostProcessor:</h4><p>We will execute a custom script after the HTTP request. It allows us to extract, manipulate or store data <em>(e.g. JSON, XML, HTML)</em> from the response. It supports multiple scripting languages but Groovy is the common option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCZxtp81__B74FLUYEKWAQ.png" /><figcaption><strong>Created a mock request to display specific extracted info</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yBHEtswfxEE7-3W6dobk1A.png" /><figcaption><strong>Adding the Post Processor to the Mock request</strong></figcaption></figure><p>Extracting the creditLine using the Groovy language and displaying it as a separate result in a mock response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UdfibuIdsYRV1ysnAIPJZg.png" /><figcaption><strong>Post Processor to get creditLine</strong></figcaption></figure><pre>import groovy.json.JsonSlurper<br><br>// Get the response data from previous request<br>def responseData = prev.getResponseDataAsString()<br><br>//  Initializing the JsonSlurper object and Parse the JSON response<br>def jsonSlurper = new JsonSlurper()<br>def jsonResponse = jsonSlurper.parseText(responseData)<br><br>// Extract the creditLine from the parsed JSON response<br>def creditLine = jsonResponse.creditLine<br><br>// Store the creditLine value in a JMeter variable<br>vars.put(&quot;creditLine_&quot;, creditLine)<br><br>// Set the Response Data to only contain the creditLine value<br>prev.setResponseData(creditLine.getBytes())<br><br>// Log the creditLine value for debugging purposes<br>log.info(&quot;Extracted creditLine: &quot; + creditLine)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_VjkiUmYhOjRQXp3VBlumw.png" /><figcaption><strong>Result for the mock request, showing only the creditLine info</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*i-n8wxaOHAfooHcx9caHKQ.png" /><figcaption><strong>Opening Log Viewer</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Q5PTgtxmSs3gZP1pvgNTg.png" /><figcaption><strong>Checking log.info(“Extracted creditLine: “ + creditLine)</strong></figcaption></figure><p><strong>Write Results (from Listener) to a File:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ATPCf6gDiOHwSWYAQU9tPw.png" /><figcaption><strong>Adding Filename to Print Results (created as an empty csv before)</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DGdK2Ek42IWgeqee9ZM-uw.png" /><figcaption><strong>Checking printed csv file</strong></figcaption></figure><h4><strong>Generating HTML Report on Mac:</strong></h4><p>Create an empty folder in the directory where your .jmx files are located. Then, run the script in the Mac Terminal:</p><p>jmeter -n -t /path/to/your/test-plan.jmx -l /path/to/save/result.csv -e -o /path/to/save/report-folder</p><p>In my case, the command looks like this:<br>jmeter -n -t /Users/myusername/TestPlan.jmx -l /Users/myusername/Result.csv -e -o /Users/myusername/Reports</p><p>After running the script, the folder I created is filled with relevant files. By opening the index.html file, I can view the HTML report of the test results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NCdtFJXfHnwtRzCnZ4GNtw.png" /><figcaption><strong>HTML Report</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pa3TuwohYPbLt5dEq-ScaQ.png" /><figcaption><strong>Statistics Report</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QfbWTL4FQNqV2CXNI3bErQ.png" /><figcaption><strong>Report offers various charts</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7bk2DChVrsZqrce6VqwIA.png" /><figcaption><strong>Response Time Chart Example</strong></figcaption></figure><p>By opening theResult.csv file, I can view the table report of the test results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCHUQMWQ4IKisD3Fl-5vNA.png" /><figcaption>Result.csv</figcaption></figure><h4><strong>Reviewing a Report with Errors:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Yjfcee6GSX3DrxcGrNAuA.png" /><figcaption>Result3.csv file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwZUo7Kq1Nz1v3VObC5bWw.png" /><figcaption>index.html report</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HVXnpG0dg31BCzU5gBeDSg.png" /><figcaption>index.html report: statistics, errors</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYOMfQRJz713f3nCn0h2eg.png" /><figcaption><strong>index.html report: errors</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*twUYAmyV56shXTh1Vy3i6Q.png" /><figcaption><strong>index.html report: response time</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GeVUFOwr8v5CsqyaoyX8ig.png" /><figcaption><strong>index.html report: time vs threads</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ex8sBk1QAdGP3i8Cf4bnw.png" /><figcaption><strong>index.html report: response time distribution</strong></figcaption></figure><h4>Test Script Recorder:</h4><p>Recorder can help to capture real user scenarios and interactions on the browser. It automatically generates requests while browsing through the web application which speeds up test planning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jA6r3UgFQs_qtwh-KSo5XQ.png" /><figcaption><strong>Adding HTTP Recorder</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ta1_oXIHqYNoZlTnmai7nQ.png" /><figcaption><strong>Adding Recording Controller</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*89esgT3a96MSrEpt7odpNA.png" /><figcaption><strong>Named the controller after the link I will be testing on </strong><a href="https://www.metmuseum.org/art/collection"><strong>https://www.metmuseum.org/art/collection</strong></a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v5IIqD6mT-QvODdHIKNmfg.png" /><figcaption><strong>Port is 8888 and chosen the Target Controller</strong></figcaption></figure><p>Don’t forget to add the View Results Tree as a Listener.</p><p>I chose Firefox for testing and opened the jmeter.log file located in the folder where my .jmx test plan files are.</p><p>I searched for ‘bin’ inside the file to locate the bin folder and found the path on my computer as: /opt/homebrew/Cellar/jmeter/5.6.3/libexec/bin/proxyserver.jks.</p><p>Next, I opened Finder and pressed Command+Shift+G to navigate to the location of the certificate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oW4UjpvImQ7bLUh_0rKxZQ.png" /><figcaption><strong>JMeter Root Cerfiticate .crt file</strong></figcaption></figure><p><strong>Firefox Browser Settings</strong></p><p><strong>SSL Certificate Setting:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6h85A0vNtuiwngMFRqbtTg.png" /><figcaption><strong>Click View Certificates and Click to Import</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lYb0Zb2u2kmBNP3i7OLCIQ.png" /><figcaption><strong>Choose the Certificate file and Open</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M59aITMp5azWkBILrVxc6w.png" /><figcaption><strong>Select and OK</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9OyVHBGVb2-c7OdBT0STIw.png" /><figcaption><strong>See the Certificate added</strong></figcaption></figure><p><strong>Proxy Settings:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XL9iYXbMI33fEy2O46TZMQ.png" /><figcaption><strong>Click to Settings</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M6A2sD1OnVt5QTQoNeHHbw.png" /><figcaption><strong>Choose Manual, Enter 8888, write localhost, select the checkbox</strong></figcaption></figure><p>Now, Firefox is set up for testing and recording.<br>Click “Start” to begin recording:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JIRiWPDaq1t5QB4Z03QDjg.png" /><figcaption><strong>Entering transaction name</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6HBQUmM2zWjzGJdLmx__eg.png" /><figcaption><strong>Checking the European Paintings on the website, testing the links</strong></figcaption></figure><p>Click ‘Stop’ to end the recording once the test is complete.</p><p>The test logs can be found under the Recording Controller:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7em9JAkYgamwcy_hGRjXrg.png" /><figcaption>Results of the actions on the Firefox</figcaption></figure><p><strong>View Results Tree:</strong></p><p><strong>Different types of errors:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eKLDI7Vq_MLOEnbFt-HByQ.png" /><figcaption><strong>404 not found error</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4ki2L-uxhvPBUArwS9GUQ.png" /><figcaption><strong>invalid / missing error</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9xOlMsfh1LQU5cvwkHG5ww.png" /><figcaption><strong>Target server fails</strong></figcaption></figure><p><strong>Normal results:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0c7edNRhISGKq86D5rJlzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mqjpFDTg5sCDgV-LwTNTQw.png" /></figure><p>In the second part of my practice, I gained a deeper understanding of JMeter, exploring both built-in features and custom scripts to manage dynamic data, validate results and automate requests by recording the test on the browser.</p><p>I delved into more complex aspects, which led to more trial and error and required a greater time commitment. However, as tackling these challenges has made the information stick much better. I’m excited to continue learning and expanding my knowledge in the future.</p><p>Hopefully, it adds value to your learning journey as well!</p><p>Sources:</p><ul><li><a href="https://metmuseum.github.io/">Latest Updates</a></li><li><a href="https://potterdb.com/">Potter DB</a></li><li><a href="https://www.blazemeter.com/blog/jmeter-tutorial?source=post_page-----504365c5e60a--------------------------------">JMeter Tutorial: Getting Started With the Basics | BlazeMeter by Perforce</a></li><li><a href="https://jmeter.apache.org/">Apache JMeter™</a></li><li><a href="https://www.metmuseum.org/">The Metropolitan Museum of Art</a></li></ul><p><a href="https://www.youtube.com/watch?v=bTEtE9oyZzA">Recorder Certificate Help</a><br><a href="https://www.youtube.com/watch?v=SoW2pBak1_Q">Recorder Help</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7afe0c8fcfb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JMeter Performance Testing Practice]]></title>
            <link>https://medium.com/@simaalkan/jmeter-performance-testing-with-harry-potter-api-504365c5e60a?source=rss-6dfd776abac2------2</link>
            <guid isPermaLink="false">https://medium.com/p/504365c5e60a</guid>
            <category><![CDATA[load-testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[jmeter]]></category>
            <category><![CDATA[performance-testing]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Sima Alkan Suğur]]></dc:creator>
            <pubDate>Thu, 16 Jan 2025 02:46:40 GMT</pubDate>
            <atom:updated>2025-01-17T20:05:31.429Z</atom:updated>
            <content:encoded><![CDATA[<p>To keep my skills up to date while having fun, I decided to practice using Harry Potter-related data and found an open-source API for it.</p><p>I’ve had the opportunity to assist with performance testing using JMeter, but my goal is to expand my skills through hands-on experience.</p><p>I aim to use JMeter for practicing <strong>Performance Testing</strong>, including responsiveness, speed, stability, and scalability, focusing on:</p><ul><li><strong>Load testing</strong> (simulating anticipated user/transaction traffic)</li><li><strong>Stress testing</strong> (identifying the system’s breaking point)</li><li><strong>Scalability testing</strong> (assessing performance under increasing load)</li></ul><blockquote>As a fellow QA Tester, if you’re finding it hard to keep up with your personal growth practices, I’ve found that writing short blogs like this is a great way to track personal progress and remind myself of the technical steps.</blockquote><p>If you already have JMeter installed, you can skip to the “Start Testing with JMeter” section.</p><h3><strong>Install &amp; Setup on Mac (Java JDK, Homebrew, Apache JMeter)</strong></h3><p><em>(Check sources for detailed installing steps)</em></p><h4><strong>Installing Java JDK:</strong></h4><p>First things first, I personally use a Macbook Air M2. I installed the latest version of Java (JDK Development Kit 23.0.1) by <a href="https://www.oracle.com/java/technologies/downloads/#jdk23-mac">downloading</a> ‘ARM64 DMG Installer’ and completed the setup.</p><p>Checking Java version on Mac Terminal:</p><pre>java -version</pre><p>Getting JDK path for setting the JAVA_HOME environment variable by:</p><pre>/usr/libexec/java_home</pre><p>Response (Path):</p><pre>/Library/Java/JavaVirtualMachines/jdk-23.jdk/Contents/Home</pre><p>We need to create bash profile and to open nano editor file in the terminal. Then, add the JAVA_HOME environment variable:</p><pre>nano ~/.bash_profile</pre><pre>export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-23.jdk/Contents/Home</pre><p>To save and close the editor: press Ctrl + X, thenY (Yes), then Enter.</p><p>Returned to terminal, run to apply changes:</p><pre>source ~/.bash_profile</pre><p>Checking the path:</p><pre>echo $JAVA_HOME</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*uWNZlw3t2ITuNNLXf6AxAw.png" /><figcaption><strong>Path to the Java installation</strong></figcaption></figure><h4><strong>Installing Homebrew (package manager):</strong></h4><pre>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</pre><h4><strong>Installing Apache JMeter &amp; Verify &amp; Launch:</strong></h4><pre>brew install jmeter</pre><pre>jmeter --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OAuuvMdIQugXI0otXDktSQ.png" /><figcaption><strong>Verified installation</strong></figcaption></figure><pre>jmeter</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y4o4TKwkV9igXxGNT8P-IQ.png" /><figcaption><strong>JMeter is launched</strong></figcaption></figure><h3><strong>Start Testing with JMeter</strong></h3><h4><strong>Test Run #1</strong></h4><h4><strong>Scenario</strong></h4><ul><li>Sending 100 requests to the API and recording the response time.</li></ul><pre>Total Requests = Number of Threads × Loop Count</pre><h4><strong>Configurations</strong></h4><p><strong>Adding a Thread Group (Virtual users with specific behaviour):</strong></p><ul><li><strong>Number of Threads (Users)</strong>: 25</li><li><strong>Ramp-Up Period</strong>: 100 seconds — This means each thread will start 4 seconds after the previous thread begins (The total time in seconds it takes to add all test users).</li><li><strong>Loop Count</strong>: 4 — The number of times each thread will make a request.(Repeat)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U_Bv7T-KIPg4a5eRbF8S-g.png" /><figcaption><strong>Adding a Thread Group to Test Plan</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9QdGTfDXfxefegofH4eU1g.png" /><figcaption><strong>Thread Group Specifications</strong></figcaption></figure><p><strong>Adding HTTP Request:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JkGxwh9kgOQhuKMuQkHNqA.png" /><figcaption><strong>Adding HTTP Request</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fprPz6DziwBc1Eet6tQxCQ.png" /><figcaption><strong>Harry Potter API added </strong><a href="https://docs.potterdb.com/apis/rest"><strong>https://docs.potterdb.com/apis/rest</strong></a></figcaption></figure><p><strong>Adding Timers:</strong></p><p>To simulate user delays on the website / app, as milliseconds between requests)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9fw6HCb8rJPaXxHcgZfjw.png" /><figcaption><strong>Adding a Constant Timer</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5AJkh-Xp3VSLmfdYOySDgA.png" /><figcaption><strong>Setting half a second delay</strong></figcaption></figure><p><strong>Adding Listeners (Shows results):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vk31OZ1pFgue7pt0zyM0EQ.png" /><figcaption><strong>Adding View Results Tree as a Listener</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FYxfBRHFTHVbp9HRWvinqQ.png" /><figcaption><strong>Adding Summary Report as a Listener</strong></figcaption></figure><p><strong>Save &amp; Run Test:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*d-GXxCGdS7lWRuIrLwRL3w.png" /><figcaption><strong>Click to Save the test</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w7eHrGdVr4PFHLrbROOTKQ.png" /><figcaption><strong>Test is saved as a .jmx file</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GK-F30KLB3j88kouCHoMDQ.png" /><figcaption><strong>Click to Start the test</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBQ2NYGo3KqpEbPCC-WWtQ.png" /><figcaption><strong>Waiting for test to end</strong></figcaption></figure><p><strong>Check Results on Listeners:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m6_VPwc62s0Ffv3Qx4U0pA.png" /><figcaption><strong>Checking Summary Report Results</strong></figcaption></figure><p>As planned, 100 HTTP requests (# Samples) were sent as a simple load test.<br>Given the Average, Min, and Max response times (in milliseconds), these should be interpreted according to the expected performance metrics. For example, an average response time of 0.2 seconds could be considered acceptable for this test.<br>The Standard Deviation of ±64.94 ms suggests that the system may need optimization under higher load conditions.<br>The Throughput of 1 request per second likely indicates a low test load (e.g., low number of users, longer ramp-up time, or high delays).<br>The Sent Data per second at 0.13 KB/s is accurate, as the test consists solely of GET requests. With 74.51 KB/s of Received Data per second, this value is reasonable given the medium-sized JSON response data being transferred.</p><p>Next, by deliberately introducing request failures in JMeter, we will be able to observe the Error %.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5ZEV8NvVVYd6zTBLaVk0A.png" /><figcaption><strong>Checking Sampler Results</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kycs_9qyqrDrVgbCMT5jKw.png" /><figcaption><strong>Checking Response Data</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*myRSAbhtUQ9zIfNTdNgYag.png" /><figcaption><strong>Changing Response Type as JSON</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FqXJ6bK_G3afjV5mnlTskQ.png" /><figcaption><strong>Alternatively, using </strong><a href="https://jsonformatter.org/"><strong>https://jsonformatter.org/</strong></a><strong> to Easily Check the Response Data</strong></figcaption></figure><h4><strong>Simulating Failure Testing (Errors):</strong></h4><ul><li><strong>Test Run #2:</strong> Changing the endpoint to an <strong>invalid URL</strong>.</li><li><strong>Test Run #3: </strong>Adding a <strong>Response Assertion</strong> to fail requests when the response code does not match the expected one (e.g., expecting a 200 but configured to expect a 404).</li><li><strong>Test Run #4:</strong> Adding a <strong>Duration Assertion</strong> to fail requests when the response time exceeds a specified threshold, setting a maximum allowed response time.</li><li><strong>Test Run #5:</strong> Adding a <strong>Response Assertion</strong> to fail requests when the response contains an <strong>unexpected value</strong>.</li><li><strong>Test Run #6: Overloading</strong> the server by increasing the number of users and decreasing the ramp-up period, with the expectation of timeouts or 500 errors.</li><li><strong>Test Run #7:</strong> <strong>Forcing a Timeout</strong> by setting a 1 ms timeout for both <strong>Connect Timeout</strong> and <strong>Response Timeout</strong> in the HTTP Request Sampler’s advanced tab.</li></ul><p><strong>Remember to:</strong></p><ul><li><strong>Click “Clear All”</strong> before running another test to ensure previous results don’t interfere with the new test.</li><li><strong>Disable or remove assertions</strong> when running different test scenarios to avoid conflicts.</li></ul><p>Additionally, I will add an <strong>Assertion Results</strong> listener to capture and analyze the details of why requests failed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AcRU_bYB6TJuqC6a81NFSA.png" /><figcaption><strong>Adding Another Listener: Assertion Results</strong></figcaption></figure><h4>Test Run #2</h4><h4><strong>Invalid URL method:</strong></h4><p>Changing thread delay as 100 ms, number of threads as 10, ramp-up as 100 ms and single loop to run faster tests to see the errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oroD4lOzJnaW3SdnX4Tj3g.png" /><figcaption><strong>Entering Invalid URLs</strong></figcaption></figure><p><strong>Results:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u0jGNzBkDxOg8gqYbMEHqQ.png" /><figcaption><strong>Non HTTP response error</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkVq7tAMmX-Kp1HgjZLuig.png" /><figcaption><strong>Response data</strong></figcaption></figure><h4>Test Run #3</h4><h4><strong>Response Assertion method with Status Code:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qh9431E74XrwZE6mI4JvlQ.png" /><figcaption><strong>Adding Response Assertion</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vLgb5cADc6Hl9LQkQiCeSw.png" /><figcaption><strong>Setting Expected Response Code as 400</strong></figcaption></figure><p><strong>Results:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n3drc0Dacj4PHnQEpHvPaw.png" /><figcaption><strong>Error due responce code not being 400 as expected</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ar7yc3HJmkUKsPe9EFemLQ.png" /><figcaption><strong>Assertion Results for Responce Code Comparison</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQnvTYt2q7jAaHeu_YIoSA.png" /><figcaption><strong>%100 Error as expected</strong></figcaption></figure><h4>Test Run #4</h4><h4><strong>Duration Assertion method:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r4E7lNOD_aorbz8RG6GU3w.png" /><figcaption><strong>Adding Duration Assertion</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pYd4NA0MX9v28deCudVE0Q.png" /><figcaption><strong>Setting maximum allowed response time as 1 ms</strong></figcaption></figure><p><strong>Result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JFqxASxhJSXDBxhXHeI82Q.png" /><figcaption><strong>Exceeds 1 ms and gives error</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PuRdkM2i9P0J7lwXGtBMJQ.png" /><figcaption><strong>Load time exceeds 1 ms</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*suy_sgUedel3vHKfawACig.png" /><figcaption><strong>%100 error as expected</strong></figcaption></figure><h4>Test Run #5</h4><h4>Response Assertion method with Unexpected Value:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0njgPBiePQc9-k99_kg3bQ.png" /><figcaption><strong>Given expected value in response message</strong></figcaption></figure><p><strong>Result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JqVNVsVq0spy6ytAnYV6Lw.png" /><figcaption><strong>Test failed as expected</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DHfbm0FbabFZdBrNKa9TEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygNkGXf7qzlbbbWTo0-Rjw.png" /></figure><h4><strong>Test Run #6:</strong></h4><h4><strong>Overload Method:</strong></h4><p>Changing number of thread as 300 and ramp-up period as 0.01 seconds, and delay as 5000 ms.</p><p><strong>Result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVN5VHsROqUG21iruOywWw.png" /><figcaption><strong>Too many request error as expected</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QBfI2Bi9khQGf37YEjUpAg.png" /><figcaption><strong>API rate limit exceeded</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lBkC2E26UaG4tGZ5TKcmMg.png" /><figcaption><strong>%100 error as expected</strong></figcaption></figure><h4><strong>Test Run #7:</strong></h4><h4><strong>Forcing a Timeout Method:</strong></h4><p>By adding 1 ms to Connect and Response Timeout in HTTP Request Sampler Advanced tab.</p><p>Also changing number of thread as 100 and ramp-up period as 10 seconds, and delay as 1000 ms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D02zUi2sUhBbFM4GZsjp2w.png" /><figcaption><strong>1 ms added</strong></figcaption></figure><p><strong>Result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K3u8DrCah_cHH-ZGh3VddQ.png" /><figcaption><strong>Connection timed out</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nZxyKKLtC20HLl4uXxvoKw.png" /><figcaption><strong>Getting a Timeout error</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QeoI80H7U6vaxzMAQ1PvTw.png" /><figcaption><strong>%100 error as expected</strong></figcaption></figure><p>I hope this has been helpful in giving you a head start on JMeter and performance testing. I’ve covered and practiced some of the basics. It only takes a few hours, so don’t be intimidated — just dive in and start.</p><p>Wishing everyone a happy learning journey!</p><p>Sources:</p><ul><li><a href="https://tejaksha-k.medium.com/a-step-by-step-guide-to-installing-java-on-macos-5188bfdf99d7">A Step-by-Step Guide to Installing Java on macOS</a></li><li><a href="https://tejaksha-k.medium.com/a-step-by-step-guide-how-to-install-apache-jmeter-on-macos-6a9eb8bf3463">A Step-by-Step Guide: How to Install Apache JMeter on macOS</a></li><li><a href="https://brew.sh/">Homebrew</a></li><li><a href="https://www.blazemeter.com/blog/jmeter-tutorial">JMeter Tutorial: Getting Started With the Basics | BlazeMeter by Perforce</a></li><li><a href="https://docs.potterdb.com/apis/rest">Potter DB: Docs</a></li><li><a href="https://jsonformatter.org/">Best JSON Formatter and JSON Validator: Online JSON Formatter</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=504365c5e60a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amsterdam Travel Notes]]></title>
            <link>https://medium.com/@simaalkan/amsterdam-travel-notes-827a88e30f1c?source=rss-6dfd776abac2------2</link>
            <guid isPermaLink="false">https://medium.com/p/827a88e30f1c</guid>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[travel-tips]]></category>
            <category><![CDATA[travel-writing]]></category>
            <category><![CDATA[traveling]]></category>
            <category><![CDATA[amsterdam]]></category>
            <dc:creator><![CDATA[Sima Alkan Suğur]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 02:04:01 GMT</pubDate>
            <atom:updated>2024-03-07T14:18:18.068Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKEbceTmowozGCsR0jhukA.jpeg" /></figure><p>For those planning a trip to Amsterdam, a 3-night, 4-day stay is considered ideal, especially for first-time visitors and those on a budget.</p><p>Here are some practical tips and recommendations based on our 5-day December 2023 visit.</p><p>Keep in mind that we preferred avoiding museums, places far from the center and expensive dining.</p><p><strong>1. Weather</strong></p><ul><li>Check the weather forecast. Make sure to pack accordingly in case of rain.</li></ul><p><strong>2. Transportation</strong></p><ul><li>We opted not to buy the Amsterdam Card, which includes museum admissions besides the unlimited public transportation, as it seemed expensive, and there wasn’t a specific museum in the city that we were eager to visit. Prior to our visit, we checked the exhibited artworks online. We decided to explore those museums at a later time as they had long lines, which would have been time-consuming. Exploring the city was our main focus, and we managed to cover it thoroughly.</li><li>Best option for us was an unlimited pass covering public transportation, including Schiphol Airport. We purchased it online and picked it up at the airport.</li></ul><p><strong>3. Accommodation</strong></p><ul><li>We enjoyed our stay at the 4 Elements Hotel. It promises comfortable rooms. We could reach the city by tram in 20 minutes, and the walking distance to the tram was 15 minutes.</li></ul><p><strong>4. Culinary</strong></p><ul><li>Try Bitterballen, delicious meat croquette.</li><li>Oliebollen might not suit everyone’s taste. We didn’t find it very appealing, especially if you’re not a fan of raisins in sweet pastries.</li></ul><p><strong>5. Store Closing Times</strong></p><ul><li>Shops typically close around 5–6 pm.</li></ul><p><strong>Food &amp; Drink</strong></p><ul><li><strong>Van Stapele Koekmakerij</strong> — You usually wait in line for about an hour, but it’s absolutely worth it. The cookies are incredibly delicious. There was also an alternative method of ordering online and picking up at the door without waiting in line.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rpUou0Os4qZ4YUaqCcHCHw.jpeg" /><figcaption><strong>Van Stapele Cookies</strong></figcaption></figure><ul><li><strong>The Butcher </strong>— Try the “The Butcher With Cheese” burger, cooked medium-well. It was 10/10. We had it 3–4 times and loved it. The fries are also tasty.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7lF-Kd-dphrh0sHQQaXLA.jpeg" /><figcaption><strong>The Butcher With Cheese Burger</strong></figcaption></figure><ul><li><strong>Lanskroon Bakery</strong> — The honey syrup waffle is a delightful treat.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lWNAGI3yMOnwfNfdzLC2ZQ.jpeg" /><figcaption><strong>Honey Syrup Waffle</strong></figcaption></figure><ul><li><strong>Cafe Winkel</strong> — The apple pie is light and delicious. The portion is quite large and enough for two people.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IIzxJm1DrT1kiOmlTT4Q2w.jpeg" /><figcaption><strong>Apple Pie</strong></figcaption></figure><ul><li><strong>Manneken Pis Damrak</strong> — Try their famous large-sized fries with Tartar and Manneken Pis sauce. A kilogram is generous for two.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wPRJR5AsBVmO-OZGCHnfkA.jpeg" /><figcaption><strong>Large Fries with Tartar and Manneken Pis sauce</strong></figcaption></figure><ul><li><strong>Rene’s Croissanterie</strong> — Indulge in their delicious Nutella Churros, perfect for sharing.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pSeV1qg2-lu7gdw_EIt7WQ.jpeg" /><figcaption><strong>Nutella Churros</strong></figcaption></figure><ul><li><strong>Hoppe Pub </strong>— Bitterballen with a beer were delightful. It’s a cozy pub.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L3feJ6VUwfiq8V5iuA6D3g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kaMN-Ytp9mzOyEoIQe4Bgg.jpeg" /><figcaption><strong>Bitterballen with a beer</strong></figcaption></figure><ul><li><strong>Friteshuis Vleminck X Sausmeesters</strong> — Try their fries with Tartar and Oorlog sauce.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wfNyupEs93WFznEdh7Ox_g.jpeg" /><figcaption><strong>Small Fries with Tartar and Oorlog sauce</strong></figcaption></figure><p><strong>Optional</strong></p><ul><li><strong>Chun Café </strong>— Delicious shrimp egg toast for breakfast, but the long wait is not worth it.</li><li><strong>Febo — </strong>Fun experience with card-operated vending machines; try it for a quirky snack. Cheese croquette is recommended.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qbc3zfsxG0r5Sb7gJ5Mc5Q.jpeg" /><figcaption><strong>Cheese Croquette</strong></figcaption></figure><ul><li><strong>The Lebanese Sajeria — </strong>A popular Lebanese kebab place. Chicken with hummus is tasty but quite expensive, and the portion is small. We didn’t like the meat option.</li><li><strong>Zero zero — </strong>Place that makes Italian sandwiches. Avoid the one named “Mortadella” on the menu; it’s quite plain, and the cannoli is not good either.</li><li><strong>Bierfabriek pub </strong>— The atmosphere is great, and we tried the Puur beer. It’s not a must-visit place if you’re short on time.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMshghZU0cHMuuxH-IHDEA.jpeg" /><figcaption><strong>Puur Beer</strong></figcaption></figure><ul><li><strong>Fou Fow Ramen </strong>— The ramen was decent, but I’m uncertain if it is worth the wait and the price. Chicken wing appetizer was great though.</li></ul><p><strong>Places to Explore</strong></p><ul><li><strong>De 9 Straatjes</strong> — 9 Streets</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jLapq4v25zROXIv2YMH7dQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4M4t7bU1zZs8-3wbnUK5Q.jpeg" /></figure><ul><li><strong>Amsterdam Central Station</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rL5L0l2Xm6tt55OG4k0U4Q.jpeg" /></figure><ul><li><strong>Damrak — </strong>Canal houses</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0nWhohj_N2CKr_bRKI2KbQ.jpeg" /></figure><ul><li><strong>Red Light District</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*InZMCxz-DIdXeXKQvP2F5g.jpeg" /></figure><ul><li><strong>Vondelpark</strong> — Beautiful, big city park.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fYzcu6iArtQiSJsfS8vSEQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4GA7FeJlWZ0AMIUXZkO16g.jpeg" /></figure><ul><li><strong>Westerpark</strong> — Beautiful, small city park.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x7-5fnALNbYOQdJSzN6SRA.jpeg" /></figure><ul><li><strong>Begijnhof</strong> — Free and lovely courtyard; it closes early.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5kROk9fbg6DOS1YBHHZcEQ.jpeg" /></figure><ul><li><strong>Lomanstraat — </strong>A street with<strong> </strong>Honey Locust trees (Gleditsia triacanthos)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iCDnt0Je0QnRIqtTrpyCiQ.jpeg" /></figure><ul><li><strong>Museumplein</strong> — Rijksmuseum, Van Gogh and Stedelijk museums, etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IFATxgUxqm9BgjsAgmD6Xw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IzUSXg1-4jVNYcTt9HwMVg.jpeg" /></figure><ul><li><strong>Dam Square </strong>(National Monument, Koninklijk Paleis (The Royal Palace), Nieuwe Kerk (The New Church))</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CnUzRhjHFnJSA-rYhgwyfg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s6JgoUPz6kx23Si4V85ydA.jpeg" /></figure><ul><li><strong>Oude Kerk </strong>— The Old Church</li><li><strong>De Krijberg Church</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rufoHi5BUmOwcjefGWcnRA.jpeg" /></figure><ul><li><strong>Bloemenmarkt</strong> — Flower vendors and souvenir shops.</li></ul><p><strong>Optional</strong></p><ul><li><strong>Albert Cuyp Street and Market — </strong>Nice street food options. Just<strong> </strong>do not drink bubble tea in this area. We had a horrible experience.</li><li><strong>Sarphatipark</strong></li><li><strong>Rembrandt Square</strong></li><li><strong>Blauwbrug Bridge</strong></li><li><strong>Waterlooplein — </strong>Flea market.</li><li><strong>Rembrandt House — </strong>To see the building from the outside.</li></ul><p><strong>Shopping</strong></p><ul><li><strong>Albert Heijn Supermarkets </strong>— In their larger stores, you can choose a bottle and fill it with delicious squeezed orange juice. It’s fresh, inexpensive, and cold. You can find gifts for cheaper prices (Dutch cheeses, Tony’s chocolate etc.)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z6Zt47cnPoKzgT4dr4BWew.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2E-z6pHqH-5sOjGsTzT-YA.jpeg" /><figcaption><strong>Orange Juice</strong></figcaption></figure><ul><li><strong>Kalverstraat</strong> — Many options like Urban Outfitters, Lego, Flying Tiger…</li><li><strong>De Bijenkorf </strong>— Mall for Luxury Brands</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r8yRNANOeCP33671C29PCg.jpeg" /></figure><ul><li><strong>Tony’s Chocolonely Superstore</strong> — Good for a quick visit. Supermarket prices for chocolates are cheaper.</li><li><strong>The American Book Center </strong>— Check the Amsterdam-themed postcards and unique board games.</li><li><strong>Henri Willig </strong>— Cheese shop that offers tastings. A bit pricey. Supermarket prices for Dutch cheeses are cheaper.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yykbzjr19oewNyjS5DGKmA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U4AVNnsuv3Xg0-mTSCledA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oEgdSImk7rn3wwXMEJb5Sg.jpeg" /></figure><p><strong>Tips</strong></p><ul><li>Make sure to check the Google ratings &amp; reviews.</li><li>Avoid waffles priced around 10-15 euros in touristic shops. They are overpriced and not worth it.</li><li>Pricey breakfast places with good ratings might not be worth visiting.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*td06-rxA5Y9xfLkYAX_SvA.jpeg" /></figure><blockquote><strong>Thank you for reading. I hope this has been helpful.</strong></blockquote><blockquote><strong>Wishing you a wonderful trip!</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=827a88e30f1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Begin Your Automation Journey with Cypress]]></title>
            <link>https://medium.com/adessoturkey/how-to-begin-your-automation-journey-with-cypress-618c104faa06?source=rss-6dfd776abac2------2</link>
            <guid isPermaLink="false">https://medium.com/p/618c104faa06</guid>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[gherkin]]></category>
            <category><![CDATA[cypress]]></category>
            <category><![CDATA[functional-testing]]></category>
            <dc:creator><![CDATA[Sima Alkan Suğur]]></dc:creator>
            <pubDate>Fri, 16 Dec 2022 08:49:26 GMT</pubDate>
            <atom:updated>2022-12-20T06:18:24.166Z</atom:updated>
            <content:encoded><![CDATA[<p>Ciao fellow automation newbies!</p><p>If you are a business analyst or a manual tester and wish to improve your skills further, learning automation might be the answer for you.</p><p>Before taking a step into the world of automation, I thought a brief introduction to what’s to come would be helpful. So, I wanted to share my beginner’s journey with some insights on what I could’ve done better.</p><p>The reason I wanted to learn automation was the project I had been working on. It had grown to the point where it was hard to cover basic user actions in a short time with the minimum amount of human error. Also, there was a need for test executions in multiple environments.</p><p>A beginner-friendly automation tool was necessary to avoid the constant and repetitive effort on manual regression tests for each sprint. My main concern was being able to easily and quickly compare the actual results with the expected, in other words, functional test automation. Since we were already using the Gherkin syntax, Cypress framework<strong> </strong>with the Cucumber tool which supports behavior-driven development was an effective choice. It promised an easy setup and a good fit for the project. Hence, the team could adapt and begin to utilize it in a short time.</p><p>So, here is how I’ve ended up pursuing a path of writing functional tests for a web application.</p><h4><strong>Step 1: Tool Selection &amp; Setup</strong></h4><p>First things first, deciding which tools to utilize among the endless options and the setup process are the hardest yet crucial steps. Once you’ve set your goals, the way ahead instantly becomes clear.</p><p>If you have someone experienced around you who can give you an opinion on this matter, do not hesitate to ask. When you know a little, it is inevitable to be uncertain about how to proceed. No matter how much you search, it is hard to find the ideal tools or programming languages, especially when you feel equally distant from each option. In the end, you waste a lot of time. In this case, choosing something based on your experiences can be a decent start. As such, you’ve previously learned JavaScript, used Visual Studio Code, or written user stories with Gherkin. Also, you can simply find a good course on the topic and go with the flow. Just do not make it complicated for yourself.</p><p>After a few different Udemy courses and plenty of online searches, and of course, getting lost on paths that I wasn’t prepared for, I finally found my way with a little help. Beginning to learn from scratch was certainly not easy with mobile automation. After I struggled with the dependencies and requirements of Appium, the differences between iOS and Android, and connecting with the simulators and real devices, I was about to give up. However, I changed my course to the web automation direction. I was already familiar with Selenium, but I had learned that Cypress was a faster tool due to its in-browser execution nature. I found it simple enough to start learning web automation with JavaScript-based Cypress framework using Visual Studio Code. Setup can also be challenging without help. Make sure you follow a guide for that too. After that, I entered the exponential progress phase of my learning journey.</p><h4><strong>Step 2: Learning Basics &amp; Practice</strong></h4><p>Another struggle for me was to keep myself from jumping into implementation right away before practicing. This step might look like a waste of time for some. Patience is the key to this step. Trust me, if you skip practicing, you will eventually return to this step.</p><p>So, what can be done here? For me, the best thing was to find a good Cypress course and follow lectures while practicing and taking notes like a dedicated student. Once you’ve finished with the course, you’ll need to remember basic commands and methods. Instead of spending time searching for information all over again, a little documentation in your own words won’t hurt. Note that you don’t have to complete all the sections of the course at once. First, focus on learning how to run a simple automation.</p><h4><strong>Step 3: Implementation</strong></h4><p>This is the part where you become less dependent on external sources. Now, you can take more autonomous actions since you are perfectly capable of writing tests on your own by trial and error. Choose your project feature to automate and start writing the main actions.</p><p>For instance, you have a web application that creates forms. In simple terms, writing the feature file with Gherkin syntax to describe this behavior looks like:</p><pre>Feature: Forms<br>    Background: Navigate to the website<br>        Given I am on the homepage<br>    <br>    Scenario: Create a form<br>        When I click to create a new form<br>        And I fill the form title<br>        And I click to save<br>        Then I should see the success message </pre><p>Then, we have to define those steps for Cypress to execute by writing a corresponding step definition JavaScript file:</p><pre>Given(&#39;I am on the homepage&#39;,function(){<br>   cy.visit(url)<br>})<br><br>When(&#39;I click to create a new form&#39;,function(){<br>    cy.get(selector).click()<br>})<br><br>And(&#39;I fill the form title&#39;,function(){<br>   cy.get(selector).type(&#39;Title&#39;)<br>})<br><br>And(&#39;I click to save&#39;,function(){<br>   cy.get(selector).click()<br>})<br><br>Then(&#39;I should see the success message&#39;,function(){<br>  cy.get(selector).should(&#39;have.text&#39;,&#39;Successful&#39;) //assertion<br>})</pre><p>You can execute your tests either on the browser by Cypress Test Runner and follow all the steps, or quickly in the background from the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rxJdxitVFLgwgPaWdIoaNA.png" /><figcaption>Cypress Test Runner</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a3mXnU41KvazKdnwYoiobw.png" /><figcaption>Headless Execution on VS Code Terminal</figcaption></figure><h4><strong>Step 4: Improve &amp; Maintain</strong></h4><p>When you are new at something, the opportunities to improve yourself on the topic are almost endless. There will always be a better way to implement it or a new technology to keep up with. At this point, I aim to focus on how I can rewrite the tests with the best practices, implement automation for the new project features, and also learn how to push my code utilizing the project repository.</p><h4><strong>The Overall Summary of My Journey</strong></h4><p><strong>Step 1: Tool Selection &amp; Setup</strong><br>• Install Visual Studio Code editor<br>• Install Node.js environment (node.js &amp; npm)<br>• Create the project with the package.json file<br>• Choose a test framework (e.g., Cypress, Mocha)<br>• Install Cypress via npm<br>• Install dependencies of Cypress and Cucumber <br>• Open Cypress Test Runner <br>• Create an E2E folder with feature and step definition JS files<br>• Set your test files’ path on the cypress.config.js</p><p><strong>Step 2: Learning Basics &amp; Practice</strong><br>• Utilizing Cypress official documentation and online courses<br>• Execution options and main commands<br>• Cucumber syntax (e.g., Feature, Background, Given, When, Then, And)<br>• Cypress cy. methods and commands<br>• CSS Selectors to address elements<br>• Assertions (e.g., should)<br>• Interacting with UI elements (e.g., radio button, checkbox, dropdown)<br>• Synchronous &amp; asynchronous nature<br>• Authentication (e.g., 3rd party login, credentials, session tokens)<br>• Reporting test results (e.g., multiple-cucumber-html-reporter)</p><p><strong>Step 3: Implementation</strong><br>• Project setup (e.g., URL navigation, authentication, login)<br>• Writing feature files and relative step definition JS files under E2E folder<br>• Focusing on the basic actions based on the scenarios and acceptance criteria (e.g., CRUD test cases)<br>• Starting executions, debugging, and generating a report</p><p><strong>Step 4: Improve &amp; Maintain</strong><br>• Improvements on the feature &amp; step definition files (e.g., Deleting repetitive and common steps)<br>• Adding new scenarios for validations and complex user actions<br>• Learning &amp; implementing best practices<br>• Utilizing project repository (e.g., git push)</p><p>It is never too early or late to pursue your interests on your career path. When you are entering a zone that is unknown to you, it might be a little intimidating. Keep in mind that everyone has their own learning curve. Self-paced learning might help when you try to build a new skill for yourself. No need to force or rush it. Instead, take your time to understand, and it will eventually be worth the effort. This way, you can see if you really enjoy this learning process. I hope this article can inspire you if you are considering taking this path.</p><p>I wish you a happy learning journey!</p><p><strong>References:</strong></p><ul><li><a href="https://docs.cypress.io/guides/references/assertions#Common-Assertions">Assertions | Cypress Documentation</a></li><li><a href="https://cucumber.io/docs/gherkin/reference/">Gherkin Reference</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=618c104faa06" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adessoturkey/how-to-begin-your-automation-journey-with-cypress-618c104faa06">How to Begin Your Automation Journey with Cypress</a> was originally published in <a href="https://medium.com/adessoturkey">adessoTurkey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>