<?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 Hamza Ali on Medium]]></title>
        <description><![CDATA[Stories by Hamza Ali on Medium]]></description>
        <link>https://medium.com/@hamzaali-12667?source=rss-7b2dd94cb834------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*W1-0bIZ3AIdzI6ck</url>
            <title>Stories by Hamza Ali on Medium</title>
            <link>https://medium.com/@hamzaali-12667?source=rss-7b2dd94cb834------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:53:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hamzaali-12667/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[Performance Testing for Software Infrastructure 101]]></title>
            <link>https://medium.com/emumba/performance-testing-for-software-infrastructure-101-5752b71ecd65?source=rss-7b2dd94cb834------2</link>
            <guid isPermaLink="false">https://medium.com/p/5752b71ecd65</guid>
            <dc:creator><![CDATA[Hamza Ali]]></dc:creator>
            <pubDate>Tue, 28 Oct 2025 06:51:46 GMT</pubDate>
            <atom:updated>2025-10-28T06:51:46.849Z</atom:updated>
            <content:encoded><![CDATA[<h4>A practical guide to evaluating autoscaling, resilience, and infrastructure performance in Kubernetes environments</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*lqppG9lREuAD0Dhi" /></figure><p>Imagine a scenario, where your e-commerce application just went into production. It works fine on the first day with an influx of 1000 users throughout the day. But what happens when 500 user access the app concurrently the next day? The application crashes and returns a 500 internal server error. Turns out the service pods could not withstand that much concurrent load and crashed.</p><p>Its important to understand that the above scenario is not an application bug, rather an infrastructure failure. It is the exact reason why executing performance testing for your software infrastructure is critical. It ensures that the software architecture is robust and resilient enough to handle all sorts of spikes in user traffic.</p><p>Before we dive deeper: Infrastructure testing is different from functional testing. While functional tests verify features (sign-up, login, payments), infrastructure performance tests validate whether the underlying system can handle spikes, failures, and scaling needs. This blog focuses on the latter.</p><p>This blog will be mainly focused on microservices infrastructure and cover how to test auto-scaling, high availability, DB resource consumption as well as load balancing from a performance point of view.</p><p><strong>Pre Requisites:</strong></p><p>Before we dive into the topic in depth, following are the pre requisites for testing an application’s infrastructure:</p><ul><li>A tool for cluster access i.e. Kubernetes lens</li><li>Access to DB</li><li>Access to monitoring tool, e.g. Grafana, Prometheus etc.</li><li>A basic level understanding of software infrastructure.</li></ul><h4>Software Infrastructure Overview</h4><p>While there are different types and forms of software architecture, this article will be mainly dealing with the microservices architecture. It is an architecture style where the application is comprised of loosely coupled independent modules known as services.</p><p>These services are running on lightweight environments know as <a href="https://www.docker.com/resources/what-container/"><strong>containers</strong></a>, which package an application and its dependencies. These containers are managed by deployment/orchestration tools such as Kubernetes etc.</p><p>Kubernetes organizes containers for each service into <a href="https://kubernetes.io/docs/concepts/workloads/pods/"><strong>pods</strong></a>- which are the smallest deployable unit. A pod can contain one or more tightly coupled containers that share:</p><ul><li>Network namespace (same IP address and ports)</li><li>Storage volumes</li><li>Lifecycle (they start, stop, and scale together)</li></ul><p>Pods run on physical servers called <a href="https://kubernetes.io/docs/concepts/architecture/nodes/"><strong>nodes</strong></a>, and multiple nodes join together to form a <a href="https://kubernetes.io/docs/concepts/architecture/">cluster</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*YJQccBCVKk_y0RUy8e2RTA.png" /><figcaption>An overview of Kubernetes architecture hierarchy</figcaption></figure><h4>Testing Autoscaling</h4><p><strong>What is autoscaling?</strong></p><p>Autoscaling is a process in cloud computing, that increases allocation of computational resources to a component, based on system requirement. In our context, if a service only has one pod and is under excessive load, auto scaling increases the number of pods to enable it to handle the load better. This is known as horizontal autoscaling.</p><p>Autoscaling in Kubernetes is usually managed through the <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/">Horizontal Pod Autoscaler</a> (HPA), which increases or decreases the number of pods based on CPU/memory thresholds. KEDA (Kubernetes Event-Driven Autoscaling) is an add-on that extends HPA by supporting event-driven metrics (like queue length, Kafka lag, etc.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*F-Y0EzEp8O_vERkcORmjXg.png" /><figcaption>KEDA thresholds defined for a service</figcaption></figure><p>For example in the above image, once the specific service consumes more than 75% of its CPU or memory resources, the autoscaler will increase its number of pods.</p><p>The number of minimum or maximum pods for any service can be found using the following command:</p><pre>kubectl get hpa --all-namespaces<br>kubectl describe hpa &lt;deployment-name&gt; -n &lt;namespace&gt;</pre><p>The first command will return a list of the Horizontal Pod Autosclalers (HPA). The second command will display an output like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*-Ut4xd056fPoNFHT78igUw.png" /><figcaption>KEDA HPA Metrics</figcaption></figure><p><strong>Testing Approaches:</strong></p><ol><li><strong>Load test execution:</strong></li></ol><p>One of the simplest yet most effective approaches for testing autoscaling is to execute load tests. This can be done through using tools such as JMeter, k6 etc. For example, a load test that simulates thousands of users signing up should put load on the authentication service leading it autoscaling and increasing its number of pods. Furthermore, once the test ends the number of pods should come back to normal.</p><p><strong>2. Using libraries for load generation:</strong></p><p>While performance test execution is an effective way to test autoscaling, some services are not directly part of end-user flows and would need to be tested in an isolated manner.</p><p>Using custom load generation tools like <a href="https://manpages.ubuntu.com/manpages/focal/man1/stress-ng.1.html">stress-ng</a> is the best choice in this case. These libraries generate the required CPU consumption on a pod for a specified time. You can monitor the resource consumption for the service in real time and verify that it auto scales and downscales accordingly.</p><pre>stress-ng --cpu 4 --cpu-load 90 --timeout 120s</pre><p>For example, the command above will generate 90% consumption on 4 CPU cores of an instance for 2 minutes. If the KEDA threshold for the service is ~70%, the service should auto scale and the number of pods should increase.</p><p>Similarly, once the tests end, the additional pods should get deleted and the service should come back to its original state.</p><p><strong>3. Custom shell scripts:</strong></p><p>A limitation in the above method is that for certain machines, the performance test engineer might not have the necessary privileges to install the library. The workaround for this limitation is to utilize custom shell scripts that generate excessive CPU load on the machine.</p><pre>#!/bin/bash<br><br># Number of parallel CPU-consuming processes<br>NUM_PROCESSES=4<br><br># Duration to run the CPU burn (in seconds)<br>TIMEOUT=120<br><br>echo &quot;Starting CPU burn with $NUM_PROCESSES processes for $TIMEOUT seconds...&quot;<br><br>for i in $(seq 1 $NUM_PROCESSES); do<br>  # Each process runs an infinite loop to consume CPU, wrapped in timeout<br>  timeout $TIMEOUT bash -c &quot;while :; do :; done&quot; &amp;<br>done<br><br># Wait for all background processes to finish<br>wait<br><br>echo &quot;CPU burn completed.&quot;</pre><p>A script like the one above can be executed inside a pod to generate load on the CPU. Commands such as while, do and done are CPU intensive commands that do not require I/O. Setting the value of NUM_PROCESSES to 4 and timeout to 120 means that the loop is executed for two minutes and starts 4 processes in parallel, which impact 4 CPU cores.</p><p>If the user does not have enough privileges to create a shell file, a similar command can be executed directly on the pod through ssh</p><pre>kubectl exec &lt;pod-name&gt; --namespace &lt;namespace&gt; -c &lt;container-name&gt; -- \<br>/bin/sh -c &quot;timeout 120 sh -c &#39;while :; do :; done&#39; &amp; timeout 120 sh -c &#39;while :; do :; done&#39;; wait&quot;</pre><h4>Testing High Availability</h4><p>High availability is a system’s ability to remain operational and accessible even when parts of it fail. In large enterprise applications, high availability means ensuring <strong>minimal to zero downtime</strong>, so users can continue interacting with the application without interruption — even during infrastructure failures or maintenance events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*aEWMEVake1vjVvJR.jpg" /><figcaption>A basic architecture with high availability</figcaption></figure><p><strong>Testing approach</strong></p><p>In our context, the approach to test self-healing is to delete multiple pods against a service and ensure that they new pods are created in their place in the shortest possible duration. This is critical to minimize downtime.</p><p>The following command can be used to simultaneously delete all the pods against a service</p><pre>kubectl delete pods -l &lt;label&gt; -n &lt;workspace name&gt;</pre><p>A similar command can be used to delete all the pods in a namespace, this ensures multiple services are impacted at once</p><pre>kubectl delete pods --all -n &lt;workspace name&gt;</pre><p>Once the command is executed, the tester should note down the time taken for the new pods to spin up and become active. It is also important to keep in mind that while the pods spin up almost instantly, the containers can take some time to stabilize. This time should be included in the duration being monitored. All these metrics including pod health can be observed in the pods section on Lens GUI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4fyvQDM4LGzifI5GiZ_Vzw.png" /><figcaption>Pods listed in K8 Lens</figcaption></figure><p>A deeper HA test is to simulate node failure using the following command</p><pre>kubectl drain &lt;node&gt;</pre><p>This command evicts all the pods from a node and renders it unschedulable. After executing this command, verify that the pods are scheduled onto other existing nodes and the application downtime is minimal.</p><h4>Testing Database Resource Consumption</h4><p>Just as we execute load performance test scripts to put load on services, the same approach can be utilized to test databases. Executing load tests with concurrent read/write operations allows us to generate load on the DB and benchmark metrics such as:</p><ul><li>CPU consumption of DB</li><li>I/O network traffic</li><li>Query performance</li></ul><p>These metrics can be observed for databases against cloud monitoring dashboards (GCP, AWS etc). The objective of putting stress on the DB is to ensure that it is able to handle the required user traffic and does not choke during periods of high load.</p><h4><strong>Testing Load Balancing</strong></h4><p>Load balancing is a critical infrastructure component that ensures traffic is evenly distributed across different modules. To test load balancing effectively:</p><ul><li>Generate load and monitor key metrics such as network throughput, request latency, and backend utilization.</li><li>Review runtime load-balancing diagrams to visualize traffic distribution among modules.</li></ul><p>Proper load balancing guarantees that the system can handle traffic spikes and reroute requests to prevent any module from being overwhelmed.</p><h4>Environment Monitoring</h4><p>Another aspect of software infrastructure testing is to routinely scan and observe environment monitoring dashboards and raise the alarm for anomalies such as</p><ul><li><strong>CPU consumption spikes: </strong>Sudden spike in CPU consumption, apart from spikes observed during performance tests</li><li><strong>Irregular memory consumption patterns: </strong>Sudden spikes in memory consumption and overall memory consumption increasing significantly could point to potential memory leaks.</li><li><strong>Excessive DB resource consumption: </strong>This points to some unintended background processes draining the DB resources, which can be backtracked through query listings.</li></ul><p>These anomalies, if left unchecked, can lead to degraded performance, service outages, or scalability issues; hence the need for regular monitoring.</p><h4>Conclusion</h4><p>In today’s age of rapidly evolving dynamics and ever increasing customer demands, testing software infrastructure is a necessity, not a luxury. Rigorous performance testing in this regard ensures that an application is resilient enough to handle unexpected situations as user traffic spike and disaster recovery.</p><p>This blog is written with the intention of familiarizing performance QA engineers with the basics of software infrastructure and basic testing techniques to verify autoscaling, high availability etc. Feel free to reach out in case of queries. Happy testing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5752b71ecd65" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/performance-testing-for-software-infrastructure-101-5752b71ecd65">Performance Testing for Software Infrastructure 101</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Postbot: An overview of Postman’s Gen AI Assistant]]></title>
            <link>https://medium.com/emumba/postbot-an-overview-of-postmans-gen-ai-assistant-c40d26ba1295?source=rss-7b2dd94cb834------2</link>
            <guid isPermaLink="false">https://medium.com/p/c40d26ba1295</guid>
            <dc:creator><![CDATA[Hamza Ali]]></dc:creator>
            <pubDate>Mon, 04 Nov 2024 08:03:13 GMT</pubDate>
            <atom:updated>2024-11-04T08:03:13.171Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gFJhjj7M8_IfMX-6yglvKg.jpeg" /></figure><p>If I were to ask you, the reader, a question: what is the latest technological advancement that has taken the whole world by storm, what would your response be? Anyone who is working in the tech industry and is up to date with it, their response would unarguably be Gen AI. Using Gen AI for one’s day-to-day tasks can lead to a significant boost in productivity. The reason is that generative AI takes care of menial tasks requiring little intellectual output but considerable manual effort. Consequently, a plethora of software development and testing tools are incorporating Gen AI capabilities.</p><p>Postman, the renowned API testing tool, has also integrated a Gen AI assistant i.e. Postbot to enhance its user experience. This article is aimed at providing the reader with an overview of Postbot’s capabilities and guidelines to integrate it into their testing process.</p><h3>What is Postbot?</h3><p>Postman’s official documentation states that Postbot is an ‘assistant for API workflows in Postman’. This phrase successfully captures the essence of Postbot, as it assists users in end-to-end API workflows in a variety of ways. These include generating documentation, test development, and troubleshooting APIs. Leveraging Postman’s capabilities can lead to a significant uptick in productivity. The purpose of this article is to explore these functionalities of Postbot and the optimal approaches to extract maximum benefit from them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tcgvaJY65t_5srw12I74mQ.png" /><figcaption>A bird’s eye view of Postbot’s architecture.</figcaption></figure><h3>Getting Started</h3><h4>Access Points</h4><p>There are two primary access points to launch Postbot. First, a bar at the bottom of the screen offers several options; clicking the ‘Postbot’ option will open the Postbot chat box. Second, within the Scripts tab of a request, an icon appears in the top right corner. Clicking this icon will also launch Postbot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3RL8ceTDfvtb19zY" /><figcaption>The two primary access points for Postbot, on the Postman UI.</figcaption></figure><h4>General Queries</h4><p>So to kick things off, let’s start with the question: what is the primary purpose of a Gen AI chatbot? In essence, it is a conversational agent, which is designed to interact with an end-user and resolve their queries, just like an actual human customer support assistant would.</p><p>Therefore, the most feasible approach to interacting with postbot is to ask general queries regarding the APIs being tested in that particular collection. Bear in mind that Postbot’s scope is limited to a single request on Postman, so the query should be relevant to that particular API call.</p><p>For this article, I will be using a simple collection making calls to a pet store, for reference purposes. Now if someone else were to open this postman collection for the first time, they would not understand what is the process taking place through these calls. So they can use the the postbot to ask a question like ‘Can you explain what is happening in this request?’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Z5lAwn6aYslexnzMSt40A.png" /><figcaption>A POST request to purchase a pet from the pet store</figcaption></figure><p>The postbot will generate an explanation like the one depicted in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*UXjh4226ziLd_IblwVKCOw.png" /><figcaption>Postbot provides a comprehensive explanation for the relevant POST request.</figcaption></figure><p>Moreover, a user can also ask follow-up questions. For instance, there are multiple headers for an API call, and sometimes a user might have some confusion or ambiguity regarding one of them. So in such a situation, they can inquire the bot regarding the specific header.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*CN4AVXPweMPvcZC9iwjS5g.png" /><figcaption>Inquiring Postbot regarding a specific header in the relevant request.</figcaption></figure><h3>Test Generation</h3><p>One of Postbot’s most impressive use cases is extensive test generation for single requests as well as entire collections. There are multiple approaches to go about test generation using postbot and we will explore them one by one.</p><p>The most basic way to generate a test is to ask the bot to generate a test for verifying a specific field in the response. For example, consider a response to a post request, for ordering an animal from the pet store. The response has multiple fields like order ID, pet ID, quantity of pets, shipping date, order status, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/0*kcfEGSb_qCJ9KN9p" /><figcaption>The response body for the POST request placing on order at the pet store</figcaption></figure><p>The most basic test to verify whether the process was successful would be to verify the status field in the response, to ensure that it has the value ‘placed’. Therefore, we can enter a prompt into the postbot stating ‘ Can you add a test to verify that the status field in the response has the value ‘placed’’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/0*iXUqLQqcRxUPHzf5" /><figcaption>Entering a prompt to generate a test for verifying a response field</figcaption></figure><p>The postbot will act accordingly and add a test in the ‘scripts’ section to verify the ‘status’ field in the API request’s response body.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/0*vVYU6KG0kVqBVPE_" /><figcaption>A test has been added by postbot to verify the value of a response field.</figcaption></figure><p>Moreover, when the particular request is executed, the test results will also show up in their specific section in the bottom half of the postman user interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*l6-pA4Ad5mHHhb9c" /><figcaption>Test results generated after the request execution</figcaption></figure><p>There is another approach for test generation using postbot, which is known as testing for response. In simple and plain language, testing for response is implemented to ensure that the API in question generates specific outputs against a request. Multiple parameters can be verified to ensure this; including response status codes, response body verification (verifying fields in the response body), text length, response time, etc. Postbot provides the user the capability to test an API’s response against these metrics.</p><p>Postbot, like many other Gen AI chatbots, has preconfigured interactive prompts, which are known as CTA i.e. call to action. These CTAs provide the option to perform a variety of actions and one of them is testing for response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/0*zEpDjXxXtg6WrjVX" /><figcaption>Postbot’s standard CTAs</figcaption></figure><p>When the user selects the ‘test for response’ CTA, a subsequent menu of options is produced. This menu includes options like testing the response for data length, schema, content type, etc. In this particular example, if the option for content type is selected, the post bot will generate a test to verify the content type of the API response. Similarly, the other options for response verification can also be utilized as per the use cases relevant to the API request in question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gMUFk4q3O5wKFBGb" /><figcaption>Testcase generated by postbot to verify the content type of the response.</figcaption></figure><p>However, typing out prompts to specify each test is an extremely laborious and time-consuming exercise, especially in the case of requests with extensive responses. Fortunately, the postbot is intelligent enough to analyze a request by itself and generate all the requisite test cases for the request. Merely typing out a prompt along the lines of ‘add tests to this request’, is sufficient. Postbot will act on this and generate multiple test cases for the request in question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*crkTK6cmJImcVaodQU0MlQ.png" /><figcaption>Multiple tests added to the request</figcaption></figure><p>Another capability that postbot possesses is to analyze, debug and rectify failing tests. For example, in this particular case, if I change the response code from 200 to 201 in the first case, it will cause that test to fail. If I enter a prompt, asking the postbot to correct the test for the response code, it will act accordingly and change the value of the response code to 200 in that test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jM4bq_DVtyUt40BvDfC66g.png" /><figcaption>Postbot rectifies response code value in the test.</figcaption></figure><h4>Test Generation for Entire Collections</h4><p>It is understood that the above-mentioned approaches to test generation can be very hectic and time-consuming; particularly for extensive collections with hundreds of requests. Postbot offers a solution for this issue as well. Postbot can generate tests for the entirety of requests in a collection at once. The procedure is similar to that of test generation for a single request. Select the collection, and open the postbot chatbot. Selecting the ‘generate tests’ CTA will result in test generation for all the requests across an entire collection. The tests are displayed against each request in a tabular form.</p><p>An additional benefit of this format of visual depiction is that the user can analyze the tests for all the requests at one place, and alter them in accordance with the request. For example, while testing a particular request, its performance or response time is not that important compared to other metrics. You are aware of the API’s performance and are sure that the response time will always be more than the threshold specified in the test (e.g. 200ms). Either you can increase the threshold in the said request or remove the request altogether.</p><h3>Visualizing Request Response</h3><p>Postbots most prominent functionality apart from generating tests, is visualizing the responses for the API requests. The procedure is similar to that of test generation and fairly simple.</p><p>After selecting a request, the user can select the visualize response CTA from the postbot. They will be presented in the form of a menu with different visualization options i.e. bar chart, table and line graph. Upon selecting one of the options, the data in the response will be quantified and visualized accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B7yeaCXBNbpCdKAJxxskXA.png" /><figcaption>The response from a POST request visualized in tabular form.</figcaption></figure><p>For example, in the post request placing an order for an animal, the ID and quantity are depicted in the bar graph, since these are values in the response that can be quantified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a1jCAtRVz3Ni6zI7mV1FcA.png" /><figcaption>The response from a POST request visualized in the form of a bar graph, depicting the pet ID as well as the quantity</figcaption></figure><h3>Documentation</h3><p>Another one of postbot’s most prominent and highly effective functionalities is creating documentation for requests. Extensive documentation not only enhances knowledge transfer but also helps customer facing teams in debugging customer issues. However, it is also a fact that extensive documentation is a time-consuming ordeal.</p><p>This is where the postbot steps in. Simply clicking the ‘Add Documentation’ CTA against any request prompts the postbot to create comprehensive documentation for the said request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*7P8t1b5nEqZ0M2V_WgE_pQ.png" /><figcaption>Documentation against a POST request</figcaption></figure><p>In the example shared above, the postbot generated comprehensive documentation for a post request, covering aspects like request body, response body, purpose, request headers, etc. The user can even add more details to the documentation by sending follow-up prompts, as demonstrated in the example below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*ZqaduG5WRou_s-JOdOBq1Q.png" /><figcaption>JSON schema added to the documentation of GET request, after a follow up prompt</figcaption></figure><h3>Debugging Requests</h3><p>A salient feature of postbot is its ability to debug failing API requests; similar to its ability to fix failing tests. This is an invaluable feature for any engineer engaging in API testing.</p><p>In the example below, there is some foreign and irrelevant text in the payload, which is causing the particular POST request to fail and return a 400 error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kh9TMA3i6FnCo0FIYyW6Tw.png" /><figcaption>The irrelevant text in the payload is causing this request to fail.</figcaption></figure><p>Even though postbot might not immediately pinpoint the exact error, if it is pointed to a specific aspect of the request, i.e. the payload in the case, it can pinpoint and identify the error right away. This is a critical functionality and can prove to be of immense value when debugging complex requests with multiple headers and extensive payloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*EIy6hFDKo83BApcSDuC--A.png" /><figcaption>Postbot pointed out the typo in the payload; which was causing the request to fail.</figcaption></figure><h3>Limitations</h3><p>Although postbot is very useful and effective, it comes with some limitations. These challenges and limitations are highlighted below:</p><h4>1) Scope Limited to a Single Request</h4><p>The biggest limitation of postbot at the moment is that its scope of operation is limited to a single request. The only exception in this case is test generation, where it can generate tests for an entire collection at once.</p><p>Otherwise, it cannot analyze any prompt outside the context of the request it is opened against. This makes it challenging to execute prompts against each request individually, particularly in the case of extensive collections.</p><h4>2) Test Generation Prone to Errors</h4><p>Another limitation that postbot manifests is that its tests are erroneous at times. Therefore, human oversight is necessary to ensure that not only the test cases are relevant, but their implementation in code is also correct.</p><p>For example, the date verification test originally generated by postbot was failing, as the regex expression to verify the date was incorrect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4B2duPeVJqZX9s-C-9bfpQ.png" /><figcaption>Date verification test for API response failing due to incorrect regex.</figcaption></figure><p>However when the JavaScript implementation for the test was rectified, then the test passed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jEpr-_ZEsRrXHXuOObiMfQ.png" /><figcaption>Test passing after revised implementation.</figcaption></figure><h3>Conclusion</h3><p>To conclude the article, the postbot is an effective assistant despite some of its shortcomings. Therefore it should be utilized by developers and testers alike, who use Postman regularly. Doing so would lead to a significant uptick in their productivity. This article aims to acquaint the user with the basics of postbot, and how to leverage it to extract maximum benefit. The resources attached below offer a deeper insight into the product for those who are interested. Feel free to reach out in case on any queries. Happy Testing!</p><h3>Resources</h3><p><a href="https://blog.postman.com/postbot-a-look-inside-ai-assistant/">Postbot: a look inside Postman’s AI assistant</a></p><p><a href="https://www.youtube.com/watch?v=8iWcTKN7-98">Integrate Postman with Generative AI for Effective API Testing | Valentin Despa | TestFlix 2023</a></p><p><a href="https://www.youtube.com/watch?v=sxhYMYhYf_8">API testing Beyond the Basics : AI &amp; Automation Techniques | Postman Intergalactic</a></p><p><a href="https://www.youtube.com/watch?v=awYv7bRog0E">Advanced API Testing: Harnessing AI and Automation and Documentation | Postman Intergalactic</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c40d26ba1295" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/postbot-an-overview-of-postmans-gen-ai-assistant-c40d26ba1295">Postbot: An overview of Postman’s Gen AI Assistant</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling Your Performance Testing Scripts Using Grafana k6 Cloud]]></title>
            <link>https://medium.com/emumba/scaling-your-performance-testing-scripts-using-grafana-k6-cloud-4f7524566f85?source=rss-7b2dd94cb834------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f7524566f85</guid>
            <category><![CDATA[k6]]></category>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[scale-testing]]></category>
            <category><![CDATA[load-testing]]></category>
            <category><![CDATA[performance-testing]]></category>
            <dc:creator><![CDATA[Hamza Ali]]></dc:creator>
            <pubDate>Fri, 08 Sep 2023 09:38:14 GMT</pubDate>
            <atom:updated>2023-09-08T09:38:14.652Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ve5uH-NdIGIL9Z0L.png" /></figure><h4>A step by step side guide for configuring and utilizing Grafana k6 cloud</h4><p>In this day and age where traffic growth is expected for web applications, the importance of performance testing cannot be negated or downplayed. Moreover, to ensure a robust mechanism for performance testing it is inevitable to take scalability into account. Grafana k6 Cloud covers its users on both of these fronts. It is a highly effective tool to scale your performance testing scripts in order to ensure your web application’s performance is up to the mark. This blog is written with the intention to walk the reader through the entire process of setting up and using Grafana k6 cloud.</p><h4><strong>What is k6?</strong></h4><p>K6 is an open source load testing tool. It is lightweight in nature and highly effective. The software is developed using Go and the scripts are written in JavaScript. Grafana k6 has a detailed <a href="https://k6.io/docs/">documentation</a> that provides guidance regarding downloading it for different platforms as well as the scripting and execution of a basic script.</p><h4>Scalability in Performance Testing</h4><p>The reason scalability is important for performance testing is that it provides realistic conditions to test the application. However, there are limitations in this regard. A single CPU can only simulate a certain number of virtual users. Beyond that threshold, its performance will start to mitigate. This in turn will impact the performance of the application as well and make it difficult to get an accurate picture. Moreover, it is not possible to simulate web traffic from different geographical locations on a local machine. Using a cloud server can cater for both of these limitations. A cloud server has the capacity to deal with a much larger number of virtual users. Moreover, the traffic can be simulated from different geographical locations. Therefore, using a cloud platform can considerably enhance the scalability for your performance testing.</p><h4>Pre Requisites</h4><ul><li>k6 MSI downloaded</li><li>A basic k6 script.</li><li>An IDE like Visual Studio code.</li></ul><h4>Configuring a Grafana k6 Cloud Account</h4><p>To set up a Grafana k6 Cloud account, navigate to the <a href="https://grafana.com/products/cloud/k6/">Grafana k6</a> website on your browser and complete the registration process. Once a verification email has been received, a team url will be displayed for the user and they will be given the option to choose a region for deploying their server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/0*nq2DAx4wwIeaRQbt" /><figcaption>The team url shown in the image can be used to directly access your Grafana Stack</figcaption></figure><p>When the finish setup button is clicked, the user will be presented with multiple options. Select performance testing.</p><p>Once in the performance testing section, select the ‘projects’ option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*lKx10fcY25kYhceg" /><figcaption>The performance testing section in the Grafana Stack. The Projects Tab is of our main concern.</figcaption></figure><p>In the projects section, click the start testing button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nslmINWM0Bn9kboE" /><figcaption>The project section before any project has been initialized</figcaption></figure><p>A default project will be created as shown below. Projects are a way of grouping tests together. The user can create and delete different projects, but the default project cannot be deleted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/0*ATtDHPNwjB_yylJj" /><figcaption>A high level view of a project</figcaption></figure><h4>Authentication to k6 Cloud:</h4><p>To connect your scripts to Grafana k6 cloud, you can authenticate from the CLI. There are two ways of going about it.</p><p>Firstly you can log in using username and password. Enter the following command:</p><pre>k6 login cloud</pre><p>You will be prompted to enter your account email and password. Upon doing so the authentication process will be complete. Do note that this process only works for accounts set up with an email and not github or gmail accounts — which can only be authenticated using auth tokens.</p><p>Which brings us to our next method of authentication i.e. using a personal API token. If you navigate to the settings tab in the performance testing section, there is an option to copy a personal API token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MGTe9XPJvSp2sMi7" /><figcaption>Accesing the personal API Token</figcaption></figure><p>Then enter the following command into the cli:</p><pre>k6 login cloud — token &lt;YOUR_K6_CLOUD_API_TOKEN&gt;</pre><p>A message in the CLI will indicate that authentication was successful.</p><h4>Executing Tests on The Cloud</h4><p>Now that we have established a connection with our Grafana k6 cloud, let’s move to executing our k6 scripts on the cloud. However, it is crucial to know that the script needs to be linked to a project. When we connect to our Grafana k6 cloud, it is automatically connected to the default project. However, if you wish that your tests are executed under a different project, then you need to configure that project’s ID in your script. Upon opening a project, the ID is displayed directly under the name, as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/0*_gXw96JXGZqMmGTk" /><figcaption>Accessing the project id</figcaption></figure><p>Use the following code to connect your tests to a specific project:</p><pre>export const options = {<br>  ext: {<br>    loadimpact: {<br>      projectID:&lt;your project ID&gt;,<br>    },<br>  },<br>};</pre><p>Now to execute the test locally and send the output to k6 Grafana Cloud, use the following command:</p><pre>k6 run &lt;fileName&gt;.js — out cloud</pre><p>To execute the script on cloud, use the following command:</p><pre>k6 cloud &lt;fileName&gt;.js</pre><p>Now upon refreshing the projects section, the multiple test runs will show up there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zXL_vnG3sasWqk1H" /><figcaption>Multiple test runs against a single project are displayed in this manner</figcaption></figure><p>As evident in the image attached above, multiple runs of the same script can also be compared to each other side by side. This gives us an accurate picture of overall performance trends.</p><h4>Individual Test Results:</h4><p>A sample of detailed results for a single test can be found in the image attached below. The graph below depicts various parameters like response time, request rate and failure rate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ALpLWo65G9WV7PRY" /><figcaption>A view of the results for a test run</figcaption></figure><p>Moreover, in the performance insights section the user is provided with a detailed overview of different metrics like number of thresholds/checks breached, details about each API call etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rlOxkwAW6Ihl0nfl" /><figcaption>The performance insight section in a test result</figcaption></figure><h4>Load Zones:</h4><p>Load Zones are one of the useful features of Grafana k6 Cloud. What a load zone does is that it divides across different geographical locations. This generates a very realistic sort of traffic on the system and tests its ability to handle load from a variety of locations. It tests the application’s performance under different network conditions. Furthermore, using load zones also provides us with an opportunity to analyze how the application scales over multiple geographical areas. To configure load zones, utilize the following code snippet and modify it as per your requirement:</p><pre>export const options = {<br>  ext: {<br>    loadimpact: {<br>      distribution: {<br>        distributionLabel1: { loadZone: &#39;amazon:us:ashburn&#39;, percent: 50 },<br>        distributionLabel2: { loadZone: &#39;amazon:ie:dublin&#39;, percent: 50 },<br>      },<br>    },<br>  },<br>};</pre><p>Do note that whatever number of load zones you utilize, their cumulative percentage should be 100. Also bear in mind that during the free trial version only a single load zone can be utilized.</p><p>A load zone for a test run is displayed as shown in the image below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/0*vMlm6La3ag0Da5uf" /><figcaption>Different information about a test run including the load zones</figcaption></figure><h4>Conclusion:</h4><p>Grafana k6 is a very lightweight yet effective tool for load testing and utilizing it is an ideal approach to scale your performance testing scripts. Hopefully the information in this article should prove sufficient to get someone started with Grafana k6 Cloud.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f7524566f85" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/scaling-your-performance-testing-scripts-using-grafana-k6-cloud-4f7524566f85">Scaling Your Performance Testing Scripts Using Grafana k6 Cloud</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UI Automation Using Appium and WebDriverIO for Native Mobile Apps]]></title>
            <link>https://medium.com/emumba/ui-automation-using-appium-and-webdriverio-for-native-mobile-apps-43b3957fcdff?source=rss-7b2dd94cb834------2</link>
            <guid isPermaLink="false">https://medium.com/p/43b3957fcdff</guid>
            <dc:creator><![CDATA[Hamza Ali]]></dc:creator>
            <pubDate>Tue, 28 Jun 2022 13:44:14 GMT</pubDate>
            <atom:updated>2022-08-23T12:36:53.134Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/567/0*ZRgRw7rxz-XQr2Ji.png" /></figure><h4>Setting up UI Automation for Native Android Applications in JS</h4><p>Keeping in mind the ever growing scope of mobile application development, it is only natural that the need for testing these applications, and automating the testing flows will surge as well.</p><p>Whenever you decide to implement automation in your test suite, it is essential that the foundation i.e. the setup and folder hierarchy is very strong. Initially putting effort into setting up a project properly, and implementing Page Object Model correctly can save one from a lot of hassle in the future.</p><p>This article will walk the reader through the process of setting up a mobile automation project (Android) from scratch. This is a generic setup and can be modified and enhanced as per the needs of the reader.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nfk8ci5hOMMPxNPk.png" /><figcaption>Appium is used for mobile automation across multiple platforms</figcaption></figure><h3><strong>Pre Requisites</strong></h3><p>In order for this article to be beneficent for the reader, it is imperative that these requirements are met :<br>1) Visual Studio Code is installed on the system.</p><p>2) Node.js and NPM is installed.</p><p>3) Android Studio is installed to set up an emulator device.</p><h3>Install Appium on Local Machine</h3><p>To start things off, open the CMD terminal and enter the following command</p><pre>npm install appium -g</pre><p>The command above ensures that appium is installed globally on our system. This is a crucial step because our configurations later on in the article, will be based on the presupposition that appium is installed globally.</p><p>Followed by this, we will install appium doctor similarly, by entering the command below in the cmd terminal.</p><pre>npm install appium-doctor -g</pre><p>Appium doctor is basically utilized to diagnose and rectify common issues with Node, iOS and Android.</p><h4>Installing Appium GUI</h4><p>With the above configurations out of the way, we move towards installing the Appium GUI. The Appium GUI will be installed from <a href="https://github.com/appium/appium-desktop/releases">this</a> GitHub repository. At the time this article is being written, Appium v1.22.3–4 is the latest version, however the user must install the latest version available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nf59XEYyTGS2JiwVHPcvJg.png" /><figcaption>Choose the latest version according to your operating system</figcaption></figure><h4>Installing Appium Inspector</h4><p>The next step in this regard is to install the Appium Inspector. Appium Inspector serves the purpose on inspecting UI elements on a mobile app and making their selectors.</p><p>Appium inspector can be installed from <a href="https://github.com/appium/appium-inspector/releases">this</a> GitHub repository.</p><h3>Adding Java And Android Environment Variables</h3><p>Setting up both these variables beforehand is crucial to avoid any hinderance when working with Appium GUI and Appium Inspector. We are required to configure two environment variables i.e. ANDROID_HOME and JAVA_HOME as their path is required by Appium GUI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*jW4WsK-YIt0phuaNlZaM5w.png" /><figcaption>These are the two environment variables configured on the local machine where this project was set up</figcaption></figure><p>If Java is not already installed on your system, then you can install JAVA SE Development kit for Windows from <a href="https://www.oracle.com/java/technologies/java-se-glance.html">here</a>. Currently JAVA JDK 17 is installed on my local machine, though the reader is urged to install the latest version.</p><p>With Java Development Kit being installed, we now move towards setting up the environment variables. Typing ‘edit the system environment variables’ in the start menu search bar will prompt you to open a control panel dialog box, as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*7lBXIjIfQTootCxrno3Y_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*pQq1nPfLIdcMUWE4OjZpGQ.png" /><figcaption>Selecting the open option in the left picture leads to the dialog box shown in the right opening up</figcaption></figure><p>Clicking the environment variables button will open a dialog box like the one shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*OykRZtMgXewzmZahLukykw.png" /></figure><p>Click on the new button and fill the fields in the dialog box as shown below. The path to the jdk folder is to be provided in the variable value field</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*AD3t_hEIyRYJbmMXmqAVPg.png" /><figcaption>A sample of how to add a new environment variable</figcaption></figure><p>The variable value can be added manually or by using the browse directory option.</p><p>With the variable added, now double click on the path variable, i.e. the one highlighted in the image below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*W_lZ-aXUfGSFp43uW_2j8Q.png" /></figure><p>Basically we will complete the path to our environment variable in this setup.</p><p>Double clicking on the path variable will lead to a new dialog box open, as shown below. Double click on on an empty row and enter the the following text</p><pre>%JAVA_HOME%\bin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*FbhD4GXnd2VbwexnqOufEA.png" /><figcaption>Entering the path for a defined environment variable</figcaption></figure><p>Basically what the entered text implies, is that it is telling the system to go in the bin folder, which is present in the directory which the JAVA_HOME variable leads to.</p><p>The process for adding the android environment variable is exactly same. The process to access the location of the the android development kit is shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cBSbSoGMaC_W-G4kw54hnw.png" /><figcaption>The steps to access Android SDK location.</figcaption></figure><p>As shown in the image above, click on the settings icon. Search ‘system settings’ in the search. Select the Android SDK tab and copy the path to the Android SDK.</p><p>The major difference in the process of setting up an android environment variable is that the following two entries have to be added to the path variable, one after another</p><pre>%ANDROID_HOME%\tools</pre><pre>%ANDROID_HOME%\platform-tools</pre><p>After both the variables have been added, enter their paths in the Appium GUI settings as shown in the images below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*TDLqe1byA83BZ_W0Ksh2eQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*-yDsamLaycmYMaH-9JlXxQ.png" /><figcaption>Process for configuring the environment variables in the Appium GUI</figcaption></figure><h3>Setting Up a Virtual Android Device</h3><p>Click on the ‘tools’ on top on the Android Studio window and select the option ‘device manager’. Upon the device manager opening, select the ‘create device’ option. The following window will pop up. Select the hardware of your liking and proceed further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppBp46PAtXV2OKV4e_RQow.png" /></figure><p>After that, select a system image. Bear in mind that the first time, you will have to download one of the system images, from the options shown in the image below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-Lnuv_3CD3zO7Mn9Y-QCQ.png" /><figcaption>A view of the choices of system images in Android Studio</figcaption></figure><p>In the final step, you can assign the device a name of your liking, as well as choose it’s orientation between portrait and landscape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eKM64ZunQKPa5rTy24Sfbg.png" /><figcaption>The final step to set up a virtual android device</figcaption></figure><p>Now the device will be visible in the device manager. Clicking on the play button will lead to the device running in the emulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*C26-MjDVTVjWig8HDQbThQ.png" /><figcaption>A virtual android device running in the emulator</figcaption></figure><h3>Setting Up a basic WebDriver IO project on VS Code:</h3><p>Since we are done with the settings pertaining to android studio, now we will move to setting up our project in visual studio code. Create a folder in your system giving it your project’s name. Open that folder using VS Code.</p><p>The first command to be entered in the terminal is as follows:-</p><pre>npm init</pre><p>This command will initialize init in the project.</p><p>Following this, we will initialize WebDriver IO with the command given below</p><pre>npm init wdio</pre><p>This command will be followed by a series of questions, that we will answer one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*5U18oznxn_Uc0174PWRufA.png" /></figure><p>For this project, all of our working will be on the local machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*drgTjsZ8bGzUUgn9ypkRrg.png" /></figure><p>We will be using the mocha framework for writing test cases. Moreover, we will be using the typescript compiler</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNHQ5rcy_mD-fDRz987DHw.png" /></figure><p>One thing to bear in mind in this case is that in questions where we can select multiple options, use space to select or unselect the options. Pressing enter to do so will result in moving on to the next question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*ofmKYkV0bxNKCEPeWvAxtw.png" /><figcaption>Overview for our wdio configurations</figcaption></figure><p>The above image is an overview of our selected configurations for the project. The most important ones out of these are that we are working with the typescript compiler in this project, mocha framework and appium service.</p><p>Answering with ‘y’ for the last question will result in all the requisite dependencies being installed.</p><h3>Modifications Regarding the Config File(s)</h3><p>Having set up a very basic structure, we will now move towards modifying the configuration file to suit our needs.</p><p>Firstly, we will rename ‘wdio.conf.ts’ to ‘wdio.shared.conf.ts’. Then we will proceed to undertaking some editing in this file.</p><p>First and foremost, we will modify the config file’s export. We will change it from ‘Options.Testrunner’ to WebdriverIO.config.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*X5TVIT4fljLsEJ-rSLOFQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*MuG9pS4QsBI_9JXTcgkwUw.png" /><figcaption>The configuration file’s export before(left) and after modification( right)</figcaption></figure><p>Furthermore, the code under ts-Node Configurations can be commented out/ removed, as well will compensate for it elsewhere.</p><p>We will not specify any test files to be run here, as their path will be given in another configuration file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z8_RsxNsLFuTre1IG4vvtA.png" /><figcaption>No test files to be specified in the shared configuration file</figcaption></figure><p>The capabilities array, i.e. the one where the browser to be used for testing is specified, while be completely emptied, since it is not relevant to us as of now. Similarly we will remove the service specified in this config file as well</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*ytnxJUYp7Sq7LdFb2pEfmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*vNVCtj7HWNy-6WaxPugKGA.png" /><figcaption>Capabilities array and the service specified will be completely emptied</figcaption></figure><h4>Appium Configuration File</h4><p>Having modified the main configuration file, now we will make a derived config file to configure appium for this particular project.</p><p>Initial we will import the configuration settings from the main config file using the line below</p><pre>import { config } from “./wdio.shared.conf”;</pre><p>However, bear in mind that for this to work, the derived configuration file must be right next to the original one, otherwise the import path will have to be modified accordingly.</p><p>Next, use the snippet given below to utilize the globally installed appium for this project.</p><pre>config.services = (config.services ? config.services : []).concat([</pre><pre>[</pre><pre>&quot;appium&quot;,</pre><pre>{</pre><pre>// This will use the globally installed version of Appium</pre><pre>command: &quot;appium&quot;,</pre><pre>args: {</pre><pre>// This is needed to tell Appium that we can execute local ADB commands</pre><pre>// and to automatically download the latest version of ChromeDriver</pre><pre>relaxedSecurity: true,</pre><pre>address: &quot;localhost&quot;,</pre><pre>// Write the Appium logs to a file in the root of the directory</pre><pre>log: &quot;./appium.log&quot;,</pre><pre> },</pre><pre> },</pre><pre> ],</pre><pre>]);</pre><p>These lines of code will be followed by configuring the port number and exporting these settings, as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*44bdpP2SFPrhZ_i2CEyCIw.png" /><figcaption>Server configurations for Appium</figcaption></figure><h4>Android Configuration File</h4><p>Now we will create a second derived configuration file, named ‘wdio.android.app.conf.ts’. This configuration file will cater to the Android Application configurations as well as specify the test files to be executed.</p><p>Add these two imports at the start of the file ( modify the file path accordingly)</p><pre>import { join } from ‘path’;</pre><pre>import config from ‘./wdio.shared.local.appium.conf’;</pre><p>Now, we will specify the test files to be executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*yM9eluK2MKR3nPUyDVtD7A.png" /><figcaption>Test files to be executed</figcaption></figure><p>Next, we will configure the capabilities here, the ones that we left empty in the shared configuration file. We will configure the capabilities as shown below, in order to ensure mobile automation testing is possible on our project. Moreover, we also export these configuration settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*R99BM4_YhNhbJlo0comcMw.png" /><figcaption>Capabilities configuration for mobile automation</figcaption></figure><p>This is worth mentioning again, that attributes like the appActivity, as well as the path to the application, depends on the user. Moreover, be sure that the android version mentioned here, matches that of your virtual android device.</p><h3>Setting up Appium GUI and Appium Inspector</h3><p>Now we are moving towards the most crucial steps for the success of our venture. Personally I had to deal with a lot of frustration and confusion in these steps, so I will try my level best to ensure the reader does not have to go through the same.</p><p>We had already set up the environment variables in the previous steps, so now we will move towards the remaining configurations.</p><p>Start off entering the Host name as ‘localhost’ and the port number as ‘4723’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*Z1wYtK7vkZlUSgK29XkCaQ.png" /><figcaption>Basic configurations for Appium GUI</figcaption></figure><p>Next, move to the advanced settings tab, and select the Allow Cors option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*gAzeSlIei_LvJzY3dV_55A.png" /><figcaption>General section of the advanced settings tab.</figcaption></figure><p>With Appium GUI out of the way, we now move towards Appium inspector. The remote and remote port name will be the same as in the Appium GUI. For the remote path field, enter the value ‘/wd/hub’.</p><p>Moreover, select ‘Allow Unauthorized Certificates’ in the ‘Advanced Settings’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_FDsnsoyZfEjRu6_mgkEGw.png" /><figcaption>An overview of server configurations for Appium inspector.</figcaption></figure><p>Now we will focus on the desired capabilities part of appium inspector. The capabilities are added in the form of a .json object. Each key value pair in the .json object will be listed on the side as well. You can enter the attributes directly in the .json object, or by using the plus button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eDa6UYC_unwa1cpwnKK81Q.png" /><figcaption>Desired capabilities for appium inspector.</figcaption></figure><p>The automation name is particular to performing these sort of tests with appium, whereas the remaining attributes may vary.</p><p>A good practice when working with Appium GUI and Appium Inspector, is that once you find a combination of settings that works, save them as a preset.</p><p>I have saved the following presets for Appium GUI and Appium Inspector, that I am sharing below for reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*SLPYwK-kpzaSBHgPQMSLWg.png" /><figcaption>Appium GUI preset</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7EVkEPxxz58RtD_y1w6GMA.png" /><figcaption>Appium Inspector preset</figcaption></figure><h3>Writing the Code And Running Tests:</h3><p>Before we proceeding to actually start building a project hierarchy and writing code, it is necessary to go through how to make selectors for your application, using Appium Inspector.</p><h4>Making Selectors with Appium Inspector</h4><p><em>Note: You must run the appium server, as well the virtual android device, to execute a session in appium inspector</em></p><p>Upon starting the Appium Inspector session, a screen like the one shown below would be displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*m19LD5h06xKNGSFgiPVz2A.png" /><figcaption>Initial display of mobile app on Appium Inspector</figcaption></figure><p>Upon selecting an element on the UI, we are presented with multiple options linked to it. We can make it’s xpath or a selector from an id, given they are present. Moreover we can also tap on the element if it is a button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*apz3LM_hTAGLZgyqutR79w.png" /><figcaption>Interacting with an element on the application UI, using appium inspector</figcaption></figure><h4>Setting Up a File Hierarchy</h4><p>The file hierarchy that I have utilized in this project is attached below for the reader’s reference. A main folder by the name of ‘formaUI’ was made, and followed by subsequent folders, corresponding to different screens on the app, that we encounter during our automation flow. The spec files to run the test are under the spec folder. The actions and user interface folder have common actions and common selectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*bgXQXHKUFRXeMalIdjt-Pg.png" /><figcaption>File hierarchy for this project.</figcaption></figure><p>These folders are further divided . Each folder has different files pertaining to selectors, actions, tasks and assertions pertaining to that webpage. A folder might have one of these typescript files, or all four of them, depending on the tests to be performed on that page. If there are multiple files like these under a screen folder, they may also be categorized into folders of actions, selectors etc.</p><h4>Running a Test</h4><p>Having gone through the extensive process, now we will proceed to actually running our tests. Follow the steps mentioned below to run your first test.</p><ol><li>Run the virtual android device in Android Studio.</li><li>Start the Appium Server from the Appium GUI.</li><li>Type this command in the vs code terminal</li></ol><pre>wdio run &lt;path to android configuration file&gt;</pre><h3>Conclusion:</h3><p>The entire process explained in this blog is the first step in the direction of test automation for android apps. You can build upon this foundation to design a mobile test automation suite, as per your requirements. The git repo link to a boilerplate code for such a setup, designed by myself, is attached herewith.</p><h3>Resources:</h3><p>1- <a href="https://github.com/hamza-ali99/Appium-WDIO-Boilerplate-Code">Appium WDIO Boilerplate Repository</a></p><p>2-<a href="https://appium.io/docs/en/about-appium/api/">Appium documentation</a></p><p>3- <a href="https://nodejs.org/en/download/">Download Node.js</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43b3957fcdff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/ui-automation-using-appium-and-webdriverio-for-native-mobile-apps-43b3957fcdff">UI Automation Using Appium and WebDriverIO for Native Mobile Apps</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Muhammad Ali vs George Foreman-Against All Odds]]></title>
            <link>https://hamzaali-12667.medium.com/muhammad-ali-vs-george-foreman-against-all-odds-975ba57cc28d?source=rss-7b2dd94cb834------2</link>
            <guid isPermaLink="false">https://medium.com/p/975ba57cc28d</guid>
            <category><![CDATA[george-foreman]]></category>
            <category><![CDATA[boxing]]></category>
            <category><![CDATA[muhammad-ali]]></category>
            <dc:creator><![CDATA[Hamza Ali]]></dc:creator>
            <pubDate>Wed, 24 Mar 2021 12:01:16 GMT</pubDate>
            <atom:updated>2021-03-24T12:53:43.325Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*INRdUNqDVfRtB84rm2AuTA.jpeg" /><figcaption>Ali and Foreman face off in the “Rumble in The Jungle”</figcaption></figure><p>If one was to sit down and compile a list of the greatest sportsmen of all time, it is highly unlikely that Muhammad Ali would not feature on that list. Ali was without an iota of doubt, one of the greatest and most well known boxers of all time.</p><p>Ali’s career comprises of numerous memorable encounters. From Ali’s first fight against Henry Cooper in the early 1960s to his epic showdown against Earnie Shavers in 1977, each encounter is memorable in it’s own way. The “Thrilla in Manila”, i.e. his third and last fight against Joe Frazier, is of such importance and significance that entire books have been written about that fight alone. However, if one was to pick a single fight that decided once and for all that Ali was “The Greatest” when it came to boxing, that would be “The Rumble in The Jungle”.</p><p>The Rumble in the Jungle took place in Zaire (present day Congo) on October 30, 1974. This was a World Heavyweight Championship match between the then champion George Foreman and Muhammad Ali. This fight is known as one of the greatest boxing matches of all times. Not only that, it is known as the greatest sporting event of the 20th century. To understand the significance of this fight, one needs to know a bit about George Foreman’s record prior to this fight. The fact that Muhammad Ali went into this fight as a 4–1 underdog is also crucial and self explanatory.</p><p>Ali’s career can be divided into two phases. The second phase began when he came back after an exile of 4 years from boxing. He fought against Joe Frazier in a title match, in 1971. This match was known as “The Fight of the Century.” To everyone’s astonishment, Ali ended up losing this fight. This was the first time in his career that Ali lost a boxing match. A few months down the road Ali lost another match against Ken Norton, an underdog and relatively unknown boxer at that time. These two defeats were quite a setback to Ali. It seemed that the four year ban took it’s toll on him and his days of glory were long gone now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*1ag7tnHAwSbNQAtI4AYqcA.jpeg" /><figcaption>Frazier walks back to his corner after knocking down Ali in the first fight of their epic trilogy.</figcaption></figure><p>An interesting development during this time was the unforeseen rise of George Foreman. This young boxer took the boxing scene by storm. He knocked down the heavyweight champion Joe Frazier seven times to claim the championship title in a one sided match. Howard Cosell’s well known commentary lines during this match “ Down goes Frazier! Down goes Frazier!” are cemented in boxing history to date. After this, George Foreman went on to demolish Ken Norton as well. It is worth noting here that Norton was the only person besides Frazier to have defeated Ali in a boxing match. By this point Foreman had established himself as an invincible giant in boxing.</p><p>These developments presented a completely new challenge for Ali. After his two massive defeats it seemed that Ali’s prime and era of greatness was a story of the past and long gone now. However, being the fighter that Ali was, he came back stronger. Personally speaking, this never say die attitude of his is one of the main reasons I admire Ali so much. Ali bounced back after 6 months of having his jaw broken by defeating Ken Norton in an epic rematch. He went on to gain victory over Joe Frazier in their second fight. These consistent victories allowed Ali to finally to become the top contender for the world heavyweight title.</p><p>As mentioned earlier, Ali went into this fight as a 4–1 underdog. There are a plethora of reasons for that. The main reason being that Ali’s prime seemed to have gone. He didn’t have the same speed and sharp reflexes as he did prior to his exile. Staying out of the rings during the four years of his prime did take a toll on Ali. The second most prominent reason for this notion was the aura of invincibility surrounding George Foreman. Before facing Ali, Foreman had a flawless record of 40–0 which included 37 knockouts. Foreman’s longest fight was a slug-fest with Ron Lyle which only lasted 5 rounds. The whole world had seen how effortlessly Foreman defeated, rather brutalized Frazier and Norton, both of whom had defeated Ali. These factors combined made it seem nearly impossible for Ali to defeat Foreman. Hardly anyone even gave him a chance. Even Howard Cosell, a sports journalist and dear friend of Ali, expressed his hopelessness and concern for Ali’s safety with regards to this fight.</p><p>Ali’s attitude however, was indifferent to this negativity. He was hyping up this fight and was having the time of his life doing so. He received a hero’s welcome upon landing in Zaire. Everywhere he went, he was followed by crowds chanting “Ali bomaye! Ali boamye!”, meaning “Ali kill him! Ali kill him”. This was the thing with Muhammad Ali. He was a beacon of hope. His mere presence uplifted those around him. His personality and larger than life aura gave people hope that life is beautiful and worth living. The video shared below is a perfect example of all the things discussed in this paragraph. This self belief was a hallmark of Ali’s personality and made him lovable to such an extent.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fo35qHqzbD1M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Do35qHqzbD1M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fo35qHqzbD1M%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/918d17392f8c0e2b8054b3b241ac093d/href">https://medium.com/media/918d17392f8c0e2b8054b3b241ac093d/href</a></iframe><p>The fight took place on 30th October,1974. 60,000 people witnessed the fight in the stadium live and 1 billion viewers say it on television worldwide. The fight took place at 4am in the morning so that viewers around the world could witness it. It was one of the most watched live television broadcasts of all time.</p><p>As soon as the bell rang, contrary to everyone’s expectations, Ali went at Foreman with all guns blazing. He struck a right hand to Foreman’s head in the initial seconds of the match. This was a very strong message by Ali. Ali’s classical style was “sticking and moving”. He himself claimed numerous times before the fight that he would adopt this strategy. Now he was doing the completely opposite. He had an aggressive approach. He was standing his ground and fighting pound to pound.</p><p>To understand Ali’s actions throughout this fight, it is important to dissect the fighting styles of both the fighters. Foreman relied to his excessive force. A staple trick of his, was to set his opponents off balance, by pushing their shoulders. This would give him time and space, to set his opponents up for powerful blows. Another trick of Foreman, was to push down his opponent’s arms. Ali’s fighting style was the antidote to that of Foreman’s. Ali had cat like reflexes. Whenever Foreman was raise his arms to push him, it would provide Ali an opening and he would land a quick punch onto Foreman’s face. Ali himself, on the other hand, was known for evading punches through his head movement alone. This was the norm is all of Ali’s main fights. Thus he remained safe most of the time. Moreover, when Foreman would try to push Ali’s arms down, Ali would quickly bring his hand over and land a punch. This difference in the style of both fighters, favored Ali immensely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*owxeFpxOVBSVaA5PZG1qKA.jpeg" /><figcaption>One of the most iconic images from The Rumble in The Jungle, where Ali can be seen landing a powerful punch on Foreman.</figcaption></figure><p>However, this approach wasn’t feasible in the long run for Ali. It demanded too much energy. Ali realized this quickly. After a few rounds passed, he started to adopt an approach that no one had expected from him. He began to lean at the ropes and let Foreman take his best shots. On the surface it seemed as if Ali was taking damage. In reality he was tiring George Foreman out. He knew he couldn’t out-muscle Foreman, so he had to outsmart him. The technique which Ali applied here would be known as the classic “rope-a-dope”.</p><p>What Ali did here was, he used the ropes intelligently to absorb the intensity of Foreman’s blows. Moreover, he deflected a significant amount of punches off his elbows and forearms. In the 6 round George Foreman recalls that after he had landed a series of blows on Ali, the former champion whispered into his ears, “that all you got George? that all you got?”. It is worth noting here, that throughout this time, Ali retaliated in between and landed a significant amount of punches on his opponents. His strategy was two pronged, i.e. to inflict damage upon Foreman, as well as to tire him out.</p><p>By the eighth round, Foreman had visibly tired out. At one point he tried to land a powerful blow on Ali, but failed to do so. Ali had gotten a brilliant chance at this moment, and he capitalized upon it fully. Ali had gotten Foreman’s head in such a position, that the latter could neither attack, nor defend himself. What followed after this was perhaps the most beautiful combination of punches and knockdown, that the boxing world has witnessed. 1 billion viewers worldwide, watched in awe, as George Foreman aura of invincibility was shattered. The crowd of 60,000 at Zaire that night, roared in ecstasy, as their hero knocked down Foreman to the ground. It is worth noting here that while Foreman was tumbling, Ali could have landed another blow, but he did not. As Ali would say later “he (Foreman) had had enough already”. This gesture by Ali was a huge reason why George became his friend and admirer afterwards.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJUrZp-rWOgU&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJUrZp-rWOgU&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FJUrZp-rWOgU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f5337f68408db575b1f61e3fc69011ef/href">https://medium.com/media/f5337f68408db575b1f61e3fc69011ef/href</a></iframe><p>The whole world was is shock and immense joy over this unbelievable victory. Ali had proven all the predictions and assessments wrong, and came out on top, against all odds. This victory alone would render him the GOAT (greatest of all time) of boxing. His victory speech after the fight went like this: “I told you..I told my critics, I told you all,…. I was the greatest of all times when I beat Sunny Liston..I told you today..I’m still the greatest of all times…never again will you say I’m gonna be defeated, never again will you make me the underdog, until I’m about 50 years old, then you might get me.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97AbmDWZc7VJqiIgLcQ1Rw.jpeg" /><figcaption>Ali walks back to his corner after knocking Foreman down, while the referee’s count ensues.</figcaption></figure><p>This fight is known as the greatest competition in boxing history, and rightfully so. The manner in which Ali overcame his fears, proved all predictions wrong and toppled a seemingly invincible giant like Foreman, is something we can all learn from. We all have a Gorge Foreman in our lives, an obstacle, an insecurity or a limitation. We can either let it consume us, or rise up to face it and defeat it, similar the manner in which Ali triumphed over the seemingly invincible Foreman. This victory alone, can be termed as perhaps the most illustrious one of Ali’s career, and a crucial part of his legacy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=975ba57cc28d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Inspiring Legacy of Muhammad Ali.]]></title>
            <link>https://hamzaali-12667.medium.com/the-inspiring-legacy-of-muhammad-ali-c9c1871fc322?source=rss-7b2dd94cb834------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9c1871fc322</guid>
            <dc:creator><![CDATA[Hamza Ali]]></dc:creator>
            <pubDate>Tue, 31 Mar 2020 14:25:12 GMT</pubDate>
            <atom:updated>2020-03-31T14:25:12.595Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c_U_ZYegbPZqwqKzH81WNg.jpeg" /></figure><p><em>Today’s youth cannot comprehend how much of an extremely popular, inspirational, electrifying and larger than life character Muhammad Ali was.</em></p><p>I’ll begin the article by asking a few simple questions. Do you have basic surface level knowledge regarding boxing? Do you know how many rounds a boxing match has? Are you aware how boxing has evolved over the decades. Finally, do you know who Muhammad Ali was?</p><p>I’m sure that 90% of the people reading this article (if anyone reads it) can answer the last question even if they have no knowledge of boxing whatsoever. Every sport has some individuals associated with it that transcend it’s boundaries and become even larger than the sport itself. Michael Jordan, Tiger Woods, Roger Federer, Pele and the list is not exhaustible by any means. So how was Muhammad Ali different from these athletes?</p><p>What separates Muhammad Ali from other athletes is that boxing alone does not define him as a person by any means whatsoever. Rather to define and see Ali merely as a heavyweight boxer would be a grave injustice. This does not imply that his athletic achievements are trivial. A record 3 time world heavyweight champion, 56 wins with 37 knockouts, defeating all time greats like Sonny Liston, George Foreman and Joe Frazier, Muhammad Ali was undoubtedly one of the greatest boxers of all time. What is intended to be stated here is that people all over the world did not love and adore him only due to his accomplishments in the ring. What made him so immensely popular over the globe was his charming personality, his impeccable sense of humor, his love for humanity and most importantly his courage to stand up for what he believed in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*655IvqYdNQNlDjlVWQM8rA.jpeg" /></figure><p>The most prominent feature of Ali’s life has been going against the odds, on coming out on top 90% of the time. Ali’s journey to greatness started as a 12 year old in Louisville, Kentucky, USA. When 12 year old Cassius Clay (his birth name, which he changed to Muhammad Ali after converting to Islam) ran to a police officer named Joe Martin crying and told him that his bike was stolen that was the exact moment this journey started. The world is deeply indebted to Joe Martin for finding and beginning the process of carving the gem that the world would later know as Muhammad Ali. Joe invite young Cassius to join his boxing club.</p><p>Ali joined the boxing club and shortly began his career as an amateur fighter. He won the gold medal in boxing for the USA at the Rome Olympics of 1960 after which he started his career as a professional heavyweight boxer. He ascended the ranks and finally got a shot at the heavyweight championship title in 1964. He was fighting against Sonny Liston, one of the most powerful and dangerous boxers of all time. The odds were one to seven against him. Experts were claiming that his unorthodox style of ‘sticking and moving’ would make him vulnerable. Ali on the other hand was extremely confident. He was already famous for predicting the rounds in which he would knockout his opponents. He gave a famous tagline for this match “Liston might be great but he’ll fall in eight.</p><p>What happened on February 25th 1964 shocked the whole world. After six rounds of fighting Liston refused to come out in the sixth round and Ali was declared as the winner. His euphoric speech after the victory was a sight to behold.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FBY6_3Y7OOo8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DBY6_3Y7OOo8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FBY6_3Y7OOo8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b8f4af7bbfce19d13dad5fe1402dda7c/href">https://medium.com/media/b8f4af7bbfce19d13dad5fe1402dda7c/href</a></iframe><p><em>“I must be the greatest! I shook up the world! I talk to God everyday and when God’s with me can’t nobody be against me. I shook up the world!” </em>These words have a chilling affect on me whenever I hear them, because this isn’t a prepared formal speech. These are words coming straight from a man’s heart who overcome all seemingly insurmountable obstacles against all odds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*plzqdSmEeTy0tGji7ld-vA.jpeg" /><figcaption>In this April 28, 1967 file photo, heavyweight boxing champion Muhammad Ali is escorted from the Armed Forces Examining and Entrance Station in Houston by Lt. Col. J. Edwin McKee, commandant of the station, after Ali refused Army induction. Ali says he was a conscientious objector who would not serve in the Army of a country that treated members of his race as second-class citizens.</figcaption></figure><p>It is a well known fact that Muhammad Ali’s greatest fights were outside the ring. These fights were against racism, subjugation, injustice and even the United States Armed Forces, far mightier foes than those whom he fight against inside the ring. Ali was an active member of the Nation of Islam, and a staunch advocate of the fundamental rights of the black community in the USA.</p><p>In 1966, Muhammad Ali received a notice to be drafted into the United States Armed Forces and serve for his country in Vietnam. Ali downright refused to do so. The most famous line he said in his defense was “<em>I ain’t got no quarrel with them Viet Cong, they never called me a n****r</em>”. Ali’s point of view was that the Vietnam war as an unjust war. Moreover, he stated that it was against his religious beliefs to fight a war on behest of non-Muslims.</p><p>Ali had to pay a great price for standing up for what he believed in. His boxing license was revoked in 1967 and his passport confiscated rendering him unable to box anywhere in the world. Moreover, the impending threat of a heavy fine and being jailed was also very much present. Ali filed a case in the Supreme Court against his local drafting board that rejected his application to be considered as conscientious objector. The case famously known as “Clay v. United States” went on for four years until June 1971.</p><p>On June 28th 1971, The Supreme Court through a unanimous decision 0f 8–0 reversed Ali’s conviction in 1967 as a draft evader. It is worth noting here that standing up for his beliefs cost Ali the four most valuable years of his boxing career not to mention the tremendous financial loss. His athletic abilities had also considerably dwindled after his comeback.</p><p>Despite that Ali went on to win the world heavyweight championship twice after his comeback. Some of the most memorable matches of his career took place in the second phase. These include the fight of the century and the Thrilla in Manilla(both fights against Joe Frazier) and the Rumble in the Jungle( against George Foreman). How Ali defeated the seemingly invincible George Foreman in Zaire in 1974, is a romantic tale which we shall save for another day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kmuri92MYUYCHeJnZtH9ZA.jpeg" /><figcaption>Muhammad Ali delivers a powerful punch to George Foreman during their epic bout in 1974. This match is widely regarded as the greatest boxing fights of all time.</figcaption></figure><p>An single article on medium written by an amateur like myself cannot possibly do just to the legacy of ‘The Greatest’ Muhammad Ali. The sole purpose of writing this article was to instill a sense of optimism and hope in the readers that the human spirit is capable of persisting in the face of massive obstacles and hurdles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9c1871fc322" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>