<?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 T.J. Maher on Medium]]></title>
        <description><![CDATA[Stories by T.J. Maher on Medium]]></description>
        <link>https://medium.com/@tjmaher1?source=rss-addc1d03035e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pq1hV_V-4XtOWsbn.</url>
            <title>Stories by T.J. Maher on Medium</title>
            <link>https://medium.com/@tjmaher1?source=rss-addc1d03035e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:26:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tjmaher1/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[When Claude Acts Like a Clod: Catching AI Fabrications: A QA Engineer’s Field Notes]]></title>
            <link>https://medium.com/@tjmaher1/how-ive-detected-claude-s-fabrications-and-how-i-ve-handled-them-e88192850cd7?source=rss-addc1d03035e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e88192850cd7</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[ai-hallucination]]></category>
            <category><![CDATA[sdet]]></category>
            <dc:creator><![CDATA[T.J. Maher]]></dc:creator>
            <pubDate>Tue, 31 Mar 2026 18:39:46 GMT</pubDate>
            <atom:updated>2026-04-01T02:47:07.908Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*YAegdejrtHG7filSj2bO-Q.png" /></figure><p>Using AI as a research assistant? Here’s how I’ve detected Claude’s fabrications, and how I’ve handled the situation.</p><p>To help relearn Python, I’ve been pair-programming with Claude on a Blogger API to delete the 10K+ spam comments that have accumulated these past ten years on my blog, <a href="http://tjmaher.com/">Adventures in Automation</a>.</p><ul><li><strong>Blogger Spam Bulk Deleter</strong>: <a href="https://github.com/tjmaher/blogger-spam-bulk-deleter">https://github.com/tjmaher/blogger-spam-bulk-deleter</a></li></ul><p>Using AI, I need to remember that I, as the author, am ultimately the one responsible for approving every phrase, every line, and every paragraph.</p><p>Human beings, I feel, are conditioned to respond to the voice of authority.</p><p>Claude may have been conditioned to use that voice, but Claude is not an authority.</p><ul><li>Looking for technical information? Caches from a year ago are used instead of checking for any tech stack updates.</li><li>Need AI to recheck a web page after editing it with AI’s suggestions? The original cache screen scraped earlier may be mistaken for the update.</li><li>Claude is so eager to please, it will fabricate an answer when it can not come up with one.</li></ul><p>Review its answers. Be skeptical. Use critical thinking. Ask it to cite its sources.</p><p>Example: Speaking with the voice of authority, it told me, in regards to the Blogger API rate limits:</p><p>“Daily quota is 10,000 units per day by default. Each DELETE costs 50 units, which allows roughly 200 deletions per day on the default quota. At that rate, 11,000 comments would take approximately 55 days. To avoid this, request a quota increase. With a default 0.5-second delay, a full 11,000-comment run completes in well under an hour”.</p><p>… That’s oddly specific. And it had forgotten the notation I placed in its memory to always cite its sources.</p><p>Checked Blogger API docs, and it couldn’t cite the source.</p><p>It mentioned that it had found a blog post, and was quoting from that, but then could not cite that blog post either.</p><p>It took a while, but it then came to a conclusion… it made everything up. So, Claude, what do you have to say for yourself?</p><p>“Technical writing demands verification, not made-up authority. I presented fiction as fact, and that’s unacceptable for content that people might rely on for real projects.</p><p>“Making up authoritative-sounding technical details can cause real problems — people might make decisions based on false information, waste time following incorrect guidance, or lose trust in the broader content.</p><p>“Thank you for holding me accountable to proper standards”.</p><p>According to Claude, when things like this happen:</p><ul><li><strong>Verify Claims</strong>: When Claude provides specific technical details (quotas, limits, calculations), ask for the source and verify independently.</li><li><strong>Stay Focused</strong>: Clearly define scope and push back when Claude tries to expand beyond your request.</li><li><strong>Check Official Sources</strong>: For API documentation, version numbers, and technical specifications, always verify against official sources.</li><li><strong>Document Corrections</strong>: When you catch fabricated content, document it so Claude can reference its mistakes.</li></ul><p>And yes, I am #OpenToWork for any #SDET or #Playwright roles in #BostonTech or #remote!</p><p>Happy Testing!</p><ul><li>T.J. Maher<br>Software Engineer in Test</li></ul><p><em>T.J. Maher has been a Software Development Engineer in Test since 2015, chronicling his software testing journey in his blog </em><a href="https://www.tjmaher.com/"><em>Adventures in Automation</em></a><em>. T.J. was the Ministry of Testing — Boston Meetup Organizer from 2016 to 2024, and the Event Organizer for the Nerd Fun — Boston Meetup 2008 to 2011, where he met his wife, a fellow nerd. He can be reached on </em><a href="https://bsky.app/profile/tjmaher1.bsky.social"><em>BlueSky</em></a><em>, </em><a href="https://x.com/tjmaher1"><em>Twitter</em></a><em>, </em><a href="https://www.linkedin.com/in/tjmaher1/"><em>LinkedIn</em></a><em>, </em><a href="https://www.youtube.com/channel/UCr3WSskQl2Pc-8OVNqailhA"><em>YouTube</em></a><em>, and will be speaking to </em><a href="https://www.linkedin.com/in/joecolantonio/">Joe Colantonio</a>’s <a href="https://testguild.com/"><em>AutomationGuild</em></a><em> in April 2026.</em></p><p><em>Related posts from Adventures in Automation:</em></p><ul><li><a href="https://www.tjmaher.com/2026/01/ai-wants-to-take-over-qa-let-it.html"><em>AI Wants to Take Over QA? Let It!</em></a><em> (1/2026)</em></li><li><a href="https://www.tjmaher.com/2025/12/beware-hallucinations-when-coding-with.html"><em>Beware the Hallucinations When Coding with AI</em></a><em> (12/2025)</em></li><li><a href="https://www.tjmaher.com/2026/02/investigating-ai-playwright-test.html"><em>Investigating AI: Playwright-Test-Planner and Playwright-Test-Generator</em></a><em> (2/2026)</em></li><li><a href="https://www.tjmaher.com/2015/04/how-to-switch-careers-in-software.html"><em>How to Switch Careers in the Software Industry</em></a><em> (4/2015)</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e88192850cd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Time Using GitHub CoPilot to Create a ReactNative LoginPage app. What Could Go Wrong?]]></title>
            <link>https://medium.com/@tjmaher1/first-time-using-github-copilot-to-create-a-reactnative-loginpage-app-what-could-go-wrong-ff7ec0d5a224?source=rss-addc1d03035e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff7ec0d5a224</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[T.J. Maher]]></dc:creator>
            <pubDate>Wed, 28 Jan 2026 12:35:42 GMT</pubDate>
            <atom:updated>2026-01-28T15:57:13.349Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*zJTQe-JGUDDqki4xQ2iaGw.jpeg" /><figcaption>From <a href="https://www.freepik.com/">https://www.freepik.com/</a></figcaption></figure><p>Do you want to practice mobile test automation development but need a React Mobile app to test against? I have one for you: <a href="https://github.com/tjmaher/detox-demo">DetoxDemo</a>, an open-source app with a Login screen, built with ReactNative + TypeScript + Mobile automation written in Detox.</p><p><em>[ </em><a href="https://www.linkedin.com/in/tjmaher1/"><em>LinkedIn</em></a><em> | </em><a href="https://www.tjmaher.com/"><em>Blog</em></a><em> | </em><a href="https://www.tjmaher.com/p/programming-projects.html"><em>Programming Projects</em></a><em> | </em><a href="https://github.com/tjmaher/detox-demo"><em>DetoxDemo</em></a><em> ]</em></p><p>The automated tests I coded myself, but the app is all GitHub CoPilot. This article is about how CoPilot stumbled, fell flat on its face, stumbled, fell again, took a breather, but eventually, after many failed attempts, limped across the finish line, creating exactly the React Native app I had been looking for.</p><p>Ten years ago, back when I was a newbie automation developer, I discovered a test site created by Dave Haefner: <a href="https://the-internet.herokuapp.com/">The-Internet</a>, where newbie automation developers could practice their craft. Dave Haefner, the author of the <a href="https://elementalselenium.com/">Elemental Selenium</a> newsletter and the Selenium Guidebook, two resources that really helped me out early in my career, created the site to help the software testing community.</p><p>Back then, to practice what I was learning on-the-job at my first automation development position putting together Selenium WebDriver + Java automation framework, I created, testing against that site, a toy project, <a href="https://github.com/tjmaher/WebDriver_TheInternet_Advanced">Testing The-Internet</a> and started <a href="https://www.tjmaher.com/2015/06/simple-manipulation-of-login-page.html">blogging about it</a>. I gave imaginary readers code walkthroughs how one could write a framework to test The-Internet’s <a href="https://the-internet.herokuapp.com/login">Login Page</a>. The act of being forced to explain what I am doing in various <a href="https://www.tjmaher.com/p/programming-projects.html">programming projects,</a> and why, to imaginary readers has helped me in many parts of my career, whether it is playing around with <a href="https://www.tjmaher.com/2017/02/are-you-sure-bus-line-still-listed.html">REST Assured</a>, setting up an <a href="https://www.tjmaher.com/2017/05/basic-appium-framework-part-one.html">Appium framework</a>, or creating an automation framework <a href="https://testautomationu.applitools.com/capybara-ruby/">with Ruby + Capybara</a>.</p><p>Ten years later, to practice what I am learning at <a href="https://www.linkedin.com/preload/#">SELF ID, Inc.</a> putting together an automation framework for their React Native mobile application using Wix’s <a href="https://wix.github.io/Detox/">Detox</a> + TypeScript, I wanted to put together another toy project. Call it <a href="https://github.com/tjmaher/detox-demo">DetoxDemo</a>. The problem was that, although I knew what the automation part would look like, I didn’t know of a React Native mobile application to test against. Wishing there was a React Native app like Dave Haefner’s The-Internet, I had a crazy idea:</p><p>Why not try to vibe-code a React Native mobile app, creating one with GitHub CoPilot, that emulates his <a href="https://the-internet.herokuapp.com/login">The-Internet Login</a> page?</p><p>Sure, there were some minor hurdles, the first being that I don’t know how to “vibe-code”. I’ve been using GitHub CoPilot for a year at two different workplaces, but nothing to this extent.</p><p>The second hurdle is that I am not a software developer. With React Native applications, I have been a manual and an automated tester. I just don’t yet know React Native development.</p><p>Creating an entire app using a toolset I am unfamiliar with in a language I don’t understand? What could go wrong?</p><h3>What is React Native, anyway?</h3><p>React Native was created by Facebook in 2015 to help fix what they thought of as an over-reliance of HTML5 for their mobile applications.</p><p>According to <a href="http://reactnative.dev/">ReactNative.dev</a> / <a href="https://reactnative.dev/docs/intro-react-native-components">Core Components and Native Components</a>, “React Native is an open source framework for building Android and iOS applications using <a href="https://react.dev/">React</a> and the app platform’s native capabilities. With React Native, you use JavaScript to access your platform’s APIs as well as to describe the appearance and behavior of your UI using React components: bundles of reusable, nestable code”.</p><p>One toolset can create both iOS and Android mobile apps, but for DetoxDemo, I wanted to focus just on creating an iPhone application.</p><h3>Setting Up The React Native Environment</h3><p>Before I started anything, the first thing I had to do was set up my environment on my MacBook, according to the directions on the <a href="http://reactnative.dev/">ReactNative.dev</a> site. ReactNative allows one project to create both iOS and Android mobile applications, but since I didn’t want to bite off more than I could chew, I would focus on developing an app for the iPhone 16 Pro:</p><p><a href="http://reactnative.dev/">ReactNative.dev</a>: <a href="https://reactnative.dev/docs/set-up-your-environment">Set Up Your Environment:</a></p><ul><li>Development OS: MacOS + Target OS: iOS</li><li>Install <a href="https://nodejs.org/">Node.js</a>, the free JavaScript runtime environment to handle the backend and get access to <a href="https://www.npmjs.com/">npm</a>, the node package manager.</li><li>The <a href="https://reactnative.dev/docs/metro">Metro</a> bundler will also be installed when using the React Native command line interface (CLI).</li><li>Install <a href="https://facebook.github.io/watchman/">Watchman</a>, also created by Facebook, which watches files, recording when they change.</li><li>Install <a href="https://developer.apple.com/xcode/">XCode</a>, Apple’s integrated development environment (IDE), which includes much needed debugging tools and iPhone simulators.</li><li>Set up a simulator in XCode, such as the simulator for the iPhone 16 Pro.</li><li>Install XCode’s Command Line Tools to build and compile the app with xcodebuild, and manage the simulators,</li></ul><p>As for initializing the React Native application, I was going to see what GitHub CoPilot could come up with.</p><h3>Composing the First Prompt</h3><p>After creating an empty folder called “detox-demo”, I entered a prompt in GitHub CoPilot chat describing the app I wanted to create:</p><p><em>“Create a React Native application for the iPhone that will be used to illustrate how to set up a Detox automation framework. The iOS app will be based on </em><a href="https://the-internet.herokuapp.com/login"><em>https://the-internet.herokuapp.com/login</em></a><em>.</em></p><p><em>“LoginPage:</em></p><ul><li><em>“Heading: ‘Login Page’.</em></li><li><em>“Text: ‘This is where you can log into the secure area. Enter tomsmith for the username and SuperSecretPassword! for the password. If the information is wrong you should see error message.’</em></li><li><em>“Username textbox.</em></li><li><em>“Password textbox.</em></li><li><em>“Login Button.</em></li><li><em>“Incorrect login will produce a message in a red banner with white bolded text on the top of the screen: ‘Your username is invalid!’.</em></li><li><em>“Successful login goes to the SecureArea.</em></li></ul><p><em>“Secure Area:</em></p><ul><li><em>“Heading: ‘Secure Area’.</em></li><li><em>“Body text: ‘Welcome to the Secure Area. When you are done click logout below.’</em></li><li><em>“Successful login shows a green banner on top of screen with white bold text: ‘You logged into a secure area!’.</em></li></ul><h3>Chaos Ensues</h3><p>After I submitted the GitHub CoPilot prompt, everything seemed okay, since it came back with a prompt:</p><pre>I&#39;ll help you create a React Native application for iOS. Let me break this down into steps<br>  1. First, I&#39;ll explore the workspace structure<br>  2. Create a React Native project<br>  3. Set up the Login and Secure Area screens</pre><pre>Let&#39;s start! [...] Since there is no specific template, I&#39;ll create the React Native project from scratch. Let me start by creating the basic project structure.</pre><p>In the chat logs, I caught a glimpse that it started initializing a new React Native project:</p><pre>npx @react-native-community/cli@latest init DetoxDemo</pre><p>Then things started going haywire.</p><ol><li>It took three attempts to initialize a React Native project, first using what it kept claiming to be outdated methods.</li><li>Instead of using the root directory, it created a sub-directory, placed the project code there, realized it had done that, then moved most of the project files back to root, forgetting to update much of the configurations.</li><li>Since I mentioned the phrase “Detox” in my prompt, it then started work trying to initialize a Detox framework before building out the React Native application, and I wasn’t able to figure out how to correct its mistake.</li></ol><p>While attempting to create a Detox test framework, something must have interrupted the process when it used an outdated initialization command. It seemed surprised when it stumbled upon the Detox files it had already tried setting up, and had to study its own project it had attempted to put together.</p><p>Only after many failed attempts, checks, rechecks, redos, did it finally realize that it never created the React Native application I had asked it to create.</p><pre>Copilot has been working on this problem for a while. It can continue to iterate, or you can send a new message to refine your prompt.</pre><h3>Second Time Is The Charm?</h3><p>Seeing that there were problems, I then re-entered the prompt, trying again.</p><p>Again, it had the same problems, investigating the project code it had written, re-creating the project in a new subdirectory, realizing it already had completed the work, then erasing the sub-directory.</p><p>After that, it started printing a lot of text to the screen faster that I could read. According to the JSON file of the session, it was actually talking to itself:</p><pre>The user has opened the workspace folder /Users/tj/src/detox-demo</pre><pre>Create a new project in this workspace folder.</pre><pre>To create a new project for the user, follow the steps below to create files, set up necessary extensions, and configure the project environment in Visual Studio Code.</pre><pre>Overview - <br>- Call the tool get_project_setup_info to get a VS Code workspace-supported project template based on the user&#39;s request. <br>- Run a command-line tool to scaffold the project files from a template.<br>- Create and update a copilot-instructions.md file in the project root under the .github directory.<br>- Customize the project files based on the user&#39;s requirements, if specified.</pre><p>Ah, no… I am not doing that. I would not know how to do any of that even if I tried. So, I just let GitHub CoPilot keep running.</p><p>Again it tried creating a React Native application.</p><p>Again it claimed it was using an outdated way to set up an application, reading the warnings that were being thrown as it was attempting to create the project.</p><p>It decided it wanted to use a React Native project template that could not be found.</p><p>On its second attempt, it downloaded, copied and processed a template, installing dependencies, updating my system to React Native 0.83.0.</p><p>When it realized that I needed to install Cocoapods, it asked for permission.</p><p>After that, it got caught in a loop where there was an error with npm that it had problems sorting out.</p><h3>Third Time Is The Charm?</h3><p>Finally, it somehow fixed all of its errors, and progress was made. It got to the point I was looking for:</p><pre>Great! Now let me create the React Native screens. First, let me look at the current App.tsx: ,</pre><pre>Now I&#39;ll replace the detox-demo with our login application. Let me also install react-navigation for navigation between screens:</pre><pre>Now let me create the screens directory and LoginScreen component</pre><p>GitHub CoPilot then created:</p><ul><li>detox-demo/src/screens/LoginScreen.tsx</li><li>detox-demo/src/screens/SecureAreaScreen.tsx</li></ul><p>It added what it thought was appropriate testIDs to various screens, locators that test automation could use to find various React Native elements.</p><p>Once it created a skeleton of the page, it started adding some meat on the bones.</p><pre>Now let me create the SecureAreaScreen</pre><pre>Now let me update the App.tsx to use our new screens</pre><pre>I need to update the LoginScreen to handle the logout message. Let me fix that:</pre><pre>Let me add the logout message banner to the LoginScreen:<br>Now let me create a simple test to verify everything is working:<br>Let me fix the imports:<br>Now let me create the .github directory and copilot instructions</pre><p>It created the app incrementally, adding piece by piece. After each piece was added, errors were thrown, then it had to fix those errors.</p><ul><li>It kept losing track of the React-Navigation module. It kept forgetting where the module “detox” was.</li><li>It would define a new method, forget to use it, then delete it.</li><li>And it would edit the same few files again, and again, writing and rewriting so many times it was hard for me to keep track of what it was doing.</li></ul><p>Every few steps, it would run a linter, to see if anything went wrong, then fix it. All the while it acted as if it had amnesia from one step to the other, examining the directory, surprised that there was code already there.</p><pre>Perfect! Now let me make sure we can run the iOS app. First, let me install pods:</pre><pre>I see there&#39;s a conflict with using the wrong iOS directory. Let me update the Detox configuration to use the correct paths: </pre><pre>Let me check the actual project structure</pre><pre>Now let me run a quick test to see if our app builds and runs:</pre><pre>- I see that this is a complex project with existing scripts. Let me look at the correct package.json again to understand what scripts we actually have:</pre><pre>Good! We do have the ios script. The issue seems to be that it&#39;s running in a different project context. Let me run it with the correct working directory: &quot;,</pre><pre>              &quot;toolCalls&quot;: [</pre><pre>There seems to be an issue with the package.json file. Let me check if it was corrupted or has any issues: &quot;,</pre><pre>              &quot;toolCalls&quot;: [</pre><p>GitHub CoPilot kept continuing this way for quite some time until finally, it was finally finished. Finally.</p><h3>Success! We Have An App!</h3><p>After what felt like hours, and after many failed attempts, GitHub CoPilot was finally finished.</p><p>GitHub CoPilot set up in the <a href="https://github.com/tjmaher/detox-demo">DetoxDemo</a> project in the <a href="https://github.com/tjmaher/detox-demo/blob/main/package.json">package.json</a> file some commands to build the Detox version of the app. I instructed GitHub CoPilot to use <a href="https://yarnpkg.com/">YARN</a> instead of NPM as a Builder, like we use at <a href="https://selfid.com/">SELF ID</a>.</p><ul><li>To Build the Detox version of the app: <em>yarn detox:build:ios</em></li></ul><p>I gave the command to build the app, launching an emulator, with the DetoxDemo icon ready to be clicked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*hUhm-n2wKauaNNq-" /><figcaption>LoginPage screen</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*LOirqIsMsFYCI49k" /></figure><h3>Adding the Automation</h3><p>I added automated tests for the React Mobile site in a folder I called “e2e” to store the end-to-end tests, written in Detox + TypeScript.</p><p>To test the Login Flow, I fashioned the tests much like my first Selenium WebDriver + Java automation project, <a href="https://www.tjmaher.com/2015/06/simple-manipulation-of-login-page.html">Testing The-Internet</a>, written ten years before:</p><ul><li>Login Page: Verify the expected Heading and Instruction text appear.</li><li>Login Page: Verify that invalid credentials displays the error message in a red banner at the top of the screen.</li><li>Secure Area: Successful login displays a success message in a green banner at the top of the screen.</li></ul><h3>Documenting the Project Structure</h3><p>I then directed GitHub CoPilot to create a README file showing the structure the code:</p><ul><li>App source code in a “src” folder, with another folder marked “screens”.</li><li>Automated tests, written in Detox, in an “e2e” folder, with page objects in a folder “pages”.</li></ul><p>GitHub CoPilot then documented things like so in the <a href="https://github.com/tjmaher/detox-demo">DetoxDemo README</a> file:</p><pre>src/<br>├── screens/<br>│   ├── LoginScreen.tsx       # Main login interface<br>│   └── SecureAreaScreen.tsx  # Secure area after login</pre><pre>e2e/<br>├── pages/<br>│   ├── base-page.ts          # Base page object with common methods<br>│   ├── login-page.ts         # Login screen page object  <br>│   └── secure-area-page.ts   # Secure area page object<br>├── constants.ts              # Time constants (2s, 3s, 5s, etc.)<br>├── credentials.ts            # Test credentials<br>├── init.ts                   # Detox initialization<br>├── jest.config.js           # Jest configuration for Detox<br>└── login.test.ts            # Main test suite</pre><pre>.detoxrc.js                  # Detox configuration</pre><h3>Running the Automated Tests</h3><p>GitHub CoPilot set up in the <a href="https://github.com/tjmaher/detox-demo">DetoxDemo</a> project in the <a href="https://github.com/tjmaher/detox-demo/blob/main/package.json">package.json</a> file likewise some commands to test the Detox version of the app.</p><ul><li>Open up a new Mac Terminal and started Metro: <em>yarn start</em></li><li>Open up a second Mac Terminal to run the automated tests: <em>yarn detox:test:ios</em></li></ul><p>When I gave the command to test the app, it launched an emulator, opened up the DetoxDemo app, and executed the tests. Once finished, Detox then printed the output:</p><pre>Login Flow: <br>  ✓ Verify Heading and Instruction Text (1550 ms)<br>  ✓ Invalid credentials displays error message (3958 ms)<br>  ✓ Successful login to Secure Area displays success message (5159 ms)<br>  ✓ Logout from Secure Area returns to Login Page (5779 ms)</pre><pre>  Test Suites: 1 passed, 1 total<br>  Tests:       4 passed, 4 total<br>  Snapshots:   0 total<br>  Time:        27.516 s, estimated 39 s</pre><p>Huzzah! The React Native app has been constructed and all the tests have passed!</p><p>One task remained… an autopsy about what went wrong during this project.</p><p>I fed the GitHub CoPilot chat log, stored as a JSON file after my GitHub CoPilot session, back into GitHub CoPilot, asking how things went so wrong. GitHub CoPilot then summarized everything that had gone wrong…</p><h3>Summary of GitHub Copilot’s Mistakes</h3><p>1. Wrong Project Creation Location</p><ul><li>Attempted to create the React Native project in the current directory using . as the target</li><li>The CLI created a subdirectory in /Users/tj/src/DetoxDemo/ instead of using the intended workspace directory</li><li>Had to manually copy files from the wrong location to the correct workspace</li></ul><p>2. Incorrect React Native Initialization Commands</p><ul><li>First tried: <em>npx react-native init DetoxDemo — template react-native-template-typescript</em> . (failed)</li><li>Then tried: <em>npx @react-native-community/cli@latest init DetoxDemo — template react-native-template-typescript </em>(failed)</li><li>Finally used: <em>npx @react-native-community/cli@latest init DetoxDemo</em> . which created files in the wrong location</li></ul><p>3. Created Expo Project Instead of Pure React Native</p><ul><li>The generated package.json showed it was an Expo-managed project</li><li>The request was for a standard React Native application, not Expo</li><li>This mismatch would cause issues with Detox configuration</li></ul><p>4. Detox Installation Issues</p><ul><li>Attempted <em>npm install — save-dev detox @config-plugins/detox</em> which had dependency conflicts</li><li>Had to fall back to <em>npm install — save-dev detox — legacy-peer-deps</em></li><li>The @config-plugins/detox package was likely not needed</li></ul><p>5. Detox Initialization Problems</p><ul><li>Tried <em>npx detox init -r jest</em> but it failed because Detox files already existed in a parent directory</li><li>Instead of resolving the conflict, manually created configuration files</li></ul><p>6. Typo in Page Object Request</p><ul><li>Class LogingPage extends BasePage (typo: “Loging” instead of “Login”)</li><li>Copilot should have caught this obvious typo and corrected it</li></ul><p>7. Type System Issues</p><ul><li>Mentioned needing to “fix the type issues in the base page”</li><li>Suggests TypeScript types weren’t properly defined initially</li></ul><p>8. Over-Complicated Approach</p><ul><li>Used <em>create_new_workspace</em> tool unnecessarily</li><li>Should have started with simpler file creation approach</li><li>Multiple failed attempts before getting the basic structure right</li></ul><p>9. “Cannot find module ‘./package.json’” Error</p><ul><li>When attempting to run npm run ios, the React Native CLI failed:</li><li>This was because the node_modules were installed in the wrong location. The React Native binary expected to find files in a different structure.</li></ul><p>10. Wrong Diagnosis and Solution</p><ul><li>After the module error, Copilot diagnosed it as a “dependency issue”</li><li>This was the wrong diagnosis — the issue wasn’t corrupted dependencies but rather being in the wrong directory entirely.</li></ul><p>11. Port Conflict Error (EADDRINUSE)</p><ul><li>This happened because Copilot tried to start the Metro bundler multiple times without killing previous instances.</li></ul><p>12. React Native 0.83.0 Build Failures</p><ul><li>The iOS build failed with C++ header redefinition errors</li><li>Copilot used React Native 0.83.0, which appears to be a bleeding-edge version with compilation bugs. Should have used a stable version like 0.81.x or 0.82.x.</li></ul><p>13. Detox Configuration File Errors</p><ul><li>Later in the session, attempts to read Detox config failed:</li><li>Copilot created .detoxrc.js but then looked for .detoxrc.json and detox.config.js — inconsistent file naming.</li></ul><p>14. Unnecessary Reinstallations</p><p>Rather than identifying the root cause (wrong directory), Copilot repeatedly tried:</p><ul><li>Reinstalling node_modules</li><li>Editing configuration files</li><li>Re-running failed commands</li><li>Modifying Detox config</li></ul><p>All while ignoring the core issue of working in the wrong workspace.</p><h3>Wrapping Up</h3><p>As frustrating as it was acting as a passenger during GitHub CoPilot’s wild and madcap ride developing the DetoxDemo project, it all turned out well in the end.</p><p>My first ReactNative application, DetoxDemo, has been created. I successfully added automated tests to the ReactNative mobile app. And now I have something to blog about.</p><p>Starting in January 2026, I will be walking readers through the automation code I wrote on my blog, <a href="https://www.tjmaher.com/">Adventures in Automation</a>. Hope to see you there!</p><p>And, as I mentioned, feel free to use the DetoxDemo React Native app at <a href="https://github.com/tjmaher/detox-demo">https://github.com/tjmaher/detox-demo</a> if you need a React Native app to test against when practicing automation development. If you like it, feel free to give me a shout out on LinkedIn at <a href="https://www.linkedin.com/in/tjmaher1/">https://www.linkedin.com/in/tjmaher1/</a></p><p>Because I stumbled on Dave Haefner’s test site The-Internet, and all the rest of Dave’s contributions to the software testing community, I became a better automation developer. I would like to return the favor. Thank you, Dave!</p><p>As always… Happy Testing!</p><p>-T.J. Maher</p><p><em>T.J. Maher has been a Software Development Engineer in Test since 2015, chronicling his software testing journey in his blog </em><a href="https://www.tjmaher.com/"><em>Adventures in Automation</em></a><em>. T.J. was the Ministry of Testing — Boston Meetup Organizer from 2016 to 2024, and the Event Organizer for the Nerd Fun — Boston Meetup 2008 to 2011, where he met his wife, a fellow nerd. He can be reached on </em><a href="https://bsky.app/profile/tjmaher1.bsky.social"><em>BlueSky</em></a><em>, </em><a href="https://x.com/tjmaher1"><em>Twitter</em></a><em>, </em><a href="https://www.linkedin.com/in/tjmaher1/"><em>LinkedIn</em></a><em>, </em><a href="https://www.youtube.com/channel/UCr3WSskQl2Pc-8OVNqailhA"><em>YouTube</em></a><em>, and will be speaking to </em><a href="https://www.linkedin.com/preload/#">Joe Colantonio</a>’s <a href="https://testguild.com/"><em>AutomationGuild</em></a><em> in April 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff7ec0d5a224" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five Tips How Software Testers Can Collaborate With Software Developers]]></title>
            <link>https://medium.com/@tjmaher1/five-tips-how-software-testers-can-collaborate-with-software-developers-7e675078acaf?source=rss-addc1d03035e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e675078acaf</guid>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[T.J. Maher]]></dc:creator>
            <pubDate>Fri, 28 Jun 2019 03:02:47 GMT</pubDate>
            <atom:updated>2019-06-28T03:02:47.127Z</atom:updated>
            <content:encoded><![CDATA[<p>Whenever I join a new team, my first task is fostering and nurturing a good working relationship with the developers. Why? If there is good chemistry between testers and developers, the quality of work increases as the quality of communication increases.</p><p>The relationship between tester and developer shouldn’t be one of artist and art critic. Rather, it should be one between writer and copy-editor, each contributing to the quality of the product.</p><p>Developing a good working relationship with developers can be tricky. Here are five tips for nurturing and developing relationships with your developer teammates.</p><h3>Tip #1: Don’t Let Bad Past Experiences Get In The Way Of The Present</h3><p>It can be tough being a software tester. Testers can be blamed for:</p><p>… finding too many bugs</p><p>… for reporting too many bugs</p><p>… for making the team look bad</p><p>… for making the product look bad</p><p>Speaking for myself, I’ve seen managers foster an “us vs them” mentality between devs and testers, claiming that this heated rivalry is a good thing, keeping both camps on their toes.</p><p>I’ve had test managers insist that testers should only communicate with the developers through bug reports, and that I only have two jobs: Find bugs, and don’t bother the developers.</p><p>And I’ve had development managers dismiss me as “only a tester”.</p><p>Even though most of these experiences happened early on in my career, when I am having a bad days or when I am under severe stress, these bad experiences of mine can bubble up while I am interacting with developers. The longer your career goes on in this field, the more the baggage can accrue.</p><p>In spite of all of that, it is important that these past bad experiences do not interfere when working with present or future developers.</p><p>How can a tester cope?</p><ul><li><strong>Vent with a friend</strong> — outside of work — if you need to. Unpack your baggage. Trade war stories.</li><li><strong>Join a networking group of other testers</strong> such as joining your <a href="https://www.ministryoftesting.com/ministry-of-testing-meetups">local Ministry of Testing Meetup</a> or starting your own.</li><li><strong>Speak to a mentor or career counselor.</strong></li><li><strong>Talk to a manager you are friendly with</strong></li><li>Is a job just too difficult to deal with? <strong>Finding a new workplace</strong> may help.</li></ul><p>Find a way to deal with these past comments that may haunt you. Do whatever it takes so that the next time you start working with your development team, you can do so with a clear mind.</p><h3>Tip #2: Participate in the Initial Planning Sessions</h3><p>When the initial work on the project is being scoped out, don’t be a bystander or a spectator when a new feature of the product is being planned. Allow your voice and your experience as a tester to be heard.</p><p>As the new features are first being introduced to your team, work side-by-side with the developers, brainstorming and reviewing each feature story by story.</p><p>Work together to see if the requirements are readable, understandable, clear,</p><p>and concise. As the developers go back and forth trying to hash out if there is enough information there to build the new feature, work with the developers and business analysts totry to figure out if there are enough metrics listed to test.</p><p>Examples Of Metrics That Could Be Used:</p><p>… Is this feature testable?</p><p>… How do you know the feature passes? What does a failure look like?</p><p>… What is a critical requirement? What is simply “nice to have”?</p><p>… What inputs are acceptable?</p><p>… What is not acceptable?</p><p>If the feature has a UI segment, are their sample screenshots of how the product is supposed to look and behave? Screenshots, mock-up, and wire mocks are extremely helpful in creating conversations around functionality, usability, and testability while discussing requirements.</p><p>If your team is using Agile, work out how complex a story may be, comparing one story to another, assigning various points to the story. Trying to assign story points spurs a healthy and constructive debate, with testers right there in the thick of it, listening, taking everything in, and contributing the conversation.</p><p>Will a feature take a lot of time to test? If testers don’t speak up and say that they need to budget more time into developing and testing this feature, they are going to find themselves either blowing deadlines or working a lot of nights and weekends in their immediate future.</p><p>If you are using Agile, remember that you are trying to run at a healthy sprint. It is not supposed to be a death march.</p><p>Developing a good working relationship is more that just grabbing lunch with the developer you are working with to build and test the feature(though that works). Getting to know the developer as not just a co-worker but also as a person creates a better environment for communication and collaboration.</p><h3>Tip #3: Dive Deep With Developers Before Your Testing Starts</h3><p>The developer and the tester are two sides to the same coin. The developer is focused on drafting and building the product. My main focus as a tester is how a customer will operate the product.</p><p>The developer focus is on creating the product according to the ever changing specs.</p><p>A tester’s focus is to do risk analysis as the product is being changed and updated.</p><p>Developers aren’t opponents. We are teammates. We’re partners.</p><p>If there is a new feature being developed and you are unsure how the new feature will work, reach out to the developers. Work with them to figure out things such as…</p><p>… How data travels from the UI to the API to the database</p><p>… Checking if new fields need to be created in the database</p><p>… Checking if data need to be processed before it gets used by the API</p><p>… Is the code being held together with paper clips, rubber bands and duct tape?</p><p>… Is there a risk that things related to this feature might break as things are being built or code is being cleaned up and refactored?</p><p>These concerns need to be addressed by both developer and tester. Work with the developers, business analysts, and user experience. Be the sounding board.</p><h3>Tip #4: Enjoy Each Other’s Testing Perspectives</h3><p>Developers and testers have different perspectives when it comes to viewing the software product under construction.</p><ul><li>Developers see the product from the bottom up, sometimes seeing the user interface a thin plastic veneer covering the machinery of the product.</li><li>Testers tend to see the product from the top down, starting with how the customer uses the product.</li></ul><p>This difference in perspective extends to the subject of testing.</p><ul><li>Developers may think of testing at a code level, with a focus on unit and integration tests.</li><li>Testers may focus more on functional tests, examining the product as a whole.</li></ul><p>By sharing each other’s unique perspective you help each other get better in your own profession.</p><p>When testers and the entire development team work together, they become more interdisciplinary. Ask the business analyst about how the requirements were constructed. Ask the user experience people how they determined what the product should look like. Ask the developer to give a code walkthrough while the feature is being built.</p><p>See if you can set up pair testing with the developer. You would get to know more of how the product is built and the developer will get more exposure to how to test this creation you are both shaping.</p><h3>Tip #5: Under Times Of Stress: Try To Be Kind</h3><p>It is very easy to get stressed out in the software industry. Deadlines are always looming. Things move so fast. There is always a new tool or technology to learn every few years. Requirements can changes quicker than you can keep up. Things can fall apart. It is easy to get overwhelmed. These stressful times are why we have done all this work, for these stressful moments.</p><p>If you are feeling the stress, the developer is too. Like in <a href="https://en.wikipedia.org/wiki/Alice%27s_Adventures_in_Wonderland">Alice in Wonderland</a>, developers are running <a href="https://en.wikipedia.org/wiki/Red_Queen%27s_race">the red queen’s race</a>, running as fast as they can just to stay in the same place.</p><p>Tech stacks change constantly. Front-end developers suddenly need to become experts in JavaScript, then Angular, then Ember, then React JS or Vue JS, and whatever javascript framework Google, Amazon, or Facebook are pushing next year.</p><p>Even if testers work side-by-side with the rest of the development team in planning how to develop and test a feature, communication can still short circuit. The bug you found might not be a bug at all:</p><ul><li>The requirements may have changed, and a conversation or midnight email happened between product owner and developer that you are not privy to.</li><li>The developer might have realized last minute that the product does not have the structure to support all of the new requirements. Things were scaled back.</li><li>A bug was already found, and the designer, developer, and product owner had a meeting and decided that they could live with the bug, and they just haven’t had time to communicate that to you yet.</li></ul><p>It may not be a bug at all. It could be a not-yet-documented feature.</p><p>When you find bugs in the code… try to be kind. Don’t act as if the bug represents a failing of their work ethic. In the software industry, we are doing so much with so little time, it is easy for things to get missed. Establishing a good rapport with each member of the team, doing a deep dive on technical aspects of the feature, soliciting feedback in testplan creation, and pair testing with the team can all help establish good collaboration amongst the team.</p><p>The most important part to remember? Under times of stress: Try to be kind.</p><p><a href="https://www.linkedin.com/in/tjmaher1/"><em>T.J. Maher</em></a><em> is the Meetup Organizer of Ministry of Testing — </em><a href="https://www.meetup.com/ministry-of-testing-boston"><em>Boston</em></a><em>. T.J. has twenty years of software testing experience, and has been an automation developer since 2015. T.J. blogs about his experience at </em><a href="http://tjmaher.com/"><em>Adventures in Automation</em></a><em> and tells stories on his </em><a href="https://www.youtube.com/channel/UCr3WSskQl2Pc-8OVNqailhA"><em>YouTube channel</em></a><em>. T.J. has written for </em><a href="https://techbeacon.com/contributors/thomas-maher"><em>TechBeacon</em></a><em>, and was a speaker for the online conferences </em><a href="http://automationguild.com/"><em>AutomationGuild.com</em></a><em> and </em><a href="http://testingguild.com/"><em>TestingGuild.com</em></a><em> 2018. T.J. practically lives online, and can be reached </em><a href="https://twitter.com/tjmaher1"><em>on Twitter</em></a><em> and the MOT Slack as </em><a href="https://twitter.com/tjmaher1"><em>@tjmaher1</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e675078acaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So You Want to Be an Automation Developer]]></title>
            <link>https://medium.com/@tjmaher1/so-you-want-to-be-an-automation-developer-81730df4e324?source=rss-addc1d03035e------2</link>
            <guid isPermaLink="false">https://medium.com/p/81730df4e324</guid>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[T.J. Maher]]></dc:creator>
            <pubDate>Sat, 20 Oct 2018 12:04:26 GMT</pubDate>
            <atom:updated>2018-10-20T12:04:26.431Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you a software tester trying to break into automation? Need pointers to get your first job? Although I only have three years of experience as an automation developer, I may be able to point you in the right direction.</p><h3>STEP ONE: TAKE A CODING CLASS</h3><p>When you are writing automation, you aren’t simply tinkering with a new toolset or technology. You are <em>writing software</em> in order to <em>test software</em>. It will definitely help you if you start learning how to code. With your first job, you won’t need to know how to write <a href="https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882">clean code</a> or <a href="https://martinfowler.com/books/refactoring.html">refactor tests</a> right away, but if your job interviews are anything like the ones I had, you will have to demonstrate some knowledge of a programming language during your job interview.</p><p>My biggest recommendation if you are brand new to coding? Check out your local community college to see what programming classes they offer. Testing and developing are completely different mindsets. Learning from and interacting with a teacher, bouncing ideas off of students, and forming up study groups will help with the ever growing frustration as you are learning this brand new skill. You will hit wall after wall trying to understand the basic concepts. Your study group can be your wrecking crew. It also helps that everyone in the class are tackling the same concepts at the same pace.</p><p>Yes, you could learn how to practice coding as a newbie on your own by reading Zed Shaw’s free ebooks <a href="https://learnpythonthehardway.org/python3/">Learning Python 3 the Hard Way</a>, <a href="https://learnrubythehardway.org/book/">Learning Ruby the Hard Way</a>, or any in his <a href="https://learncodethehardway.org/">Learning Code the Hard Way</a> series. You could take <a href="https://www.codecademy.com/">Codecademy</a>’s free<a href="https://www.codecademy.com/catalog/language/ruby">Learning Ruby</a>, <a href="https://www.codecademy.com/learn/learn-python">Python</a>, or <a href="https://www.codecademy.com/catalog/language/javascript">JavaScript</a> courses. You could purchase <a href="http://eviltester.com/">Alan Richardson</a>’s book, <a href="http://javafortesters.com/">Java for Testers</a>. Or you could teach yourself with the official <a href="https://docs.oracle.com/javase/tutorial/java/index.html">Java Learning Trails</a>. If you do it this way, when you get stuck, you will be struggling alone and have to somehow find the wherewithal to persevere and work your way through your growing frustration. Getting help from fellow students in a classroom is a lot easier than attempting to figure out questions and answers on <a href="https://stackoverflow.com/">StackOverflow</a>.</p><h3>STEP TWO: PICK A LANGUAGE. ANY LANGUAGE!</h3><p>According to SmartBear’s <a href="https://smartbear.com/resources/ebooks/the-state-of-testing-2017-industry-report/">The State of Software Testing 2017 Industry Report</a>, the top languages used when writing automation are Java — by a landslide — followed by JavaScript / Node.JS, C#, and Python 3. Pick one! It really doesn’t matter what you pick as a first programming language to start learning as long as you practice learning how to code.</p><p>If you are working as a software tester, find out what your company is using for automation, and study that. Maybe there is room in the training budget so you can take a course at a reduced cost?</p><ul><li>Want to start off with a complex programming language learning solid object oriented programming skills? Pick Java or C#.</li><li>Want to study the language used to design many of the front-end web based user interfaces? Pick JavaScript.</li><li>Are you into data analysis? Pick Python 3.</li><li>Are you going to be using Chef or TestKitchen to spin up Amazon Web Service Instances? That is what I am doing, which is why I selected Ruby for our automation framework. Does your company use Ruby on Rails to create your web application? That is another great reason to pick Ruby.</li></ul><p>Whatever language you pick, be confident that you will be learning good coding principles that will help you to create automation, and that you will be asked to learn a whole new programming language in three year’s time.</p><h3>STEP THREE: LEARN THE FUNDAMENTALS OF THE LANGUAGE</h3><p>Do you know the programming language enough to go to a whiteboard and sketch out an answer to a simple coding question such as <a href="https://www.tomdalling.com/blog/software-design/fizzbuzz-in-too-much-detail/">FizzBuzz</a> or <a href="https://www.dyclassroom.com/programming/how-to-reverse-a-string-and-check-palindrome">How To Tell If a String is a Palindrome</a>? These are the questions <a href="https://techbeacon.com/how-pass-coding-interview-automation-developer">that I kept getting asked</a>.</p><p>Know the language enough to:</p><ul><li>Determine if the contents of a variable is an Integer, String, Decimal, etc.</li><li>Find the first and last word in a string</li><li>See if a String contains a certain word</li><li>How to convert an integer into a String</li><li>Solve a problem by coming up with an algorithm</li></ul><p>This will not happen overnight, or even within a month or two. But by slowly and steadily working through a few classes, continuing to practice a bit every week, you will be comfortable facing the above tasks.</p><h3>STEP FOUR: PAIR THE LANGUAGE WITH AN AUTOMATION FRAMEWORK</h3><p>Now that you started learning how to code, you will find learning how to to write tests in an automation framework a lot easier. A common framework used today is Selenium WebDriver, which can be paired with a programming language such as Java, Python, C#, or JavaScript.</p><p>Whatever the language, you are sure to find a <a href="https://seleniumguidebook.com/">Selenium Guidebook</a> by Dave Haeffner that will walk you through, step-by-step, how to start writing an automation framework.</p><ul><li>Are you using Java? Check out Alan Richardson’s <a href="http://unow.be/at/webdriverapi">Selenium WebDriver with Java</a>course and all his resources he has on <a href="http://eviltester.com/">EvilTester.com</a>.</li><li>Are you using Ruby? Pair it with <a href="https://github.com/teamcapybara/capybara">Capybara</a> or <a href="http://watir.com/">Watir</a>.</li><li>Are you using JavaScript and Angular.JS? Try <a href="https://www.protractortest.org/">Protractor</a>: It takes the measure of Angular.</li><li>Using JavaScript? Try <a href="https://www.cypress.io/">Cypress.io</a>.</li><li>Using Python? Tinker with <a href="http://robotframework.org/">Robot Framework</a>.</li></ul><p>I am rather toolset and programming language agnostic. I don’t really think it matters what you build your automation framework with. It is more important to find out who is relying on the automation, and what metrics are important to them.</p><p>Using the programming language and the automation toolset, attempt to see if you can figure out how to write a simple test of sample sites such as:</p><ul><li>Dave Haeffner’s test site, <a href="http://the-internet.herokuapp.com/">The Internet</a>.</li><li><a href="http://todomvc.com/">ToDo MVC</a></li></ul><p>… But how can you display the sample automation framework you are developing?</p><h3>STEP FIVE: SHOW YOUR WORK!</h3><p>Sign up for an account at <a href="http://github.com/">GitHub</a>, a free open-source code repository. Proud of any projects you have created while going through this process? Upload them to GitHub, and stick the link to your GitHub account onto your resume, and future employers can evaluate your code samples.</p><h3>NEED MORE HELP?</h3><p>Need more help? You can <a href="https://techbeacon.com/contributors/thomas-maher">read other articles</a> I have written, review <a href="http://www.tjmaher.com/p/programming-projects.html">sample automation frameworks</a> I have put together, or follow and reach out to me on Twitter! I am <a href="https://twitter.com/tjmaher1">@tjmaher1</a>, and I practically live online.</p><p>Make sure to check out this month’s offerings at <a href="https://smartbear.com/academy/">SmartBear Academy</a> and SmartBear’s <a href="https://smartbear.com/resources/webinars/">many webinars</a>.</p><p>Looking for a networking group? I am the Meetup Organizer of the <a href="https://www.meetup.com/ministry-of-testing-boston/">Ministry of Testing — Boston</a>. We meet once or twice a month, with events held all over Cambridge and Boston, Massachusetts. Join today!</p><p>And thank you, SmartBear for being such a wonderful sponsor for the Ministry of Testing — Boston.</p><p><em>Originally posted April 9, 2018 on </em><a href="https://smartbear.com/blog/test-and-monitor/so-you-want-to-be-an-automation-developer/"><em>SmartBear’s Test and Monitor blog</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81730df4e324" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Pass A Coding Interview As An Automation Developer]]></title>
            <link>https://medium.com/@tjmaher1/how-to-pass-a-coding-interview-as-an-automation-developer-e19d1f75a0c4?source=rss-addc1d03035e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e19d1f75a0c4</guid>
            <dc:creator><![CDATA[T.J. Maher]]></dc:creator>
            <pubDate>Fri, 24 Mar 2017 14:02:01 GMT</pubDate>
            <atom:updated>2017-03-24T14:02:01.320Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*boA02s0WARIE9orfP7SEFQ.jpeg" /></figure><p>Are you an automation developer looking for a new position? Let’s simulate the experience of a coding interview:</p><ol><li>Open up a browser and Google the keyword “<a href="https://www.google.com/search?q=stopwatch">stopwatch</a>.”</li><li>Take out a blank piece of paper and a pen.</li><li>Press the “Start Button” on the stopwatch web app, then attempt to answer the following question:</li></ol><blockquote>“Using your favorite programming language: Write a method that checks to see if a given word is a palindrome. Example palindromes: ‘noon’ and ‘racecar’.”</blockquote><p>Ready? … GO!</p><p>Yes. Seriously. Attempt to answer the question. I’ll wait.</p><p>Try this exercise for at least a good 60 seconds, even if you think you can’t do it. Don’t give up!</p><p>… Time’s up! How well did you do?</p><p>If you had trouble with this question, if your paper is mostly or completely blank, if your forehead is covered in flop sweat, or if your first thought was, “Why are you forcing me to do this? I’m an automation developer, not a coder!” this article is for you.</p><h3>What is an automation developer?</h3><p>With “<a href="http://techbeacon.com/switching-careers-qa-manual-testing-automation-development?kui=XJR4N0fNOLy9aBepHsJo-A#_ts=1471813415258">Switching careers in QA: From manual testing to automation development</a>” and “<a href="http://techbeacon.com/first-days-automation-developer-take-my-advice-balancing-dev-qa">First days as an automation developer? Take my advice on balancing dev, QA</a>,” I covered a bit about automation, but let’s recap:</p><p>A software quality assurance engineer is an end-user advocate, crafting the software testing process so it ensures <em>quality</em> — meeting and exceeding the wants and needs of the stakeholders on the project.</p><p>One of a QA engineer’s responsibilities is software testing, validating whether the new features added to a web or mobile application meet the designated requirements and design specifications.</p><p>Types of testing performed include:</p><ul><li><strong>Manual testing</strong>: Exploring the product using the same tools the customers will use: a keyboard, a mouse, or fingers on a touch screen. (<em>The fun stuff.)</em></li><li><strong>Regression testing</strong>: After adding the new features, painstakingly checking that the entire application is still working as expected from the end user’s perspective. Testing a web app? What is the end-user experience in Chrome, Firefox, Internet Explorer 11, IE10, IE9, IE8, Microsoft Edge, and Safari on the Mac? <em>(The not-so-fun-stuff.)</em></li><li><strong>Automated testing</strong>: Writing code that checks to see if the expected behavior matches the actual behavior of the application. Essentially you want to automate the regression test suite. <em>(And back to the fun stuff!)</em></li></ul><p>Automating the testing process means that in a continuous integration/continuous delivery (CI/CD)<strong> </strong>environment, such as with Jenkins, tests can be run:</p><ul><li>Just before a release to production</li><li>As part of an hourly run regression test suite</li><li>Just before new code has been merged into the main codebase</li></ul><p>Automated testing <a href="https://en.wikipedia.org/wiki/IBM_Rational_Rose_XDE">isn’t a new concept</a> in the software industry. Giving automated testing tools away for free in order to make the world’s software better <a href="https://en.wikipedia.org/wiki/Framework_for_integrated_test">isn’t a new concept</a>. What <em>is</em> new is that <a href="http://www.seleniumhq.org/">Selenium WebDriver</a> — incubated by ThoughtWorks and fostered by Google — has made open-source solutions palatable even to the no-risk companies working solely with certified, off-the-shelf software tools.</p><p>Selenium WebDriver, coupled with CI/CD, created such a tidal wave of demand for coders that the phrase “manual testing” has been pretty much swept away from job requirements. In its place? <em>Automation development</em>.</p><p>An automation developer writes the automated tests and assembles an <em>automated test framework</em> to support execution and analysis of the tests, attempting to answer the following questions:</p><ul><li>What types of tests do we run? Do we focus on automating our browser regression test suite with Selenium WebDriver? Or do we automate the new functionality too?</li><li>If we use Selenium WebDriver to automate browser tests, do we pair it with Java, Python, C#, JavaScript, or Ruby? Which <a href="http://www.seleniumhq.org/download/">Selenium bindings</a> should we use?</li><li>Can we go one level deeper on Mike Cohn’s <a href="https://www.mountaingoatsoftware.com/blog/the-forgotten-layer-of-the-test-automation-pyramid">Testing Pyramid</a> and test the web services that provide the underlying functionality to the browser application, supplementing the developer’s unit and component tests?</li><li>What testing solutions are perfectly paired to the programming language of the app, such as <a href="http://www.protractortest.org/">Protractor</a> with <a href="https://angularjs.org/">AngularJS</a> apps?</li></ul><p>Because there is such high demand for automation developers, interviews for QA roles look slightly different than they did two years ago.</p><h3>What automated development interviews look like today</h3><p>When I found myself in my first interview after a two-year break, everything seemed to be going well … right up until I was asked to approach the whiteboard.</p><p>“Using your favorite programming language: Write a method that checks to see if a given word is a palindrome.”</p><p>… Er, what?</p><p>I thought I would be reviewing automated test code I had already written, not coding in real time.</p><p>Eh? Nothing about using Firefox, <a href="http://getfirebug.com/">Firebug</a>, and <a href="https://addons.mozilla.org/en-US/firefox/addon/firepath/">Firepath</a> to find the elements on a page? Or writing code in <a href="https://www.jetbrains.com/idea/">IntelliJ IDEA</a> or <a href="https://eclipse.org/">Eclipse</a> to spin up a browser, go to a login page, entering a username and password into a textbox, and clicking on a login button?</p><p>Oh dear. Oh, I was not ready for this. <em>Not even close</em>.</p><p>I might have been able to figure it out had it been a take-home test. But when it was just me, the whiteboard, a dry-erase marker, and two stone-faced software developers observing and judging me, my mind was turning into a complete and utter blank.</p><p>After getting through only half of the assigned problem, I joked with the interviewers:</p><ul><li><em>If only I had a laptop in front of me, loaded with IntelliJ!</em></li><li><em>If only I was coding an automated test</em>, <em>I would be doing a lot better</em>.</li></ul><p>Their response: All employees are expected to meet a certain minimum standard of coding knowledge, even for quality assurance positions.</p><p>And that, my friends, is how I started my new job search.</p><h3>Coding interviews: Not just for software engineers anymore</h3><p>When I was interviewing two years ago, only once did I come across a coding interview. This time around? Eight out of nine positions I for which I interviewed included it.</p><p>The coding interview strikes fear into the heart of even the most senior software developers, and much has been written about how to prepare for them and pass them:</p><ul><li>Gayle Laakmann McDowell’s book, <a href="https://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/0984782850"><em>Cracking the Coding Interview</em></a></li><li><a href="http://bit.ly/2br1pKm">“Get that Job at Google</a>”, Steve Yegge, <em>March 12, 2008</em></li><li><a href="https://www.facebook.com/notes/facebook-engineering/get-that-job-at-facebook/10150964382448920">“Get that Job at Facebook</a>”, Carlos Bueno, <em>July 20, 2012</em></li></ul><p>A lot of folks in the industry also think we should do away with them:</p><ul><li><a href="http://bit.ly/2bw731m">“Developer shortage, or time to rethink the coding interview</a>,” Mitch Pronschinske, <em>July 11, 2016</em></li></ul><p>Why are automation developers being screened as candidates in the same way as developers? The answer was a strange concept for me to grasp:</p><p>Because automation developers are now software developers.</p><p>The automation role has moved over the past few years from <em>testers who can code</em> to c<em>oders who can test, </em>leaving manual testers in the lurch.</p><p>The new philosophy is that the code for automated tests should have quality standards that match the standards for production code. If they don’t stick to the best practices of object-oriented programming, companies might end up with a testing framework that is hard to read, hard to understand, and hard to maintain. Techniques of <em>e</em>ncapsulation, inheritance, abstraction, and polymorphism will be harder to teach if automation developers don’t have basic fluency in a programming language.</p><p>With software developers now a major part of the interview process, they are screening automation developer candidates to make sure they have at least a basic understanding of the fundamentals of the language in which they will be coding.</p><p>And whiteboard coding tests are the best solution they can come up with.</p><p>Software developers don’t consider the questions they are asking automation developers to be difficult. They aren’t asking candidates to solve the <a href="http://bit.ly/2bCOdCH">Tower of Hanoi</a>, John Conway’s <a href="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">The Game of Life</a>, or a <a href="http://www.coderslexicon.com/a-beginner-tic-tac-toe-class-for-java/">tic-tac-toe</a> simulation or to shuffle a <a href="http://www-rohan.sdsu.edu/doc/javanotes5.0.1/c5/s4.html">deck of cards</a> or do any of the other projects they did as computer science majors. And they aren’t asking the really hard stuff, such as the math equations from <a href="https://www.amazon.com/Introduction-Algorithms-3rd-MIT-Press/dp/0262033844">CLRS’ <em>Introduction to Algorithms</em></a> or the Gang of Four’s <a href="https://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612"><em>Design Patterns: Elements of Reusable Object-Oriented Software</em></a>.</p><p>No, most of the coding examples they are asking for are very basic programming questions dealing with loops, some basic math, and some string and character manipulation.</p><h3>Why are coding interviews so difficult?</h3><h4>1. Whiteboard question topics may be outside your wheelhouse</h4><ul><li>Although I work daily with the <a href="http://techbeacon.com/top-java-tools">Java programming language</a>, it’s rare when I have to use a data structure more intense than a hashmap, and even that is rare.</li><li>The code I write revolves around Selenium WebDriver: I open a browser, go to a page, enter data into text boxes, select radio buttons, and pull text from the screen.</li><li>I do string comparison all the time, checking if the alert text on the screen is the same as what is expected, but I only use a few of the string object’s helper methods in my day-to-day job.</li></ul><h4>2. Whiteboards don’t have IntelliSense</h4><ul><li>If I need to use any of the helper methods in the <em>String</em>, <em>Character</em>, or <em>Integer</em> object, all I need to do is type a period after the word, and methods are on display. I can just experiment with them to see what they do.</li></ul><h4>3. Whiteboard tests don’t allow you to use outside sources</h4><ul><li>If I am stuck when writing a test, I review Alan Richardson’s course, <a href="http://compendiumdev.co.uk/page.php?title=seleniumwebdrivercourse">Selenium WebDriver with Java</a>, or Dave Haeffner’s <a href="http://elementalselenium.com/tips">Elemental Selenium</a> for inspiration. Or if I want some “automation awesomeness,” I listen to Joe Colantonio’s <a href="https://joecolantonio.com/testtalks/">Test Talks</a> podcast.</li><li>And if I am really stuck, there is always <a href="http://stackoverflow.com/search?q=webdriver">StackOverflow.com</a>.</li></ul><h4>4. Whiteboard interviews can feel isolating</h4><ul><li>When I am starting to write a test regarding functionality I am not familiar with, I love bouncing ideas off my teammates to make sure I’m not barking up the wrong tree. But during a job interview, I can’t bounce ideas off the interviewers. Or can I? I mistakenly assumed that I couldn’t.</li></ul><p>After that first whiteboard test, I came to a hard realization: After relying on all the tools and techniques I mentioned above, I didn’t have the basic Java fluency that I thought I did.</p><p>It was as if I were interviewing for a job that required fluency in Spanish and made the claim that I knew the language<em> </em>because I studied it in high school and college. If I was asked to write a few grammatically correct paragraphs on a whiteboard about a random topic, such as that morning’s breakfast, would I be able to do it without an English-to-Spanish dictionary or a phrasebook?</p><p>Imagine coding as a foreign language:</p><ul><li>As long as I limited the Java conversation to Selenium WebDriver, I’d be able to hold my own.</li><li>Take away IntelliJ and StackOverflow, my own personal English-to-Java dictionary and phrasebook, and if you put me on the spot, I couldn’t easily write the “paragraphs” of code my interviewers were looking for.</li></ul><p>The software developers think they are setting the bar quite low. They want automation developers who are fluent in the basic features of a programming language.</p><p>Unfortunately, all of my on-the-job training had not prepared me to answer the questions they were asking. How in the heck would I ever be prepared?</p><h3>How to prepare for whiteboard exercises</h3><p>To prepare for coding interviews, I’ve built up my fluency in Java using some of the tips below. You can take similar steps for any programming language:</p><h4>1. Take refresher courses</h4><p>Check to see if your local library or your college alma mater offers subscriptions to <a href="http://mooc.org/">free online</a> <a href="https://www.coursera.org/">programming classes</a>. <a href="http://bit.ly/2btYZwB">Members of the Boston Public Library</a> can get a free subscription to <a href="https://www.lynda.com/">Lynda.com</a>, the online education company. The <a href="http://thomascranelibrary.org/events/adult-ed">Thomas Crane Public Library</a> in Quincy, Massachusetts, has free subscriptions, too. I love David Gassner’s course on Lynda, <a href="https://www.lynda.com/Java-tutorials/Java-Essential-Training/377484-2.html">Java Essential Training</a>, which covers a good six hours of material.</p><h4>2. Follow learning trails</h4><p>Completely new to the Java language? Has it been a while since college?</p><p>Take a look at Oracle’s <a href="http://docs.oracle.com/javase/tutorial/index.html">Java Tutorials</a>: “The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into ‘<a href="http://docs.oracle.com/javase/tutorial/index.html">Learning trails</a>’.”</p><ul><li><a href="http://docs.oracle.com/javase/tutorial/getStarted/index.html">Getting Started</a> — “An introduction to Java technology and lessons on installing Java development software and using it to create a simple program.”</li><li><a href="http://docs.oracle.com/javase/tutorial/java/index.html">Learning the Java Language</a> — “Lessons describing the essential concepts and features of the Java Programming Language.”</li><li><a href="http://docs.oracle.com/javase/tutorial/essential/index.html">Essential Java Classes</a> — “Lessons on exceptions, basic input/output, concurrency, regular expressions, and the platform environment.”</li></ul><h4>3. Study the API documentation</h4><p>To become truly fluent in a foreign language, you must build up your vocabulary. Likewise, to become fluent in a programming language, you need to study the vocabulary listed in the Java API documentation.</p><p>If your main programming language is Java, take a look at <a href="https://docs.oracle.com/javase/8/docs/api/java">https://docs.oracle.com/javase/8/docs/api/java</a>, especially methods for the classes <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html">Integer</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html">String</a>, and <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Character.html">Character</a>. Here are samples:</p><p><strong>String</strong></p><p>Need to find the first character in a string? Use <em>charAt(0). </em>If a character or word is in the string? Use <em>contains</em>. Need a suffix? Try <em>endsWith. C</em>heck if two strings are the same with <em>equals</em> and <em>equalsIgnoreCase</em>. You can see if a string <em>isEmpty()</em>, or use <em>length() </em>to see how many characters are in the string. You can convert the string <em>toCharArray()</em>, <em>toUpperCase()</em>, <em>toLowerCase()</em>, or even <em>trim()</em> the whitespace in the beginning and the end of the string. Remember that double quotes should wrap a string.</p><p><strong>Character</strong></p><p>The boolean methods <em>isLetter</em>, <em>isLetterOrDigit</em>, <em>isLowerCase</em>, <em>isUpperCase</em>, <em>isLowerCase</em>, and <em>isWhitespace</em> help investigate the nature of characters. Example: <em>Character.isLetter(‘A’)</em> would be true. When declaring new characters, wrap them in single quotes, such as <em>char newCharacter = ‘a’.</em></p><p><strong>Integer</strong></p><p>Want to convert an integer? Input the integer into Integer.toBinaryString(int i), Integer.toHexString(int i), or Integer.toOctalString(int i) to convert it to the format you are looking for.</p><p>If you were trying out a new vocabulary word, you would try it out in a sentence. When using a new method in one of the Helper objects, try it out in a block of code.</p><h4>4. Ditch the IDE: Practice on paper</h4><p>There is one weird trick to learning a programming language: <em>Practice writing solutions down on paper</em>.</p><p>Read the documentation and lessons. Make up simple homework examples and solve them on paper. For example, you could ask yourself how to use a <em>for</em> loop to print out:</p><ul><li>All integers from 1 to 100 (start with something easy)</li><li>All even numbers ( i % 2 == 0) within that range of 1 to 100 {1 … 100} (hard if you don’t know the mod operator)</li><li>All odd numbers. ( i %2 != 0) (build on what you just practiced)</li><li>All numbers divisible by three ( i % 3 == 0) (once more unto the breach, dear friends!)</li><li>All numbers divisible by three and five ( i % 3 == 0 &amp;&amp; i % 5 == 0 ) (and one more time to cement it in your brain!)</li></ul><p>Congratulations! You are on your way to programming better than what <a href="https://blog.codinghorror.com/">The Coding Horror</a> observed in the 2007 blog post “<a href="https://blog.codinghorror.com/why-cant-programmers-program/">Why Can’t Programmers … Program?</a>”</p><p>How about some string manipulation?</p><ul><li>Write a public method that takes in a <em>string </em><strong><em>s</em></strong> and returns the length as an integer <em>s.length</em>.</li><li>Write a public<em> </em>method that takes in <em>string </em><strong><em>s</em></strong> and returns the first character <em>s.charAt(0)</em>.</li><li>Write a public method that takes in <em>string </em><strong><em>s</em> </strong>and returns the last character <em>s.charAt(s.length — 1)</em>.</li></ul><p>How did you do? If you solved those problems, you are closer than I was the first time around trying to solve the palindrome problem!</p><p>Remember:</p><ul><li>Practice making your handwriting legible.</li><li>Make sure to use matching open and close curly braces and parentheses.</li><li>Try to come up with tests for your code. What happens if you feed different strings into your method that find the first character or last character if it is an empty string? Does it work if there is one character in the string? Twenty characters? Fifty?</li></ul><p>Most important, watch out for <a href="https://en.wikipedia.org/wiki/Off-by-one_error">off-by-one</a> errors:</p><ul><li>When counting through characters in a string or the first index of an array, if there are <em>n</em> numbers, it goes from 0 to <em>n — 1</em>. This means the very first letter is ( 0 ), and the last one is (length — 1).</li><li>The <em>for</em> loop <em>(for i = 0; i &lt; 5; i++)</em> will count 0, 1, 2, 3, and 4, but will not go to 5. That “5” is where the loop will terminate. If you were outputting this to the screen, you would see 0, 1, 2, 3, and 4. Make it<em> i &lt;= 5</em> to print the ‘5’ too.</li></ul><p>Before we walk through a solution to a coding problem, you might wonder…</p><h3>What is the code interviewer looking for anyway?</h3><p>Here’s what I hadn’t realized when I went on that first coding interview. The two stone-faced developers observing me having a brain freeze and getting flustered in front of the whiteboard weren’t just silently watching. They were <em>waiting</em>.</p><blockquote>“Using your favorite programming language: Write a method that checks to see if a given word is a palindrome. Example palindromes: ‘noon’ and ‘racecar’.”</blockquote><p>When they instructed me to write a method to find if a given string is a palindrome, they were waiting for me to:</p><h4>1. Define the problem:</h4><ul><li>Ask: “What do you mean by the word ‘palindrome’?”</li><li><em>Do candidates immediately jump into the code, possibly not realizing that the specs are unclear, or do they take a step back, examine the problem and gather the requirements?</em></li></ul><p>“We are looking for a string and its reverse to match exactly, character by character.”</p><p>“Your solution should be case sensitive. An uppercase ‘R’ should not match a lowercase ‘r’. “</p><h4>2. Start with initial test cases:</h4><ul><li>Ask: “The words ‘racecar’ and ‘noon’ are considered palindromes in this exercise. How about, ‘A man, a plan, a canal: Panama’ or ‘Madam, I’m Adam’? How about a blank string? Or a string with one letter?”</li><li><em>Do candidates come up with enough edge cases to test their code? How thorough are they?</em></li></ul><blockquote>“Blank strings and strings consisting of one letter (and one character) are all palindromes. ‘Madam, I’m Adam’, for the sake of this exercise, is not.”</blockquote><p>Make sure to ask what is and is not a palindrome!</p><p>Note: If your interviewers come up with different requirements, your test cases and code should reflect them.</p><h4>3. Walk the interviewer through an algorithm before you code</h4><p><em>Does the candidate sketch out the problem, talking out loud so the interviewer can get a sense of the candidate’s thoughts on solving the problem?</em></p><p>How do you find if a string is a palindrome?</p><p>Take, for example, the string s = “noon”.</p><p>We can use the helper method in Java’s <em>String</em> object, <em>charAt(int i). </em>Enter the index of the string into the method, and it outputs the character at that index:</p><p>s.charAt(0) == &#39;n&#39;<br>s.charAt(1) == &#39;o&#39;<br>s.charAt(2) == &#39;o&#39;<br>s.charAt(3) == &#39;n&#39;</p><p>To find the length of the string, we can use the method <em>length()</em>.</p><p>s.length == 4</p><p>To find the last character, we could use:</p><p>int len = s.length<br>s.charAt(len - 1)</p><p>We started the count at “0”, so the last character would be the length minus 1.</p><p>Let’s call the first character the “head” and the last character the “tail.”</p><ul><li>If the first character s.charAt(head)<strong> </strong>is not equal to s.charAt(tail) then it is not a palindrome. Return FALSE.</li><li>If the first character s.charAt(head) is<strong> </strong>equal to s.charAt(tail) we start evaluating the next set of characters, moving the “head” up by one, and the “tail” down by one.</li></ul><p>Let’s go through this evaluation process, looping through characters while the “head” is smaller than the “tail.”</p><p>Everything fine? In the end, return TRUE.</p><h4>4. After reviewing your algorithm with the interviewer, now you can code</h4><p>public boolean isPalindrome(String s) {<br> int head = 0;<br> int tail = s.length() - 1;<br> while (head &lt; tail) {<br> if (s.charAt(head) != s.charAt(tail)) {<br> return false;<br> }<br> head++;<br> tail--;<br> }<br> return true;<br>}</p><h4>5. Debug and test your code</h4><ul><li>Take your initial test cases and try to imagine what would happen if you ran them. Personally, I like rewriting the tests in a JUnit format — as <a href="https://github.com/junit-team/junit4/wiki/Assertions">Assert</a> statements — but this is not required.</li><li>Interviewers are checking to see how thorough you are when debugging. (<em>Can candidates spot errors in your their own code without the interviewer giving many hints?</em>)</li><li>And yes, interviewers will give hints, if the candidate has done well so far. (<em>If we give the candidates hints, will they pick up on them? Can they listen to other people’s opinions that may be different from theirs? Can they work with people who may be more senior than them? </em>)</li></ul><p>@Test<br> Assert.assertTrue(&quot;noon&quot;);<br> Assert.assertTrue(&quot;racecar&quot;);<br> Assert.assertTrue(&quot;&quot;);<br> Assert.assertTrue(&quot;i&quot;);<br> Assert.assertTrue(&quot;4004&quot;);<br> Assert.assertTrue(&quot;$noon$&quot;);<br> Assert.assertFalse(&quot;Noon&quot;);<br> Assert.assertFalse(&quot;word&quot;);<br> Assert.assertFalse(&quot;alpha&quot;);</p><h4>6. Extra points: Gather feedback and revise your code</h4><p>When I showed my palindrome solution to my friend Joon, who is a senior developer, he grimaced: “Why are you using English words like, ‘head’ or ‘tail’? And a ‘while’ loop? Isn’t a ‘for’ loop enough? Rewrite the code to do away with that.”</p><p>public boolean isPalindrome(String s) {<br> int len = s.length;<br> for (int i = 0; i &lt; len / 2; i++) {<br> if ( s.charAt(i) != s.charAt(len - 1 - i)) {<br> return false;<br> }<br> }<br> return true;<br>}</p><p>Joon smiled: “See! You just did the same thing as your first example, but there is less code. That is a good solution”<em>.</em></p><h3>Where to go from here</h3><p>Gaining basic fluency in a programming language and being able to demonstrate it will not happen overnight, but it can happen. Here’s how to proceed:</p><ul><li>Find basic coding problems on the web.</li><li>Attempt to solve them with a pen and paper.</li><li>If you can’t solve them, look at the official documentation of the programming language and see which built-in language methods will help you out.</li><li>Come up with your own solution first before seeking out a better solution elsewhere. If you do your own research and investigation, chances are the information will stick in your mind permanently.</li><li>Don’t do cram sessions. That merely storse the information in your short-term memory.</li><li>Practice a little bit at a time — maybe 15 minutes a day. You want this information to move to long-term memory, so you can recall information even during extreme interview stress.</li><li>Don’t go through all this effort just to pass a whiteboard test. Aim higher! Make your goal to be a better programmer.</li></ul><h4>Getting practice</h4><p>Finally there are many sites out there where you can practice taking coding tests, including these two:</p><ul><li><a href="http://https//leetcode.com/problemset/algorithms/">Leet Code</a>: Go for the easy (and free) questions.</li><li><a href="http://www.programcreek.com/2012/11/top-10-algorithms-for-coding-interview/">Top ten algorithms for coding interviews</a></li></ul><p>Feel free to share your favorite coding question sites — and the crazy interview questions you’ve fielded — in the comments below.</p><p>Good luck, and happy coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e19d1f75a0c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Day As an Automation Developer? Find the Right Balance Between DEV and QA!]]></title>
            <link>https://medium.com/@tjmaher1/first-day-as-an-automation-developer-find-the-right-balance-between-dev-and-qa-44e9842767a6?source=rss-addc1d03035e------2</link>
            <guid isPermaLink="false">https://medium.com/p/44e9842767a6</guid>
            <dc:creator><![CDATA[T.J. Maher]]></dc:creator>
            <pubDate>Thu, 23 Mar 2017 14:02:00 GMT</pubDate>
            <atom:updated>2017-03-23T14:02:00.919Z</atom:updated>
            <content:encoded><![CDATA[<p>Congratulations on your new role as an automation developer. Being an automation developer is tricky, since it’s a bit of a hybrid position. You will need to learn both software development and <a href="http://techbeacon.com/6-new-careers-paths-ideas-software-qa-testers-professionals">software quality assurance</a> — dual skill sets that may at first seem to be at odds with each other. With enough practice, though, you will find that they compliment each other, working in harmony.</p><h3>What automation developers do, essentially</h3><p>Allow me to sidestep the advice for a minute, and describe for those who don’t know what an automation developer does. The basic goal is to simulate a user navigating through a web application. Filling out a form. Selecting links. Clicking buttons. Open-source tools such as Selenium WebDriver — paired with Java, JavaScript, Python, or Ruby code — can simulate a customer navigating through the web app. This means that you can now take the Quality Assurance department’s regression test suite, figure out which tests would be most valuable to the development team, and automate them. If you add other free Continuous Integration (CI) tools such as Jenkins you can set up multiple automated regression test suites.</p><p>Imagine a small subset of automated tests, used as a sanity check, run before users merge their code into the master codebase, just to make sure their new code doesn’t break anything in the application. Imagine if the regression test suite could automatically run against a release candidate just before it is pushed to production. That is automated testing. And to create the tests, you need automation developers.</p><p><a href="http://techbeacon.com/world-quality-report-2015-2016-download">Get 80-Page Report</a><strong>2016 World Quality Report — Latest trends in QA &amp; testing</strong></p><p>As I mentioned in my earlier TechBeacon article, “<a href="http://techbeacon.com/switching-careers-qa-manual-testing-automation-development">Switching careers in QA: From manual testing to automation development</a>” <em>the relationship between development and QA shouldn’t be the same as the relationship between an artist and an art critic. </em>It should be more like the relationship between a writer and a copy editor, both applying their specialized skill sets to make a quality product. Your skill in one field will make you better in the other.</p><h3>Are you new to QA?</h3><p>If you are a software developer who is new to quality assurance, you will need to develop a whole new mindset, that of the software quality assurance engineer.</p><p>A QA engineer’s job is to focus on <em>quality, </em>to meet or exceed the needs and expectations of the major stakeholders. Does the product meet your customer’s needs? Is the product usable? Is it intuitive? Would it work with all the different browsers, platforms, and mobile devices your customers require? Are the product requirements clearly understood and explicitly implemented in the product? Can your team meet the expected release date? Have you put the product through its paces enough, discovering most of the critical bugs? Have you traversed the product through pathways major and minor, using the product as you’d expect the customer to use it? Have you performed exploratory testing to figure out how a customer could potentially misuse it? Identified both positive and negative tests?</p><p>To get into the QA mindset, picture all the ways a login page can be tested:</p><ul><li>What happens if you enter a valid username and password and then select the Login button? Does it log you into the system with the correct user type (admin, superuser, user), displaying the correct landing page?</li><li>What happens if you enter an invalid username and password? Does the error message show up in red underneath the Login button, assuming that is how it was designed?</li><li>Is the username supposed to be an email address? If so, what happens if you leave out the @, or .com, .net, .edu, .uk, .io, etc.? Does it clue the user regarding the correct format?</li><li>Do the username and password text boxes allow enough characters to be entered?</li><li>What happens if you log in and the server is down? Do you inform the user, handling the error gracefully, or is there a white page with “Error 404”?</li></ul><p>Further reading for QA folks:</p><ul><li>Although being ISTQB-certified isn’t part of any job requirement for QA engineers here in the United States, I have enjoyed reading International Software Testing Qualifications Board certification prep sites such as “<a href="http://bit.ly/1sKmAPu">What is Software Testing?</a>”</li><li><a href="https://www.amazon.com/Agile-Testing-Practical-Addison-Wesley-Signature-ebook/dp/B001QL5N4K">Agile Testing: A Practical Guide for Testers and Agile Teams</a>, by Lisa Crispin and Janet Gregory, is a great read!</li></ul><h3>Are you new to development?</h3><p>Whether you are going to be using using Java or Python to write browser tests in Selenium WebDriver, software development is going to be like learning how to write in a foreign tongue. Nobody will expect you to submit a research paper on your first day, but you will soon have to figure out how to write a few “paragraphs” in the new language.</p><p>You may feel overwhelmed, flooded with technical information that may be difficult to put into context. You may feel insecure because you are new to coding. The important thing is to relax and keep your mind receptive. Understand that with technology moving at such a fast pace — with new open-source technologies unheard of just a few years ago becoming the new standard — everyone feels overwhelmed at times, even senior developers. Take good notes, and spend some time after-hours practicing what you are learning.</p><p>A few books on automated testing:</p><ul><li><a href="http://bit.ly/1XOrlTV">Java for Testers</a>, by Alan Richardson, creator of the online course, <a href="http://compendiumdev.co.uk/page.php?title=seleniumwebdrivercourse">Selenium WebDriver with Java</a></li><li><a href="https://seleniumguidebook.com/">The Selenium Guidebook</a>, by Dave Haeffner, author of the blog, <a href="http://bit.ly/1t6cOIc">Elemental Selenium</a></li></ul><p>A few books that helped me get in the mindset of a coder, giving me exposure to good software design principles (check to see if any developers at your company can let you borrow them):</p><ul><li><a href="http://amzn.to/1Zc7hty">Refactoring: Improving the Design of Existing Code</a> (1999), by Martin Fowler</li><li><a href="http://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X">The Pragmatic Programmer: From Journeyman to Master</a> (1999), by Andrew Hunt and David Thomas</li><li><a href="http://amzn.to/20Sv9Tz">Agile Software Development, Principles, Patterns, and Practices</a> (2002), by Robert “Uncle Bob” C. Martin</li><li><a href="http://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882">Clean Code: A Handbook of Agile Software Craftsmanship</a> (2008), by Robert “Uncle Bob” C. Martin</li></ul><h3>Networking is everything</h3><p>The period when you are new is the best time to network with your co-workers. How did other automation developers learn their craft? Did they take online classes? What books or blogs do they read to stay current? Remember: With outside learning, it’s important to stay focused. It’s easy to fall down the rabbit hole learning a new technology that your department doesn’t use or new skills you will never put into practice.</p><p>Make sure to network just with your fellow automation developers, but also with the senior software engineers who built the application you are testing. Learn from them which best practices they use in coding.</p><p><em>Originally published in </em><a href="https://techbeacon.com/first-days-automation-developer-take-my-advice-balancing-dev-qa"><em>TechBeacon</em></a><em>.</em></p><p><em>Thomas F. Maher, Jr (“T.J.”) has been a Software Quality Assurance Engineer since 1996, and has been blogging about automation development with </em><a href="http://www.tjmaher.com/"><em>Adventures in Automation</em></a><em> for the past two years.</em></p><p><em>T.J. is a co-organizer of the new </em><a href="https://www.meetup.com/ministry-of-testing-boston"><em>Ministry of Testing — Boston Meetup</em></a><em>. Say hello to him on Twitter ( </em><a href="https://twitter.com/tjmaher1"><em>@tjmaher1</em></a><em> ) if your company wishes to sponsor a Boston area Meetup event.</em></p><p><em>Please also hit the💚 below so other people will see this article here on Medium.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44e9842767a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Do You Know What Your Automated Test Is Doing?]]></title>
            <link>https://medium.com/@tjmaher1/how-do-you-know-what-your-automated-test-is-doing-2e2c14e96ce6?source=rss-addc1d03035e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e2c14e96ce6</guid>
            <dc:creator><![CDATA[T.J. Maher]]></dc:creator>
            <pubDate>Wed, 22 Mar 2017 14:02:01 GMT</pubDate>
            <atom:updated>2017-03-22T14:02:01.449Z</atom:updated>
            <content:encoded><![CDATA[<p>When it comes to automated tests for your software application, what is more important?</p><ul><li>Knowing that a test passed or failed</li><li>Knowing <em>how</em> a test passed or failed</li></ul><p>Without adequate reporting, you will never be able to tell what is being tested, how it is being tested, and whether the test is being thorough enough.</p><p>When I was a manual tester, I <em>always</em> made sure to write up a test case.</p><ul><li><strong>Summary Heading</strong> : What I am hoping the test is going to accomplish</li><li><strong>Steps to Reproduce</strong>: A bullet pointed list of the specific parameters I am using to test the application, and where I am entering them.</li><li><strong>Results</strong>: What did I expect the results to be? What were the actual results? Did it (PASS) or (FAIL)?</li></ul><p>The Steps to Reproduce were quite important. When investigating the possible failure, they might pass with a similar set of parameters, but only fail with the exact parameters you used.</p><p>Or, the problem might be between the keyboard and the chair: The results might be correct, but my assumptions about how the product is supposed to work is not.</p><p>Or the test might only skim the surface of the application, and it does not go deep enough to reach a trouble spot.</p><p>Or the test might be mistakenly listing completely invalid data as being perfectly valid.</p><p>… Without an audit trail, you can never truly be sure.</p><p>I carried these habits into my new role as an automation developer.</p><ul><li>When my Selenium WebDriver test opens a web application, logs into the system, selects a link, enters text into a textbox, chooses a radio button or an item from a dropdown listbox, or clicks a button, I keep a record of it.</li><li>When there is a unique ID such as an Order ID or a Confirmation Number, I keep a record of it.</li><li>When my test goes to a unique page like the Order Summary Page for an order, a manual tester can use to go to the exact page than has the error, I keep a record of the url.</li></ul><p>That recording of the results can then can be archived by name and a date/ timestamp, printed out in the Jenkins log files, or into an application such as TestRail, storing what passed, what failed, and how the tests were performed.</p><p>Take a look at the following test. Without knowing anything about the application, you can see exactly how the test was performed.</p><p><strong>Verify Customer Service can process a Full Refund for ARIA | US-NON-TAX | Free Shipping</strong></p><pre>[ LOGIN: Going to the Commerce Admin Tool (CAT) Login page.  <br>   ,   <br>   , LOGIN: Entering Username.  <br>   , LOGIN: Enter Password.  <br>   , LOGIN: SUCCESS!  <br>   ,   <br>   , Navigating to the Service Home page...  <br>   ,   <br>   , SERVICE_HOME: Creating an Order:  <br>   ,      * Order Type: Standard Order  <br>   ,      * Clicking the &#39;SELECT_STORE_CONTAINER&#39;.  <br>   ,      * Entering into the textbox: &#39;United States&#39;  <br>   ,      * Selecting ProductFamily: &#39;Aria&#39;  <br>   ,      * Selecting SKU Dropdown: &#39;Aria (White)&#39;  <br>   ,      * Selecting [CREATE ORDER] button.  <br>   , SERVICE_HOME: Checking for errors...  <br>   , SERVICE_HOME: ... Errors Found: NONE.  <br>   , SERVICE_HOME: Proceeding to the Edit Order page.  <br>   ,   <br>   , EDIT_ORDER: Edit Order QA1-ABCD1234  <br>   ,   <br>   , EDIT_ORDER: Getting appropriate shipping levels for UNITED_STATES.  <br>   , EDIT_ORDER: Selecting Shipping Level radio button: Free  <br>   , EDIT_ORDER: Shipping and Billing Address are same. Entering Billing Address.  <br>   ,      * Country: United States  <br>   ,      * Name: Stripe70731 Test  <br>   ,      * Address1: 2445 E Old Penitentiary Rd  <br>   ,      * Address2:   <br>   ,      * City: Boise  <br>   ,      * PostalCode: 83712  <br>   ,   <br>   , EDIT_ORDER: The following credit card details were entered:   <br>   ,      * Credit Card Number: 5555555555554444  <br>   ,      * Expiration Month: 02  <br>   ,      * Expiration Year: 2018  <br>   ,      * CSC: 123  <br>   ,   <br>   , EDIT_ORDER: Entering Contact Info:  <br>   ,      * EMAIL: *** EMAIL ****  <br>   ,      * Phone: 6175555555  <br>   , EDIT_ORDER: Selecting REVIEW_BUTTON.  <br>   , EDIT_ORDER: Checking for page errors.  <br>   , EDIT_ORDER: Proceeding to the ORDER_CONFIRM_CHANGES page.  <br>   ,   <br>   ,   <br>   , ORDER_CONFIRM_CHANGES: Selecting [CONFIRM CHANGES] button.  <br>   , ORDER_CONFIRM_CHANGES: Verifying 404, 503 and other errors do not appear.  <br>   , EDIT_ORDER: Checking for highlighted errors on the top of EDIT_ORDER.  <br>   ,   <br>   ,   <br>   , Proceeding to SUMMARY_PAGE:   <br>   , *** SAMPLE LINK TO ORDER ***  <br>   ,   <br>   , SUMMARY_PAGE: Closing Flag: PendingFraudCheck  <br>   , SUMMARY_PAGE: Closing Flag: FailedFraudCheck  <br>   , SUMMARY_PAGE: Selecting [CHARGE_AND_FULFILL] button.   <br>   ,      * Acquiring the ORDER_ID.  <br>   ,      * ORDER_ID: *** ORDER ID ***  <br>   ,   <br>   , REFUND_ACTION: Attempting to Capture Payments to Process Refunds:  <br>   ,      * Update RefundID: *** SQL CODE used to get Charge IDs ***  <br>   ,      * Update CaptureID: *** SQL CODE to Capture a Charge ***  <br>   ,      * Update FulfillmentStatus: *** SQL CODE to Fulfill an Order ***  <br>   ,      * Update PaymentCapture: *** MORE SQL Code so manual testers can check results ***  <br>   , REFUND_ACTION: Processing CAPTURE_STATUS.  <br>   ,   <br>   , SUMMARY_PAGE: Refreshing the page.  <br>   ,      * Acquiring the ORDER_ID.  <br>   ,      * ORDER_ID: *** ORDER ID ***  <br>   , SUMMARY_PAGE: Selecting [REFUND_SELECTED_ITEMS] button.  <br>   ,   <br>   , REFUND: SELECTED_ITEMS: Page Header: Refund Information  <br>   , REFUND: SELECTED_ITEMS: Appearance of Page Elements are not currently being verified.  <br>   , REFUND_ACTION: Selecting Unit Price Refunding Rate: 100.00  <br>   , REFUND: SELECTED_ITEMS: UNIT_PRICE_REFUNDING_RATE: 100.00  <br>   , REFUND_ACTION: Charging a Restocking Fee: false  <br>   , REFUND_ACTION: Refunding Shipping: false  <br>   , REFUND: SELECTED_ITEMS: Message entered into REASON_FOR_REFUND textbox:   <br>   ,      * Message: This is a sample message  <br>   , REFUND: SELECTED_ITEMS: Selecting CONTINUE_TO_REVIEW button.  <br>   ,   <br>   , REFUND: SELECTED_ITEMS: Page Header: Refund Information  <br>   , REFUND_REVIEW: Selecting [CONFIRM REFUND] button.  <br>   ,   <br>   , REFUND_CONFIRM: Page Header: Refund Confirmed!  <br>   , REFUND_CONFIRM: Selecting BACK_TO_ORDER_SUMMARY button.  <br>   ,   <br>   , SUMMARY_PAGE: Refunded Amounts: [-129.95]  <br>   , SUMMARY_PAGE: Verify the amount refunded matches the refund listed on the page  <br>   ,      * Expected Value: 129.95  <br>   ,      * Actual Value: 129.95  <br>   ,      * The Expected and Actual Values match. (PASS)  <br>   ,   <br>   ]</pre><p>What if the audit trail was not there? If it passed, would you know if it truly passed? If it failed, would you know what exactly failed?</p><p>With an audit trail such as this, you know <em>exactly</em> what your automated test is doing!</p><p><em>Thomas F. Maher, Jr (“T.J.”) has been a Software Quality Assurance Engineer since 1996, and has been blogging about automation development with </em><a href="http://www.tjmaher.com/"><em>Adventures in Automation</em></a><em> for the past two years.</em></p><p><em>T.J. is a co-organizer of the new </em><a href="https://www.meetup.com/ministry-of-testing-boston"><em>Ministry of Testing — Boston Meetup</em></a><em>. Say hello to him on Twitter ( </em><a href="https://twitter.com/tjmaher1"><em>@tjmaher1</em></a><em> ) if your company wishes to sponsor a Boston area Meetup event.</em></p><p><em>Please also hit the💚 below so other people will see this article here on Medium.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e2c14e96ce6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Page Objects and Design Patterns in Selenium WebDriver]]></title>
            <link>https://medium.com/@tjmaher1/introduction-to-page-objects-and-design-patterns-in-selenium-webdriver-3a610f86c7d1?source=rss-addc1d03035e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a610f86c7d1</guid>
            <dc:creator><![CDATA[T.J. Maher]]></dc:creator>
            <pubDate>Tue, 21 Mar 2017 14:02:01 GMT</pubDate>
            <atom:updated>2017-03-21T14:02:01.792Z</atom:updated>
            <content:encoded><![CDATA[<p>When writing automation scripts, object-oriented design patterns — templates on how to structure the classes and objects created in Python or Java — can be quite useful. One of the first design patterns automation engineers encounter are <a href="https://code.google.com/p/selenium/wiki/PageObjects">Page Objects</a>, but there are others. Before introducing the talk, here’s a quick history lesson on Patterns.</p><h3>Pattern Languages in Object-Oriented Programming</h3><p>As part of the Association for Computing Machinery (ACM), a new group called OOPSLA (Object-Oriented Programming, Systems, Languages &amp; Applications) was formed to address the concept of object-oriented programming which was becoming the dominant programming methodology.</p><p>At OOPSLA ’87, the group’s second conference, Kent Beck — the future originator of “<a href="http://software2012team23.googlecode.com/git-history/5127389d21813c2bd955c53999f66cede994578b/docs/literature/Extreme_Programming_Explained_Kent_Beck_1999.pdf">Extreme Programming</a>”, the precursor to Agile — presented a talk that took the concept of architectural design patterns detailed in <em>A Pattern Language: Towns, Buildings, Construction (1977)</em> and applied them to software engineering.</p><blockquote><em>“The search for an appropriate methodology for object-oriented programming has seen the usual rehash of tired old ideas, but the fact is that OOP is so different that no mere force-fit of structured analysis or entity-relationship methods will provide access to the potential inherent in OOP. In particular, neither of these methods address the user interface design issues that have obviously become of paramount importance. In addition, while E-R seems to be “object-oriented” it is not suited to the dynamic nature of objects as in Smalltalk and encourages the use of a global perspective while designing, a sure lose in object-oriented programming.</em></blockquote><blockquote><em>“We propose a radical shift in the burden of design and implementation, using concepts adapted from the work of Christopher Alexander, an architect and founder of the Center for Environmental Structures. Alexander proposes homes and offices be designed and built by their eventual occupants. These people, he reasons, know best their requirements for a particular structure. We agree, and make the same argument for computer programs. Computer users should write their own programs. The idea sounds foolish when one considers the size and complexity of both buildings and programs, and the years of training for the design professions. Yet Alexander offers a convincing scenario. It revolves around a concept called a ‘pattern language.’ “ (</em><a href="http://c2.com/doc/oopsla87.html">Abstract of Using Pattern Languages for Object-Oriented Programs</a>, 9/17/1987<em> )</em></blockquote><p><strong>Related Links:</strong></p><ul><li><strong>Oracle’s Java Tutorials</strong>: Object-Oriented Programming Concepts: <a href="http://docs.oracle.com/javase/tutorial/java/concepts/">http://docs.oracle.com/javase/tutorial/java/concepts/</a></li><li><strong>Association for Computing Machinery</strong>: <a href="https://www.acm.org/">https://www.acm.org/</a></li><li><strong>OOPSALA History</strong>: <a href="http://www.oopsla.org/oopsla-history/">http://www.oopsla.org/oopsla-history/</a></li></ul><h3>Design Patterns: Elements of Reusable Object-Oriented Software</h3><p>A few years later, at OOPSLA ’91, at a session called “Towards an Architecture Handbook”, Kent Beck and his partner in developing the “Extreme Programming” concept, Ward Cunningham, re-introduced to the attendees the concept of patterns. Four of the attendees, Eric Gamma and Richard Helm, Ralph Johnson and John Vlissides found they had common research, and grouped up to write a book, <em>Design Patterns: Elements of Reusable Object-Oriented Software</em> (1994). Listing everyone’s name was difficult, so they were dubbed, “The Gang of Four”.</p><p>The book became quite popular, and is still referred to over twenty years later.</p><blockquote><em>“The first two chapters are an introduction and explain the reasons of the existence of design patterns, how they should be used, good and bad practices… Design patterns without rules to apply them are useless (as the original architectural patterns are useless without drawings skills). A practical example is the object of the second chapter.</em></blockquote><blockquote><em>“Design patterns are exposed in a three parts catalog. Each pattern each described by a complete explanation, an UML diagram, the interactions between the pattern elements, as well as some implementation solutions (all solutions cannot be written, as it is language-dependent)” — </em>From <a href="http://matt.eifelle.com/2009/04/14/book-review-design-patterns-elements-of-reusable-object-oriented-software/">Matt Eifelle’s Book Review</a>.</blockquote><p><strong>Related Links:</strong></p><ul><li>The <a href="http://c2.com/cgi/wiki">ContentCreationWiki</a> discusses in a very loose and informal conversational style <a href="http://c2.com/cgi/wiki?SoftwareDevelopment">SoftwareDevelopment</a> of the late 1980s and mid-1990s.</li><li>The wiki also talks about the <a href="http://c2.com/cgi/wiki?HistoryOfPatterns">HistoryOfPatterns</a>, <a href="http://c2.com/cgi/wiki?KentBeck">KentBeck</a>, <a href="http://c2.com/cgi/wiki?WardAndKent">WardAndKent</a>, the <a href="http://c2.com/cgi/wiki?ArchitectureHandbookWorkshop">ArchitectureHandBookWorkshop</a>, the <a href="http://c2.com/cgi/wiki?GangOfFour">GangOfFour</a>, their <a href="http://c2.com/cgi/wiki?DesignPatternsBook">DesignPatternsBook</a>, and the inevitable <a href="http://c2.com/cgi/wiki?PatternBacklash">PatternBacklash</a>.</li><li>Interesting sections on <a href="http://c2.com/cgi/wiki?ObjectOriented">ObjectOriented</a> programming, <a href="http://c2.com/cgi/wiki?ObjectOrientedForDummies">ObjectOrientedForDummies</a>, <a href="http://c2.com/cgi/wiki?EncapsulationForDummies">EncapsulationForDummies</a> can also be found on the wiki.</li><li><strong>Design Patterns: Elements of Reusable Object-Oriented Software</strong> on <a href="http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612/">Amazon.com</a></li><li><strong>Design Patterns: Elements of Reusable Object-Oriented Software</strong> in <a href="http://www.uml.org.cn/c++/pdf/DesignPatterns.pdf">PDF Format</a></li></ul><h3>The Page Object Design Pattern</h3><p><em>Taken from SeleniumHQ: Test Design Considerations:</em></p><blockquote><em>“Page Object is a Design Pattern which has become popular in test automation for enhancing test maintenance and reducing code duplication. A page object is an object-oriented class that serves as an interface to a page of your AUT. The tests then use the methods of this page object class whenever they need to interact with that page of the UI. The benefit is that if the UI changes for the page, the tests themselves don’t need to change, only the code within the page object needs to change. Subsequently all changes to support that new UI are located in one place.</em></blockquote><blockquote><em>“The Page Object Design Pattern provides the following advantages.</em></blockquote><blockquote><em>“1. There is clean separation between test code and page specific code such as locators (or their use if you’re using a UI map) and layout.</em></blockquote><blockquote><em>“2. There is single repository for the services or operations offered by the page rather than having these services scattered through out the tests.</em></blockquote><blockquote><em>“In both cases this allows any modifications required due to UI changes to all be made in one place. Useful information on this technique can be found on numerous blogs as this ‘test design pattern’ is becoming widely used. We encourage the reader who wishes to know more to search the internet for blogs on this subject. Many have written on this design pattern and can provide useful tips beyond the scope of this user guide. To get you started, though, we’ll illustrate page objects with a simple example” [ </em><a href="http://docs.seleniumhq.org/docs/06_test_design_considerations.jsp#page-object-design-pattern"><em>MORE</em></a><em> ].</em></blockquote><p><em>Thomas F. Maher, Jr (“T.J.”) has been a Software Quality Assurance Engineer since 1996, and has been blogging about automation development with</em><a href="http://www.tjmaher.com/"><em>Adventures in Automation</em></a><em> for the past two years.</em></p><p><em>T.J. is a co-organizer of the new </em><a href="https://www.meetup.com/ministry-of-testing-boston"><em>Ministry of Testing — Boston Meetup</em></a><em>. Say hello to him on Twitter ( </em><a href="https://twitter.com/tjmaher1"><em>@tjmaher1</em></a><em> ) if your company wishes to sponsor a Boston area Meetup event.</em></p><p><em>Please also hit the💚 below so other people will see this article here on Medium.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a610f86c7d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Introduction to OWASP: A Security Testing Resource]]></title>
            <link>https://medium.com/@tjmaher1/an-introduction-to-owasp-a-security-testing-resource-f54321efd18?source=rss-addc1d03035e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f54321efd18</guid>
            <dc:creator><![CDATA[T.J. Maher]]></dc:creator>
            <pubDate>Mon, 20 Mar 2017 14:02:01 GMT</pubDate>
            <atom:updated>2017-03-20T14:02:01.768Z</atom:updated>
            <content:encoded><![CDATA[<h3>What does OWASP Stand for?</h3><p>OWASP stands for Open Web Application Security Project. <a href="https://www.owasp.org/">https://www.owasp.org/</a></p><h3>What is your experience with OWASP?</h3><p>I worked as part of a security testing team at Intralinks back in 2011 to 2012. The QA Manager at the time wanted to try to integrate security into the manual tests we had.</p><p>The in-house security consultant would review testing guides with us, either once a week or every other week breaking off tests we could do in bite sized chunks each week. I’d capture the meeting notes, sketch out and perform the basic tests, and put the information their confluence page.</p><h3>What is OWASP?</h3><p>The Open Web Application Security Project (OWASP) is a not-for profit started in the United States but now is an international organization. Their tools, documents, forums, and chapters are free and open to anyone with an interest in improving their application security.</p><h3>What does OWASP do?</h3><p>The two main documents they produce every few years are a <a href="https://www.owasp.org/index.php/OWASP_Testing_Guide_v4_Table_of_Contents">Testing Guide</a> and the OWASP <a href="https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project">Top Ten Vulnerabilities</a>. Both are made available in either PDF or Wiki format.</p><p>… They also have a <a href="https://www.owasp.org/index.php/Category:OWASP_Guide_Project">developers guide</a>.</p><p>OWASP also has produced mock web applications you can download from <a href="https://github.com/OWASP">GitHub</a> and run locally. They were left purposely vulnerable so testers could review the web apps, the source code, and test against it using various security tools. They have a mock application to test a generic web application, another to test Ruby on Rails web apps, another to test Node.js applications, among others</p><h3>What is the OWASP Top Ten?</h3><p>Every few years, OWASP analyzes the <a href="https://www.owasp.org/index.php/Top_10_2013-Top_10">top ten risks</a>, publishes a description of these vulnerabilities and how to fix them. The last list was compiled in 2013. They cover topics such as: SQL Injection, Broken Authentication, Cross Site Scripting, Insecure Direct Object Readiness, Security Management, Sensitive Data Exposure. Missing function level access control. Cross Site Forgery, Using components with known vulnerabilities, and unvalidated redirects and forwards.</p><p>If we go to the link: <a href="https://www.owasp.org/index.php/Top_10_2013-Top_10">https://www.owasp.org/index.php/Top_10_2013-Top_10</a> we can see the list and drill down from the list to see who is at risk, how the attack happens, and how you can prevent the attack.</p><h3>Where can you find more detail about each security risk?</h3><p>When you go to the Top Ten Risk page and drill down into a topic such as <strong>Cross Site Scripting (XSS)</strong>, you are taken to the <a href="https://www.owasp.org/index.php/Top_10_2013-A3-Cross-Site_Scripting_(XSS)">https://www.owasp.org/index.php/Top_10_2013-A3-Cross-Site_Scripting_(XSS)</a> Cross site scripting page.</p><p>Each page has an easy to read color coded grid detailing the threat, who is at risk, what is the weakness, who it impacts and how it impacts the business.</p><p>Sections contained on the page answer questions like:</p><ul><li>Am I vulnerable to Cross site scripting?</li><li>How do I prevent Cross Site Scripting?</li><li>Lists example attack scenarios.</li><li>List related links.</li></ul><h3>OWASP’s testing projects</h3><p>OWASP sponsors test projects such as RailsGoat, a purposely vulnerable Ruby on Rails web application designed by the people who created the Living Social web app.</p><p>OWASP RailsGoat test application runs locally from local computer</p><p>Official page: <a href="https://www.owasp.org/index.php/OWASP_Rails_Goat_Project">https://www.owasp.org/index.php/OWASP_Rails_Goat_Project</a></p><p>Unofficial page: <a href="http://railsgoat.cktricky.com/">http://railsgoat.cktricky.com/</a></p><p>GitHub: <a href="https://github.com/OWASP/railsgoat">https://github.com/OWASP/railsgoat</a></p><p>You can use testing tools such as Charles Web Proxy or Burp Proxy to view, alter and edit the HTTP Get and Post calls, run other security testing tools against it, and you don’t have to worry about damaging a real site or altering production data.</p><p>These mock web apps provide real world examples of the OWASP top ten, such as Injection, Cross site scripting, Broken Authentication.</p><p>They give you hints on where to start looking for the vulnerabilities. You get to discover them yourself.</p><p>Other testing projects other than RailsGoat: WebGoat, iGoat for iPhone applications, Node JS Goat, WebGoat.Net, GoatDroid. Desktop Goat &amp; PyGoat is still in the works.</p><p><em>Thomas F. Maher, Jr (“T.J.”) has been a Software Quality Assurance Engineer since 1996, and has been blogging about automation development with</em><a href="http://www.tjmaher.com/"><em>Adventures in Automation</em></a><em> for the past two years.</em></p><p><em>T.J. is a co-organizer of the new </em><a href="https://www.meetup.com/ministry-of-testing-boston"><em>Ministry of Testing — Boston Meetup</em></a><em>. Say hello to him on Twitter ( </em><a href="https://twitter.com/tjmaher1"><em>@tjmaher1</em></a><em> ) if your company wishes to sponsor a Boston area Meetup event.</em></p><p><em>Please also hit the💚 below so other people will see this article here on Medium.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f54321efd18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Touch of Agile]]></title>
            <link>https://medium.com/@tjmaher1/a-touch-of-agile-9892fa7b7c51?source=rss-addc1d03035e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9892fa7b7c51</guid>
            <dc:creator><![CDATA[T.J. Maher]]></dc:creator>
            <pubDate>Fri, 17 Mar 2017 14:02:00 GMT</pubDate>
            <atom:updated>2017-03-17T14:02:00.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*OHiqoptFZr-OdyFWLUkfXQ.png" /></figure><p><em>I’ve been working with Agile since 2005, and I must say that I find it to be the most fun! If you love working with people as a team, really prize collaboration, and “having good team gel” is a requirement for you at any job, the Agile Software Development methodology is for you.</em></p><h3>How Agile Started</h3><p>How we create software has changed a lot in the past decade, and it started with a <a href="http://www.agilealliance.org/the-alliance/the-agile-manifesto/">manifesto</a> written back in February 2001.</p><p><strong>The Agile Manifesto</strong>:</p><ul><li>“Individuals and interactions over processes and tools</li><li>“Working software over comprehensive documentation</li><li>“Customer collaboration over contract negotiation</li><li>“Responding to change over following a plan</li></ul><p>“That is, while there is value in the items on the right, we value the items on the left more”.</p><p>Written back in February 2001, a group of seventeen software developers outlined <a href="http://www.agilealliance.org/the-alliance/the-agile-manifesto/the-twelve-principles-of-agile-software/">Twelve Principles of Agile Software</a>. One of the developers, Kent Beck, had written a book two years before called “Extreme Programming Explained” detailing his work leading the Chrysler Comprehensive Compensation System (C3) payroll project. Methods from that such as Release planning, developers writing unit tests, and daily standup meetings would get pulled into the Agile method.</p><h3>Waterfall Woes and Agile Solutions:</h3><p>With the <a href="http://adventuresinautomation.blogspot.com/2015/01/waterfall-qa.html">Waterfall</a> software development method that we examined before, there were a few drawbacks Software Quality Assurance would fine:</p><ul><li>With DEV and QA operating in their own segment, an an “Us vs Them” mentality could happen.</li><li>With the QA phase being the last part of the software development process, there was always a risk that the planning and development time could eat into the time allocated set aside for testing.</li><li>What if the specs for the functionality to be added to the product were found by the QA Engineer to be in error?</li></ul><p>With Agile, many of these problems a QA Engineer would have encountered would be alleviated. New processes were put in place such as:</p><p><strong>Sprint Planning Meetings</strong>: Business Analysts, Software Developers, Designers, and Quality Assurance Engineers all could analyze the requirements for each new piece of functionality being built, and estimated as a team how much work they could take on in the next two weeks. QA was no longer trapped in the last phase of software development.</p><p><strong>Daily Scrum Meetings</strong>: With a fifteen minute meeting starting the workday, the entire team could state simply: what they worked on yesterday, what they were going to working on today, and what roadblocks they were having. This helps QA get a better understanding of who was working on what, and helps build better working relationships between developers and designers.</p><p><strong>Sprint Review Meetings</strong>: What worked? What didn’t? What astounded you in the last two week sprint? Instead of doing a post-mortem at the end of an eight month Waterfall type project, you get to do mini course corrections.</p><p>I love Agile! You get a lot of team collaboration across all the different disciplines. A better quality team equals a better quality product.</p><p><em>Thomas F. Maher, Jr (“T.J.”) has been a Software Quality Assurance Engineer since 1996, and has been blogging about automation development with </em><a href="http://www.tjmaher.com/"><em>Adventures in Automation</em></a><em> for the past two years.</em></p><p><em>T.J. is a co-organizer of the new </em><a href="https://www.meetup.com/ministry-of-testing-boston"><em>Ministry of Testing — Boston Meetup</em></a><em>. Say hello to him on Twitter ( </em><a href="https://twitter.com/tjmaher1"><em>@tjmaher1</em></a><em> ) if your company wishes to sponsor a Boston area Meetup event.</em></p><p><em>Please also hit the💚 below so other people will see this article here on Medium.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9892fa7b7c51" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>