<?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 HARSHVARDHAN SINGH CHAUHAN on Medium]]></title>
        <description><![CDATA[Stories by HARSHVARDHAN SINGH CHAUHAN on Medium]]></description>
        <link>https://medium.com/@harshvardhan-chauhan?source=rss-5c84650567bb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*i5jk0oHl3EqKIAqyYVQ82Q.jpeg</url>
            <title>Stories by HARSHVARDHAN SINGH CHAUHAN on Medium</title>
            <link>https://medium.com/@harshvardhan-chauhan?source=rss-5c84650567bb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:32:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harshvardhan-chauhan/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[ Sustainability in Middle Eastern Real Estate: A Rising Opportunity]]></title>
            <link>https://harshvardhan-chauhan.medium.com/sustainability-in-middle-eastern-real-estate-a-rising-opportunity-228d62170369?source=rss-5c84650567bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/228d62170369</guid>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[consulting]]></category>
            <category><![CDATA[middle-east]]></category>
            <category><![CDATA[real-estate]]></category>
            <category><![CDATA[esg]]></category>
            <dc:creator><![CDATA[HARSHVARDHAN SINGH CHAUHAN]]></dc:creator>
            <pubDate>Sun, 24 Sep 2023 00:19:23 GMT</pubDate>
            <atom:updated>2023-09-24T00:19:23.401Z</atom:updated>
            <content:encoded><![CDATA[<p>While sustainability is often seen as a potential liability in Middle Eastern real estate, a shift in perspective reveals it as an economically attractive, environmentally responsible choice.</p><p>According to a <a href="https://www.linkedin.com/company/boston-consulting-group/">Boston Consulting Group (BCG)</a> analysis, nearly half (48%) of decarbonization in the construction sector could be achieved at no cost to developers. Here’s how it breaks down:</p><p>Buildings account for the majority of emissions (66%)<br>Landscaping and water contribute around 20%</p><p>If we look at the entire lifecycle of the project:<br>Manufacturing of construction materials contributes to approximately 25% of emissions<br>Operations and maintenance contribute to about 65%</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hd9z3ffy09cu7_pbA2g9Rw.jpeg" /></figure><p>By implementing green construction options like LED lighting, smart thermostats, and power-saving measures, mega projects can generate significant cost savings over a life cycle of around 50 years.</p><p>Case in point: Emirates Global Aluminum has used solar-powered aluminum smelting processes in recent years, leading to multiple contracts, including a 2021 deal from <a href="https://www.linkedin.com/company/bmw-group/">BMW Group</a> for 40k tons of green aluminum.</p><p>It’s clear that embedding decarbonization policies during the design stage of the project lifecycle can lead to substantial reductions in greenhouse gas emissions at negligible costs. It’s time for the Middle East’s real estate sector to embrace this green revolution! 🌿🏢</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=228d62170369" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Fundamental Traits every Professional should have]]></title>
            <link>https://harshvardhan-chauhan.medium.com/3-fundamental-traits-every-professional-should-have-ba045d18443a?source=rss-5c84650567bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba045d18443a</guid>
            <category><![CDATA[traits]]></category>
            <category><![CDATA[professional]]></category>
            <category><![CDATA[risk]]></category>
            <category><![CDATA[fundamentals]]></category>
            <category><![CDATA[preparation]]></category>
            <dc:creator><![CDATA[HARSHVARDHAN SINGH CHAUHAN]]></dc:creator>
            <pubDate>Fri, 28 Jan 2022 16:01:48 GMT</pubDate>
            <atom:updated>2022-01-28T16:01:48.015Z</atom:updated>
            <content:encoded><![CDATA[<p>With everything moving and changing at fast pace, the ingredients for the recipe of successful professional career is every increasing. But like any other game, it has some fundamentals and if those are strong, recipe can never go wrong. There are three fundamental traits which we all must have as a professional.</p><ol><li><strong>BE CURIOUS</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MT-4-NsMYUx1oxQISSxG9w.jpeg" /></figure><p>It does not matter where we stand in the hierarchy. It does not matter at which stage of the assignment/project we are. It does not matter how stupid we think our question is because there is only one stupid question, the one which is not asked. Having said that, being curious is not only about asking questions but trying to understand the holistic view. It is about trying to penetrate deep into it. At any point what we know may be only a drop in the ocean but that does not mean that we chose to remain oblivious about things that are not present right in front of us or beyond our understanding at any given point.</p><p><strong>2. Focus on learning</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*skoEBHwl_04poNWPg5hTfQ.jpeg" /></figure><p>One should always be his own competitor. We must always focus on only one thing and that is growing or evolving. There can be multiple sources of motivation for us and learning may or may not be one of those. But irrespective of that, there should be not be any compromise or discount on the learning part. As long as we are committed towards continuous learning and improvement, we will not lose relevance in the market. Market can be ruthless at times and we must not take it lightly.</p><p><strong>3. Do not get comfortable</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZySLS4F7Ef9kGcQL20uUw.jpeg" /></figure><p>At the time of crisis which at some point or the other we all go through in our career, the first question that we ask ourselves is where was the red flag? Had I got one, I would/could have been more prepared. I myself had the same question when I went through a tough time in my career. Here the catch is. The red flag has always been with us all along for quite some time. It is in the shape of comfortability. The moment we find ourselves comfortable and we start feeling that the struggle to be relevant has almost vanished is nothing but the red flag. Now the question is should we move on right after we start getting comfortable. By this do I mean the struggle should continue without any break. The answer is a big NO. But that does not stop us from being prepared. We must always be prepared well in advance.</p><p>Thanks for reading. These are the three things that I think are most fundamental. Please let me know if you think we should include other traits in the list.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba045d18443a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UNDERRATED PRODUCTIVITY HACKS]]></title>
            <link>https://harshvardhan-chauhan.medium.com/underrated-productivity-hacks-80e53a75932e?source=rss-5c84650567bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/80e53a75932e</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[productivity-hacks]]></category>
            <category><![CDATA[underrated]]></category>
            <dc:creator><![CDATA[HARSHVARDHAN SINGH CHAUHAN]]></dc:creator>
            <pubDate>Sun, 23 Jan 2022 17:09:08 GMT</pubDate>
            <atom:updated>2022-01-23T17:09:49.557Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QmDs2Y5UCA_plCs3mItvCw.jpeg" /></figure><p>Have you ever felt that although the whole to do list was on paper and it did not even look gigantic, but still the passes by in the blink of an eye and hardly we are able to finish the list. Although, we do almost similar tasks day in day out week after week but still we are not able to perfect this art of bringing tasks to completion. We end up struggling by the tail end of the day. There can be multiple reasons to it which depend on people to people like multiple parallel threads going on Teams/Slack or any other channel, multiple emails coming back to back, multiple ad-hoc asks which can never be planned and last but not the least our uncontrollable urge to browse through Social Media which eats up much more time than we can possibly think about.</p><p>There are few simple and easily doable hacks which can exponentially increase the productivity on daily basis. I came across a short video By Ankur Warikoo and to my surprise I was following all these and could vouch for the results.</p><p><strong>HACK # 1:</strong></p><p><strong>DESIGNATED TIME SLOTS FOR SOCIAL MEDIA:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Y-YXXBryiJfMx8XxbhPPw.jpeg" /></figure><p>Have designated time slots for Social Media. Instead of browsing time to time, fix time slots distributed throughout the day. For eg. 11 am in morning, 4 pm in evening and then 7:30 pm. It helps us to curtail the time which we end up spending unknowingly and also when we designate a time we look forward to do it but time box it at the same time.</p><p><strong>HACK # 2:</strong></p><p><strong>TAKE NOTES OF DISTRACTIONS:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3eA4_jlQJDeaSgpJ9IVGw.jpeg" /></figure><p>We have multiple sources of distraction and I can write on and on about those. What we can do to optimize or distraction time is to keep a note as and when they occur and within a couple of minutes we can get back to our work. Once we are done with it, we can go back to our distraction notebook and address it one by one. This way, our flow does not break and distractions become helpless in the only job they have i.e. distraction.</p><p><strong>HACK # 3:</strong></p><p><strong>TAKE A POWER NAP:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t7iMcviLM_EMOcXrAkJKUQ.jpeg" /></figure><p>Take a power nap. It can range anytime between 15 min to 30 min but it should not last long because if that happens it defeats the whole purpose. Put an alarm and wake up. It can prove very effective specially when we are working from home. The catch here is refrain from taking the nap in your cozy bed but instead prefer your bean bag or desk is also fine to serve the purpose.</p><p><strong>BONUS POINT:</strong> We can club the to do list with our distraction list and by the end of the day we can review, what have we achieved in terms of completion. This makes the whole day truly agile and we get to know the correct of how many tasks were actually planned vs how many tasks we ended up accumulating during the whole day.</p><p>I am sure these hacks will prove fruitful to your daily routine as well. It is said that it takes 21 days to convert a habit into a routine. Let me know how has it helped you and also if we can improvise it further. At the end of the day, our goal is to improve the productivity.</p><p>Thanks for reading! Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80e53a75932e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Work life balance]]></title>
            <link>https://harshvardhan-chauhan.medium.com/work-life-balance-4089c501ea12?source=rss-5c84650567bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/4089c501ea12</guid>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[prioritization]]></category>
            <category><![CDATA[distinction]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <dc:creator><![CDATA[HARSHVARDHAN SINGH CHAUHAN]]></dc:creator>
            <pubDate>Fri, 31 Dec 2021 10:41:20 GMT</pubDate>
            <atom:updated>2021-12-31T10:41:20.547Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*JAVJ0p-oiBYXU2Tu-f1XkQ.jpeg" /></figure><p>Pandemic has taught us one thing — UNCERTAINTY. There has been a significant drift over past couple of years in the mode of work. On one hand, although it has given us more flexibility and quality time has been saved in activities like commute and other peripherals. While on the other hand, it had its adverse effects on availability and work life balance. These can have severe impacts on productivity on a long run.</p><p>A few small measures can be very effective to combat it.</p><p>1. <strong>PRIORITIZATION </strong>—</p><p>Prioritization of tasks and time can be done based on 4 categories</p><p>A. Urgent and important<br>B. Important but not urgent<br>C. Urgent but not important<br>D. Neither important nor urgent.</p><p>2. <strong>PEAKS AND TROUGHS </strong>—</p><p>Act according to our peaks and troughs. Some are morning persons, and some are night persons. Based on what we are we must pick tough, high-concentration tasks for ourselves.</p><p>3. <strong>HAVE A DESIGNATED PERSONAL TIME</strong> —</p><p>We must have some me time. This plays a very important role in having our batteries recharged.</p><p>4. <strong>WORKSPACE </strong>—</p><p>Have a designated workspace. A separate space for work which should not be mixed with other activities such as having lunch. Mimicking our office at home can have a psychological effect and that is how we can draw a line of distinction between our personal space and office space.</p><p>5. <strong>BE REALISTIC</strong> —</p><p>We must be realistic. A small retrospective at the end of the day can be very beneficial. A small self-analysis on what worked today and what did not. This can help to plan coming days better.</p><p>There are only few things that I could think of. There are multiple other measures which can be very effective in maintaining a healthy work life balance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4089c501ea12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automate the custom file download in Selenium — Chrome]]></title>
            <link>https://harshvardhan-chauhan.medium.com/automate-the-custom-file-download-in-selenium-chrome-1c6d6dfae51b?source=rss-5c84650567bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c6d6dfae51b</guid>
            <dc:creator><![CDATA[HARSHVARDHAN SINGH CHAUHAN]]></dc:creator>
            <pubDate>Fri, 31 Dec 2021 09:49:05 GMT</pubDate>
            <atom:updated>2021-12-31T09:53:29.253Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automate the custom file download in Selenium — Chrome</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*JY7nVaUbgQ0xEegysTlt-A.jpeg" /></figure><p>When it comes to custom download the file in some location other than the regular downloads folder, it can be done easily via chrome settings. But at times, we need to automate the whole scenario. Selenium can help us to download the file via the WebDriver to the location specified as the browser capability.</p><p>All we need to do here is create a HashMap and add the preference as key value pair. This HashMap is used to put the custom path where the file is required to be downloaded. This needs to be set to ChromeOption using setExperimentalOption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xu_3RyrjaLQanKKR2Oj8EA.png" /></figure><p>Post download, the verification of the file can be done using Input-Output operations.</p><p>Here we need to navigate to the directory. Once we are into the destination directory, we need to iterate through all the files in the directory and match the file name with the target file name. Once, the match is successful, Boolean flag is returned which can be then asserted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K_Sp4teDhVLPEKox2bgohw.png" /></figure><p>This utility along with the capability can be utilized in order to download a custom file and assert if it is downloaded successfully. Please refer the below sample code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zSIbmJ29URm7_8bRtKCBIA.png" /></figure><p><strong>NOTE</strong>: The download is done using Selenium but assertion part is something which is outside the purview of selenium.</p><p>When we know the user of any particular machine, then this can be done but what if any remote machine is accessed using build executor. Please let me know your thoughts on how to custom download in such cases. Happy reading!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c6d6dfae51b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intelligent Automation and myths around it!]]></title>
            <link>https://harshvardhan-chauhan.medium.com/intelligent-automation-and-myths-around-it-46afae28bd89?source=rss-5c84650567bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/46afae28bd89</guid>
            <category><![CDATA[rpa-tools]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[intelligent-automation]]></category>
            <dc:creator><![CDATA[HARSHVARDHAN SINGH CHAUHAN]]></dc:creator>
            <pubDate>Mon, 29 Nov 2021 16:35:07 GMT</pubDate>
            <atom:updated>2021-11-29T16:35:07.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXpVYTAlW020gMNDaB-4LA.png" /></figure><p>The very first time when someone asked me this question, “What do you think about IA”?</p><p>My immediate reaction was “do you mean IA or AI? What I thought was by mistake he said IA. But when I discovered about it, I realized, being a QA engineer I should be knowing anything and everything happening in the space of IA (Intelligent Automation). This is a combination of two words, “INTELLIGENT” and “AUTOMATION”.</p><p>Let’s try to understand one by one. But before that let’s go one step behind and understand RPA and its role in automation. RPA is the short form of “Robotics Process Automation” which helps us automate the mundane, repetitive tasks like report generation, invoice processing and data entry. While it plays a vital role in automating activities that require multiple repetitions of the same sequence, its most significant shortfall is that it doesn’t “<strong>learn</strong>” from its tasks. That is where “<strong>Intelligence</strong>” comes into picture. “<strong>Artificial Intelligence</strong>” adds the “<strong>cognitive</strong>” aspect to automation, allowing users to extend the horizons of business process automation. It does this by combining the task execution of RPA with the machine learning and analytics capabilities of cognitive technologies, like computer vision and Natural Language Processing (NLP).</p><p>This unique combination allows users to automate more dynamic, end-to-end processes involving structured or unstructured data.</p><p>But being talk of the town, it is destined to be surrounded with myths. Below are some common myths around “<strong>Intelligent Automation</strong>”.</p><p><strong>MYTH 1: It will eliminate jobs</strong></p><p>Well, it’s true that many tasks which were previously performed by humans like contact centers are now automated with technologies like RPA, but artificial intelligence (AI) will continue to rely on humans because AI still needs training. In short, jobs are being re-defined and not being replaced. Robots can never be “<strong>set and forget</strong>”. They need to be managed operationally and maintained technically.</p><p><strong>MYTH 2: It may not work across all the industries.</strong></p><p>While it is true that industries like finance have accelerated at a faster pace than other economic sectors, but that does not conclude that other sectors cannot benefit from this technology. Every industry has scope to enhance customer engagement and automate back-office tasks.</p><p><strong>MYTH 3: We can do this without involving IT.</strong></p><p>This can happen in few instances but if you look at the holistic view than without IT we cannot go far. Whether in providing access for the bots via user IDs, governance, or assisting with major glitches as underlying systems change, you are going to need people in IT.</p><p>I am sure there would be multiple other small or big myths around it which were not covered in the above discussion. Please let me know your views and if you can think of any other myth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46afae28bd89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An open letter from a stray to a hooman.]]></title>
            <link>https://harshvardhan-chauhan.medium.com/an-open-letter-from-a-stray-to-a-hooman-47ea79ee1f7b?source=rss-5c84650567bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/47ea79ee1f7b</guid>
            <category><![CDATA[humanity]]></category>
            <category><![CDATA[empathy]]></category>
            <category><![CDATA[stray-dogs]]></category>
            <category><![CDATA[animals]]></category>
            <category><![CDATA[animal-rights]]></category>
            <dc:creator><![CDATA[HARSHVARDHAN SINGH CHAUHAN]]></dc:creator>
            <pubDate>Mon, 15 Nov 2021 11:47:43 GMT</pubDate>
            <atom:updated>2021-11-15T11:47:43.930Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Obfr6I9kapP0MA4-p6oj0Q.jpeg" /></figure><p>These two are my little kids called BumbleBee (Bambi) and Bumbo. After I got Bumble at home, my whole perspective towards the stray animals changed. Now I can decode their body language and even different types of barks. They communicate with us in multiple ways. Everyday brings new struggles to them. All they expect from us is little empathy and care. Below is an open letter to all of us….</p><p>You hate me, you hit me, you kick me and throw stones,</p><p>it hurts my skin it hurts my bones.</p><p>What makes you happy? How is it fun?</p><p>What is my crime? Tell me what have I done?</p><p>What is the difference between me and you?</p><p>I walk on 4 legs, you walk on 2.</p><p>I speak a language which you don’t understand,</p><p>You speak a language which I don’t understand.</p><p>But there is something for which even mighty empires bow,</p><p>It’s called language of love, just in case you wanna know.</p><p>Why are you so evil? I just can’t think,</p><p>I too need food to eat, need water to drink.</p><p>To the posterity, what are you gonna teach?</p><p>Without empathy, tell me how far will you reach?</p><p>All your superficial achievements, does that make you better?</p><p>Every day you drown deeper in pride, that makes me even sadder.</p><p>Empty handed we come, empty handed we leave,</p><p>leaving behind all the loved ones to bereave.</p><p>It’s a bitter truth, I ain’t gonna lie,</p><p>One fine day my friend, we both are gonna die!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47ea79ee1f7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cause-Effect Graph test technique]]></title>
            <link>https://harshvardhan-chauhan.medium.com/cause-effect-graph-test-technique-b088afa0fb15?source=rss-5c84650567bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b088afa0fb15</guid>
            <category><![CDATA[techniques]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[black-box]]></category>
            <category><![CDATA[test-case]]></category>
            <dc:creator><![CDATA[HARSHVARDHAN SINGH CHAUHAN]]></dc:creator>
            <pubDate>Fri, 12 Nov 2021 19:32:48 GMT</pubDate>
            <atom:updated>2021-11-12T19:32:48.422Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zKhsYFFaW_TJQbEC6UeRaQ.jpeg" /></figure><p>Cause-Effect Graph falls under the black box testing technique which illustrates the relationship between the outcome and all the factors resulting into it. It is very important in the testing universe because it not only helps us in deriving the minimum number of possible test cases which can cover a maximum test area of the software but also helps us in identifying the gaps and ambiguities in the requirement specifications. If we realize that we are not able to derive a clear cause-effect graph then it means that there is a scope of improvement in the requirements. Cause-Effect Graph technique converts the requirements specification into a logical relationship between the input and the output conditions by using logical operators like AND, OR and NOT.</p><p>Before jumping into the steps to derive the graph, let us first understand what exactly a cause and effect is?</p><p><strong>What is a Cause?</strong></p><p>This is either a condition or set of conditions because of which either some change/transformation happens in the system or some output is generated.</p><p><strong>What is an Effect?</strong></p><p>An effect is nothing but either the output which is generated or system transformation which has occurred due to some inputs which are fed.</p><p>Now let us see how to we derive the graph step by step.</p><p><strong>Step1:</strong></p><p>The very first step is to identify the cause and effects from the specifications and assign unique numbers to each of them.</p><p><strong>Step 2:</strong></p><p>Draw a Boolean graph linking the cause and effects.</p><p><strong>Step 3:</strong></p><p>Specify the constraints on the graph describing the combinations of cause and/or effects that are impossible.</p><p>for eg: if x == y and x == z, then x == z or x will always be equal to y and there will not be any possibility of x not being equal to z.</p><p><strong>Step 4:</strong></p><p>Convert the graph into limited entry decision table by tracing state conditions in the graph. Limited entry decision table is a form of decision table where there are only two possible values for conditions which is nothing but Boolean value. This decision table shall be used to derive the final test cases. Here, each column will be translated into a test case.</p><p>Before deriving the graph, let us understand few notation that will be helpful. These notations can exist between either Cause and Effect, Cause and Cause or Effect and Effect. Below are some notations which exist between Cause and Effect.</p><ol><li><strong>Identity Function:</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*D5EsrJHgiLzTaUWDKhx-aA.png" /></figure><p>It means that if C1 is true, then E1 will also be true. If C1 is false, then E1 will also be false. Both C1 and E1 will be identical in terms of Boolean value.</p><p><strong>2. NOT Function:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*FBATSo31FAzZnuZucJcbxg.png" /></figure><p>It means if C1 exists or if C1 is true then E1 will cease to exist or E1 will be false. Although, if C1 is false then E1 will be true. In short, if the cause exists then the corresponding effect will not exist and vice versa.</p><p><strong>3. OR Function:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*5xbJBtE3oZ6T-9WhV5GCsQ.png" /></figure><p>Here there are three causes which are related to each other to derive a single effect. If any of the causes is true, then only the effect will be true or else it will be false.</p><p><strong>4. AND Function:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*J6SR0kwoLIpYKL4bcUwfJQ.png" /></figure><p>If both the causes C1 and C2 are true then the effect E1 will be true or else the effect E1 will be false.</p><p><strong>NOTE</strong>: In the first two functions (Identity and NOT) there is one to one mapping of cause and effect which means for one cause there will be one effect and we cannot have more then one causes for a single effect. However, in the case of OR and AND functions, we can have multiple causes combined to derive one effect.</p><p>Now, let us try to derive a graph for a problem. The problem is that there are two input values and one output value against each. The first value accepts only character and the character should be either A or B. The second value must be a digit. If the two values has above combination then the output printed is “MESSAGE 1”. If the character in the first value is incorrect, then the output printed is “INCORRECT VALUE 1”. If the character in the second value is not a digit, then the message printed is “INCORRECT VALUE 2”.</p><p>Let us try to derive the happy flows of causes and corresponding effect.</p><p><strong>Causes are:</strong></p><p><strong>C1</strong>: Character for first value is A.</p><p><strong>C2</strong>: Character for first value is B.</p><p><strong>C3</strong>: Character for second value is a digit.</p><p><strong>Effects are:</strong></p><p><strong>E1</strong>: Output is “MESSAGE 1”. → (C1 OR C2) AND C3.</p><p><strong>E2</strong>: Output is “INCORRECT VALUE 1” → When first value has neither A nor B.</p><p>(NOT C1) AND (NOT C2) = NOT (C1 OR C2). Using De-Morgan’s law, NOT of individual causes with AND can be combined as combined NOT of OR of both the causes.</p><p><strong>E3</strong>: Output is “INCORRECT VALUE 2”. When cause C3 is negated. NOT(C3).</p><p>If we try to derive the decision table with both positive and negative values the it would be something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*c6qtQy3dNG9l-5PIKC6UvQ.png" /></figure><p>In the above decision table, each column represents a test case. The same can be derived into a easily understandable graph given below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*Ayb6Kny5JXaRMWf6F1MObQ.png" /></figure><p>Here, the cause nodes are named and effect nodes are named but the intermediator nod is not required to be named.</p><p>We will discuss the constraints in detail in the next blog to understand better. Hope deriving the Cause-Effect graph is clear.</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b088afa0fb15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pairwise Testing]]></title>
            <link>https://harshvardhan-chauhan.medium.com/pairwise-testing-ab5694476d7b?source=rss-5c84650567bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab5694476d7b</guid>
            <category><![CDATA[manual-testing]]></category>
            <category><![CDATA[black-box]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[testing-framework]]></category>
            <category><![CDATA[test-technique]]></category>
            <dc:creator><![CDATA[HARSHVARDHAN SINGH CHAUHAN]]></dc:creator>
            <pubDate>Thu, 11 Nov 2021 15:39:28 GMT</pubDate>
            <atom:updated>2021-11-11T16:31:06.156Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*80D65IzicNNYYuUYfS4D0A.jpeg" /></figure><p>Pairwise testing is also known as All-pairs testing uses combinatorial method to arrive at the test data. It is a black-box test design technique in which test cases are designed to execute all possible discrete combinations of each pair of input parameters. A subset of the combination of all possible factors is generated to ensure the coverage.</p><p>Let us try to understand with an example of an eCommerce website where we are trying to look for a product after applying different filter criteria. For the ease of understanding, let us consider 3 filters having 2 possible values each.</p><p>Filter 1 → (A, B)</p><p>Filter 2 → (G, H)</p><p>Filter 3 → (Y, N)</p><p>This will generate total 2³ combinations. This may not look a very huge number at first but with the combinations and filters increasing, this will become a very big number.</p><p>Now, let us try to derive all the possible combinations which would required to be tested:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*Woh-1KP_6dbJpcVq2mQnoA.png" /></figure><p>From here onwards the process of selection and rejection starts.</p><p>Consider test case # 1:</p><p>Here there are two pairs (A,G) and (G,Y). These two pairs are also present in test case # 2 and test case # 5. Since both the combinations are achieved in test case # 2 and test case # 5 respectively, hence we can remove test case # 1.</p><p>Similarly, consider test case # 3 since test case #2 is already taken in scope.</p><p>Here there are two pairs (A,H) and (H,Y). These two pairs are also present in test case # 4 and test case # 7. Since both the combinations are achieved in test case # 4 and test case # 7 respectively, hence we can remove test case # 3.</p><p>After the above process the table will look something like this where the blue rows are redundant and can be removed from scope and the rows with red pairs can be considered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*cBK7wvcLZKtW8YFHXEByoQ.png" /></figure><p>Now, if we look at the table, we have two test cases pending which are test case # 6 and test case # 8.</p><p>Let’s take them one by one.</p><p>Consider test case # 6:</p><p>Here there are two pairs (B,G) and (G,N). These two pairs are also present in test case # 5 and test case # 2. Since both the combinations are achieved in test case # 5 and test case # 2 respectively, hence we can remove test case # 6.</p><p>Similarly consider test case # 8:</p><p>Here there are two pairs (B,H) and (H,N). These two pairs are also present in test case # 7 and test case # 4. Since both the combinations are achieved in test case # 7 and test case # 4 respectively, hence we can remove test case # 8.</p><p>After the above process the table will look something like this where the blue rows are redundant and can be removed from scope and the rows with red pairs can be considered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*LzkpfK3GYgcudxZMaZf4gg.png" /></figure><p>Now, let us combine both the tables and see which test case is in scope and which is out of scope out of all the combinations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*nbgsGx7q_HYBpk7szP--Gw.png" /></figure><p>This is evident that out of 8 combinations of test cases, we have filtered out 4 and selected 4 test cases.</p><p>Now the question here is if we have bigger number of combinations, then do we derive all the combinations and then filter out. Certainly no, in that case we</p><ol><li>Order the values such that one with most number of values is the first and least is placed as the last variable.</li><li>We start filling the table column by column.</li><li>We start making the combinations of first two columns and then cascade till the last column in the same fashion.</li></ol><p>The magic of pairwise testing is that it can reduce the number of test cases tremendously. If we have 4 fields with 3,2,2,2 values, then,</p><ol><li>Conventional testing technique results in 24 cases.</li><li>Pairwise testing technique results in 6 cases.</li></ol><p>Real time examples of pairwise testing:</p><ol><li>Any filter on website</li><li>Cross browser testing with multiple combinations of OS, browser versions and devices.</li><li>Calendar field.</li></ol><p>Thanks for reading. Cheers!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab5694476d7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All about WAITS, please don’t SLEEP!]]></title>
            <link>https://harshvardhan-chauhan.medium.com/all-about-waits-please-dont-sleep-99f2ff900f3a?source=rss-5c84650567bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/99f2ff900f3a</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[improvement]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[HARSHVARDHAN SINGH CHAUHAN]]></dc:creator>
            <pubDate>Sat, 09 Oct 2021 16:16:26 GMT</pubDate>
            <atom:updated>2021-10-09T17:33:33.185Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*6oP0b-QLz3zO2vDApyqHNw.png" /></figure><p>Waits play a very important role while doing UI automation. It is because there are certain elements which get loaded on the page asynchronously. <br>This means even after the page gets loaded successfully, some of its elements are still not loaded. This in turn leads to the exceptions like <br><strong>NoSuchElementException</strong>, <strong>TimeOutException etc</strong>.</p><p>This can be handled using multiple kinds of waits which are categorized into two:</p><ol><li>Static Wait</li><li>Dynamic Wait</li></ol><p><strong>STATIC WAIT:</strong></p><p>It pauses the execution for a given time, irrespective of whether the element is found or not on the web page. There are sleep methods available in programming languages like the below one which is available in Java. It accepts the time duration in milliseconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*eCnXmZPVYxMbABj0IG6xsA.png" /></figure><p><strong>DYNAMIC WAIT:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*cT4XxtFz80CrfHTikWsK8g.png" /></figure><p>There are 4 different types of dynamic waits in Selenium:</p><ol><li><strong>PAGELOADTIMEOUT</strong></li></ol><p>If the page load takes more time than the webdriver speed, then the TimeOutException is thrown by the WebDriver. This problem can be solved using <strong>PageLoadTimeout</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*kZ0jpIEEO9g5iVQsotcvnQ.png" /></figure><p>2. <strong>IMPLICIT WAIT</strong></p><p>Implicit wait allows us to halt the WebDriver for a particular period of time until the WebDriver locates a desired element on the web page. In case it finds the element before the duration specified, it moves on to the next line of code execution. Implicit wait is applied globally, which means we only need to write it one time and it gets applicable for all of the web elements specified in a script throughout the WebDriver instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*ZlXsP5ivP-p2apjUCaNRvA.png" /></figure><p>3.<strong> EXPLICIT WAIT</strong></p><p>It helps us to stop the execution of the script based on a certain condition for a specified amount of time. Few types of expected conditions are:</p><p><strong>a. <em>visibilityOfElementLocated()</em></strong>- Verifies if the given element is present or not.<br><strong>b. <em>alertIsPresent()</em></strong><em>-</em> Verifies if the alert is present or not.<br><strong>c. <em>elementToBeClickable()</em></strong>- Verifies if the given element is present/clickable on the screen.<br><strong>d.<em> textToBePresentInElement()</em></strong><em> </em>— Verifies the given element have the required text or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OOg-8UPEuLVshzFvpJuHLw.png" /></figure><p>There are many more which can be referred in the official Selenium page below:</p><p><a href="https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html">ExpectedConditions</a></p><p>4. <strong>FLUENT WAIT</strong></p><p>It is more or less similar to explicit wait with a couple of additional features which are:</p><p>a. <strong><em>The polling frequency</em></strong>: Here we can change the polling frequency which is otherwise 500 milliseconds in case of Explicit Wait. <br> b. <strong><em>Ignore Exception</em></strong>: During polling, if we do not find an element, we can ignore any exception like “<strong>NoSuchElement</strong>” exception.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WOS2rnYWLixe-zu0lViR9A.png" /></figure><p><strong>WHY WE SHOULD NOT MIX DIFFERENT TYPES OF WAITS?</strong></p><p>Mixing two different types of waits can cause unpredictable wait times. In fact, use of Implicit Waits is officially discouraged.</p><p><a href="https://lists.w3.org/Archives/Public/public-browser-tools-testing/2016OctDec/0058.html">Re: Implicit Wait</a></p><blockquote>Simon Stewart says “The advice of the selenium team has always been to try and minimize the timeout used (preferably to 0)”. This is <br>also stated as warning in the Selenium 4 documentation.</blockquote><p>Selenium Waits helps us to make our scripts less flaky and more reliable. <br>Happy Testing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99f2ff900f3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>