Alfred Nutile
    • Posts
    • Windows Dev Box Try 3 2020
    • Using Python Lambda behind and ALB
    • Suggestions Around Building a Good Development Team in Parallel to Building a Good Product
    • Lambda Tips
    • Mocking in Python
    • PHP Xdebug Visual Code
    • Cognito and OAuth
    • PHPUnit CodeCoverage
    • Deploying Fargate
    • How to Troubleshoot and Issue
    • Bitbucket Pipeline
    • JSONEditor, Vue and Vuex
    • Laravel Filter Scope on a Model
    • Query Strings, Vue and Bootstrap Active Tab
    • Valet Laravel 7.1 and 7.2
    • Python3 Fixtures
    • PHPStan Setup
    • Vuex External File
    • Simple API_Token Auth for VueJS Components and Laravel
    • Dusk Screenshots to S3 of Failing tests
    • Windows Dev Box Try 2 2018
    • Laravel Queue Restart and 'Why are my changes not showing up'
    • Lambda and Github Webhooks
    • Query Strings and VueJS
    • Debugging AWS SAM
    • wip Fargate and Laravel
    • Getting Started with Orchestra Testbench for Laravel Package Development
    • GroupBy not Sorting by latest
    • BrowserSync and Laravel
    • Troubleshoot Laravel Socialite and Github login
    • Wrapping Libraries in Services JS
    • Passing from Blade to VueJs
    • Laravel and AWS Rekognition
    • Docker Laravel and Cron
    • Pusher and Laravel Updates
    • Dusk and Production (with Dusk disabled)
    • Testing Laravel API, Spark with Authentication
    • Example of Making Documentation in Markdown with PDF Output
    • Serverless Python and Example App WIP
    • VueJS Transition Helper
    • Laravel Asset Notes WIP
    • PostMark SMTP for sending Notifications and Password Resets
    • Dusk Notes
    • Continuous Delivery in a NutShell
    • Laravel Shift and Your Day Job
    • Wrapping JSONEditor in Vue as Well as Laravel Blade
    • Laravel, Dusk and Valet
    • WIP AWS Batch and Workers with Laravel
    • Mocking Models OutSide of Laravel
    • Versions and Branching a Library
    • Serverless and Custom Tags for Resources
    • Setting Up My Mac
    • Serverless, AWS API Gateway and Authentication
    • IronFunctions and PHP
    • Testing a trait with PHPUnit
    • Machine to Machine Laravel Passport
    • Meetings and Cross TimeZone Teams
    • Dusk and Homestead
    • Simple Slack Trait Get Request and return Response
    • We Code in the Context of our Quoting
    • Instantiate Request for Testing
    • Load Testing With Behat
    • Example Job Format for Queue
    • LarScanner simple foundation for building a good Laravel Security Scanner
    • Super Simple Sending Messages to Slack from Laravel
    • Pusher and PHP 'Error Failed to connect to Pusher'
    • Model Boot Events
    • Queue onConnection
    • Guzzle 5 or 6 or ????
    • Chrome update equals Behat Fail
    • Laravel and Casting 'JSON_UNESCAPED_UNICODE' Data
    • Laravel 5.x Cookbook Chat Area
    • Throttle Password Reset
    • Laravel Throttle Feature using IP address as Key
    • Troubleshooting a Failed Build with Codeship and SauceLabs
    • Amazon Machine Learning
    • Mockery Behat and Laravel
    • Adding Basic Auth to Forge
    • Uploading Images in Behat both at Domain Level and UI Level
    • Behat Laravel Domain Testing Inside Out
    • Keeping a Controller Method Simple
    • Example of Mixing it up Behat BDD and PHPUnit
    • Homestead and Auto Setup Hosts File
    • API Token Based Access Laravel 5.1 (Yet another article on this)
    • Contract Testing
    • Getting Going Quickly Windows, Behat and Selenium
    • AWS, S3 Storage and limited Visibility
    • Behat and Uploading Files to a Form Even on Remote Selenium2 Servers
    • Laravel, PHPUnit, Require_Once on Routes
    • Remote Behat Testing with Laravel
    • CMS or NOT CMS
    • Feature Flags In Laravel
    • Install Webdriver to get testing with Behat and Javascript
    • Slack Custom Commands and Laravel to Make an American to British Translater
    • Then Benefits of Building a Clickable POC as a Developer
    • Put It All Into Version Control Even Composer!
    • Why Side Projects are Good For Me
    • Do I Really Need This Route Anymore?
    • Logout User After Inactivity Laravel and Milddleware
    • CentOS or RedHat and Laravel
    • Quick Tip Forcing More Complex Passwords in Laravel
    • Image Uploads, Laravel, Angular and Flow.js
    • Simple Example of Making Code Easier to Read
    • Spark Setup Issue
    • Adding Expose IDS to Laravel MiddleWare
    • Note To Self: A VirtualBox machine with the name 'homestead' already exists.
    • Laravel and Angular Widgets e.g. Non SPA (Single Page Application) Pattern
    • Laravel 5.1 and Oauth
    • Talking to the Methods Not the Properties
    • Using your project docs inside the application
    • Behat for Product Owners
    • HasMany Through a Many to Many
    • Adding RSS to Your Site
    • Bower and Elixir
    • Quick way to Request Json from Angular and return from Laravel
    • Laravel 5.1 Behat and Codeship
    • Conventions to Help Minimize your ENV File
    • Start to end Billing using Stripe, Cashier and Laravel 5.1
    • Codeship and Laravel for Continuous Integration
    • Logging in Iron.io Workers
    • Writing Commands and Scheduling in Laravel 5.1
    • Easily Create Fixture Data from Remote Services and Refresh Mock Data
    • Adding Cache to your Laravel Site
    • Iron.io and Lumen
    • Quick way to mock data for Behat in Laravel
    • Code for making a Shortcut tool for your App
    • Using Faker and ENV vars with Behat
    • Using a BurnDown Chart to Pace Yourself
    • Behat and PhantomJs
    • PHP Error: Maximum function nesting level of '100' reached, aborting Behat
    • Iron.io Laravel and Workers, Microservices
    • Multi Domain Nginx Redirect
    • Sending Dates to Angular from Laravel
    • Dealing with Oauth2 Server and Laravel for both a local app login and for remote apps using Lucadegasperi/oauth2-server-laravel
    • Simple Look at Laravel Events
    • Laravel-Flysystem and Creating Time Limited Public Urls on S3
    • Laravel Behat and Selenium
    • Linux, Behat and installing ChromeDriver
    • Sqlite and Laravel
    • Timing PHPUnit Tests
    • Reusable UI/API CRUD Laravel and Angular
    • Laravel Blade and Angular brackets
    • Angular History Based BreadCrumbs
    • Embed Template Data in View (Angular, Laravel)
    • Quick fixture data and mocking external APIs
    • Mocking Queue Service for faster Behat Testing
    • Redirecting back to original Angular.js destination from Laravel Auth
    • Docker, MailCatcher and Laravel
    • PHP quick fixture data for phpunit testing
    • Nginx force SSL
    • Moving Forge Deploy Script to Envoy
    • Laravel and Angular Time/Date Display
    • Laravel 4.2 and Dotenv to set environment
    • Speeding up PHPunit tests and Behat in Laravel for Database refreshes
    • Angular Pusher Factory to Centralize Code (also using Laravel to set constants and properties)
    • CSRF Tokens and Angular.js
    • Temporary Auth Updates L5
    • Chrome and Behat
    • Design Guide - Controllers, Services and IOC
    • Multi Threaded Queue Processing
    • Team Style Guides and Mind Set
    • Sorting related models in Laravel
    • Behat for testing RESTful APIs
    • Boris REPL and you Applicatoin (Silex in this case)
    • SSL and Homestead
    • Drush and Homestead Vagrant Box
    • Polymorphic relationship Laravel
    • Quick way to traverse a nested php arrray
    • Using VCR for PHP API Testing
    • Saucelabs PHP Client
    • Many to Many Polymorphic Relations from Laravel to Angular and back
    • Laravel Sentry and UUID
    • Laravel Homestead and MailCatcher
    • Laravel Homestead and Beanstalkd Console
    • Restangular and nested responses
    • Behat Test more than number of elements
    • When you have to use Angular inside of Drupal
    • Transforming Output from the Database to the View/REST layer
    • Showing nested relationships details
    • Simple Laravel CMS Example
    • Quick Gulp file to run php-unit tests
    • Laravel and non email authentication
    • Using Beanstalkd to Schedule the release of a post in Laravel
    • Behat Seed Repo
    • Using Dot Env files to manage settings
    • Using Scopes in Laravel
    • Quick way to add text to a hidden ckeditor field
    • Github CLI to get Teams and Members of an Org
    • Mink Assertions
    • Drupal and Composer install or update
    • Adding Column using sqlite caused error 'Cannot add a NOT NULL column with default value NULL'
    • php artisan migrate:reset not working
    • Angular and Scope - or - How not to waste time figuring out why a scope value is not 'working'
    • Behat Checkbox
    • Adding Markdown Editor to your Blog/CMS
    • Running multiple tasks asynchronously with Drush, Drupal and MT
    • Building the UI first with Angular, Mocked Data and REST
    • Behat Vagrant install and local testing
    • GitWrapper Per Page settings KnpLabs / php-github-api
    • Angular and Laravel Partials
    • Using Github Pages for your help docs
    • Twig and Drupal 7
    • Drupal Services and Instantiating a Class
    • Guard, Laravel and phpunit
    • Angular.js, CKEditor, and REST including file uploads
    • Saucelabs Timeout
    • Angular Drupal and CSRF
    • Ng-if and Scope
    • Mocking drupal database queries
    • Ubuntu 12.04 and PHP 5.4
    • Laravel Project Management Site
    • Angular Watching a model and it's filters
    • Behat Resources
    • Nesting Laravel 4 Routes
    • Exploring Code and Laravel
    • Node.js error
    • Behat and bad HTML
    • Behat Mink and using Javascript / jQuery to test attributes
    • Keep it (functions/methods) small and simple
    • PHPSH
    • Behat and Drupal episode 1
    • Quick Script to update Heroku database
    • Bash History
    • Drupal FAPI Validation Error
    • Heroku in Heroku
    • Drush and Features-Export
    • Hosting is Dead?
    • HerokuApps and Multiple Domains
    • Global Redirect module after spaces / purl install does not
    • Ruby on Rails with CMS and other fun stuff
    • Paperclip and S3 and Ckeditor
    • RubyMine and BetterErrors
    • Installing mysql2 on a mac
    • NDA
    • Capistrano for non-rails sites
    • Angular Seed Testing Setup
    • Angular.js Ticket System
    • Paperclip and S3
    • Technologies for a Saas
    • My first Rails site for the masses.
    • Refinery CMS and Twitter Bootstrap
    • Vagrant and Laravel
    • Questions that may come in handy when interviewing
    • Hack For Change Challenge
    • Bootstrap Generator Gem Ruby on Rails
    • Using headless tests with Mink and Behat
    • ActiveAdmin Rails
    • Making lists from acts_as_taggable
    • Javascript Based Product Viewer
    • jQuery Address
    • CORS and Laravel
    • Great tip on Git and Jenkins to auto deploy
    • Going Angular.js
    • DrupalCamp Western Mass
    • Introduction
    Load Testing With Behat

    The team I am a part of write our tests using Behat for the most part as we try to practice BDD and take advantage of how writing in Gherkin can lead our code to be more inline with the language of the business. In this case I wanted to replicate some file upload and processing that the system will be doing during a training that will happen next week as 4 users are uploading files and going through the entire process.

    February 1, 2017 Read
    Chrome update equals Behat Fail

    Had trouble running behat after I ran updates on Chrome My typical install https://www.npmjs.com/package/selenium-standalone did not fix it, even try brew but no luck. All I needed to do was go here and grab the lastest one for my Mac. For me this was the 32 bit. Then after running selenium-standalone install to see where the old one was installed I used that path to unzip this file and move it there /usr/local/lib/node_modules/selenium-standalone/.

    November 7, 2016 Read
    Mockery Behat and Laravel

    This is a quick view of using this library https://github.com/laracasts/Behat-Laravel-Extension and a Mockery Trait (should be included soon but for now put the below in your features/bootstrap folder and run composer dump). The example here is a method that looks like this features/bootstrap/ExampleContext.php $partial = Mockery::mock(\App\Broadcasts\ColumnsAndRowsDoneProcessingEmail::class, [$this->segment])->makePartial(); $partial->shouldReceive('sendEmail')->never(); $repo = App::make(\App\JobsRepository::class); $partial->handle($repo); When this is done running I would get pass BUT if I change it never to once and run it again I still get green :(

    August 31, 2016 Read
    Uploading Images in Behat both at Domain Level and UI Level

    The goal here is as follows @fileCleanup @javascript Scenario: Uploading File Given I already made a Segmentation and am editing it Then I add file and the system will process it And I can not add another file till it is done And when the system is done I can add another file In this case they are large files and I want to get an MVP for the users to interact with so one file at a time is enough for now.

    August 11, 2016 Read
    Behat Laravel Domain Testing Inside Out

    I will cover the use of FormRequest, Mockery, Behat and more in this article. The article will show how to test your Domain code, in this case I mean testing how the code will work outside of the Routing and Controller layer of your Application. But what this will lead to is a “lego” like moment of plugging in these parts to your Controller so you know it will work. Of course it will be tested as well during the UI testing.

    August 10, 2016 Read
    Example of Mixing it up Behat BDD and PHPUnit

    Just wanted to show two things here. One is how sometimes I end up in PHPUnit to work out some ideas. And two how awesome it is to refactor thanks to PHPUnit. In this example I had a Class responsible for saving data, we’ll call FooSaveData. But before that save it has to process some incoming information against another set of data to save the results of that. So I made another class we’ll call FooProcessData.

    June 23, 2016 Read
    Getting Going Quickly Windows, Behat and Selenium

    Quick Install Steps Vagrant and Homestead This was easy I just followed these steps here and I was done. For me I used Vmware but Virtualbox is fine. Windows in Selenium Two easy steps Step 1 Install Node.js SUPER EASY https://nodejs.org/en/download/ Install the .exe, restart your console and you have node! Step 2 Install Selenium Just go here and you are done! https://www.npmjs.com/package/selenium-standalone After those steps I run it in a powershell and the server is running and I am set to use it.

    May 3, 2016 Read
    Behat and Uploading Files to a Form Even on Remote Selenium2 Servers

    Just had to tackle this issue so making some notes for later here :) Updated and more detailed here I run selenium on my Windows PC and before that my Mac, either one would have had this issue since my test is running side my VM. This meant when I needed to run a test to interact with a form to upload an image that image path was relative to the machine (VM) that I started the test on and not the Browser that was being manipulated by Selenium2.

    April 27, 2016 Read
    Remote Behat Testing with Laravel

    Listen Here This document will cover how to use a Behat specific API to setup a site for testing. What this includes is setting up a Scenario so that it has the data you need to run a test. This makes it possible not to rely on Seed data for this. This will allow us to run behat tests from remote machines as well as run tests in parallel. Why not seed data?

    February 3, 2016 Read
    Install Webdriver to get testing with Behat and Javascript

    This is so I do not forget! UPDATED: go here instead https://www.npmjs.com/package/selenium-standalone 1) sudo npm -g install webdriver-manager 2) sudo webdriver-manager update –chrome 3) Get Java for the Mac Googled El Capitan Java and takes me to Apples site to get the right version of java https://support.apple.com/kb/dl1572?locale=en_US 4) webdriver-manager start That is it!

    January 26, 2016 Read
    Behat for Product Owners

    As a developer putting all the business requirements into action and then showing that it is working as expected can be hard. 10 different google docs, 3 different views of what are the goals etc. And as a Product Owner you are not sure if the work is done without always clicking around. And more importantly you do not even know if the developer really gets what you want. This is where Behat / Gherkin (cause that name really gets Product Owners feeling comfortable) can help out.

    July 31, 2015 Read
    Quick way to mock data for Behat in Laravel

    Below allows me to use this type of step in my tests Scenario: Given I update a Domain get 200 Given I mock "App\Sites\Domain" with properties: """ id: "mock-update-1" site_id: "mock-site-1" domain: "foo2.com """ Given I have the payload: """ { "data": { "id": "mock-update-1", "site_id": "mock-site-1", "domain": "foo2.com" } } """ Then I request "PUT /api/v1/sites/mock-site-1/domains/mock-update-1" Then I get a "200" response Here is the code in my FeatureContext.php

    March 30, 2015 Read
    • ««
    • «
    • 1
    • 2
    • 3
    • »
    • »»
    ${Title}

    ${Summary}

    February 1, 2017 Read
    Navigation
    • About
    • Projects
    • Recent Posts
    • Achievements
    Contact me:
    • Email: me@alfrednutile.info
    • Phone: +1.413.230.4767

    Toha
    ICONS8
    Powered by Hugo Logo