<?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 Ashmeet Sehgal on Medium]]></title>
        <description><![CDATA[Stories by Ashmeet Sehgal on Medium]]></description>
        <link>https://medium.com/@ashmeetsehgal?source=rss-d293b4c38b7c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9Dya5vmt3Y60lACW-Kq7Rw.jpeg</url>
            <title>Stories by Ashmeet Sehgal on Medium</title>
            <link>https://medium.com/@ashmeetsehgal?source=rss-d293b4c38b7c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 20:32:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashmeetsehgal/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[Emotional Health v/s Mental Health v/s Physical Health]]></title>
            <link>https://ashmeetsehgal.medium.com/emotional-health-v-s-mental-health-v-s-physical-health-3b3d2d447be8?source=rss-d293b4c38b7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b3d2d447be8</guid>
            <category><![CDATA[depression]]></category>
            <category><![CDATA[suicide]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[sushant-singh-rajput]]></category>
            <category><![CDATA[emotional-health]]></category>
            <dc:creator><![CDATA[Ashmeet Sehgal]]></dc:creator>
            <pubDate>Mon, 15 Jun 2020 20:46:44 GMT</pubDate>
            <atom:updated>2021-01-25T20:31:22.208Z</atom:updated>
            <content:encoded><![CDATA[<h4>Things we need to understand about depression/suicidal thoughts (Feat. #SushantSinghRajput)</h4><p>Yesterday I got the news of the suicide of a brilliant actor Sushant Singh Rajput. The reason for his suicide turned out is that he was going through a rough patch from the past few years. I tried to be okay all day but I couldn’t. I don’t know if I am startled by the incident or the reason behind that. Yes, I am disturbed by the rationale. So I decided to pen down my thoughts on it, otherwise, I won’t be able to sleep.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*NgBm-wZ8-ff6-3WzRbTS8w.jpeg" /></figure><p>So here I am, it’s 3:02 AM (June, 15) in my room, lights off, laptop’s night mode on, thinking why do I get so affected by this news. The major reason behind this is the opinions on depression and mental health from the people around me.</p><blockquote><strong>Why am I writing this now?</strong> Unfortunately, it is perhaps the only time people will take suicide, depression and mental health seriously. Hence, I think this is the perfect time to share this with you all.</blockquote><p>Before you start reading this, I want to share one quote with you:</p><blockquote>“Believe nothing, no matter where you read it, or who said it, no matter if I’ve said it unless it agrees with your own reason and your own common sense” — Buddha</blockquote><p>So whatever you’re going to read below is my perception, feel free to disagree and there are a lot of things I’ve written are debatable. Take only the things which you like.</p><h3>Let’s Start</h3><p>Today I want you to understand the difference between Emotional Wounds and Physical Wounds so that we can dig deep and find out the real mental state of a person who is suicidal and going through an extreme stress situation. So this whole article will revolve around one comparison.</p><h3></h3><p></p><p>i.e. <strong>EMOTIONAL HEALTH v/s PHYSICAL HEALTH</strong></p><p>AND,</p><ol><li>Is there a difference between mental health and emotional health, if yes, then what?</li><li>Why do we need to emphasise more on emotional health than physical health?</li><li>The mindset behind ending your own life.</li><li>Is there a solution?</li></ol><h3>tl;dr:</h3><p>Before coming to the main one, let’s see <strong>Emotional Health vs Mental Health,</strong></p><blockquote>Q: Is there a difference between mental health and emotional health, if yes, then what?</blockquote><p>In simple words, Mental Health as the name suggests it is connected to the <em>brain/mind</em>. If you’ve seen the movie <a href="https://en.wikipedia.org/wiki/Lage_Raho_Munna_Bhai">“Lage Raho Munna Bhai”</a>, then you can easily connect with this scene where the lead character starts to see the spirit of <a href="https://en.wikipedia.org/wiki/Mahatma_Gandhi">“Mahatma Gandhi”</a> everywhere due to chemical imbalance in his brain. This can be natural or due to some external factors. (like family conditions, intense mental focus on something for a very long time without any break).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*Vh1RSwIrXYrLiL99k-Ip5g.jpeg" /><figcaption><a href="https://en.wikipedia.org/wiki/Lage_Raho_Munna_Bhai">Lage Raho Munna Bhai</a> Movie Scene</figcaption></figure><p>However, on the contrary, Emotional Health deals with matters of the <em>heart</em>. The issues that develop more often when people have to deal with traumatic or negative life events. People often have different symptoms when they struggle with emotional or mental health issues.</p><p>And <strong>people can suffer from both at the same time</strong>. So where we need to focus. Which one is more important to take care of? Both are crucial but which should be on more priority? <strong><em>Mind</em></strong><em> dominates </em><strong><em>Heart</em></strong><em> or it’s the other way around.</em> Let’s take an example of this to get the answer.</p><p>Let’s say there’s a girl who is in love with a guy and her mind knows that this guy is not right for her. Their families are against their relationship, there’s no compatibility, her brain knows all these calculations however her mind will soon surrender to her heart. That’s the power of the heart. You can train your mind to control your emotions however it doesn’t work always. So it’s substantial to train our heart as well with our mind to keep ourselves healthy mentally and emotionally.</p><blockquote>Q: Why do we need to emphasise more on emotional health than physical health?</blockquote><p>Okay, This is an integral part of this article, bear with me on this. I’ll try to explain this as simple as possible. First, <strong>We need to realize that it’s not all possible to know what a person is going through</strong>. However, we do compare some time. Mental or emotional health is not like physical health we cannot get an idea by seeing a person on how strong he is mentally and emotionally. <em>There’s no device invented yet to know the emotional or mental pressure.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FksaRe6AlvbQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DksaRe6AlvbQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FksaRe6AlvbQ%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/3cf137a966d88441ac40ff22f51d2daf/href">https://medium.com/media/3cf137a966d88441ac40ff22f51d2daf/href</a></iframe><p>Comparing/Judging a person for his emotional and mental abilities is like comparing a strong wrestler with a thin person on based on the ability to pick a weight/dumble and in this case, even weights of dumble are different. <strong>Life doesn’t give dumbles based on the capability/strength of the lifter.</strong> All we see is physical health but no-one knows what’s going on inside the mind of a physically healthy person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YzdKs68Fgn25VNGcPxoH8w.jpeg" /><figcaption>top-left: <a href="https://en.wikipedia.org/wiki/Dwayne_Johnson">Dwayne Johnson</a>, bottom-left: <a href="https://en.wikipedia.org/wiki/The_Great_Khali">The Great Khali</a></figcaption></figure><blockquote>How can someone even think of suicide?</blockquote><p>Here we need to understand how <strong>Emotional Wounds</strong> are more dangerous than <strong>Physical Wounds</strong>? And how it leads to that big decision?</p><p>Let’s try to understand this with an example, let’s say your arm is wounded, it’s bleeding. Your mind will know that we need to take care of this. Your heart will know that it is dangerous and your body needs to get rid of this and it gives your mind a signal that it has to heal. Then your mind will take measures like calling a doctor or doing first aid or taking medicines. And then mind follows the ongoing process, whether those medicines are working or not, does your body needs rest or do you need to consult another doctor and all, this process goes on until your arm is fully recovered.</p><h4>The problem when your heart is wounded:</h4><p>Now let’s assume some tragedy happened and your heart is wounded, Now your central system got affected. In this case, even if you’re mentally sound, your heart will not allow your brain to start working on the healing part. It will never signal your mind to even think about calling a doctor or taking medicine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*eso4CNVLSvP9fLrXhSYYhA.jpeg" /><figcaption>Mental Health v/s Emotional Health</figcaption></figure><p>Like I said before, your heart always dominates your brain and your brain surrenders. You don’t feel like doing anything. You want this world to be stopped at that moment. You don’t feel like sharing anything with anyone, sometimes because of trust issues or sometimes it’s just that you think nobody can understand you. Nobody can feel your pain.</p><blockquote>Which is true, nobody (not even your family, true friends), literally nobody can feel your pain or can share your pain.</blockquote><p>Do you remember this scene from the movie <a href="https://en.wikipedia.org/wiki/Kabir_Singh">Kabir Singh</a>?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qLORViPq0g1mEpHBJA3z3g.jpeg" /><figcaption>A scene from the movie <a href="https://en.wikipedia.org/wiki/Kabir_Singh">Kabir Singh</a></figcaption></figure><blockquote>And it is very true, suffering is very personal. But that doesn’t mean nobody can help you. Nobody can feel or share your pain however people can help you to get out of that zone.</blockquote><h3>The flow of changing mindset:</h3><h4>So now when your heart is not signalling at all, you become a pessimist, experience worthlessness. 👇</h4><h4>With that worthless feeling, you start to overthink about things. Which starts affecting your eating and sleeping patterns. You’ll isolate yourself.👇</h4><h4>Impacted eating habits will disturb your physical health, you’ll feel a lack of energy and disturbed sleeping patterns will affect your mind. 👇</h4><h4>Now your mind is losing power to think, making decisions and facing difficulties in concentrating, remembering things. 👇</h4><h4>Now your body and mind are at their weakest zones. You have already lost interest in your regular activities at this time. And you’re about to lose hope. 👇</h4><h4>This is the last step, you lost your hope. You’re fed up of crying and those panic attacks. Thoughts of suicide have started. You may have been thinking about it for a long period. 👇</h4><h4>And this step is very quick to call and it just takes 5 to 10 minutes, literally no thinking involved. Suicide Plan to Attempt. And everything is over! 🥀</h4><blockquote>What we need to understand is especially in India, we don’t give much attention to terms like stress, anxiety, depression. These are still a taboo in our country.</blockquote><blockquote>We take physical health so seriously but mental health not enough.</blockquote><p><em>So coming back to this incident of </em><a href="https://en.wikipedia.org/wiki/Sushant_Singh_Rajput"><em>Sushant Singh Rajput</em></a><em>,</em> <strong>34 years old, successful, intelligent, rich, healthy, happy?</strong> Now many people may wonder that he had such life which million people wish for, if you got this question in your mind, please do read this article again, you probably missed the point.</p><blockquote>as <a href="https://en.wikipedia.org/wiki/Jim_Carrey">Jim Carrey</a> once said, “<strong>I think everybody should get rich and famous and do everything they ever dreamed of so they can see that it’s not the answer.</strong>”</blockquote><p>This incident taught us not to leave each other alone, not to be hard on ourselves. <strong>No matter how popular, intelligent, healthy, rich you are, situations or circumstance may go wrong, people you get along with can also be wrong, life can be too harsh sometimes.</strong> We learnt that self-worth is not about the size of the car, the bank balance or brand of your clothing.</p><blockquote>Q: Is there a solution?</blockquote><h3>Let’s see,</h3><p><strong>Having someone willing to listen and ask concerned questions can make all the difference.</strong> This is it.</p><h3></h3><p></p><p>We are living in an era of social media, Everyone is flaunting their lives, luxuries, and how happy they are. Sometimes it’s obvious one get jealous and start hating his own life. And in this busy life, there is no one to talk to regarding mental health. <em>Everyone in this world has to fight their own battles.</em></p><p>If I have to give a quick (1 line) solution to this, that would be, <strong>“The moment you feel that something is wrong, go to your family. In the end, the family is the only option which can save you from this”</strong></p><p>And if you’re getting suicidal thoughts, pick up your phone and call your family. Remember this scene from 3 idiots, this works! Just imagine what would happen to your family’s smile when they’ll see your dead body.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5SCPzj3P8C4c3FljKlftw.png" /><figcaption>A scene from 3 idiots</figcaption></figure><p><strong>Depression is real. The world needs to accept it, not stigmatize it.</strong></p><p>Depression, anxiety, mental stress these are real disease and 100% curable, if you think it’s troubling you, getting medical help makes sense.<br>Attaching one Hindi video, on symptoms, causes &amp; treatment</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FY8qJ_0J2qKo%3Fstart%3D1%26feature%3Doembed%26start%3D1&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DY8qJ_0J2qKo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FY8qJ_0J2qKo%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/5d0c0ff1ad139f748748699482299ba8/href">https://medium.com/media/5d0c0ff1ad139f748748699482299ba8/href</a></iframe><h4>On a lighter note, if you want to go deep into Emotional Health and Physical Health, Do watch this 👇 ENJOY 😀!</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Ftc-ya4x1y8c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dtc-ya4x1y8c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Ftc-ya4x1y8c%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/53f54e878805b0cb83894ebbb717b7e1/href">https://medium.com/media/53f54e878805b0cb83894ebbb717b7e1/href</a></iframe><p>Please treat depression like we treat physical illness, Don’t say things you wouldn’t tell someone with a physical illness like cheer up or smile or why are you like this always. You can make that case worse by saying this.</p><p>I wish I could have read this kind of article 2 or 3 years back but anyways I figured this much in a very hard way. I hope this will help someone somewhere in their life. A lot of people don’t face this in their life so this is not for everyone, don’t overthink that it may happen to you someday somewhere.</p><p>The core idea of writing this bit so that we can reprogram our mind to accept the idea of emotional wellbeing. Because our mind tells us that the pain we cannot see is the pain that does not exist or is not important.</p><p>And be kind to people because we cannot see this pain but it exists and people generally hide it behind laughs and smiles.</p><h3>Clap &amp; Follow</h3><p>The original article is <a href="https://ashmeetsehgal.com/content/blogs/emotional-health-v-s-physical-health">here</a>. Thank you and God bless you. If you found this article insightful, feel free to give some rounds of applause if you don’t mind.</p><p>You can also follow me on Medium (<a href="https://medium.com/u/d293b4c38b7c?source=post_page-----df6e1dc3416a----------------------">Ashmeet Sehgal</a>) for more insightful articles you may find helpful. You can also follow me on Twitter (<a href="https://twitter.com/ashmeetsehgal"><strong>@</strong>ashmeetsehgal</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b3d2d447be8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Journey from QA to Software Developer]]></title>
            <link>https://ashmeetsehgal.medium.com/a-journey-from-qa-to-software-developer-df6e1dc3416a?source=rss-d293b4c38b7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/df6e1dc3416a</guid>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[change-domain]]></category>
            <category><![CDATA[software-developer]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Ashmeet Sehgal]]></dc:creator>
            <pubDate>Fri, 02 Nov 2018 10:06:01 GMT</pubDate>
            <atom:updated>2024-08-28T16:32:10.212Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4RdESYUAeUoCU501nlMiA.png" /></figure><p>You must have heard this at least once if you’re from the IT industry that making the transition from <em>QA or some other technical role</em> to a <em>software developer</em> can be extremely difficult. And actually a lot of people want to do that, discipline/domain change from <strong>QA/Support</strong> to <strong>Software Developer</strong>. If you are one of them, this article is for you.</p><p>I made this transition myself, So I thought of sharing some points which helped me in this journey and might be helpful for you as well. In this post, I‘ll share with you what I have experienced and the lessons I learned, that might help you in your journey. I hope something in this post resonates with you and adds value to your life.</p><h3>Beginning</h3><p>I started programming at my college. I did some freelancing work / developed websites for different companies. Worked for a startup as a PHP developer. After that, I got placed from my college in an MNC.</p><p>In that company, I started my journey with learning technologies/frameworks like <a href="https://www.seleniumhq.org/">selenium</a>, <a href="http://appium.io/">appium</a>, <a href="https://cucumber.io/">cucumber</a>, and various automation frameworks. Then there was a turning point when I got an opportunity to work on a framework called <a href="http://galenframework.com/">Galen Framework</a>, which is used for creative automation. When I started working on it in 2016, it was pretty new at that time, there was no detailed documentation, mostly people were not aware of it. After 3 months of R&amp;D, I made a Javascript automation framework on top of it. In those 3 months, I developed an interest in Javascript and this is how I made my bridge to a development role. This was my first step towards learning Javascript.</p><h3>Learning</h3><p>It is hard to learn anything at first because often you get confused in the middle. Don’t feel bad it happens to everyone so choose one of the programming languages and stick with it until you feel comfortable and never give up.</p><p>I started with some of the online courses from <a href="https://www.lynda.com/">Lynda</a>, <a href="https://www.udemy.com/">Udemy</a>, <a href="https://frontendmasters.com/">FrontendMasters</a>, <a href="https://www.pluralsight.com/">Pluralsight</a>, and youtube and did assignments that came along with courses. Practised on <a href="https://www.freecodecamp.org/">freeCodeCamp</a>, <a href="https://www.codewars.com/">codewars</a>, <a href="https://www.w3schools.com/">w3Schools</a>. Read books like <a href="https://www.amazon.com/JavaScript-Definitive-Guide-Activate-Guides/dp/0596805527/ref=as_li_ss_tl?ie=UTF8&amp;redirect=true&amp;linkCode=ll1&amp;tag=eejs-20&amp;linkId=11a79cf9e89a54625cb3a8e8ff2dc8d5"><strong>“JavaScript: The Definitive Guide”</strong></a> by <em>David Flanagan</em> and <a href="https://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742/ref=as_li_ss_tl?ie=UTF8&amp;redirect=true&amp;linkCode=ll1&amp;tag=eejs-20&amp;linkId=afcaa6d74f1fbcc21a0c4d728b83dde1"><strong>“JavaScript: The Good Parts”</strong></a> by <em>Douglas Crockford</em> &amp; Participated in Hackathons. I spent a lot of time learning Javascript and started exploring some libraries like handlebar and react. However, I had PHP programming experience earlier, which somehow helped me because I could relate things. Its always good to have a secondary programming language experience so you can relate things and understand it better.</p><p>Things which helped me during this phase and still helping me:</p><ol><li>Start from the basics. Start reading books, at least ONE.</li><li>Avoid (STOP) looking for answers in StackOverflow, or Don’t directly jump to answers, instead try to read things around the problem.</li><li>Start looking for the BEST solution instead of an easy solution, try to read all possible solutions.</li></ol><h3>The Struggle</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5GSyquAnXGqbv2eiMHTlAw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/xa8gMCUssPc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Raechel Romero</a> on <a href="https://unsplash.com/search/photos/struggle-hurdle?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Even though I was working on Javascript on top of automation framework, I wasn’t getting any opportunity to work as a developer for any project. As they say in IT industry “<strong>Once you have a role within a company, people tend to always see you like that particular role, regardless of your skill set or how you grow.”</strong></p><p>In the software development world, in particular, there is usually a sharp distinction between software developers and testers (or QA).</p><p>Because of this bias, coming into a new company as a software developer is often easier than transitioning to a software development role from being a tester or other position. This can be extremely frustrating — especially if you’ve outgrown your previous role.</p><p><strong>You will have to be patient, and realize that although it will take time for perceptions to change</strong>, they eventually will.</p><p>The more you can involve yourself in the software development side and take on more programming tasks, the more other people will start to see you in the new role.</p><p>Sometimes, though, you may have to move to a completely different company to escape the box you’ve been put into.</p><h3>Opportunity</h3><p><strong>You might have to make your own opportunities</strong>. My first piece of advice to you would be to go ahead and make your goal known as widely as possible. <strong>Let your coworkers know that you are aspiring to move into development.</strong></p><p>Ask for a meeting with your manager, and frankly tell them that you’d like to move into a software development role and that <strong>you are willing to do whatever it takes to get there. </strong>When you talk about this goal with your manager, make sure you discuss how your testing background will benefit the company when you eventually move into a programmer role.</p><p><strong>Talk about the benefits your company will gain from you making the transition.</strong></p><p>The more it is known that you want to move into a software development role, the more you’ll start to chip away at the bias people might have about keeping you in your current role, so don’t be afraid to openly talk about it.</p><p>When you do have this conversation with your manager, see if you can <strong>get a list of requirements or a course you can take that will move you from your current role to one working as a software developer.</strong></p><p>If you can nail down a list of things you need to learn or milestones you need to achieve, you can create a much more solid case for making the transition, when you are ready.</p><p>I’ve used this exact technique, so my manager knew that he has a potential resource, So next time when my project needed a developer with handlebar experience (there was no handlebar experienced resource available in the project), instead of taking resource from outside, he gave me that opportunity. That&#39;s how I got my first project as a Software developer.</p><p>During that project tenure, I got a chance to showcase my potential. I implemented the modules with proper design patterns and best practices. After that project, I got selected into a react.js project as a software developer. And meanwhile, they changed my discipline/domain officially.</p><p>Since then I am working as a Software Developer.</p><h3>Conclusion</h3><p>If you are thinking about changing roles, then one of the key pieces of advice is to prepare ahead of time, work out areas and tasks that you can work on before actually making the role change to try and make it easier for the first few months in your transition.</p><p>Having reached the end of this article, I’m sure you would have learned something here. Keep learning, keep improving your skills, keep looking for opportunities and making your own and you’ll get what you are after.</p><h4>Clap &amp; Follow</h4><p>If you found this article insightful, feel free to give some rounds of applause if you don’t mind. The original blog is <a href="https://ashmeetsehgal.com/content/blogs/a-journey-from-qa-to-software-developer">here</a>.</p><p>You can also follow me on Medium (<a href="https://medium.com/u/d293b4c38b7c">Ashmeet Sehgal</a>) for more insightful articles you may find helpful. You can also follow me on Twitter (<a href="https://twitter.com/ashmeetsehgal"><strong>@</strong>ashmeetsehgal</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df6e1dc3416a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automation Testing with Node.js and Nightwatch]]></title>
            <link>https://ashmeetsehgal.medium.com/automation-testing-with-node-js-and-nightwatch-5b478dac1538?source=rss-d293b4c38b7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b478dac1538</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[nightwatchjs]]></category>
            <category><![CDATA[functional-automation]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Ashmeet Sehgal]]></dc:creator>
            <pubDate>Tue, 24 Apr 2018 19:07:04 GMT</pubDate>
            <atom:updated>2021-01-25T20:34:42.240Z</atom:updated>
            <content:encoded><![CDATA[<p>About an year ago I wrote a blog on Galen Framework [Creative Automation Testing] and how to write our own javascript framework and create an application on top of it. But that was all creative, checking layouts paddings, margins, positions and functional testing with Galen was quite time-consuming. So which tool or framework can be helpful for functional testing of web applications?</p><p>Too often I see developers and QA people manually doing repetitive, annoying tasks. Testing is one such thing. When you deploy, do you verify it’s actually running? To check that, you have to open the browser, log in to the site, click around and see whether you got the expected results. Boring! I wish there would be some “robot” who does this all for us!</p><p>A few days back I then saw a feed on my LinkedIn mentioning Selenium, Node and a project called <a href="http://nightwatchjs.org/">Nightwatch</a>. That caught my attention and I quickly jumped in to give it a try.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K_vl3SXp9doMFGCXhJwmrw.jpeg" /><figcaption>Nightwatch for e2e testing</figcaption></figure><p>And believe me, this is pretty AWESOME. I was totally impressed. So Let’s start with basics,</p><p><strong>So what is Nightwatch?</strong></p><p><a href="http://nightwatchjs.org/">Nightwatch</a> is an automated testing framework for web applications and websites, written in Node.js and using the <a href="https://www.w3.org/TR/webdriver/">W3C WebDriver API</a> (formerly <a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol">Selenium WebDriver</a>.)</p><p>It is a complete browser (End-to-End) testing solution which aims to simplify the process of setting up Continuous Integration and writing automated tests. Nightwatch can also be used for writing Node.js unit tests.</p><p><strong>The Setup</strong></p><p>Follow the installation instructions on the <a href="http://nightwatchjs.org/guide#installation">official Nightwatch page</a> about installing</p><ul><li>Node and NPM</li><li>Nightwatch</li><li>Selenium server</li></ul><p>Once you have everything, you can start creating your test specs. Here’s how it looks like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*2l2tPKjbWxHrRJiJ6y1zIA.png" /></figure><p>You basically define your tests within a Node module:</p><pre>module.exports = { <br>&quot;My test case&quot;: function(browser) {<br>  // control the browser<br> }<br>}</pre><p>Under the hood, the <a href="http://nightwatchjs.org/guide#test-runner">Nightwatch test runner</a> communicates with the Selenium server over the <a href="https://code.google.com/p/selenium/wiki/JsonWireProtocol">Selenium WebDriver Wire protocol</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OMqTSx0pOGLJe2Yn31s8sQ.png" /></figure><p><strong>What Can/Should You Test?</strong></p><p>There are two types of testing which you can do with this setup:</p><ol><li>Functional testing</li><li>Regression testing</li></ol><p>Functional testing is the type of testing which tries to see if your website conforms with all of its requirements. Usually, this means implementing tests that make sure it has all of the features required.</p><p>For example, if the client wants a login form, you could write a test to check that when you’re logged in, your name is visible on the web page.</p><p>The other type of testing is Regression Testing. This is done to make sure the website you developed and tested before still works the same way after it has changed. This is especially useful when clients can edit parts of their website that could potentially cause functionality errors.</p><p>For example, you might write a test to make sure that a page has the correct meta tags and information.</p><p>So here are some points I found, Why you should consider Nightwatch?</p><p>- <strong>Clean syntax</strong><br>The simple but powerful syntax which enables you to write tests very quickly, using only Javascript (Node.js) and CSS or XPath selectors.<br>- <strong>Built-in test runner</strong><br>Built-in command-line test runner which can run the tests either sequentially or in parallel, together, by the group, tags or single. Grunt support is built-in.<br>- <strong>Selenium server</strong><br>Controls the Selenium standalone server automatically in a separate child process; can be disabled if Selenium runs on another host.<br>- <strong>Cloud services support</strong><br>Works with cloud testing providers, such as SauceLabs and BrowserStack.<br>- <strong>CSS &amp; XPath support</strong><br>Either CSS or XPath selectors can be used to locate and verify elements on the page or execute commands.<br>- <strong>Continuous Integration support</strong><br>JUnit XML reporting is built-in so you can integrate your tests in your build process with systems such as TeamCity, Jenkins, Hudson, etc.<br>- <strong>Easy to extend</strong><br>Flexible command and assertion framework which makes it easy to extend to implement your application-specific commands and assertions.</p><p><strong>Conclusion:</strong></p><p>I tried some single tests, parallel tests with BrowserStack and it works beautifully. I liked it, It is open source. Pretty easy to set up. All in all worth a try.</p><p>Feel free to check the code <a href="https://github.com/ashmeetsehgal/functional-automation">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*-MAOsHaYBbhrc6XDf3nPJQ.gif" /><figcaption>Sample Google Search Test</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*Yxy16dyg6HPxA4pZURiV-w.png" /><figcaption>Test Results in terminal</figcaption></figure><p>Thanks for reading…</p><p>If you found this article insightful, feel free to give some rounds of applause if you don’t mind. The original blog is <a href="https://ashmeetsehgal.com/content/blogs/automation-testing-with-node-js-and-nightwatch">here</a>.</p><p>You can also follow me on Medium (<a href="https://medium.com/u/d293b4c38b7c">Ashmeet Sehgal</a>) for more insightful articles you may find helpful. You can also follow me on Twitter (<a href="https://twitter.com/ashmeetsehgal"><strong>@</strong>ashmeetsehgal</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b478dac1538" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>