<?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 Shikhar Srivastava on Medium]]></title>
        <description><![CDATA[Stories by Shikhar Srivastava on Medium]]></description>
        <link>https://medium.com/@shikhar-sri2?source=rss-25b1fba3826a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1SDeZ0OvVIMQ9I51.jpg</url>
            <title>Stories by Shikhar Srivastava on Medium</title>
            <link>https://medium.com/@shikhar-sri2?source=rss-25b1fba3826a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:27:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shikhar-sri2/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[8 Effective Solutions to Reduce Automation Test Case Execution Time on the CI CD Pipeline]]></title>
            <link>https://shikhar-sri2.medium.com/8-effective-solutions-to-reduce-automation-test-case-execution-time-on-the-ci-cd-pipeline-8e22827d1def?source=rss-25b1fba3826a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e22827d1def</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[pipeline]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Shikhar Srivastava]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 12:18:54 GMT</pubDate>
            <atom:updated>2023-04-18T12:18:54.494Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/910/0*tm8h6dN2lfCXBeMZ.png" /></figure><p>As an SDET and DevOps Engineer, I often encounter the issue of long-running automation test cases on the CI CD Pipeline. This can be frustrating, as it slows down the testing process and can delay the release of new features. However, there are several solutions that can help to optimize your automation test cases and reduce the time it takes to run them. In this article, I will discuss some of the most effective solutions that I have found to be helpful.</p><h4>1. Optimize your automation test cases</h4><p>The first step is old school but effective, look for ways to optimize them. This can include reducing the number of unnecessary steps, making use of parallelization(must), and prioritizing critical tests.</p><p>Informative link: <a href="https://www.toolsqa.com/testng/testng-parallel-execution/">https://www.toolsqa.com/testng/testng-parallel-execution/</a></p><h4>2. Follow the Test pyramid</h4><p>Following the test pyramid can help you to understand the correct approach to Test Automation Suite development. Develop more test cases as Unit Tests, then API Tests, and finally API/UI Combination for E2E Testing. As Unit Tests and APIs are faster to run, you can reduce the overall execution time of your test suite.</p><p>Informative link: <a href="https://martinfowler.com/articles/practical-test-pyramid.html">https://martinfowler.com/articles/practical-test-pyramid.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/0*BiJ263YO3nQ2GtPc.png" /></figure><h4>3. Run the right suite</h4><p>Not all test cases need to be executed every time.</p><p>Eg. If Module A is deployed why do you wish to run Module B Tests or regression? You can live with the Module A test case and the module which is getting impacted by the code drop.</p><p>You can achieve this by passing the Module name as custom properties in Maven/Gradle command via Jenkins and configuring Groups based on Module/env.</p><pre>mvn test -DmoduleName=ModuleName -Denv=it</pre><h4>4. Distribute the Test Suite in different schedules</h4><p>All Test cases are not important to run every day. Use the <strong>Jenkins Parameterized Scheduler Plugin</strong> to run test cases for different modules/envs at different times of the day. This can help to ensure that your tests are executed at times when the resources are available, and can reduce the overall execution time.</p><p>Informative link: <a href="https://www.linkedin.com/posts/shikhar-sri_github-jenkinsciparameterized-scheduler-plugin-activity-7050813828095217664-CqKK?utm_source=share&amp;utm_medium=member_desktop">LinkedIn Post-Parameterized-scheduler-plugin</a></p><h4>5. Use caching</h4><p>Caching involves storing the results of previously executed tests and reusing them when possible. Jenkins has a number of plugins that can help with caching, such as the Jenkins Caching Plugin or the creation of docker images having dependencies already downloaded offline. By using caching, you can avoid unnecessary work and reduce the overall execution time of your test suite.</p><p>Informative link: <a href="https://www.baeldung.com/ops/docker-cache-maven-dependencies">https://www.baeldung.com/ops/docker-cache-maven-dependencies</a></p><h4>6. Increase the resources allocated to Jenkins</h4><p>If you’re running Jenkins on a server with limited resources, consider increasing the resources allocated to it. This could include increasing the amount of memory or CPU cores available to Jenkins. By increasing the resources, you can ensure that Jenkins has the necessary resources to execute your test suite in a timely manner.</p><h4>7. Use parallel stages in Jenkins</h4><p>Using parallel stages in Jenkins can help you to run more test cases in the same amount of time. By breaking up your test suite into smaller, parallel stages, you can reduce the overall execution time and speed up the testing process.</p><p>To advance you can use Dynamic parallel stages which can create stages on runtime demand, refer below.</p><p>Informative link: <a href="https://www.linkedin.com/posts/shikhar-sri_automationtesting-automation-jenkins-activity-6672789929111764992-5Xoa?utm_source=share&amp;utm_medium=member_desktop">LinkedIn Post: Dynamic Stage Creation</a></p><h4>8. Use a cloud-based solution</h4><p>Consider using a cloud-based solution, such as AWS or Azure, to run your tests and create Selenium Grid. This can provide you with access to additional resources and make it easier to scale your testing as needed.</p><p>Informative link: <a href="https://aws.amazon.com/blogs/opensource/run-selenium-tests-at-scale-using-aws-fargate/">https://aws.amazon.com/blogs/opensource/run-selenium-tests-at-scale-using-aws-fargate/</a></p><p><a href="https://medium.com/swlh/how-to-setup-selenium-grid-in-aws-4304efcc40da">How to setup Selenium Grid in AWS</a></p><p>In conclusion, optimizing your automation test cases is essential for reducing the time it takes to run them on the CI CD Pipeline. By following the solutions discussed in this article, you can reduce the overall execution time of your test suite and speed up the testing process. This will help you to deliver new features to your users more quickly and improve the overall quality of your software.</p><p>Wish to discuss more comment below / connect with me on</p><blockquote>- LinkendIn: <a href="https://www.linkedin.com/in/shikhar-sri/">https://www.linkedin.com/in/shikhar-sri/</a><br>- Topmate: <a href="https://lnkd.in/gnP6Jz9F">https://lnkd.in/gnP6Jz9F</a><br>- Medium: <a href="https://lnkd.in/g8pN3-JR">https://lnkd.in/g8pN3-JR</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e22827d1def" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Containers — Learn DevOps Concept like I’m five]]></title>
            <link>https://shikhar-sri2.medium.com/docker-containers-learn-devops-concept-like-im-five-ad52659da5e7?source=rss-25b1fba3826a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad52659da5e7</guid>
            <dc:creator><![CDATA[Shikhar Srivastava]]></dc:creator>
            <pubDate>Wed, 24 Feb 2021 08:24:16 GMT</pubDate>
            <atom:updated>2021-03-02T15:03:09.810Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker Containers — Learn DevOps Concept like I’m five</h3><p>Last Article in this series <a href="https://shikhar-sri2.medium.com/vm-vs-docker-learn-devops-concepts-like-i-am-five-series-4a4b2282b7e4">https://shikhar-sri2.medium.com/vm-vs-docker-learn-devops-concepts-like-i-am-five-series-4a4b2282b7e4</a></p><p>Before start, let me familiarize you with our characters, an earnest boy named <strong>Russel </strong>who is a newbie in the DevOps world, and our elderly experienced guy in this domain <strong>Carl Fredricksen</strong>.</p><p><strong>Carl </strong>: (Thinking Loud) Today’s morning is so calm and quiet. It&#39;s the weekend also, a great combination. Will rest the whole day after a long time.</p><p><strong>Russ</strong>: Hey Carl! I am here :) (Russ shouted in excitement)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L3nmj1oesqSTC-wQ0kzEiQ.png" /></figure><p><strong>Carl</strong>: Not now, please. Today is my rest day.</p><p><strong>Russ</strong>: No it will take some time only and you have the whole day to rest.</p><p><strong>Carl</strong>: Hmm .. now I don&#39;t think so. 😛 Okay, let&#39;s start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*-tGaXpljSHKSBQf4_7RFbw.png" /></figure><p><strong>Russ</strong>: I want to learn more about Docker, but everywhere I find too many technical words. Why everyone explains it in such a complicated way.</p><p><strong>Carl</strong>: The explanation is not complicated, you just don’t have a background. Let me explain to you with an example of our hero ‘Mickey’.</p><p><strong>Mickey </strong>is a Sales Manager and has a Transferable job. Due to his company requirements, he needs to move to several places in a year. This transfer comes with the overhead of moving his home luggage too as he has several members in his family (Minnie (Wife), Goofy (Son)) considering that they are very particular about their stuff.</p><p>Each time the whole family moves to a different place, somethings get missed or new stuff they buy doesn’t match with the old thing they carried over. This creates a mess and mostly results in disputes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*0WHn05JtzwxkDxiT.png" /></figure><p>To solve this once Mickey got an idea. Let&#39;s see their conversation</p><p><strong>Mickey</strong>: Hey all, before moving to a new place this time, let&#39;s prepare a detailed list of items we need for our rooms with each detail like you Goofy, you always create an issue with the size and dimensions of the table, your toys, etc.</p><p>You all prepare a list of items of your items in your room, you all need to make you feel at home and I will prepare one more list of common items we all require, as its necessity as a whole. This list will have instructions also to set up for a new home, we can call it a master list.</p><p><strong>Minnie, Goofy:</strong> But why? We know all the things.</p><p><strong>Mickey</strong>: DO AS I SAID.</p><p>Mickey has all the list now.</p><p>The Day comes when they need to shift to a new place and environment.</p><p><strong>Mickey</strong>: Minnie, Goofy give that list of items and doesn’t pack anything. We will go empty-handed. I already sold all stuff.</p><p><strong>Minnie</strong>: What! What’s your plan.</p><p><strong>Mickey</strong>: I am going to give this to my manager at our new place. He is going to buy all items with the version and details you listed and make the place ready for us before we reach there.</p><p><strong>Minnie</strong>: Wow that&#39;s great, this way we can save money by shifting and carrying all house items. Also, we are not occupying any space and saving rent.</p><p><strong>Mickey</strong>: Ya that’s correct.</p><p><strong>Russ</strong>: I really liked the story. But why are you telling me this, I asked you about Dockers.</p><p><strong>Carl</strong>: Hahaha! Yes, I am glad you didn’t get lost.</p><p>This is very much related to Docker.</p><p>In your case, you have different needs for your applications which works fine together with particular versions of those. Also, you have some basic needs like OS with some particular configuration like Java/Maven or NodeJS setup.</p><p>Comparing with the above scenario of Mickey, this was the same situation. Mickey, Minnie, and Goofy wanted their items to be present and some necessary stuff common to all. For that, they created a master list.</p><p>In Docker, the term that lists each self-contained app needs is a <strong>Dockerfile</strong>.</p><h3>DockerFile</h3><p>Dockerfile is a blueprint of all the dependencies and other configurations require for a self-contained app to run.</p><p>Here is a sample docker file</p><pre>FROM nginx:latest<br>MAINTAINER NAME EMAIL<br><br>RUN apt-get -y update &amp;&amp; apt-get -y upgrade &amp;&amp; apt-get install -y php-fpm</pre><p>Based on this blueprint, we can download all dependencies, environment configurations, and even the source code with a simple command docker build</p><pre>docker build</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zdhRB--1_FpHnMhU" /></figure><p>We called then the ready self-contained app as Docker image.</p><p>Dockerfiles are simple text files that contain the commands to assemble an image that will be used to deploy containers.</p><p><strong>Russ</strong>: Great! then how do we run them?</p><p><strong>Carl</strong>: Using another simple command</p><pre>docker run</pre><p>So now we have each individual&#39;s room ready for Mickey’s family or you can say your modules are ready to function inside each Docker Container.</p><p><strong>Russ</strong>: But what about telling the Manager how to set up each individual’s room concerning others. Maybe he will misplace Kitchen with Goofy’s room or Mickey’s with Goofy’s room. Like how they need to be placed.</p><p>Carl: Hahaha, correct. You remember Mickey prepared another mater list to tell all these. That you can compare as the <strong>docker-compose.yml</strong> file</p><h4>docker-compose.yml files are used for defining and running multi-container Docker applications using a simple command</h4><pre>docker-compose up</pre><p><strong>Russ</strong>: Wow! so that’s the whole flow.</p><p><strong>Carl</strong>: Yes</p><p>So the workflow looks like this:</p><ol><li>Create Dockerfiles to build images.</li><li>Define complex stacks (comprising of individual containers) based on those Dockerfile images from within docker-compose.yml.</li><li>Deploy the entire stack with the docker-compose command.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LibWm4JsBAwl1Vhp.png" /></figure><p><strong>Russ</strong>: Great! So it will even solve my problem of using my application in a different env or even if some other developers wish to set it up on his system. I can just pass the Dockerfile and he can build the whole system just with simple commands.</p><p><strong>Carl</strong>: You got it so well!</p><p><strong>Russ</strong>: But Mickey has prepared the list so well. Many guys in his team will be having the same transferable job, why won&#39;t he share that list with them. By this, anyone can just use that to set up their homes and maybe customize something on that.</p><p>Similar in the case of Docker images. Suppose I have created an image, an environment to run the NodeJS application, then why my teammate again needs to create the same. Let&#39;s share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4QdXQe6UUPLVf-B6.png" /></figure><p><strong>Carl</strong>: Yes, you asked the right question and fortunately creators of docker have already solved it. We have an online Repository hosted by Docker Team called <strong>Docker Hub</strong> where anyone can upload images and others can just download and use them. They can even use that as a base image and customize it on top of that.</p><h3>Docker Hub</h3><p><a href="https://hub.docker.com/">Docker Hub</a> is a service provided by Docker for finding and sharing container images with your team. It is the world’s largest repository of container images with an array of content sources including container community developers, open-source projects, and independent software vendors (ISV) building and distributing their code in containers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/0*zAx9Skh250H75Jed.JPG" /></figure><p><strong>Russ</strong>: That seems Docker has a solution to all my problems 😃</p><p><strong>Russ</strong>: I have another question. I have the app ready now which I can run in any env but how to specify how much space I need on the server, what if my docker image crashed, what if I want to scale it up based on my increasing user needs, what if I want to run different versions of applications parallel, what if ….</p><p><strong>Carl</strong>: Too much what if … Take this as your next homework and let&#39;s meet another day. As a hint, explore Kubernetes.</p><p><strong>Russ</strong>: Aiyee Sir!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*uq68vznNugUbVme5.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad52659da5e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes: Learn DevOps Concepts like I’m five]]></title>
            <link>https://shikhar-sri2.medium.com/kubernetes-learn-devops-concepts-like-im-five-dd8f24df867b?source=rss-25b1fba3826a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd8f24df867b</guid>
            <dc:creator><![CDATA[Shikhar Srivastava]]></dc:creator>
            <pubDate>Wed, 24 Feb 2021 08:23:57 GMT</pubDate>
            <atom:updated>2021-02-24T08:23:57.783Z</atom:updated>
            <content:encoded><![CDATA[<p>Carl: (Thinking Loud) For many days Russ has not troubled me. Did he stop studying as I gave him quite a difficult task? Let’s go to him today.</p><p>Carl: Hey Russ!</p><p>Russ: Hey Carl! (Russ said In a Tone as he is trying to ignore Carl)</p><p>Carl: Why you haven’t come for a long time to my home, This is not your usual behavior.</p><p>Russ: Carl, I haven’t done any progress on my homework. That topic seems quite tuff to me.</p><p>Carl: No need to be ashamed, it is tuff. Let me explain to you Kubernetes with an analogy.</p><p>Russ: Like you always do. (Russ feels excited now)</p><p>Carl: Imagine you own a house with 10 rooms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*bsihtnsonxOEuYWk" /></figure><p>You want to rent out three of the rooms through an online accommodation service. You have two choices: you can post ads and manage everything yourself, or you can hire someone to do it for you.</p><p>Russ: I will definitely hire someone. Who will take all additional overhead of managing everything?</p><p>Carl: Hahaha! okay</p><p>Because it’s simpler for you, you decide to hire a rental agent to take care of these things. Your <strong>contract</strong> with the agent states:</p><ul><li>At all times, <strong>three rooms</strong> should be available to rent to guests.</li><li>Each room will have <strong>two beds</strong>.</li><li>Every time a guest books, the keys need to be handed over at the right time.</li><li>Every time a guest leaves, the rooms have to be cleaned.</li><li>If there are too many booking requests (during a holiday season, for instance), then booking availability can increase from three to ten.</li></ul><p>That’s it! Your responsibilities are mostly over, although you can use a phone to contact the agent to check in from time to time.</p><p>Russ: But it seems a difficult task for that rental agent alone too.</p><p>Carl: Ya correct. So the agent hires <strong>employees</strong> to take care of your requirements. Let’s say there are three employees to manage three rooms: when room one is booked, employee one ensures it’s in good condition, provides the keys, cleaning service, and so on.</p><p>The bed is the <em>most basic</em> entity because it’s the minimum requirement needed by a guest to spend a night.</p><p>The agent keeps all the information about employees, rooms, beds, bookings, and so on, in a <strong>notebook</strong>. The agent also keeps track of employee time off in order to allocate another employee to the room should one employee fall ill or goes on holiday. The agent uses the <strong>phone</strong> to reach employees as needed.</p><p>When a guest books a room online, the booking is redirected to one of the employees, who ensures the room is ready. The guest arrives, gets the keys, and sleeps in the bed at night. The room is cleaned afterward, and the cycle repeats.</p><p>Russ: This all sounds very simple, but what has it got to do with Kubernetes?</p><p>Carl: The automation you achieved by hiring the agent who employs others is similar to what Kubernetes does with an application. Here’s how it works.</p><p>Say you are an app developer instead of a rental-house owner. As the most basic entity in a rental room is the bed, your <strong>application</strong> (the most basic entity that serves your user’s needs) runs inside a <strong>container</strong>. The application’s “room” is called a <strong>pod</strong>, which is where your application runs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/0*4-rrN_W4zzt-QDYL.png" /></figure><p>A <strong>node</strong> or <strong>worker node</strong> is essentially a machine in which a pod runs.</p><p>The agent’s employees ensure a guest room is fully functional. In Kubernetes, you don’t have an employee but something called a <strong>kubelet</strong>. A <strong>kubelet</strong> is an agent inside a node that ensures the pods running inside that node are healthy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/0*f4tZg6JoANWcNBww.png" /></figure><p>The rental agent corresponds to two things in Kubernetes: <strong>kube-scheduler</strong> and <strong>kube-controller manager</strong>. Just as the agent decides which room should be assigned to which employee, the kube-scheduler decides which pod runs in which node, based on what resource is available and what its requirements are. Remember, a node is a machine, and the pod runs inside a node. Like the agent deciding what to do when an employee is off work, the kube-controller manager decides what to do when a node goes down or the machine stops working for any reason.</p><p>The agent’s notebook, where all the details are recorded about how many rooms to rent, how many beds are available, which employee is doing what, and so on, corresponds to the <strong>etcd</strong> data storage. That’s where configuration data is stored, for example, if you need three pods to be up all the time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/0*jgpLcepJJnST4SM5.png" /></figure><p>The main and worker nodes in Kubernetes operate like the phones that the agent and the employees use to communicate. The main <strong>api-server</strong> is like the agent’s phone, while each worker node’s <strong>kube-proxy</strong> is like the employees’ phones.</p><p>The api-server, etcd, kube-controller manager, and kube-scheduler comprise a sort of control center for this Kubernetes instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/0*LQZ_y6fYanoRJfRe.png" /></figure><h3>Deployment</h3><p>The contract between you (the house owner) and the agent is equivalent to a <strong>deployment</strong> in Kubernetes. A deployment includes your set of requirements, such as how many pods need to be running, what resources (CPU, for example) you need, and so on. Kubernetes ensures these requirements are satisfied without manual intervention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/0*mbFphJJxu3f_CROG.png" /></figure><p>Remember about the extra clause in the agreement about what to do if too many guests book? This is equivalent to <strong>autoscaling</strong> in Kubernetes. That means Kubernetes can scale your services, giving you more pods as your application users increase, just as you can make more rooms available if more guests are trying to book. Just as you can’t extend your bookings beyond 10 rooms, you probably need to add a cap on autoscaling, because you can’t arbitrarily continue to increase pods without running out of money for hosting your servers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd8f24df867b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VM vs Docker — Learn Devops Concepts like I am Five Series]]></title>
            <link>https://shikhar-sri2.medium.com/vm-vs-docker-learn-devops-concepts-like-i-am-five-series-4a4b2282b7e4?source=rss-25b1fba3826a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a4b2282b7e4</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[vm]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Shikhar Srivastava]]></dc:creator>
            <pubDate>Sun, 21 Feb 2021 19:42:10 GMT</pubDate>
            <atom:updated>2021-02-21T19:53:18.545Z</atom:updated>
            <content:encoded><![CDATA[<h3>VM vs Docker — Learn Devops Concepts like I am Five</h3><p>One fine day an earnest boy named Russel, a newbie in the DevOps world came to our elderly experienced guy in this domain Carl Fredricksen.</p><p>Similar to other days of the week, Carl is in the mood to ignore him but Russ following his curious nature, came with excitement to learn all he can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Sy8vIKzXjl0sJDRW9yRCsw.png" /></figure><p><strong>Russel: </strong>Hi Carl, I am here and ready to explore the DevOps world !!</p><p><strong>Carl: </strong>Don&#39;t get too excited, I am quite busy. Let&#39;s meet someday else.</p><p><strong>Russel</strong>: No, let&#39;s do it today. I have done some homework too on the topic.</p><p><strong>Carl</strong>: Okay! We can continue if you will ask the right questions.</p><p><strong>Russ</strong>: Ya I will, as always 😛</p><p><strong>Carl</strong>: Okay let&#39;s start the journey</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*emIBCbic8S942Cim.jpg" /></figure><p><strong>Russ</strong>: I am currently using VM but I heard Docker is much faster to download. Is Docker a lighter VM?</p><p><strong>Carl</strong>: Let me tell you a short story by comparing this scenario with House and Apartment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*emW1emp8_BB9osF1.png" /></figure><p>In a house, you have the full infrastructure, pipeline system, electricity connection, few bedrooms, living room, washrooms, etc. It&#39;s fully isolated and used by an individual.</p><p>So all the cost needs to bear by an individual as its isolated infrastructure.</p><p>So suppose you wanted a place to just sleep and poop. The whole house will not be a convenient and reasonable option.</p><p>So let&#39;s see our other option ‘Apartment’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*XJzUUfupO4uSHpF8" /></figure><p>The apartment is like shared infrastructure. The common things pipeline system, electricity infrastructure, lift, etc are shared. So in a similar case, if I want a place to sleep and poop, I don’t need to pay as an individual for all infra cost of building which will be shared among all society members. What cost me is the Apartment rent.</p><p>So here you can see Houses(VM) are fully self-contained while Apartments(Docker) is a shared infrastructure with benefits of their own.</p><p><strong>Russ: </strong>Wow what a nice explanation. Can you explain more technically now?</p><p><strong>Carl: </strong>Glad you asked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z9MqR8N0diS7qilp7B25mw.png" /></figure><p>Virtual Machines is made of layers</p><ol><li>Infrastructure: This could your laptop or dedicated server on a cloud-like EC2 instance</li><li>Host Operating System: Any standard OS like Linux, Windows, Mac, etc</li><li>Hypervisor: It is software that creates and runs virtual machines (VMs). Eg are VMWare/Virtual Box, Hyper-V, etc</li><li>Guest OS: This gets installed on top of Hypervisor. In case you have multiple isolated applications, multiple Guest OS gets installed which can be anything like Linux, Windows, etc.</li><li>Application, Binaries, and Libraries (Sorce Code): This gets installed on top of Guest OS.</li></ol><p>You see here, Guest OS needs to be installed for each app which is pretty heavy and consumes a lot of memory and space.</p><p><strong>Russ</strong>: Ya, it seems if can remove GuestOS is would have saved a lot of money.</p><p><strong>Carl</strong>: Hahaha, yes you on right track but a little late to innovate. Docker has done the same for you.</p><p>Instead of Hypervisor, we have Docker Daemon here. This Docker Daemon is a service that runs in the background, interacts with the underlying OS, and manages everything inside Docker containers. We will discuss more regarding Docker Daemon later. Hold your thoughts.</p><p>After Docker Daemon we directly have Application Binaries and Source code. You see we have removed heavy Guest OS dependency.</p><p><strong>Russ: </strong>Ohh That’s why it is faster to start than VM. And of course, it is not a lighter VM but a whole new concept. (Russ Feeling dumb)</p><p><strong>Carl: </strong>Yes and in turn saves lots of time and space. The application gets build in a special box called Docker images and isolates from other containers and OS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*V7sIaPqSxx92ColS.png" /></figure><p><strong>Russ</strong>: So does it mean we should switch everything from VMs to Docker as this seems to be best.</p><p><strong>Carl: </strong>That’s a young generation problem who gets to the conclusion so fast.</p><p><strong>Russ: 😔</strong></p><p><strong>Carl: </strong>Docker Isolates applications but doesn’t Isolate the whole system which can be a requirement in few cases. We can discuss that some other day soon.</p><p><strong>Russ: </strong>Great I understood it now clearly !!</p><p>I have one more question on this, my app is having many modules which interact with each other using Webservices. Apart from that, it has few external dependencies too. I am struggling to ship them from one environment to another as I always need to provide instructions on how to set up all these, pretty frustating. Some help, please.</p><p><strong>Carl: </strong>One concept a day, please. I can give you a hint though, Docker Containers can solve all your problems. But How? This is homework for you. Try to do it yourself or wait for the next day to ask. 😄</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*Hi7IBZA7YjIFpmNa.jpg" /></figure><p><strong>Russ</strong>: Ayee Sir!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a4b2282b7e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Full Stack QA (Aka All Rounder)]]></title>
            <link>https://shikhar-sri2.medium.com/full-stack-qa-aka-all-rounder-6fa77af9015d?source=rss-25b1fba3826a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fa77af9015d</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Shikhar Srivastava]]></dc:creator>
            <pubDate>Sun, 07 Jun 2020 21:53:59 GMT</pubDate>
            <atom:updated>2020-06-08T20:37:14.115Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*vvvOBbiMFusaQYAil7NjYg.png" /></figure><p>Now a days most of us would have came across a buzzword ‘Full Stack QA’ which is trending within recruiters.</p><p>Anyone needs an all-rounder, be it a cricket game or Software Testing. Full Stack QA means the QA who is an all rounder in all types of Functional and Non-Functional Testing types.</p><p>Continuous learning is a key role in any ones career. So I just thought of giving overview on what skills an aspiring ‘Full Stack QA’ should aim to.</p><h3>1. Testing Concepts and skills</h3><p><strong>Most important</strong> master Testing Concepts like testing life-cycle, types of testing, defect cycle and one or two bug management software like ALM, TestLink, Jira etc. You should have thorough knowledge of whole <strong>STLC (Software Testing Life cycle)</strong> process and SDLC (Software Development Life Cycle) is good to have.</p><ul><li>Test Management Tools : JIRA(Critical), ALM, Rally, Test Link</li><li><strong>Deep understanding of STLC (Software Testing Life cycle)</strong> process and documents required at each phase</li><li>In Depth knowledge of Testing Concepts and Testing mindset</li></ul><h3>2. Coding Language</h3><p>In Software Testing industry you can’t ignore power of programming. As a QA also its absolutely imp to have thorough knowledge on at least one language with good understanding of <strong>OOPs concept and Data Structure</strong> is preferable.</p><ul><li>Java or Python or JavaScript (Any one is must)</li><li>Shell Scripting, HTML and UNIX basic command knowledge is preferable.</li><li>IDE : Intellij or Eclipse (Critical)</li></ul><h3>3. SQL</h3><p>You might have heard the phrase “DATA is the new oil”. When world is moving towards Big Data/Data Science/ML etc, you can’t ignore importance of SQL which is the base of data analysis.</p><p>You must learn how to query Structured Database like Oracle, MySQL etc and Non Structured Database like MongoDB etc</p><ul><li>Oracle SQL or PLSQL or MySQL (At least one is critical)</li><li>MongoDB query or any other NOSQL Database query (Good to have)</li></ul><h3>4. API Testing</h3><p>World is moving from Monolithic application (A single chunk) to Micro Services architecture. Also increase of Open Source Platform, which provides facility to plug and use has made world to adopt it aggressively. Hence understanding of API’s and Micro-services Architecture is necessary for a QA.</p><ul><li>Rest API and SOAP API (Both are critical)</li><li>GraphQL (Good to have) as its use is increasing across industry.</li><li>Understanding of Json and XML is Must</li><li>Tools : Postman (Critical), SoapUI (Good to have)</li></ul><h3>5. Automation Testing</h3><p>This term has increased importance of Testing to another level. Automation Testing has became essential for a QA’s resume. Lets check different tools and areas in it.</p><ul><li><strong>Web Application Automation</strong> : Selenium (Critical), Protractor, CyPress and others</li><li><strong>API Automation</strong> : PostMan(Critical), Rest Assured Framework(Critical), SoapUI and others</li><li><strong>Mobile Applications</strong> : Appium (Critical) and others</li><li>Build Tool knowledge : Maven or Gradle (Critical)</li></ul><p>Apart from this one should have knowledge on Framework creation and maintenance.</p><h3>6. Performance Testing</h3><p><strong>Performance Testing</strong> is done to provide stakeholders with information about their application regarding speed, stability, and scalability. More importantly, <strong>Performance Testing</strong> uncovers what needs to be improved before the product goes to market. Many MNC’s has separate team for this but now a days it’s one of the expectation from Management.</p><ul><li>JMeter (Critical)</li><li>LoadRunner, Locust IO and others are Nice-to-have skill</li></ul><h3>7. DevOps Knowledge</h3><p>To achieve such speed and agility, it is important to automate all the testing processes and configure them to run automatically when the deployment is completed in the QA environment. Specialized Automation Testing tools and continuous integration tools are used to achieve this integration.</p><p>Now a days it has became important for a QA to get knowledge on Application infrastructure, architecture and CI/CD Tools.</p><ul><li>Jenkins and Process of Integration with Automation Suite(Critical)</li><li>Declarative or Scripted Jenkins Pipeline as a code Syntax knowledge (Nice-to-have)</li><li>Application Infrastructure/Architecture knowledge</li><li>Git, Bit-bucket (Mandatory)</li><li>AWS or Azure knowledge (Nice-to-have)</li></ul><h3>7. Security Testing</h3><p>The goal of <strong>security testing</strong> is to identify the threats in the system and measure its potential vulnerabilities, so the system does not stop functioning or is exploited. Similar to Performance Testing many MNC’s has separate team for this or connect with Third Party tools but now a days it’s becoming one of the expectation from Management.</p><ul><li>Manual</li><li>SonarQube, BurpSuite, Nogotofail (Nice-To-Have)</li></ul><h3>8. Agile Methodology</h3><p>The widest practice that is followed is Agile. Start here, learn what is Agile, you don’t have to master everything just understand how teams work when they follow Agile methodology.</p><p>There are several concepts in Agile :</p><p><strong>Kanban, Scrum, Retrospective, Daily Stand up</strong></p><blockquote><strong>So Start Small and Keep Learning !! Because we Testers …</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*II8bQCyuXxx73lpyRQd2yQ.png" /></figure><p>Some websites which hosts awesome QA study materials:</p><ul><li><a href="https://www.guru99.com/">https://www.guru99.com/</a></li><li><a href="https://www.toolsqa.com/">https://www.toolsqa.com/</a></li><li><a href="https://naveenautomationlabs.com/">https://naveenautomationlabs.com/</a></li><li><a href="https://www.ministryoftesting.com/">https://www.ministryoftesting.com/</a></li><li><a href="https://www.udemy.com/">https://www.udemy.com/</a> (It has paid courses but cost is less. You can also get coupons on internet to get many courses free)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fa77af9015d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>