Internet Speed Test from Mac OSX Command Line

Automation
Speed Test OSX iTerm There are various reason, you need to test your broadband speed. I got BT broadband and it sucks since last couple of months. I badly need to check what's current speed, I am getting right now without installing any applications. It's quick to do command line speed test. Thanks to OSX Daily (@osxdaily) for this awesome OSX tip. What we need to do is:  Open iTerm Or Terminal and execute following command [crayon-58a985939af9f022672854/] You will see an current speed highlighted below This will tell you current speed. Mine is too poor. Thanks BT  Create an alias in your .bash_profile Open you bash .bash_profile and add following line [crayon-58a985939afb2257632308/] Now, open iTerm and just type 'speedtest' [crayon-58a985939afbb792675981/] It will show you same result as above. This is…
Read More

Installing and Setting up Github’s Atom Editor on Mac OSX Mavericks

Automation
Atom Editor GitHub has just released beta version of 21st century hackable editor for developers called 'Atom'. Currently, Atom (@AtomEditor) is in beta status and will be available only via invite. You can request an invite from GitHub by sending your details and you will get an invite soon Or you can ask your friends, colleagues to send you invite. Once you got an invite, you need to follow a link from your email which will allow you to download Atom for your Mac. Currently Atom is only available for Mac OSX version 10.8 and above.  Launch Atom Once you download zip with Atom package, you need to  install it on your Mac OSX and open Atom Editor for first time. It will look like this:    Move Atom to…
Read More

[Re]-Installing Jenkins on OSX Mavericks

Automation, BDD
Jenkins Installation Jenkins is the best Continuous integration tool in the Market. Jenkins is so popular because of hundreds of plug-ins that user can use to configure Job. Hope you have upgraded your OSX to Mavericks and lost your existing Jenkins installation. I have written blog post few months back about 'Installing Jenkins on Mac OSX', at that time it was OSX Mountain Lion. Jenkins on OSX- Mavericks Download Jenkins Package for Mac OSX from Jenkins official website. If you try to install package and got this error.   You need to tweak security settings in your Mac OSX. Go to Preferences-> Security & Privacy and 'Allow apps downloaded from; to anywhere Now, you can download and install Jenkins. Once you followed all the instructions on your screen you can…
Read More

OSX Mavericks : How to install Command line tools without xCode

Automation
xCode & Mavericks Hope you have upgraded your OSX to Mavericks, if not then do it right now because it's simple awesome and most important it's free. I assume that you have already upgraded to Mavericks and you are enjoying great features of OSX Mavericks. In the older versions of the OSX, it was very easy to install command line tools with xCode. You just need to goto xCode->Preference->Downloads->Component and click on 'install' on 'Command Line Tools' The Command Line Tool package gives terminal users many commonly used tools, utilities, and compilers, including make, GCC, clang, perl, svn, git, size, strip, strings, libtool, cpp, what, and many other useful commands that are usually found in default linux installations. However, this is not a case in the OSX Mavericks, You will see…
Read More

HTTP Status code of multiple URLs from Text file

Automation
HTTP Status Codes There might be few tools available in the market which can be used for checking HTTPS codes for the urls. It would be an awesome to check HTTP status code  if we can have txt file with list of urls. Now, we will see a how to check HTTP status code of the urls available in the txt file. BASH Script Now, Let's write small bash script which will take txt file as an argument checks for the HTTP response code. [crayon-58a985939fde3884563343/] And following bash code to the file [crayon-58a985939fdf0376688012/] This script is checking each line in the FILE and prints HTTP_CODE of the url. Now, Let's create a text file 'url.txt' with list of urls [crayon-58a985939fdf8531852504/] Now insert following urls [crayon-58a985939fe00845895989/] Change the mode of both…
Read More

Fixing ‘detect_unicode’ issue with Composer in OSX

Automation
Composer Composer is obviously great dependency management system for the PHP. Use of composer makes your life much easier while dealing with third party libraries. Sometimes, you will see issue while installing/downlng composer which looks like this : [crayon-58a98593a06c6788303530/] This issue is quite normal when you upgrade your OSX. Don't be panic, there is straight fix for this problem. Solution There are couple of solution to fix this issue on Mac OSX, Edit/rename your php.ini.default On Mac OSX, you will find your loaded php.ini at '/etc/php.ini.default' You can search for loaded config using [crayon-58a98593a06d5011056289/] Now, edit '/etc/php.ini.default' file and add " detect_unicode = Off" You also need to rename this file to 'php.ini' [crayon-58a98593a06dd809630808/] Restart the terminal and you are good to go ! Just in case you need temporary…
Read More

Running Cross browser BDD scenarios in Parallel with ANT

Automation, BDD
Cross-Browser BDD Scenarios Cross-Browser testing is a essential part of the automated test suite. While working with Behaviour Driven Development tools like Cucumber and Behat, we must have necessary setup to run BDD scenarios in parallel. Let's consider, we have test suite which runs in Firefox, Safari and Google in parallel. What an awesome idea ! In this tutorial we will we will see how to run cross-browser BDD scenarios in parallel using apache-ANT Apache ANT Apache ANT is a java based build tool. You can use another  build tools like phing Or maven but I like ANT as it's very simple to learn and so powerful. Install ANT There is complete installation guide on the apache ant website here. I think, you are smart enough to google it and get ANT installed on your…
Read More

Launching Jenkins Slaves on the fly.

Automation
Jenkins Master-Slave Architecture Jenkins is a awesome Continuous Integration tool which allow you to add multiple slaves as per your project requirement . Working in the distributed environment, we need different machine for different purpose. We might need Ubuntu machines to do specific tasks, CentOS machines to perform additional task and so on. While thinking Continuous Integration in cross-browser and cross-platform environment, you must have master slave architecture of Jenkins. You have master mode and millions of slaves running under it (not millions though :)). You can read more about adding multiple slaves here. Let's say your master node is running on http://master-yourawesomedomain: 8080 Next step is to add few machines as a slave in the same data center. You must have to make sure that your master can ssh…
Read More

Adventures with Jenkins CI on Mac OSX & Linux

Automation, BDD
Abstract: In an agile software development, Continuous integration became integral part of agile process and agile team won't be considered as effective without effective and visible continuous integration(CI). Continuous integration server runs automated test after each time developers check-in into the source code repository and notify team in case build failed. Continuous integration won't allow developers to build legacy code which in turn increase technical debt. Continuous integration helps a lot in quality of the product. [caption id="attachment_835" align="aligncenter" width="300"] Continuous Integration[/caption] Jenkins: Jenkins is a most popular continuous integration tool. Jenkins has been developed and maintained by Kohsuke Kawaguchi who is currently working at cloudbees. Jenkins became so powerful CI server due to it's nice looking web interface and it's hundred's of plugins. In this short tutorial, we will…
Read More

Automating Web Performance Data Collection with Behat and BrowserMob Proxy

Automation, BDD
BrowserMob Proxy is a utility which is used for capturing HTTP traffic and performance data from the browser. BrowserMob-Proxy adds in essential missing capabilities such as checking HTTP status codes and injecting headers for HTTP Basic Auth. Web Perfomance data can be manually captured by other tools like Firebug or Developers Tools. Using BrowserMob Proxy we can capture perfonace data in HAR format while running automated tests. There is lots of food to learn about BrowserMob on thier official website. In this article, we will see how to integrate BrowserMob Proxy with Behat. In order to get started we need to install PHPBrowserMob package. (more…)
Read More