<?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 Dan Cuellar on Medium]]></title>
        <description><![CDATA[Stories by Dan Cuellar on Medium]]></description>
        <link>https://medium.com/@penguinho?source=rss-ff72056e52e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*f2WxR7oYm9WhN392.jpeg</url>
            <title>Stories by Dan Cuellar on Medium</title>
            <link>https://medium.com/@penguinho?source=rss-ff72056e52e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 11:08:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@penguinho/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[Pimp My Jenkins — Continuous Delivery Dashboard Edition]]></title>
            <link>https://medium.com/devs-foodit/pimp-my-jenkins-continuous-delivery-dashboard-edition-229463755730?source=rss-ff72056e52e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/229463755730</guid>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Dan Cuellar]]></dc:creator>
            <pubDate>Tue, 03 Nov 2015 14:08:44 GMT</pubDate>
            <atom:updated>2015-11-03T16:38:07.721Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Problem</h4><p>At FOODit, we try to be smart about bringing on additional pieces of developer infrastructure and the maintenance that comes along with them. Setting up local websites and servers on Mac Minis in closets is decidedly fun and allows you to rapidly plug a hole, but over time the hacks add up and it becomes time-consuming to manage. As people come and go, it’s often not fully handed off and, inevitably, turns into an unmanageable mess. Often, core business processes depend on a machine under someone’s desk for which no one remembers the password.</p><p>A few months after I joined FOODit, I was tasked with building a dashboard to track continuous delivery. In the spirit of the company, I was asked to do it entirely in the cloud and without adding any new servers or machines, if possible. It sounded like a bit of a challenge, but nevertheless, I was excited to give it a try.</p><h4>The Product</h4><p>So the idea for the product, as communicated to me, was a way to track changes and features as they progressed from ‘in development’, to ‘released’, to ‘production’ and all of the phases and steps in between. The visualization was a series of columns representing each step in the continuous delivery process. The board showed the status of which tasks were in development, being tested, ready for release, and deployed and when different transitions began.</p><h4>The Stack</h4><p>When tasked with building this dashboard, someone suggested the crazy idea of hosting the whole thing using nothing but Jenkins.</p><p>For the back-end, the idea was that you could pretty easily build a REST API with Jenkins. Triggering a job is analagous to making a REST API call for POST and PUT or refreshing the cache for a GET call. The result of the call would be saved as a Jenkins build artifact. The job you trigger can perform whatever tasks it needs to, using whatever programming language you prefer and then generate a JSON response as an artifact.</p><p>For the front-end, the HTML and JS for the dashboard is stored as an artifact to a Jenkins job as well and we could use the same Angular frameworks that we use on our consumer facing products. A Jenkins job simply builds the site (using grunt) and saves all the HTML and JS as artifacts. A great bonus is also that since these pages are hosted on Jenkins the authentication flow solves itself.</p><p>For the database, Jenkins has jobs that generate all the relevant data for the dashboard. Whenever a pull request is opened or a commit is made to a branch, Jenkins is normally called to run unit tests - at the same time we also save out an artifact that generates a list of pull-requests and branches. Our deployments are handled by promoting builds in Jenkins, and with each promotion we update an artifact that has a list of which build is on which environment.</p><p>For real-time communication, there were some Jenkins-only means to solve the problem, but we ended up using a free Firebase account to simplify the code.</p><h4>The Finished Product</h4><p>The Finished product looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gH7ZTtieFCBEOJXWHuB3ew.png" /><figcaption>CI Dashboard Main View</figcaption></figure><p>In the 6 months since the dashboard was created, the team now has a better grasp on what’s going on. In the past, there was much confusion as to whether or not a feature had been released, which build was on which environment, and who was working on what. All of this was accomplished without adding an additional server, website, or hack.</p><p><strong><em>Dan Cuellar is the Head of Software Testing at </em></strong><a href="http://www.foodit.com/"><strong><em>FOODit</em></strong></a><strong><em> — a young startup with a passion for food and tech, creating software to help independent restaurants grow. FOODit is always on the lookout for talented developers and is currently hiring. Connect with us via </em></strong><a href="https://www.linkedin.com/company/foodit-com"><strong><em>LinkedIn </em></strong></a><strong><em>and </em></strong><a href="https://twitter.com/foodit"><strong><em>Twitter</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=229463755730" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devs-foodit/pimp-my-jenkins-continuous-delivery-dashboard-edition-229463755730">Pimp My Jenkins — Continuous Delivery Dashboard Edition</a> was originally published in <a href="https://medium.com/devs-foodit">Devs @ FOODit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Conference Abroad]]></title>
            <link>https://medium.com/devs-foodit/a-conference-abroad-db5427460b19?source=rss-ff72056e52e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/db5427460b19</guid>
            <category><![CDATA[china]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[conference]]></category>
            <dc:creator><![CDATA[Dan Cuellar]]></dc:creator>
            <pubDate>Thu, 16 Jul 2015 13:49:28 GMT</pubDate>
            <atom:updated>2015-07-16T13:49:28.494Z</atom:updated>
            <content:encoded><![CDATA[<h4>How China Does a Technology Conference</h4><p>Last week, I spoke at a conference in China. I have spoken at conferences in about a dozen different countries around the world, but never had I seen anything like China.</p><h4>The Environment</h4><p>I remember taking the elevator to the 4th floor of the hotel and walking into the door of the conference room at 8am to the sound of loud Chinese pop music and flashing lights. There may or may not have been dancing, but there definitely was a DJ. There were 3 large projector screens and what appeared to be a raffle taking place. Giant stuffed animals were being given away. People were chatting loudly in groups. It felt more like a wedding reception than a conference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fm6WVUF045FCggkK5z9M9g.jpeg" /><figcaption>Prize being raffled off to the eager crowd</figcaption></figure><p>It was quite unusual to have a conference that was 8am-6pm on a Saturday, but I imagine many people wouldn’t have been able to get the day off work so this was the best time. I was impressed with how many people turned up early on a Saturday and how 90% of the people were still there at 6pm. It was also a fairly diverse crowd. I would guess that around a third or more were women, and there were people from all over China. We took a show of hands and more than half of the attendees had flown in from Guangzhou or Shanghai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b7IRQX7EWMhjDZUfHaDltg.jpeg" /><figcaption>Full house on a Saturday</figcaption></figure><p>I knew I would have a translator for this talk, so I sought out this person to kick the tires. From past experience, I’ve learned that having a translator can be hit or miss (usually miss). I was pleased to find that this conference had the best translation setup I had ever seen. They distributed handheld radios and headsets with two channels: one for Chinese to English and one for English to Chinese. There was a booth in the back with two women performing the translation, each with a seemingly native level of proficiency in both English and Chinese.</p><p>Next, I made a move for my seat. At this conference, the speakers had reserved front row seats. Along the way, several conference goers recognized me from YouTube or other places and asked to snap a photo. This happens from time to time when I attend conferences, but usually not more than once per event. It was unusual for so many people to recognize me without having been introduced. After a couple of photos, I sat down at my seat and I was immediately showered with gifts. I received three gifts from the organizers of the conference. There was a tall glass plaque, a large Chinese fan, and a very ornate scroll that was about 10–12 feet in length. This is much better than another canvas bag and pen with a random consultancy firm’s name on it that one typically receives at these sort of things.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urkiANiqc7OqoTH7t6fCgA.jpeg" /><figcaption>Standing room only, even at 6pm</figcaption></figure><h4>Giving the Speech</h4><p>I had the good fortune of going second. In my opinion, second is the optimal position in which to speak at a conference. If you go first, you really have no read on the crowd and what to expect. If you go towards the end, you usually don’t get to enjoy the other talks because you’re fiddling with your slides or just thinking about your turn. Also, many people tend to disappear by the end of the conference for different reasons. (e.g. to get a round of golf in, catch a flight, or because someone already gave the talk they came to see) The most important information I gleaned from the first presentation was that these people really knew their stuff, and that the level of English varied widely from second language proficiency to none at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUVmLzUcV64BsBVVLCtHqA.jpeg" /><figcaption>I don’t speak Chinese, but I had my slides translated by a friend</figcaption></figure><p>I reached the stage and started my slides. I had prepared the same deck in both English and Chinese. I gave the Chinese slides to the projector operator and I kept a laptop in front of me with the English versions. I would flip both sets of slides at the same time to keep them in sync so that they could read the set in Chinese and I could use the English ones as a guide. As I gave the talk, I had the most engaged and attentive crowd I can ever recall. There was a bit of lag between my words and the translator’s words, but there was no one in the crowd playing Minecraft or getting work done as is the norm in the Western world. It was great! At one point, I brought out a prop for a demo and 50–60 people immediately left their seats to come up near the stage to get a closer view. I have never seen anything quite like this — they were completely enthralled. I ended up going 15 or 20 minutes over time, but no one seemed to mind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Na3tWWgui-8m6P8y0m_o5A.jpeg" /><figcaption>A crowd of attendees rush the stage to get a closer look at my demo</figcaption></figure><p>I ended the talk with a Q&amp;A. All the questions asked showed an advanced level of proficiency with the product. People wanted to know where they could find more info on items I had discussed; they asked in depth troubleshooting questions for advanced scenarios. Unless I’m in America, I’m lucky to get a single question, whereas here the curiosity was seemingly bottomless. The Q&amp;A went about 15 minutes into lunchtime which was even more remarkable given that the previous speaker had taken about an hour of Q&amp;A about the same topic.</p><p>After lunch, I sat through 4 hours of uninterrupted talks in Chinese. There were no breaks. Everywhere else I’ve spoken, people usually get (and require) a break between each talk of at least 10–15 minutes, not here. Each speaker gave a talk that was highly technical and completely saturated with information and data. There were no minimalist slide decks full of LOL-cats, memes, and jokes or fluff-filled talks that are not much more than unsubstantiated declaration of opinions. Here, there were no sales pitches, no grandeur. It was all content, no filler, no interruption. No one wanted to waste a single second on irrelevant material.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QrAStPTMTN3W9_fnY-GgpQ.jpeg" /><figcaption>At the conclusion of the conference, the hosts took me and the other speakers and volunteers out to a wonderful feast and we parted ways.</figcaption></figure><h4>Summation</h4><p>Technology operates in English. All the documentation, blog posts, and news articles written about it tend to be in English. As someone in China who may speak a bit of English, sifting through the mountain of tools, blogs, and other information is likely a daunting task; that’s if you can even find the good stuff with the restricted access to some of the relevant pieces of the Internet (Google, Twitter, etc.) that you would have in China. You are undeniably at a signicant disadvantage when it comes to keeping up with what’s going on.</p><p>This conference and ones like it seem to be China’s way of working together to bridge the gap. What I saw was not a big consulting firm trying to get a bunch of vendors and executives with purchasing power under the same roof at a resort destination. It was not a bunch of academics gathering to debate the issues in the field during the day and go out drinking in the evening. It was a group of people working together to share what they had been able to decipher from the outside world with their peers. They may not be able to see what’s trending on Twitter, but they can assemble and discuss what has made it over to their job or their part of the world.</p><p>In the west, we are inundated with blogs, articles, posts, conferences, and other chances to learn more about our field. We have so many that we don’t fully appreciate and seize the opportunities. The ease of access provided by the modern Internet has seemingly diminished the unique learning value that conferences can provide. I sometimes feel that nowadays conferences are seen as a chance to go on a trip somewhere or a chance for sales people to lineup a bunch of potential clients. Companies view them more as a perk they must provide to stay competitive with hiring and appease employees than as a continuing education opportunity that increases the value of their employees. In China, not so much. These people used this limited time to absorb a wealth of knowledge with no intent on wasting a single second, even on a Saturday. Isn’t that the way it should be? If not, then why do we have conferences?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*04J9KoKiEfYFTMMGxykUgQ.jpeg" /><figcaption>Conference Volunteers and Speakers</figcaption></figure><p><strong><em>Dan Cuellar is the Head of Software Testing at </em></strong><a href="http://www.foodit.com/"><strong><em>FOODit</em></strong></a><strong><em> — a young startup with a passion for food and tech, creating software to help independent restaurants grow. FOODit is always on the lookout for talented developers and is currently hiring. Connect with us via </em></strong><a href="https://www.linkedin.com/company/foodit-com"><strong><em>LinkedIn </em></strong></a><strong><em>and </em></strong><a href="https://twitter.com/FOODitFOOD"><strong><em>Twitter</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db5427460b19" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devs-foodit/a-conference-abroad-db5427460b19">A Conference Abroad</a> was originally published in <a href="https://medium.com/devs-foodit">Devs @ FOODit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Robot Should Be Running Your Appium Tests]]></title>
            <link>https://medium.com/devs-foodit/iphone-automation-with-a-one-fingered-robot-a2936c840285?source=rss-ff72056e52e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2936c840285</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Dan Cuellar]]></dc:creator>
            <pubDate>Fri, 08 May 2015 08:58:30 GMT</pubDate>
            <atom:updated>2015-05-14T09:47:51.019Z</atom:updated>
            <content:encoded><![CDATA[<p>Man has often sought to make his life easier through the use of machines. From the wheel to the computer, advances in technology have reduced the amount of manual labor we as a species are required to perform. Software is no different. While we developers already don’t do much manual labor as it is, we are instantly excited by the possibility of doing less and less.</p><blockquote>“I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.”</blockquote><blockquote>-Bill Gates</blockquote><p>Manual testing on mobile devices is one of the few non-typing, non-clicking tasks left for developers. Between unit testing and functional testing frameworks like Appium, much of this task can also by syphoned away to machines. However, some tasks cannot be performed by these frameworks for various reasons such as limitation of the APIs provided by the hardware vendors. For example, Apple’s UIAutomation API does not support things like, app-switching or pressing the home-button. On another level, triggering simulated user-interaction via an automation API is fundamentally different from actually doing the action. In that spirit, I added tapster integration into Appium.</p><h4>Tapster</h4><p>Tapster is a robot that can touch and tap at your command. It has one robotic finger which you can move about by sending commands over a USB interface. It’s 3D printable and fully open hardware, meaning the designs are public and you can print your own at home using a 3-D printer. It was created by Jason Huggins a few years ago and demoed at many conferences playing Angry Birds on phones and tablets.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmZjD1B5rI4Q%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmZjD1B5rI4Q&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmZjD1B5rI4Q%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a581723f5c7719c6835bff91137e945e/href">https://medium.com/media/a581723f5c7719c6835bff91137e945e/href</a></iframe><p>Tapster Code + 3D Printer Files:<br><a href="https://github.com/hugs/tapsterbot/">https://github.com/hugs/tapsterbot/</a></p><h4>Appium</h4><p>Appium is a mobile automation framework that supports automating iOS and Android applications and websites. It uses the same protocol as Selenium (a popular web automation framework) and is also completely free and open source. Appium can load applications on to phones and inspect and manipulate the user interface. It wraps the vendor-supplied frameworks to provide a more user-friendly and flexible interface for programmers.</p><p>Appium: http://www.appium.io</p><h3>Integration</h3><p>The goal was to replace any gestures that Appium would send through software automation APIs and replace them with actual physical interactions performed by the robot. In order to accomplish this 3 problems needed to be solved. You can see Appium driving Tapster to Send a tweet below.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fin2av9LtCfE%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Din2av9LtCfE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fin2av9LtCfE%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1cf4dbd675508380cdc68bb1927d461d/href">https://medium.com/media/1cf4dbd675508380cdc68bb1927d461d/href</a></iframe><h4>#1 — Moving The Finger in the Real World</h4><p>The first is how to make tapster move in a human understandable way. Tapster has three servos (motors) that control three arms. Moving the servo will rotate the a certain number of degrees which will cause the stylus attached to the robot to also move, but in a very different way. Tapster is a delta-robot and fortunately some smart guys have already derived the equations which can translate the adjustment of the angles of the servos holding the arms of a delta robot to the corresponding number of centimeters the robot will move in the x, y, and z directions in the real world. Tapster ships with a working inverse kinematics library.</p><p>Fore more info on delta robot kinematics:<br><a href="http://www.ohio.edu/people/williar4/html/pdf/DeltaKin.pdf">http://www.ohio.edu/people/williar4/html/pdf/DeltaKin.pdf</a></p><h4>#2 — Mapping the Screen to the Real World</h4><p>The second problem that needed to be solved was how to map those real world movements into actions. This was solved by building a mobile app which displays the coordinates that user touches on the screen.</p><p>We combined the app with a calibration routine. First, the routine lowers the pen until the it touches the screen of the mobile device. To do this, we start the finger at the origin and lower it one centimeter at a time. Underneath the finger is a phone running our calibration app as part of an Appium session. Each time we lower the finger, we query the user interface using Appium to see if any UI elements are displayed. If a UI element is displayed then the finger has contacted the screen. Once this point is found we save the z-axis position of the robot so that we know how many centimeters beneath the origin the device is positioned.</p><p>Next, we grab two points by placing the finger at our contact z-axis position with different offsets on the x and y axises. Once the finger has touched the screen we can use Appium again to read the coordinates. This time, we store the x and y coordinates displayed on the screen. Now that we have these two points we have all the data we need to build a transformation function to transform coordinates from the centimeter-based real-world robot coordinate system to the pixel-based device screen coordinate system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/156/1*-xyJ9eNcL5SZ_aF-JMdijA.png" /><figcaption>These tranforms can convert any screen coordinates to real world robot coordinates. x’ and y’</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/208/1*NyWkWTXwOaHgugvf-QhSVw.png" /><figcaption>These four equations can help us determine the four unknowns in the transform equations above</figcaption></figure><p>Using matrices we can build an equation to represent the problem. You can think of the two data points that we gathered as equations. We can put these equations into a matrix and solve for the transformation function which we can then use to convert any two points between the 2 systems. You can ignore the fact that the robot space is in three dimensions as we only are concerned with whether or not the pen is touching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*j_OzaKLamEo2mvaanMZaQw.png" /><figcaption>The aforementioned transforms represented as a matrix</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/206/1*D424sbdRVY6lK6w3VG7pDQ.png" /><figcaption>To determine a, b, c, and d we can invert the matrix and solve</figcaption></figure><p>For more specifics on the math read: <a href="https://msdn.microsoft.com/en-us/library/jj635757(v=vs.85).aspx">https://msdn.microsoft.com/en-us/library/jj635757(v=vs.85).aspx</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fd4YhHkPKidE%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dd4YhHkPKidE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fd4YhHkPKidE%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/658c0b8b705e21c45f91ea8a59db4ec4/href">https://medium.com/media/658c0b8b705e21c45f91ea8a59db4ec4/href</a></iframe><h4>#3 — Orchestrating the Interactions</h4><p>So now we know how to move the robot, and we know where in the real world user interface elements on a mobile device lie, so all we need to do is put it together. To put it together we split out the implementation of the commands from into a robot server. The server knows how to calibrate the robot to a device and how to tap and swipe and coordinates on that phone’s screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hdRNyUP-1lgARHJBYLx00g.png" /><figcaption>Appium server swaps out a simulated tap command in favor of a robotic tap</figcaption></figure><p>Next, I modified Appium to know about this robot server and issue it commands. In Appium, I added a command line flag to specify the address of a robot server to execute our gestures. If the flag is supplied Appium will take all gestures and instead of sending them to the underlying automation API will send them as a REST API call to the robot server. The server will tell the robot to perform the commands and then reply back to Appium.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3jaPNbm5X1V8NDMd3gMKyA.png" /><figcaption>The Appium robot settings dialog</figcaption></figure><p>The great part about this approach is that now all of your existing tests automatically work with a robot. Since we have Appium do the conversions, any test written in Appium automatically supports robots out of the box.</p><h3>Putting it All Together</h3><p>Now that you understand how it all works, let’s get it going. The only preqrequisite you will need is a properly configuratied installation of appium and node.js</p><pre>1. Connect your tapster and place an iPhone connected to your computer underneath the finger</pre><pre>2. Clone the tapster source code from GitHub:<br><strong>git clone </strong><a href="https://github.com/penguinho/tapsterbot/"><strong>https://github.com/penguinho/tapsterbot/</strong></a></pre><pre>3. Install the required packages<strong><br>cd $TAPSTER_SRC/software<br>npm install</strong></pre><pre>4. Start the robot server<strong><br>cd $TAPSTER_SRC/software/src<br>node server.js &amp;</strong></pre><pre>5. Start the Appium robot calibration app using Appium<br><strong>appium --pre-launch --app Appium.RobotCalibration -U &lt;YOUR_DEVICE_ UDID_HERE&gt; --platform-name iOS --device-name “iPhone 6” --platform-version 8.3 &amp;</strong></pre><pre>You must download and build the robot calibration app onto the device from the source code here:<br><a href="https://github.com/appium/sample-code/tree/master/sample-code/apps/RobotCalibration">https://github.com/appium/sample-code/tree/master/sample-code/apps/RobotCalibration</a></pre><pre>6. Run the Calibration Script<strong><br>node calibration.js -o calibration.json</strong></pre><pre>7. Relaunch the server with the calibration data<br><strong>node server.js -c calibration.json &amp;</strong></pre><pre>8. Launch Appium with robot support enabled<br><strong>appium --robot-address=127.0.0.1 --robot-port=4242</strong></pre><p>Now you’re robot is ready to run any test. Just reboot the server with the -c option and the path to the calibration.json file you just generated</p><h3>Next Steps</h3><p>The whole point of this approach was to unlock additional functionality and bridge the gaps missing in current automation frameworks. Now that the robot knows how to tap any point on the device you can use visual automation tools to find locations to tap when Appium is not available. There are several video out solution for iPhone. You can couple these with image recognition software or existing visual automation tools like Sikuli (<a href="http://www.sikuli.org/">http://www.sikuli.org</a>) or Geist (<a href="https://github.com/thetestpeople/Geist">https://github.com/thetestpeople/Geist</a>) and tap and swipe to your heart’s content.</p><p><strong><em>Dan Cuellar is the Head of Software Testing at </em></strong><a href="http://www.foodit.com/"><strong><em>FOODit</em></strong></a><strong><em> — a young startup with a passion for food and tech, creating software to help independent restaurants grow. FOODit is always on the lookout for talented developers and is currently hiring. Connect with us via </em></strong><a href="https://www.linkedin.com/company/foodit-com"><strong><em>LinkedIn</em></strong></a><strong><em> and </em></strong><a href="https://twitter.com/FOODitFOOD"><strong><em>Twitter</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2936c840285" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devs-foodit/iphone-automation-with-a-one-fingered-robot-a2936c840285">A Robot Should Be Running Your Appium Tests</a> was originally published in <a href="https://medium.com/devs-foodit">Devs @ FOODit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>