<?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 Anuj Shankar on Medium]]></title>
        <description><![CDATA[Stories by Anuj Shankar on Medium]]></description>
        <link>https://medium.com/@anujshankar95?source=rss-72f521d51ec6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*zCFIz-T53RBzHMeV.</url>
            <title>Stories by Anuj Shankar on Medium</title>
            <link>https://medium.com/@anujshankar95?source=rss-72f521d51ec6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:32:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anujshankar95/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[Designing for a ‘winning’ Life: A conservation with Gaurav Sharma]]></title>
            <link>https://medium.com/@anujshankar95/designing-for-a-winning-life-a-conservation-with-gaurav-sharma-37cbc8886a7b?source=rss-72f521d51ec6------2</link>
            <guid isPermaLink="false">https://medium.com/p/37cbc8886a7b</guid>
            <category><![CDATA[purpose]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[mentorship]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[values]]></category>
            <dc:creator><![CDATA[Anuj Shankar]]></dc:creator>
            <pubDate>Fri, 26 Jun 2020 06:33:26 GMT</pubDate>
            <atom:updated>2020-06-26T11:20:04.730Z</atom:updated>
            <content:encoded><![CDATA[<h3>Designing for a ‘winning’ Life: A conversation with Gaurav Sharma</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y17HMzmjtw9N99pstsBsLA.jpeg" /><figcaption>Credits: <a href="https://media.swncdn.com/cms/CW/faith/59915-aleksandr-ledogorov-310150-unsplash.1200w.tn.jpg">https://media.swncdn.com/cms/CW/faith/59915-aleksandr-ledogorov-310150-unsplash.1200w.tn.jpg</a></figcaption></figure><p>Today, I got the opportunity to speak with <a href="https://twitter.com/Gaurav1105">Gaurav Sharma</a>. He has been a guide to me since we met in person on 4th Jan 2020. I always look forward to our calls as I find them highly positive, filled with wisdom and fun. This time I wanted to pick his brains on purpose, values, principles, vision one holds, essential skills required to perfecting and winning at life.</p><blockquote>I started sharing my principles, with a desire to stress test them by seeking his thoughts.</blockquote><blockquote><strong>Principle 1:</strong> Live your life with integrity. Doesn’t matter if you lose money or relationships.</blockquote><blockquote><strong>Principle 2: </strong>Knowledge is power. Be curious.</blockquote><blockquote><strong>Principle 3: </strong>Never give up. Be strong to face any situation.</blockquote><blockquote><strong>Principle 4: </strong>Be adaptive to change. Be radically open-minded.</blockquote><blockquote><strong>Health: </strong>Health is wealth. Personal well-being is the most important part of your life journey.</blockquote><blockquote><strong>Personal: </strong>Build a well-knit family for whom you deeply care about. Be present for them.</blockquote><blockquote><strong>Professional: </strong>Build your own technology business / in collaboration with someone who you believe in. Solve scalable problems. Ease the lives of people.</blockquote><blockquote><strong>Service: </strong>Give back to society — help scale NGOs — build a think tank to solve problems related to healthcare and education.</blockquote><p>Which lead to the following questions and ideas that Gaurav shared:</p><ol><li>Life is a single-player game. Understand the cheat codes fast.</li><li>What “systems” you are building around your vision/goals? “Systems thinking” is better than having more goals.</li><li>Habits: Categorise habits that are taking you ‘closer to/away from’ your goals. Audit your habits regularly.</li><li><strong>Build your life around people, not things.</strong> Focus on building non-transactional, trust-based relationships.</li><li>Always contribute/add value, without seeking anything in return. You reap what you sow. Many people don’t learn this basic principle of any relationship-building process.</li><li>“Play long term games with long term people.” There are a lot of people around catching a field mouse. Life will become more meaningful when you stop focusing on short term games.</li><li>Practice Inversion: Start with the endgame in mind. Cut out the things that you don’t have to do while playing the game of life.</li></ol><p>After these thought gems, I started asking him questions around: <em>how to stay relevant, gaining knowledge, building skills, managing time, seeking mentors and a lot of more.</em> The answers given by Gaurav left a deep impact. Here you go:</p><h3><strong>How does one stay relevant in this rapidly changing ‘uncertain’ world?</strong></h3><ol><li>Build your network. Add continuous value to your network. Create an ‘unfair advantage’.</li><li>Develop skills to learn and unlearn fast. Improve your ability to learn by mastering 2 basic skills — “Reading” and “Writing”. Once you are comfortable with the first two skills move to “Effective Communication” — such as conflict resolutions, negotiation, persuasion etc.</li><li>Pick up 2 new-skills related to your interests every year. learn from ‘best-minds’ to understand what’s new in your industry.</li><li>Always have the “super-power” of 2–3 skills. Deep expertise. People should know that you are the best at X, Y, Z skills.</li><li>Be long-term focused.</li></ol><h3>Is life a marathon or a sprint?</h3><ol><li>Life is nothing but FLOW. Go LIVE. Go with the flow and enjoy being and gather experiences. There are two ways to live your life: exist or live. Most people just exist. To live is to understand and act as though you could be dead tomorrow.</li><li>Life is FRAGILE. Don’t take yourself too seriously. Invest in meaningful relationships. Define your own success.</li><li>Nature is <em>frictionless</em>. There is no ‘struggle’ in life. Try to understand when you start resisting things and reflect deeply. Optimise to reduce the struggle in life. Don’t waste your time by ‘climbing the wrong hill’. Explore a lot. “Be Water”. Discover your natural talents. Also, understand there is a huge difference between ‘struggle’ and ‘pain’. Pain is growth. That’s how you build muscles. If you’re struggling, you’re doing something wrong. That’s the feedback.</li><li>Navigate “uncertainty paradigm”. Be in an ecosystem that supports your vision/goals. Tail-winds vs Head-winds.</li><li>Happiness is “now”. Happiness is a spectrum. Stop proving things to others. Life is much more than that. We’re just a very minuscule part of this universe. Book recommendation: <a href="https://www.amazon.in/Pale-Blue-Dot-Vision-Future/dp/0345376595/">Pale Blue Dot</a> by Carl Sagan</li><li>“From the moment we’re born, we begin to die.”</li><li>“If it doesn’t open, it’s not your door”</li></ol><h3>How does one have good mentors and coaches?</h3><ol><li>Stop seeking mentors. Don’t run after them. Become so good that they can’t ignore you.</li><li>Become a student, become a learner. “When the student is ready the teacher appears.”</li><li>Understand the concept of <strong>‘learning through observation’</strong>. e.g. The great story of Eklavya, Arjuna and Dronacharya. Eklavya learnt by observing and mastered the art of archery. Study people who inspire you and learn from observing them.</li></ol><h3><strong>How to build a strong network of highly influential people?</strong></h3><ol><li>Stop seeking connections. Start helping people (without seeking anything in return). The network will find you. The strongest networks in the world are ‘invisible’.</li><li>Never come across as a needy person. Everyone in this world wants to partner-up. E.g. Zuck wants to partner-up with Gates, and Gates wants to partner-up with Obama. Make real contributions and find ways to help people around you. Become the magnet. Build your reputation as a ‘high-integrity and trust’ individual and guard it with your life.</li><li>Earn the right to be at the table, and be invited back. Let’s say you ‘serendipitously’ met someone, on Twitter/on an airplane/in a cafe. Make that one conversation meaningful such that — you get invited back for the next conversation/meeting.</li><li>Be a good listener. One quality of a good listener is that they never judge people.</li><li>Help your peers. Select *5-monkeys* very carefully.</li></ol><h3>How should one think about the skills and knowledge?</h3><p>First understanding the difference between Knowledge and Skill</p><p>Knowledge is of two types: Primary and Secondary.</p><p><strong>Primary Knowledge:</strong> Knowledge that does not change no matter what. e.g. The sun rises in the east, gravity pulls us down, everyone dies. When you start assimilating this kind of knowledge, the compounding effect is triggered.</p><p><strong>Secondary Knowledge: </strong>Knowledge that changes frequently with time. e.g. GDP of a country, President of India, Features of a product, Technology Platform etc.</p><p><strong>Design a system to “learn primary knowledge” really fast.</strong></p><p>Skills are the art of using knowledge ‘to create or build something’. The main ingredient of skill is knowledge. Skills can be commoditised depending on where they lie on the “value spectrum”. e.g. growing potatoes, making biryani, writing an algorithm, drawing technical architecture etc.</p><p>Let’s expand this further:</p><p><strong>Net Positive Outcome: </strong>Skills should have a “net positive” outcome. Yes, there is a difference between “output” and “outcome”. Outcome is the result, and output is the activity supporting the desired result. For instance, “I gave a demo to a customer” is an output, “I’ve closed a customer” is an outcome.</p><p><strong>Precision: </strong>Value grows as precision<strong> </strong>increases. For instance, a surgeon stitches our body whereas a cobbler stitches our shoes. The surgeon is placed higher on the “value spectrum”. Higher up you are, the more value you bring in. You generally ‘don’t negotiate price’ with a surgeon :-)</p><p><strong>So, Build “unique-skills” that are higher up on the precision spectrum and create net-positive outcomes.</strong></p><h3>How do people grow in their career?</h3><p>There are two frameworks around this topic.</p><p><strong>Climbing the Ladder</strong></p><ol><li>Always remember a ladder needs a wall. A ladder without a wall is of not much use. The ‘wall’ in this example is the company you work for or industry you work in.</li><li>As you climb up. You start doing more of what you did yesterday. E.g. Someone starts as an assistant-manager in a bank managing one branch, grows to become a vice-president managing a region.</li><li>Imagine the skills required to get to the next level as each rung of the ladder. As you become ready you move up the ‘rung’.</li><li>There are always limited rungs on a ladder, and limited options.</li><li>When the wall collapses, the ladder falls. Also, remember that the ‘ladder skills’ are industry/company-specific.</li></ol><p><strong>Building a Pyramid</strong></p><ol><li>Think of your skills as building blocks holding this ‘career’ pyramid together. Invest your energy in building the foundation/base skills of the pyramid. Identify skills and put together the base layer. These skills should be aligned with your long-term goals. Skills range from Company building, Communication, Capital Raise, Product, Sales, Risk Management, Hiring, Design Thinking, Coding, Machine Learning, Blockchain etc.</li><li>Build a pyramid. Rock-solid at the bottom. Pyramids do not need “a wall to lean on”, and can outlast all uncertainty.</li></ol><h3>What is your mantra of time? What are your thoughts around time?</h3><ol><li>“Human-Time” is a man-made creation. Nature and the Universe operate at a much different rhythm. Synchronise with that.</li><li>Build systems to “create time”. If you can learn how to ‘create time’, you’ll learn how to create wealth. Wealth != Money. Be wealthy. A healthy person living in Uttarakhand Villages, happily with his family, with just Rs. 5000 in his pocket is far wealthier than a millionaire with bad relationships, poor health and legal battles.</li><li>Live in the Present. Be in the Future. Being “ahead of time” is better than “running behind time”.</li></ol><h3>What is the one piece of knowledge around life which you learned at a later stage in life?</h3><p><strong>Learn to “ Design your Life for Luck.” Know something about the structure of luck so that at least you don’t do anything to discourage it.</strong></p><p>L1 — This level is Anyone’s Luck. Maximise Serendipity to Uncover this.</p><p>L2 — This comes due to motion/velocity. Having a Bias for Action helps</p><p>L3 — This comes due to preparation.</p><p>L4 — This level of luck comes from one person’s discernment and flows from one unique person’s actions.</p><p>When we concluded our session, I realised that we should have recorded our beautiful video conversation. As I took notes, I asked him if I could post our conversation for the world to read. He said, “<strong>The Biggest secret of the world is that there is no secret</strong>. <strong>Go ahead, Anuj.”</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37cbc8886a7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide to setting up Kubernetes Cluster with ACS-Engine on Linux based Nodes!]]></title>
            <link>https://medium.com/@anujshankar95/guide-to-setting-up-kubernetes-cluster-with-acs-engine-on-linux-based-nodes-eb02486752b2?source=rss-72f521d51ec6------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb02486752b2</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[acs-engine]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[azure-active-directory]]></category>
            <dc:creator><![CDATA[Anuj Shankar]]></dc:creator>
            <pubDate>Wed, 18 Jul 2018 07:23:37 GMT</pubDate>
            <atom:updated>2018-07-18T07:23:37.003Z</atom:updated>
            <content:encoded><![CDATA[<p>This article would enable people to get a head start on creating k8s clusters and also point to the some good resources that will help in creating custom clusters with really amazing features which you won’t be able to get from Azure Kubernetes Service(AKS).</p><p>All that it takes to create a Kubernetes cluster on Microsoft Azure Cloud is a JSON File with some configurations and a couple of commands. That’s it!</p><h3><strong>Pre-requisite Tools Required</strong></h3><ol><li><a href="https://github.com/Azure/acs-engine/releases">acs-engine binary</a> — Unpack and see the power of ACS-Engine CLI! 😎</li><li><a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/">kubectl</a> — Thanks to Google and the open source community for this beauty!❤️</li></ol><h3>Let’s Begin and split this into two parts.</h3><h4>PART 1: ARM(Azure Resource Manager) Template aka JSON File</h4><p>Starting with the Holy Grail for creating clusters using ACS-Engine and scaring the shit out of you!</p><p>Cluster Definition Documentation :<a href="https://github.com/Azure/acs-engine/blob/master/docs/clusterdefinition.md"> LINK</a></p><p><strong>Plain and Simple Cluster Template without using much brains!</strong></p><p>Here you go: <a href="https://github.com/Azure/acs-engine/blob/master/examples/kubernetes-releases/kubernetes1.10.json">LINK</a></p><p><strong>Azure Active Directory Protected Clusters</strong></p><p>This documentation would give you the steps to follow: <a href="https://github.com/Azure/acs-engine/blob/master/docs/kubernetes/aad.md">LINK</a></p><p>If you aren’t satisfied and you are someone who loves Visuals and screenshots then this is definitely for you: <a href="http://blog.jreypo.io/containers/microsoft/azure/cloud/cloud-native/kubernetes-18-with-rbac-enabled-and-azure-active-directory-integration/">LINK</a></p><p><strong>Deploying Kubernetes cluster in a CUSTOM VNet</strong></p><p>A quick read won’t hurt: <a href="https://github.com/Azure/acs-engine/blob/master/docs/kubernetes/features.md#feat-custom-vnet">LINK</a> 😛</p><p>Sample ARM Template: <a href="https://github.com/Azure/acs-engine/blob/master/examples/vnet/kubernetesvnet1.6.json">LINK</a> 👏</p><p><strong>Using a different Network Plugin for Routing!</strong></p><p>We used flannel network plugin instead of Azure CNI due to this<a href="https://github.com/Azure/acs-engine/issues/2999"> issue</a>. The DNS resolution issue almost made us cry making our platform highly unstable!!</p><p>Sample template: <a href="https://github.com/anujshankar/acs-engine-k8s-arm-templates/blob/master/using-flannel-network-plugin.json#L10">LINK</a></p><h4>PART 2: Fire ACS-ENGINE deploy command! 🔥</h4><p>Just replace the variables below - it will require some thought and <strong>“commands”</strong> to populate these variables</p><pre>acs-engine deploy --resource-group &quot;your-resource-group&quot; \<br>  --location &quot;westeurope&quot; \<br>  --subscription-id &quot;your-subscription-id&quot; \<br>  --api-model &quot;./apimodel.json&quot; \<br>  --set masterProfile.dnsPrefix=&quot;your-dns-prefix-override&quot; \<br>  --set agentPoolProfiles[0].name=&quot;your-agentpool-0-name-override&quot; \<br>  --set agentPoolProfiles[0].count=1 \<br>  --set linuxProfile.ssh.publicKeys[0].keyData=&quot;ssh-rsa PUBLICKEY azureuser@linuxvm&quot; \<br>  --set servicePrincipalProfile.clientId=&quot;spn-client-id&quot; \<br>  --set servicePrincipalProfile.secret=&quot;spn-client-secret</pre><blockquote>Note: Some variables may need to be added or reduced in the above command. It’s just an example. If setting up a AAD protected cluster then you would need to set aadProfile variables too.</blockquote><p>After you fire the above command then wait for 10–25 minutes to see the magic on the Azure Portal!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J2lxa-nCdXQYQlfFfZhryw.png" /><figcaption>Virtual Machine Window with Master and Worker Nodes</figcaption></figure><h3>Key Learnings</h3><ol><li>Go thru “ALL<a href="https://github.com/Azure/acs-engine/issues"> Github issues</a>” before you begin to setup a proper cluster which is going to be used in either Dev, QA, Production!</li><li>If stuck somewhere for good amount time — create a support ticket and seek support from ACS-Engine Contributors.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb02486752b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configure and Understand Azure Application Gateway in 45 minutes]]></title>
            <link>https://medium.com/@anujshankar95/configure-and-understand-azure-application-gateway-in-45-minutes-14f4d950988c?source=rss-72f521d51ec6------2</link>
            <guid isPermaLink="false">https://medium.com/p/14f4d950988c</guid>
            <category><![CDATA[azure-application-gateway]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[load-balancer]]></category>
            <category><![CDATA[waf]]></category>
            <dc:creator><![CDATA[Anuj Shankar]]></dc:creator>
            <pubDate>Mon, 16 Jul 2018 14:41:01 GMT</pubDate>
            <atom:updated>2018-07-16T14:41:01.325Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>What is Azure Application Gateway?</em></strong><br>Azure Application Gateway is a web traffic load balancer that enables you to manage traffic to your web applications.(Referenced: Official Docs)</blockquote><p><strong>Core Components of Azure Application Gateway</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1tUjZurbstMJw064zaUXyg.png" /><figcaption>A sample workflow for Azure Application Gateway</figcaption></figure><blockquote>Note: The configurations to be done in the same order as the numbers in above diagram.</blockquote><ol><li><strong><em>Frontend IP Configuration</em></strong></li></ol><p>The IP of the application gateway can be public or private. Listeners are associated are to the IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJHKWO1i4S2UwFd4iX2NOg.png" /><figcaption>Frontend IP Configuration</figcaption></figure><p><strong><em>2. Listener</em></strong></p><p>A listener listens to the requests that are coming to a particular domain. The application gateway has capability to listen to multiple domain sites.</p><p><em>Types of Listeners</em></p><ol><li><em>Basic:</em> A listener which listens to a single domain site where it has a single DNS mapping to IP address of the Application Gateway.</li><li><em>Multi-site: </em>A listener which listens to a specific domain site(host)</li></ol><p>For example: <br>For three subdomains —<em> abc.alpha.com, xyz.alpha.com and pqr.alpha.com</em> pointing to the IP Address of the Application Gateway. Create multiple listeners of the type ‘multi-site’. If a HTTPS url then provide the client-certificate in <em>“.pfx”</em> format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*egGQZQNBWCCDRW9IwRFmxw.png" /><figcaption>Multisite Listener Configuration Window</figcaption></figure><p><strong><em>3. Backend Pool</em></strong></p><p>The IP of the target backend, be it a Load Balancer or a Virtual Machine Scale Set which is going to serve the request.</p><p><strong><em>4. Custom Health Probe</em></strong></p><p>A custom health probe url to check the health of the backend pool which is linked/tied up to a HTTP Setting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rYmxQyqeGuXNXaS5oR_j1A.png" /><figcaption>Health Probe Configuration Window</figcaption></figure><p><strong><em>5. HTTP Settings</em></strong><br>Setting which helps in validating the request if is going to the correct backend pool or not. It is tied up to a custom domain url and the backend pool.</p><p>When creating <strong>HTTPS setting</strong> — backend-certificate is required in <em>“.cer” </em>format.</p><p><strong><em>6. Rules</em></strong><br>The most important part of the application gateway which exactly tells what do to when.</p><p><em>Default Settings</em>: For a listener<em>(Eg: abc.alpha.com/*)</em> which backend pool should serve the request with the associated HTTP Setting.</p><p><em>Path Based Routing</em>: Usually used in case of API requests<em>(Eg: abc.alpha.com/api/*)</em>. This rule gives us the flexibility to route the request to a specific backend pool based on the routing url.</p><p>Note: One listener can be attached to one rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*jm5lyFgg8hCRF2EFy_JrcA.png" /><figcaption>Path-Based Routing Rules</figcaption></figure><p>Once done with the configurations. Check the backend health of the application gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxQJEydBZe2SM4A901LP3A.png" /><figcaption>Voila! Healthy Resources! (Backend Health)</figcaption></figure><p><strong>Tools for Automation of Configuration</strong></p><ol><li><a href="https://docs.microsoft.com/en-us/cli/azure/network/application-gateway?view=azure-cli-latest">az-cli</a></li><li><a href="https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-create-gateway-arm">powershell script</a></li><li>deploying ARM Templates using “az group deployment create” command</li></ol><p><strong>Some links for reference:</strong><br>1. <a href="https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-faq">https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-faq</a><br>2. <a href="https://stackoverflow.com/questions/36576113/redirect-http-to-https-in-azure-application-gateway">https://stackoverflow.com/questions/36576113/redirect-http-to-https-in-azure-application-gateway</a><br>3. <a href="https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-introduction">https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-introduction</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14f4d950988c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Our experience of setting up Calabash Android for E2E testing on OSX]]></title>
            <link>https://medium.com/@anujshankar95/our-experience-of-setting-up-calabash-android-for-e2e-testing-on-osx-87fd06c1f0c5?source=rss-72f521d51ec6------2</link>
            <guid isPermaLink="false">https://medium.com/p/87fd06c1f0c5</guid>
            <category><![CDATA[regression-testing]]></category>
            <category><![CDATA[calabash]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[e2e]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Anuj Shankar]]></dc:creator>
            <pubDate>Sun, 30 Apr 2017 11:12:00 GMT</pubDate>
            <atom:updated>2017-04-30T11:19:07.754Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently <a href="https://github.com/anujshankar">me</a> and my friend <a href="https://github.com/noobg1">Jeevan D C</a> were assigned the task of automating the whole process of testing for a mobile app. The initial thought that came to our minds was that the testing task would be boring and our learning curve would not shoot up, but to our surprise things were totally the opposite. As we dived into E2E testing and started exploring, we started to enjoy what we were doing and saw it as an opportunity for us to learn something new.</p><p>After exploring a couple of options we decided to settle for Calabash and began our journey. We faced some problems while writing test cases, setting up our machines, got confused on which blog posts to follow, what to read to understand what we were doing etc which ultimately led us to write a blog post to share our experience.</p><p>Before we begin to setup local machine with calabash it is important to touch upon what calabash is.</p><h4>Introduction of Calabash</h4><blockquote>Calabash Framework is an Automated UI Acceptance Testing framework that allows you to write and execute tests that validate the functionality of iOS and Android Apps.</blockquote><p>Let’s begin with the setup!</p><ol><li>To create or run Calabash test scripts it is necessary to use Ruby and have the Calabash client libraries. Xamarin Test Cloud uses <strong>Ruby 2.3.1p112</strong>. For maximum compatibility with tests run locally and tests run in Test Cloud it is recommended that you use the same version while developing tests.</li><li>Install Android SDK and set these following environment variables in your bash profile file and then restart your terminal. (Prerequisites: HomeBrew, JDK v6+)</li></ol><pre>brew install android-sdk</pre><pre>touch ~/.bash_profile </pre><pre># Now add the Android Home environment variable as well as the tools</pre><pre># and platform tools to the path.</pre><pre>echo ‘export ANDROID_HOME=/usr/local/Cellar/android-sdk’ &gt;&gt; ~/.bash_profile</pre><pre>echo ‘export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH’ &gt;&gt; ~/.bash_profile</pre><pre>echo ‘export JAVA_HOME=$(/usr/libexec/java_home)’ &gt;&gt; ~/.bash_profile </pre><pre>source ~/.bash_profile</pre><p>3. Install the calabash-android gem in the working directory.</p><pre>gem install calabash-android</pre><p>4. Resign your <strong>built</strong> android mobile app.</p><pre>calabash-android resign Built_APK_Path/apkFile.apk</pre><p>5. Run your tests scripts!</p><pre>bundle exec calabash-android run Built_APK_Path/apkFile.apk  -p android</pre><p>Some links to read for understanding things better in the calabash landscape.</p><ul><li><a href="https://github.com/calabash/x-platform-example">calabash/x-platform-example</a></li><li><a href="http://bitbar.com/how-to-setup-and-get-started-with-calabash/">How to Setup and Get Started with Calabash</a></li><li><a href="https://developer.xamarin.com/guides/testcloud/calabash/introduction-to-calabash/">Introduction to Calabash - Xamarin</a></li></ul><p>We would recommend you to clone the x-platform-example repo and start with writing tests cases for your application. Reading the documentation of calabash would certainly help to understand BDD better. 😄</p><p>Thanks for reading. We hope that you find this post helpful!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87fd06c1f0c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>