<?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 Ram Pasala on Medium]]></title>
        <description><![CDATA[Stories by Ram Pasala on Medium]]></description>
        <link>https://medium.com/@igniteram?source=rss-3cdf9752b0b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YheRR5CV1d_76S3-YmRczQ.png</url>
            <title>Stories by Ram Pasala on Medium</title>
            <link>https://medium.com/@igniteram?source=rss-3cdf9752b0b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 16:57:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@igniteram/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[Reflecting on a successful year — Neverinstall’s Year in Review 2022]]></title>
            <link>https://medium.com/@igniteram/reflecting-on-a-successful-year-neverinstalls-year-in-review-2022-968884820bc4?source=rss-3cdf9752b0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/968884820bc4</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Ram Pasala]]></dc:creator>
            <pubDate>Thu, 22 Dec 2022 10:03:59 GMT</pubDate>
            <atom:updated>2022-12-22T10:05:16.801Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CnxaYSwhRiChfaTw0AyW1g.png" /></figure><h3>Reflecting on a successful year — Neverinstall’s Year in Review 2022</h3><p>For quite some time now, I’ve been working relentlessly with the team to create a fascinating product at Neverinstall. We’ve spent countless hours solving immense challenges, resolving users’ concerns, and delivering updates. But now it’s time to pause for a moment, take a breath, and look back at the things we have done.</p><p>The year 2022 was most generous to us. The year began with an ongoing pandemic and transitioned into a critical war and predictions of a recession ahead. And in the midst of such turmoil, it is difficult to remain focused and realize your ideas. However, the team and our community kept us strong, delivering consistently, and evolving the platform.</p><p>Checkout our Year in Review 2022 here -</p><p><a href="https://neverinstall.com/year-in-review-2022">https://neverinstall.com/year-in-review-2022</a></p><p>From 2 product hunts to G2’s recognition, from new server locations to an entirely new user interface, and from 100,000 users at the start of the year to over 350,000 users today, the journey has been fulfilling.</p><p>So, I believe it is time to appreciate the courage of our team and acknowledge the support of our users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=968884820bc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real-time code reviews]]></title>
            <link>https://medium.com/@igniteram/real-time-code-reviews-21bb5a0c5427?source=rss-3cdf9752b0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/21bb5a0c5427</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ram Pasala]]></dc:creator>
            <pubDate>Fri, 20 May 2022 15:11:24 GMT</pubDate>
            <atom:updated>2022-05-23T07:18:25.073Z</atom:updated>
            <content:encoded><![CDATA[<p>Code reviews are one of the most important tasks in software development. Considering that the smallest of errors, the code logic, displacement of a semicolon, or even a dot, can easily break the code, reviewing code is essential to building robust products. However, what one would consider a trivial error, is also the hardest to identify.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mg5moMPrl29QRG5baztu6w.png" /></figure><p>Coding is not a one step process. Lines after lines of a combination of digits and alphabets with little room for error and only take shape if executed perfectly. With errors so small and unending lines of code, reviews become an arduous task and teams often choose to skip or skim through the review process.</p><h3>The current regime</h3><p>Typically, a developer will upload their code to a repository on GitHub where another member of the team, generally a senior developer can review it. The developer creates a pull request or PR (a request to merge code). In the repository, both the developer and the reviewer can leave their comments and all the changes to the code can be tracked within the GitHub UI.</p><p>The drawback is that the developers need to upload the code from their dev environment to the repo for it to be reviewed, and the reviewer has to create a local copy of the code to run it on their machine. The process is arduous, lengthy, and plagued with issues such as the <a href="https://medium.com/@igniteram/but-it-works-on-my-machine-f9ecee373b0f">works on my machine problem</a> that decelerate the development process.</p><p>This is exactly what we’re trying to solve at Neverinstall.</p><h3>How we could do it better</h3><p>The applications are run in a cloud environment on a remote server, and are being streamed (an IDE in this case) to the screen of the user. The idea is to share the entire instance of the developer with the senior developer who has to review the code.</p><p>The shared instance allows different developers to access the same IDE in the same environment for real-time collaboration. Considering the increasing complexity of software development, real-time collaboration has become the need of the hour and is one of the most sought-after technologies for developers throughout the world.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FwsusaokbZLs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DwsusaokbZLs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FwsusaokbZLs%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/0c0315b33742beadf50a6003a122db0f/href">https://medium.com/media/0c0315b33742beadf50a6003a122db0f/href</a></iframe><h3>A change of habit with Neverinstall</h3><p>Neverinstall allows users to share their workspace with the reviewers. This allows reviewers (senior developers) to collaborate with developers in real-time and identify errors and changes in the code instantaneously. The entire process of uploading the code to a third-party website on the repository, creating pull requests, making local copies, and adding comments can now be bypassed.</p><p>Neverinstall enables developers to review code in real-time, as and when it is written in pre-configured dev environments that work on every machine!</p><p>Does this help you? Drop your comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21bb5a0c5427" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“But it works on my machine”?]]></title>
            <link>https://medium.com/@igniteram/but-it-works-on-my-machine-f9ecee373b0f?source=rss-3cdf9752b0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9ecee373b0f</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Ram Pasala]]></dc:creator>
            <pubDate>Wed, 13 Apr 2022 06:21:37 GMT</pubDate>
            <atom:updated>2022-04-13T06:21:37.445Z</atom:updated>
            <content:encoded><![CDATA[<p>We all have heard this at least once in our software development experience. Developers set up a preferred environment on their laptop/desktop or the team’s shared development workspace. And though we try to replicate the setup manually, we often end up with configuration and environment issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*J6J17nz4tykKQkWR-MrQww.png" /></figure><h4><strong>Works on every machine!</strong></h4><p>At <a href="https://neverinstall.com/">Neverinstall</a>, we host developer tools on a cloud machine; this allows the user to share the entire instance and replicate it with consistency.</p><p><strong>How does this help developers?</strong></p><ul><li>Zero setup time for dev environments</li><li>Eliminates manual configuration of dev environments</li><li>Pre-configured and pre-installed environments with support for several programming languages help developers focus on coding.</li></ul><p>Have you encountered these issues? Let’s discuss.</p><p>#development #programming #environments</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9ecee373b0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DEVaaS — Development-Environments-as-a-Service !]]></title>
            <link>https://medium.com/@igniteram/devaas-development-environments-as-a-service-ee0c5bf2ff62?source=rss-3cdf9752b0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee0c5bf2ff62</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ide]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Ram Pasala]]></dc:creator>
            <pubDate>Sat, 25 Jan 2020 07:27:59 GMT</pubDate>
            <atom:updated>2020-01-25T07:27:59.373Z</atom:updated>
            <content:encoded><![CDATA[<h3>DEVaaS — Development-Environments-as-a-Service !</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ywjqEe7ytiBBuDis5UUmQQ.jpeg" /></figure><p>Let’s have a quick recap on Environment-as-a-Service (EaaS), they provide an additional layer on top of an infrastructure layer. This level of automation enables organizations to deploy entire application environments with the same level of consistency and reliability.</p><p>There are multiple EaaS products in the market. Modern developers and the development practices have evolved significantly in the past decade. The need for disruptive and cutting edge tools and environments are quite evident. One such technology which is buzzing these days is the <strong>Development-Environments-as-a-Service (DEVaaS)</strong>.</p><h3>What is Development-Environment-as-a-Service (DEVaaS)?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*zQnFOwL-tk8QBqnV.gif" /></figure><p>Development environments as a service is an extra layer of abstraction which will automatically configure the source code, runtime, compiler, debugger, editor, relevant editor extensions and more. Dev environments are fast to create and disposable, allowing new team members to quickly on board to a project, or for you to experiment with a new stack, language, or code base, without worrying about it affecting your local configuration.</p><h3>Works on my machine problem!</h3><p>Many developers set up an environment they like on their laptop/desktop or on the team’s shared development environment. We could repeat the replication of environments since they share some definitions but often there are configuration issues between the developers of the team that lead to “works on my machine” type bugs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*LMOgAYoy1a_FB5ju.jpeg" /></figure><p>We need to isolate the development environment and then ship it with the code so that it works on all machines. We can do this with the help of <a href="https://www.docker.com/">“Docker”</a>. As their official website states -</p><blockquote><a href="https://github.com/docker/docker"><em>Docker</em></a><em> is a tool designed to make it easier to create, deploy, and run applications by using containers</em></blockquote><h3>Why do we need cloud development environments?</h3><p>While generally moving your development environment to the cloud can keep you from installing and re-installing software locally, there are some more specific benefits, too.</p><ul><li>Try out a new language, framework, or tool without installing it locally</li><li>Ensure your whole team has the same environment setup</li><li>Use a separate environment for every client to keep projects separate</li><li>Run unknown code without exposing your machine</li><li>Help customers get up to speed quickly with your developer tool with ready-to-code environments</li><li>Switch between computers whenever you want, without taking time to get set up</li></ul><h3>Let’s talk about Cloud IDE’s</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/0*iit11-2b3VT5UYWj.png" /></figure><p>We have seen the benefits of cloud development environments but what if we could also integrate the ide or the code editors which the developers use for writing code. These ide’s could be ported to the browser and provide excellent solution for writing code in reliable and consistent environments which could be accessed from anywhere.</p><p>Cloud IDE’s have been around for quite some time now, some of the popular cloud ide’s are -</p><ul><li><a href="https://aws.amazon.com/cloud9/">Cloud9</a></li><li><a href="https://codeanywhere.com/">CodeAnywhere</a></li><li><a href="https://codenvy.com/">CodeEnvy</a></li><li><a href="https://codetasty.com/">CodeTasty</a></li><li><a href="https://repl.it/">Repl.it </a>&amp; many more ….</li></ul><h3>Final thoughts!</h3><p>With more and more developers, freelancers and teams working remotely and collaborating, there has been a considerable growth of services which provide development environments. Developers are seeking techniques and technologies to help them collaborate more quickly and increase productivity. They do not want to waste time on installation and setting up of the environments anymore.</p><p>Cloud Development Environments are surely the future of devops and continuous delivery. The developers could reap the benefits of private run-time containers of multiple languages and stacks with one click solution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee0c5bf2ff62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I used Puppeteer to build a complete Facebook Birthday Wisher!]]></title>
            <link>https://itnext.io/how-i-used-puppeteer-to-build-a-complete-facebook-birthday-wisher-d7f4f8fcbd99?source=rss-3cdf9752b0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7f4f8fcbd99</guid>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[puppeteer]]></category>
            <dc:creator><![CDATA[Ram Pasala]]></dc:creator>
            <pubDate>Sat, 29 Dec 2018 09:36:15 GMT</pubDate>
            <atom:updated>2019-12-05T15:07:06.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2RqhriPNXWIWk_1b_e1BHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*9BG6g9a_2wGwAJVs5aAofg.png" /></figure><blockquote>Did you know that our entire browser applications could be automated?</blockquote><p><a href="https://pptr.dev/"><strong>Puppeteer</strong></a> is one such awesome library. It is built on node.js and provides a clean API to control google’s chrome/chromium browsers.</p><p>The software automation industry has seen an amazing evolution in recent years! You might have heard about the good old <a href="https://www.seleniumhq.org/"><strong>Selenium</strong></a> for browser automation. If you haven’t , go check it out right now because it all started from selenium :)</p><p>These are the days where we have so many options to automate our browsers, write integration &amp; end-to-end tests.</p><p>Let’s talk about puppeteer, As their official site states -</p><blockquote>Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the <a href="https://chromedevtools.github.io/devtools-protocol/">DevTools Protocol</a>. Puppeteer runs <a href="https://developers.google.com/web/updates/2017/04/headless-chrome">headless</a> by default, but can be configured to run full (non-headless) Chrome or Chromium.</blockquote><p>It gives us the power to control almost <strong>entire chrome browser</strong>, we could use it for automating our web applications regardless of which front end framework/technologies(Angular/React/Vue etc) our app is built on.</p><p>The key differences between <strong>Selenium and Puppeteer -</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*f0drzaTQhrbLPtAxjv_r7A.jpeg" /></figure><p><strong>Facebook Birthday CLI</strong> —<em> An Interactive Command Line Interface for wishing your facebook friends</em></p><p>So now we have seen and understood about puppeteer and how it is different from other automation tools. I used it to build a small command line utility which would automate the process of wishing our friends on Facebook.</p><p>This tool would also display all our friends having birthday’s on the current date and would also allow us to choose a particular friend from the command line and wish them custom birthday wishes.</p><p><strong>History : </strong><em>This project was started 2 years back as a fun project when I started learning automation. Due to work &amp; personal commitments I could never finish it so now I got sometime and gave it the closure it needed!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*axCSPw6ugnTR98SiOPMp-Q.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*rLJvIo9IdTG-U1BNgm5KRg.jpeg" /></figure><p>Before we go and look on how it works let’s discuss the tech stack used for building this tool.</p><h3>Tech Stack</h3><ul><li><a href="https://nodejs.org/en/"><strong>Node</strong></a>: Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine.</li><li><a href="https://pptr.dev/"><strong>Puppeteer</strong></a>: Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer runs headless by default, but can be configured to run full (non-headless) Chrome or Chromium</li><li><a href="https://www.typescriptlang.org/"><strong>TypeScript</strong></a>: The popular super-set &amp; transpiler of JavaScript which adds static typing &amp; features to it. This project is entirely written using typescript.</li><li><a href="https://github.com/SBoudrias/Inquirer.js"><strong>Inquirer</strong></a>: It provides an awesome interface for making your command line interactive.</li><li><a href="https://github.com/tj/commander.js"><strong>Commander</strong></a>: One of the popular node command line interface that helps write cli’s with ease.</li></ul><h3>The Fun Part</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oKIPh1R66cpYt0Mb6%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3oKIPh1R66cpYt0Mb6%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F3oKIPh1R66cpYt0Mb6%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="266" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c167435f572b0d98369641910c46927/href">https://medium.com/media/8c167435f572b0d98369641910c46927/href</a></iframe><h4>Pre-requisites</h4><p>Just Download &amp; Install <a href="https://nodejs.org/en/download/"><strong>NodeJS</strong></a><strong> </strong>globally in your system.</p><h3>Installation</h3><p>Let’s start by installing facebook-birthday-cli globally with <a href="https://www.npmjs.com/">npm</a> (It comes with nodejs installation, so you don’t have to do anything :)). Just type the below commands in your command prompt/terminal.</p><pre><strong>$ npm install --global facebook-birthday-cli</strong></pre><h3>Commands</h3><p>A global binary facebook will be installed, currently it supports a command — wish which when invoked starts the interactive CLI.</p><h3>Select the friend you wanna wish</h3><p>Just run the below command:</p><pre><strong>$ facebook wish</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*NHqiNlYjL35Y0unKKtNpVA.gif" /></figure><p>It starts the Interactive CLI , you would have to enter your credentials first which are encrypted and saved after first login so that you would not have to re-enter the credentials.</p><p>After successful login, you will see all your friends birthday’s on the command line interface.</p><h3>Wish all your friends</h3><p>Just run the below command:</p><pre><strong>$ facebook wish --all</strong></pre><h3>Reset option to default settings</h3><pre><strong>$ facebook wish --reset</strong></pre><pre><strong>$ facebook wish --all --reset</strong></pre><p>The <strong>--reset</strong> option resets all saved values to default values. i.e. You would have to enter your credentials again and follow the process without any saved configuration.</p><h3>How it works?</h3><p>The key tech which drives this tool is Puppeteer — An popular alternative to selenium these days!</p><ul><li>When the command facebook wish is invoked , Inquirer cli starts asking list of questions and then processess the answers asynchronously.</li><li>Puppeteer opens up the chrome browser in headless mode(In background, user would not see this happening visually) and logs into facebook events page where all the birthday events would be listed.</li><li>Puppeteer has similar API methods as that of selenium to interact with web elements such as — click(), waitForSelector(), title() etc.</li><li>The user credentials are encrypted and stored in the user’s system after the first time login and then everytime this tool is invoked the user credentials are fetched from that location &amp; decrypted to login.</li><li>The web elements like total number of birthdays, birthday names and text boxes are identified with the help of puppeteer. These locators are stored in a separate object/class so that if they change in future , they could be easily updated.</li><li>The wishes are sent to the friends as puppeteer drives &amp; identifies the web elements of the browser in headless mode.</li></ul><h3>Why the hell should I use this?</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fa5viI92PAF89q%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fa5viI92PAF89q%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExMGhhZWI4ZjcwOGl4andycHJkY211YXVsdWdkbmpqOXZibXk1ZzhvYiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2Fa5viI92PAF89q%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="300" frameborder="0" scrolling="no"><a href="https://medium.com/media/46a8a563f1ce9e14a0ffa3b5a4662a93/href">https://medium.com/media/46a8a563f1ce9e14a0ffa3b5a4662a93/href</a></iframe><p>If you are one of the following peeps then you should give it a try!</p><ul><li>I am an automation geek!</li><li>I am a developer and I like to explore and use interesting tech.</li><li>I am a tech enthusiast and I want to wish my friends in an innovative way.</li><li>I am just a lazy programmer but I do care about wishing my friends.</li><li>I am neo, just swallowed the red pill &amp; want to stay in the wonderland to see how deep the rabbit hole goes :)</li></ul><h3>GitHub URL -</h3><p><a href="https://github.com/igniteram/facebook-birthday-cli">igniteram/facebook-birthday-cli</a></p><h3>Attributions -</h3><p><strong>Title gif by -</strong><a href="https://www.instagram.com/motiongarten/?hl=en">Motion Garten</a> — Do checkout his instagram page!</p><p><strong>Music</strong> — In most of my articles I give credit to the music I listen to while coding the project so here they go :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/0*Tj5EwhOjY1J66QE2.jpeg" /><figcaption><a href="https://www.youtube.com/watch?v=sZV9A_gJzQI">“Nas Ne Dogoniat”<br>t.A.T.u</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/0*BogeuT8HIs3-8dSQ.jpeg" /><figcaption><a href="https://www.youtube.com/watch?v=jzWYUomBpwg">“Halah”<br>Mazzy Star</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/0*M-2f8ENgui0iMfkV.jpeg" /><figcaption><a href="https://www.youtube.com/watch?v=xVKGXgHDMvQ">“Mad About You”<br>Hooverphonic</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/0*mjwD-eZzPxqufNon.jpeg" /><figcaption><a href="https://www.youtube.com/watch?v=TzFnYcIqj6I">“Here comes rain”<br>Eurythmics</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/0*fm1uZI7O82sbdKxu.jpeg" /><figcaption><a href="https://www.youtube.com/watch?v=ukKQw578Lm8">“The Logical Song”<br>Supertramp</a></figcaption></figure><p><em>Enjoyed reading the post? Please hit the </em><strong><em>clap</em></strong><em> below so that it could reach people on Medium.</em></p><p><em>Want to know more about me and what I do? check out my </em><a href="https://about.me/ram.pasala"><em>about.me</em></a><em> page.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7f4f8fcbd99" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/how-i-used-puppeteer-to-build-a-complete-facebook-birthday-wisher-d7f4f8fcbd99">How I used Puppeteer to build a complete Facebook Birthday Wisher!</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mobile Automation with Appium, WebdriverIO using Typescript!]]></title>
            <link>https://itnext.io/mobile-automation-with-appium-webdriverio-using-typescript-bbb7e982b6ea?source=rss-3cdf9752b0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbb7e982b6ea</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[appium]]></category>
            <category><![CDATA[cucumber]]></category>
            <dc:creator><![CDATA[Ram Pasala]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 13:36:54 GMT</pubDate>
            <atom:updated>2019-01-18T06:17:36.105Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*uiWvE_-Jgf5RrYnV1U1xZA.png" /></figure><p>Lately mobile test automation has been so much fun with the advent of new automation frameworks, tools &amp; utilities which are making our lives a lot easier to automate our favorite mobile apps and browsers.</p><p>This article’s focus &amp; purpose is to discuss and in fact analyse the framework-setup integrated with multiple mobile automation technologies which would help us automate mobile apps and browsers in a clean and faster way.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl2YWo6rKKWTxjyAb6%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl2YWo6rKKWTxjyAb6%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl2YWo6rKKWTxjyAb6%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/e92f74e0e9cb5815e1290a245759e49e/href">https://medium.com/media/e92f74e0e9cb5815e1290a245759e49e/href</a></iframe><p>But first let’s sit back and try to understand the key technologies which drive our <a href="https://github.com/igniteram/appium-webdriverio-typescript"><strong>appium-webdriverio-typescript</strong></a> framework…</p><h3>Appium</h3><p>When it comes to mobile testing this open source node server is the most popular and a tough one to beat currently. It drives the test scripts across various platforms and has multiple language API bindings.</p><blockquote>Appium is nothing but an HTTP server built on node which creates and handles webdriver sessions. It drives iOS, Android, and Windows apps using the WebDriver protocol</blockquote><p><strong>So how does it work?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*ceUSfnh8rmPxHqtPrgAL1Q.png" /><figcaption>Appium’s official design implementation</figcaption></figure><p>The WebDriver script will create a HTTP JSON request to the Appium server , the command then goes to the TCP server and waits for the result from the bootstrap, at this point of time it knows which platform your scripts belong(Android,IOS or Windows) and then processes the request and sends it back.</p><p>Google’s <a href="https://developer.android.com/topic/libraries/testing-support-library/index.html#UIAutomator"><strong>UiAutomator</strong></a> controller helps in transforming the webdriver commands to drive the native Android device apps. Same apply’s to Apple’s <a href="https://developer.apple.com/documentation/xctest"><strong>XCUITest</strong></a> and Window’s <a href="https://github.com/microsoft/winappdriver"><strong>WinAppDriver</strong></a>.</p><p>Please go through the official <strong>A</strong><a href="https://appium.io/"><strong>ppium</strong></a> website for in depth understanding of it’s design and philosophy.</p><h3>WebdriverIO</h3><p><em>It is a Node.js bindings implementation for the W3C WebDriver protocol.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/167/1*m0h5QOSHlePD5rgAUlJAag.png" /></figure><p>Selenium Webdriver has many API bindings implementations, WebdriverIO makes the best of node.js which enables us to write automated tests in simple Javascript. It wraps the webdriver commands which basically sends/receives request/response from the selenium server following the <a href="https://www.w3.org/TR/webdriver/"><strong>webdriver protocol</strong></a><strong>.</strong></p><blockquote><strong>Why should we use WebdriverIO instead of traditional Selenium Webdriver(Java Implementation)?</strong></blockquote><p>Well frankly I feel it’s a decision to make while building your automation framework , this should be part of your <strong>feasibility analysis</strong>. I personally feel with the power of node.js in the backend our automated tests should also be in the same language as the AUT which is also built on (i.e. the frontend) Javascript technologies.</p><p>The reason is simple and straight , the ability to switch from synchronous to asynchronous programming is so deeply encouraged by the javascript world which is greatly beneficial for writing stable automated tests.</p><p>When automating a scenario (click a link, enter a text in textbox etc.) we are basically sending HTTP commands to the webdriver server which are asynchronous in nature, now imagine scenarios where data/files have to be uploaded and downloaded. Writing code in node.js helps us achieve the above in much faster and memory efficient way.</p><p>One could argue to make use of <strong>Threads </strong>offered by various object oriented programming languages as they have good support for multiple threading. I would leave it there (I feel that I have not reached a stage to compare multiple programming languages) by saying our goal should be to write efficient &amp; non-flaky automated tests and with the popularity of Javascript &amp; Node.js rising day by day why not give it a shot and trust me it’s totally worth every penny.</p><h3>Typescript : JavaScript that Scales!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/122/1*zL4dcegwoumS2vsfqksa4w.png" /></figure><p>I have discussed about this Javascript transpiler in my previous article — <a href="https://medium.com/@igniteram/e2e-testing-with-protractor-cucumber-using-typescript-564575814e4a"><strong>E2E Testing with Protractor , Cucumber using TypeScript!</strong></a></p><p>With typescript you can reap both the benefits of an object oriented as well as functional programming paradigms. It adds optional static typing to your JavaScript code i.e. now variables &amp; methods would be recognized at compile/transpile time just as any compiler of oops language. And you thought JavaScript is just a interpretive language.</p><p>checkout out this cool article of <a href="http://jonathancreamer.com/why-would-you-not-use-typescript/"><strong>Why would you NOT use TypeScript?</strong></a><strong> </strong>by Jonathan Creamer.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fk39w535jFPYrK%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fk39w535jFPYrK%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fk39w535jFPYrK%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="245" frameborder="0" scrolling="no"><a href="https://medium.com/media/2501bf8df933efc416b35cec1e6dd711/href">https://medium.com/media/2501bf8df933efc416b35cec1e6dd711/href</a></iframe><p>TypeScript continues its growth journey with more and more JavaScript developers and framework authors taking advantage of the excellent tooling and productivity boost that TypeScript provides in order to create apps that scale.</p><h3>Appium-WebdriverIO-Typescript Framework</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*AJ7v5yqju0bG7Ejskj7GpQ.jpeg" /></figure><p>I have implemented this framework with configuration settings for Android native apps and browser(I do not own a mac yet 😉). iOS config setup just varies slightly, for the purpose of this article we would be discussing android platform testing in detail.</p><h3>GitHub Repo:</h3><p><a href="https://github.com/igniteram/appium-webdriverio-typescript">igniteram/appium-webdriverio-typescript</a></p><h4>Pre-requisites</h4><ul><li>NodeJS installed globally in the system. <a href="https://nodejs.org/en/download/">https://nodejs.org/en/download/</a></li><li>JAVA(jdk) installed in the system.</li><li>Andriod(sdk) installed in the system.</li><li>Set JAVA_HOME &amp; ANDROID_HOME paths correctly in the system.</li><li>Chrome browser installed</li><li>Text Editor/IDE (Optional) installed →Sublime/Visual Studio Code/Brackets.</li></ul><h4>Installation</h4><ul><li>Clone the repository <a href="https://github.com/igniteram/appium-webdriverio-typescript"><strong>appium-webdriverio-typescript</strong></a> into a folder</li><li>Go inside the folder and run following command from terminal/command prompt</li></ul><pre>npm install</pre><ul><li>All the dependencies from package.json and typescript typings would be installed in node_modules folder.</li></ul><p>Tip: Use <a href="https://yarnpkg.com/en/docs/installing-dependencies">Yarn</a> to install your modules npm install -g yarn as it caches &amp; locks them which would help us install correct versions of modules across various platforms without any issues. This project is configured with yarn.lock file. So you could make use of it.</p><h3>Run Tests</h3><ul><li>First step is to start the appium server, This project includes the appium node module so you don&#39;t have to download it externally. You can run the appium server by the following npm command.</li></ul><pre>npm run appium</pre><ul><li>Next you have to transpile/compile your typescript files to javascript files, you could do this by running the command -</li></ul><pre>npm run build</pre><p>Next step is to execute the config files. This project has 2 config files -</p><ul><li><a href="https://github.com/igniteram/appium-webdriverio-typescript/blob/master/config/wdio.app.config.js">wdio.app.config.js</a> — This config file is used to run tests in real mobile native apps. You would have to change the appium settings to run tests in your device.</li></ul><pre>capabilities: [<br>{<br>    appiumVersion: &#39;1.7.1&#39;,                             // Appium module version<br>    browserName: &#39;&#39;,                                   // browser name is empty for native apps<br>    platformName: &#39;Android&#39;,<br>    app: &#39;./app/LGCalculator.apk&#39;,                     // Path to the native app<br>    appPackage: &#39;com.android.calculator2&#39;,             // Package name of the app<br>    appActivity: &#39;com.android.calculator2.Calculator&#39;, // App activity of the app<br>    platformVersion: &#39;5.1.1&#39;,                         // Android platform version of the device<br>    deviceName: &#39;THF755e0384&#39;,                       // device name of the mobile device<br>    waitforTimeout: waitforTimeout,<br>    commandTimeout: commandTimeout,<br>    newCommandTimeout: 30 * 60000,<br>}<br>],</pre><p>To know your device name you could run the adb devices command which comes out of the box from Android SDK.</p><p>The node command to run Native app tests of this project is -</p><pre>npm run app-test</pre><p>The above command which is set in package.json internally calls the WebdriverIO&#39;s binary wdio ./config/wdio.app.config.js and runs the app config file.</p><ul><li><a href="https://github.com/igniteram/appium-webdriverio-typescript/blob/master/config/wdio.browser.config.js">wdio.browser.config.js</a> — This config file is used to run tests in the chrome browser of the configured mobile device. The appium settings would looks like this-</li></ul><pre>capabilities: [<br>{<br>    appiumVersion: &#39;1.7.1&#39;,<br>    browserName: &#39;chrome&#39;,  // browser name should be specified<br>    platformName: &#39;Android&#39;,<br>    platformVersion: &#39;5.1.1&#39;,<br>    deviceName: &#39;THF755e0384&#39;, // device name is mandatory<br>    waitforTimeout: waitforTimeout,<br>    commandTimeout: commandTimeout,<br>    newCommandTimeout: 30 * 60000,<br>}<br>],</pre><p>The node command to run browser tests of this project is -</p><pre>npm run browser-test</pre><p>The above command internally calls the WebdriverIO’s binary wdio ./config/wdio.browser.config.js and runs the browser config file.</p><h3>Run Test Suite</h3><p>You could run both the native app and browser tests by running the following command -</p><pre>npm test</pre><p>The above command internally calls npm run app-test and npm run browser-test.</p><h3>Writing Tests</h3><p>Cucumber framework has been integrated with thi project, WebdriverIO’s wdio-cucumber-framework adapter helps write BDD style tests with Features &amp; Step Definitions.</p><pre>const {Given, When, Then} = require(&#39;cucumber&#39;);<br>import {expect} from &#39;chai&#39;;<br>import {CalculatorPageObject} from &#39;../pages/calcPage&#39;;</pre><pre>const calc: CalculatorPageObject = new CalculatorPageObject();</pre><pre>Given(/^I am on my mobile calculator app$/, () =&gt; {<br>    const title = browser.getText(&#39;android.widget.TextView&#39;);<br>    expect(title).to.equal(&#39;Calculator&#39;);<br>});</pre><h3>Page Objects</h3><p>This framework is strictly written using page-object design pattern.</p><pre>class GooglePageObject {<br>    public get searchTextBox(): any { return browser.element(&#39;#lst-ib&#39;); }<br>    public get searchButton(): any { return browser.element(&#39;button[name=&quot;btnG&quot;]&#39;); }<br>    public get results(): any { return browser.waitForVisible(&#39;#rso&#39;, 5000); }<br>    public get firstLink(): any { return browser.element(&#39;#rso div._H1m._ees&#39;); }<br>}<br>/*<br>Public Interface - export instances of classes<br>**/<br>export const GooglePage = new GooglePageObject()</pre><h3>Finding-Elements</h3><p>Finding elements in mobile apps and browser’s could be tricky sometimes.</p><ul><li>Best way to find elements in native mobile apps is using <a href="https://developer.android.com/training/testing/ui-automator.html">UIAutomatorViewer</a> .This supports Android 4.3 and above only, If you are using android version less than that, you could use <a href="http://selendroid.io/">Selendriod</a></li><li>Best way to find elements in mobile browser is by <em>Remote debugging with Chrome DevTools</em>. I personally find it lot easier &amp; hassle free. You could find detail steps about it in this <a href="http://toolsqa.com/mobile-automation/appium/inspect-elements-of-mobile-web-application/">blog</a></li></ul><h3>Reports</h3><p>Currently this project has been integrated with <a href="http://allure.qatools.ru/">Allure-Reports</a>. WebdriverIO’s wdio-allure-reporter helps us generate detailed reports of our mobile automated tests. Once the test execution is finished you would find the allure-results folder generated automatically. Then you would have to run the following command to generate HTML Report</p><pre>npm run report</pre><p><strong>Caveat:</strong> Chrome browser has an issue rendering the AJAX requests from local files generated by allure, You could use Firefox for seeing the html report. You could find more details about this issue <a href="https://stackoverflow.com/questions/23997449/allure-report-nothing-shown-in-chrome">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gpbC7Ln7K6N2WezW2oB2sw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Ygpj7FewzDN1DiRIxIg9A.png" /></figure><h3>Conclusion:</h3><p>Mobile automation has never been so interesting and exciting , thanks to various technologies like appium, webdriver etc. which are evolving and encouraging testers to take up automation. Their open source community is so helpful and reliable that you don’t need to take any classes or coaching . It’s all there right in front of you!</p><p>BTW Appium is organizing it’s first ever <strong>Appium Conference</strong> this year which is quite amazing seeing the project grow and evolve to such a extent that it has become the base of mobile automation. Kudos to Appium core team members.</p><p><a href="https://appiumconf.com/">AppiumConf 2018</a></p><p><em>Enjoyed reading the post? Please hit the </em><strong><em>clap</em></strong><em> below so that it could reach people on Medium.</em></p><p><em>Want to know more about me and what I do? check out my </em><a href="https://about.me/ram.pasala"><em>about.me</em></a><em> page.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbb7e982b6ea" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/mobile-automation-with-appium-webdriverio-using-typescript-bbb7e982b6ea">Mobile Automation with Appium, WebdriverIO using Typescript!</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Protractor-CLI : An Interactive CLI for Protractor.js]]></title>
            <link>https://medium.com/@igniteram/cliptor-protractors-interactive-cli-33b04937dafc?source=rss-3cdf9752b0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/33b04937dafc</guid>
            <category><![CDATA[protractor]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Ram Pasala]]></dc:creator>
            <pubDate>Tue, 17 Oct 2017 15:42:40 GMT</pubDate>
            <atom:updated>2018-05-13T17:01:12.477Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L8VOGaFEAbAkE7w3rm7JTQ.png" /></figure><p>Given the popularity &amp; the community size of <a href="http://www.protractortest.org/"><strong>Protractor</strong></a> which helps us automate angular &amp; non-angular apps, one needs to setup their E2E framework keeping scalability in mind.</p><p>Since protractor supports multiple frameworks &amp; modules, developers face it quite challenging to know the config options and to choose the right library to use in their e2e projects.</p><h3>Interactive CLI</h3><p>Need for interactive cli was imperative. This would certainly speed up the setup , installation and configuration of modules for protractor in our e2e projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*I8diCVmmJXIPCGKKx9e1OQ.gif" /><figcaption>cliptor.gif</figcaption></figure><p>Once installed globally, protractor-cli gives a binary called the <strong>cliptor </strong>smartly named after protractor’s <strong><em>ptor</em></strong> binary and cli. This is exactly the command line interface &amp; config helper which is trying to solve the problem!</p><h3>History</h3><p>It started as a pet project when I was exploring and using protractor in my day to day projects, the need to setup e2e protractor automation framework in various projects at a faster pace was increasing.</p><p>It was mainly inspired by <a href="https://github.com/webdriverio/webdriverio"><strong>WebdriverIO’s</strong></a> cli!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*12knX2ay7PjJQvCDCL8saA.png" /><figcaption>Screenshot of my old todo sticky notes, most of them are done!</figcaption></figure><p>Interactive cli’s have been around for a while now in open source community. The key module which drives them is <a href="https://github.com/SBoudrias/Inquirer.js"><strong>Inquirer.js</strong></a><strong> </strong>which has gained so much popularity that many main stream <a href="https://www.npmjs.com/browse/keyword/inquirer"><strong>project’s</strong></a> cli is built on top of it.</p><h3>Tech Stack</h3><p>Protractor-CLI is entirely a <a href="https://nodejs.org/en/">node.js</a> module which uses number of other modules to sustain -</p><ul><li><a href="https://github.com/Microsoft/TypeScript"><strong>TypeScript</strong></a>: The popular super-set &amp; <a href="https://en.wikipedia.org/wiki/Source-to-source_compiler">transpiler </a>of JavaScript which adds static typing &amp; features to it. protractor-cli is entirely written using typescript.</li><li><a href="https://github.com/SBoudrias/Inquirer.js"><strong>Inquirer</strong></a><strong>:</strong> It’s github description says- A collection of common interactive command line user interfaces. It is the core module which makes protractor-cli as an interactive cli.</li><li><a href="https://github.com/tj/commander.js"><strong>Commander</strong></a><strong>: </strong>One of the popular node command line interface that helps write cli’s with ease.</li><li><strong>EJS: </strong>Embedded Javascript templates , protractor-cli uses this module to generate the config file with inputs provided by the interactive cli.</li><li><a href="https://github.com/chalk/chalk"><strong>Chalk</strong></a><strong>: </strong>Helps console logging in a colorful way.</li><li><a href="https://github.com/facebook/jest"><strong>Jest</strong></a><strong>: </strong>The popular unit testing framework by facebook, protractor-cli’s unit tests are being written using jest.</li><li><strong>JS-beautify: </strong>It beautifies your javascript, protractor-cli uses this to beautify config and json files programatically.</li></ul><h3>How do I use it?</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FdXICCcws9oxxK%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FdXICCcws9oxxK%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExN2xnZnpuMnRsdDR0Y2xvdGdkazZ5MHg2Z2cyY3VlN2VmMWM3M3ZrYyZlcD12MV9naWZzX2dpZklkJmN0PWc%2FdXICCcws9oxxK%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="202" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2bac4a89331a0f9fbd23f4bf15ac6a8/href">https://medium.com/media/c2bac4a89331a0f9fbd23f4bf15ac6a8/href</a></iframe><p>First you need to install node in your system, Then from your cli install protractor-cli globally with <a href="https://www.npmjs.com/">npm</a> which would install the global binary.</p><pre>$ npm install --global protractor-cli</pre><p><strong>Commands</strong></p><p>Protractor CLI currently supports two primary binary commands — <strong>cliptor</strong> <strong>config</strong> &amp; <strong>install</strong> with no arguments. cliptor --help will show these list commands. cliptor --version will show the current version of cliptor.</p><p><strong>config</strong></p><p>To start the interactive cli , you need to invoke config command.</p><pre>$ cliptor config</pre><p>Now the best part is I don’t have to explain the rest of the things as it guides you from here, after all there is a reason it’s called Interactive cli!</p><p><strong>install</strong></p><p>This command installs protractor &amp; webdriver-manager globally, it also updates webdriver-manager which downloads chrome, firefox &amp; internet explorer drivers.</p><pre>$ cliptor install</pre><p>One can skip this step and use the cliptor config command if they want to run selenium server in other ways!</p><h3><strong>Support</strong></h3><p>Protractor-CLI supports all the latest features, libraries and dependencies that protractor uses. Users are provided various options to setup their test environments, frameworks, browsers , reporting modules etc. in e2e automation project.</p><h3>GitHub Repository</h3><p><a href="https://github.com/igniteram/protractor-cli">https://github.com/igniteram/protractor-cli </a>— Do checkout the github repo in which you would find more details about this project. <strong>Readme </strong>file has all the description and content that one needs!</p><h3>Future</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FfXm3axbRDLBII%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FfXm3axbRDLBII%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FfXm3axbRDLBII%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="183" frameborder="0" scrolling="no"><a href="https://medium.com/media/df537f35e7f78c429f7316cf9e614b0d/href">https://medium.com/media/df537f35e7f78c429f7316cf9e614b0d/href</a></iframe><p>Like all open source projects, this one also needs your support to grow. Couple of enhancements are on the way- Improving the progress bar while downloading dependencies, Integration of new modules &amp; frameworks like — <a href="https://github.com/jan-molak/serenity-js"><strong>SerenityJS</strong></a>, <a href="https://github.com/alecxe/eslint-plugin-protractor"><strong>eslint-plugin-protractor</strong></a><strong> </strong>etc. are on the table. Your suggestions &amp; contributions are surely welcome and much appreciated!</p><h3><strong>Attributions</strong></h3><p>I would like to give credit to the Angular’s <a href="https://github.com/angular/protractor/graphs/contributors"><strong>Protractor community</strong></a><strong> </strong>for creating such a wonderful project, which was in fact my first ever github project and the my first ever Pull Request I submitted to.</p><p>You could follow the protractor community on twitter for all the latest updates:</p><p><a href="https://twitter.com/ProtractorTest">Protractor (@ProtractorTest) | Twitter</a></p><p><strong>Music:</strong></p><p><a href="https://www.youtube.com/user/BeckVEVO"><strong>Beck </strong></a>helped me in the music department while coding protractor-cli , so thank you beck for your amazing songs :)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_6Zp84XH6Eo%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_6Zp84XH6Eo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_6Zp84XH6Eo%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/7b91e3694cfb1407005a32132515b857/href">https://medium.com/media/7b91e3694cfb1407005a32132515b857/href</a></iframe><p><em>Enjoyed reading the post? Please hit the </em><strong><em>clap</em></strong><em> below so that it could reach people on Medium.</em></p><p><em>Want to know more about me and what I do? check out my </em><a href="https://about.me/ram.pasala"><em>about.me</em></a><em> page.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33b04937dafc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[E2E Testing with Protractor , Cucumber using TypeScript!]]></title>
            <link>https://medium.com/@igniteram/e2e-testing-with-protractor-cucumber-using-typescript-564575814e4a?source=rss-3cdf9752b0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/564575814e4a</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[protractor]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Ram Pasala]]></dc:creator>
            <pubDate>Wed, 14 Sep 2016 20:41:05 GMT</pubDate>
            <atom:updated>2019-03-25T09:29:06.746Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKJDziMVVR8zrRn3t-5snQ.png" /></figure><p><strong>Question 1:</strong> Can Protractor be integrated with other popular BDD frameworks such as Cucumber?</p><p><strong>Question 2:</strong> Does Protractor support TypeScript lang?</p><p><strong>Answer:</strong> Hell Yes!, In fact not only it can be integrated with CucumberJS which supports async programming concepts but also now we have the power to write our scripts with TypeScript which is a strongly typed superset of plain old Javascript.</p><p>This is a killer combination which provides a cleaner and faster control for testing angular/non angular apps thus meeting business requirements in a more reliable and scalable way!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*jpqrQTD4XeMrRzhbcVJh5w.gif" /></figure><p>When I started experimenting with Protractor, I was a little skeptical whether this framework would support large enterprise web apps which need e2e integration test coverage and I must admit, it surpassed all my expectations and let’s see how:</p><h4>Protractor: end to end testing for angularJS</h4><p>Protractor is a wrapper on top of webdriverJS which is a nodeJS async API implemented equivalent to selenium webdriver Java API . webdriverJS and protractor’s methods return <a href="http://www.html5rocks.com/en/tutorials/es6/promises/">promises</a>.</p><p>Protractor has built in locators exclusively for angularJS apps which would help in locating web elements in angularJS apps with ease. Some of the examples include:</p><blockquote>element(by.model(‘locator’));</blockquote><blockquote>element(by.binding(‘locator’));</blockquote><blockquote>element(by.repeater(‘locator’));</blockquote><p>Do check out the <a href="http://www.protractortest.org/#/api">Protractor API </a>for a list of custom locators.</p><h4>Cucumber: BDD framework</h4><p>Cucumber framework is meant for behaviour driven development acceptance testing which is basically scenario validations of an application which help programmers to test and what not to test in plain understandable language(Gherkin).</p><blockquote>Given I am on google page</blockquote><blockquote>When I type “protractor”</blockquote><blockquote>Then I click search button</blockquote><blockquote>Then I clear search textbox</blockquote><p>This framework allows us to bridge the gap between the product owners and developers. This also promotes a healthy &amp; transparent environment of our testing techniques and processes.</p><p>You could check out my post: <a href="http://www.assertselenium.com/bdd/e2e-testing-with-protractor-cucumber-js/">E2E testing with Protractor &amp; Cucumber Js</a> on some of the best practices to follow for building robust and scalable protractor-cucumber framework!</p><h4>TypeScript : JavaScript that Scales!</h4><p>TypeScript has been the buzz word these days which is totally justified given its advantages. As their <a href="http://www.typescriptlang.org/">official website</a> says :</p><blockquote>TypeScript is a typed superset of JavaScript that compiles to plain JavaScript</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*IFNVJ5Hek3sUkD2_Ze-aHQ.jpeg" /></figure><p>It adds optional static typing and class-based <a href="https://en.wikipedia.org/wiki/Object-oriented_programming">object-oriented programming</a> to the JavaScript language.</p><p>Protractor started supporting TypeScript officially with its <a href="https://github.com/angular/protractor/blob/master/CHANGELOG.md#400">version 4.0.0</a> release. Since then we got many good features namely- statement auto completion, api methods and doc suggestions etc.</p><p>Check out <a href="https://medium.com/@cnishina/protractor-with-typescript-2eae05016929#.g84irqoha">Protractor with TypeScript</a> post by <a href="https://medium.com/u/c316cddbe04b">Craig N</a> , it has everything that you need to know while setting up protractor with typescript.</p><p>Following is the skeleton framework for protractor-cucumber using typescript lang!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*YpPupeZCbCf44Qr-gFugVQ.png" /></figure><p>As we can see that Protractor integrates powerful tools and technologies such as NodeJS, Selenium, WebDriverJS, Jasmine, Cucumber and Mocha that gives us a scalable end to end test framework for our web applications.</p><h4>Enough Talk let’s look at some code!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Kz2MjtcytYWdy9bjkV2SpA.gif" /></figure><p><strong>Writing Features:</strong> we write feature files in Given, When &amp; Then format describing the context of the test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*7QhKypkVEJZmd5LRGIrzzA.gif" /><figcaption>Feature file with @tags option</figcaption></figure><p><strong>Writing StepDefinitions:</strong> We write the equivalent typescript code for each of the step definitions which help us test the feature scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*3-8gZQ1Cc921SsVojnT8sw.gif" /><figcaption>Step Definition using TypeScript</figcaption></figure><p><strong>Writing Page Objects:</strong> Page Objects help us to write cleaner tests by encapsulating information about the elements on our application page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*WWA4NOywj6CBEtvk3V-Oow.gif" /></figure><p><strong>CucumberOpts Tags: </strong>Cucumber command line options have number of features &amp; support tags which help us execute specific scenarios and features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*p3vf-szSBuem_6vNM3D7Cg.gif" /><figcaption>cucumberOpts tags for scenario’s</figcaption></figure><p><strong>Results: </strong>We get our results in pretty format as we have given the option in cucumberOpts by stating whether the scenarios are passed or failed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*9Ty4xPgaUu37PHFYLVGmzQ.gif" /><figcaption>Tests run through command line</figcaption></figure><p><strong>GitHub Repo:</strong></p><p><a href="https://github.com/igniteram/protractor-cucumber-typescript">igniteram/protractor-cucumber-typescript</a></p><p><strong>Conclusion:</strong> Protractor is a powerful tool for testing end to end test scenarios of a web applications and would continue to grow with TypeScript support and Cucumber is a widely accepted BDD framework for acceptance testing, Together these frameworks unleash a robust, scalable and reliable e2e testing framework.</p><p>Gone are the days of pure blackbox testing, this is the era of smart test automation techniques &amp; processes. In the recent years we have seen a massive growth in the field of Test Automation with <strong>Selenium</strong> driving most of the automation frameworks, Thus giving rise to new breed of testers — SDET’s &amp; Test Automation Engineers. Exciting times ahead in Test Automation !</p><p><em>Enjoyed reading the post? Please hit the </em><strong><em>clap</em></strong><em> below so that it could reach people on Medium.</em></p><p><em>Want to know more about me and what I do? check out my </em><a href="https://about.me/ram.pasala"><em>about.me</em></a><em> page.</em></p><h4>References:</h4><ul><li><a href="https://github.com/angular/protractor">angular/protractor</a></li><li><a href="https://github.com/cucumber/cucumber-js">GitHub - cucumber/cucumber-js: Cucumber for JavaScript</a></li><li><a href="https://github.com/Microsoft/TypeScript">microsoft/TypeScript</a></li><li><a href="http://www.assertselenium.com/bdd/e2e-testing-with-protractor-cucumber-js/">E2E testing with Protractor &amp; Cucumber Js</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=564575814e4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>