Posts

Showing posts from April, 2015

Setup github within a company's firewall

Image
If you have installed gitbash or windows git setup and are getting the 443 or 407 errors everytime you clone you are on the right post: Steps to solve the issue: You will need to update the git config with proxy settings To do this find your proxy and port using this post here :  http://superuser.com/questions/346372/how-do-i-know-what-proxy-server-im-using Alternatively you can also look at the proxy settings/LAN settings to find this http://wpad.[domain]/wpad.dat  Paste http://wpad.[domain]/wpad.dat in the browser and you will have a text file in which you can find the proxy:port for all domains used by your company In your gitbash run this command : git config --global http.proxy http[s]://userName:password@proxyaddress:port git config --global http.sslverify false If you get this error - could not resolve proxy some@proxyaddress:port. It's your password having an @ symbol in it. Encode @ in your password to %40 because git splits the proxy se...

Test Automation for the REST API

Image
With the REST architecture taking over the old MVC patterns, most API started using just one way to communicate with HTTP. Suddenly the business logic and any kind of data processing was done at the server and the client side was only responsible for representation of data and basic manipulations. Testing of the REST API layer can be done using the REST-assured library that was developed by jay-way company. RESTful APIs generally are of two types: one returning XML responses and one returning JSON response. The assured - lib supports POST, GET, PUT, DELETE, OPTIONS, PATCH and HEAD requests and can be used to validate and verify the response of these requests. Rest-Assured and its dependencies ( https://code.google.com/p/rest-assured/wiki/Downloads ) POM dependencies for the Rest Assured and its dependencies:  You can add a flavor of BDD by using tools like cucumber or specflow: When /^ I send a GET request for "([^\"]*)" $ / do | path | get path e...

GitLab for storing the test automation code within the firewall

Image
GitLab is an open source clone of the popular GitHub service. The best possible thing is to have your own private GitLab installation running locally on your server or network, or even on your local machine in a VM. Unlike GitHub or BitBucket, you host the GitLab installation yourself on servers you control. The best part is that it is free under the MIT license. What's bad with self hosting? Unlike GitHub, or even a version of GitLab hosted on a normal server, your local GitLab installation will only be accessible to you and this defeats the point of having a version control system with powerful collaboration features like merge requests, but for individuals who just want project and source code management, this will be a powerful solution. How to Install? The omnibus package - https://about.gitlab.com/installation/  Reason -    Omnibus GitLab takes just 2 minutes to install and is packaged in the popular deb and rpm formats.

Repost - All About Mobile Continuous Integration

Image
CI’s not a new thing. Wikipedia says the phrase was first used back in 1994, way before modern mobile apps. Today it’s commonplace in many dev shops for developers to expect that their code is automatically tested when they commit and even automatically deployed to a staging environment. Tools For Mobile CI There’s been a lot of progress over the last year or two on mobile CI tools.  Testing frameworks have come a long way and now there are a handful of hosted CI platforms designed to make setup as easy as possible.  Here are a few of my favorite tools: Hosted CI Platforms: Ship.io : The first CI solution to market focused specifically on mobile.  Ship has an easy to use setup process, and supports both Simulators and Real Devices for testing. Greenhouse CI : A newcomer, also focused specifically on CI for mobile applications.  Greenhouse has a well designed UI that makes it easy to use for less technical team members. Travis CI : Popular, robust CI plat...

Continuous Integration in the test automation space?

Image

Manual Test runner for BDD - Good Idea?

Image
The idea is to : Given we work in a BDD environment When we write a test case that we may not automate Then We will write it in Gherkin anyway Exploring tools like cucumbumbler - https://github.com/TimWalker/cucumbumbler/wiki and Serenity - http://thucydides.info/docs/serenity-staging/ If anyone comes across anything better please share J Update:   X-ray was as close as it could get!

Are you a test automation nerd?

Image
source:  http://takeagile.com/2014/05/13/data-science-melbourne-launch/

Bugs!

Image
Source: http://infiniteundo.com/post/115910731603