Monday, September 22, 2014

Introduction with CasperJS

CasperJS is an open source navigation scripting & testing utility written in Javascript for the PhantomJS WebKit headless browser and SlimerJS (Gecko). It eases the process of defining a full navigation scenario and provides useful high-level functions, methods & syntactic sugar for doing common tasks such as:
  • defining & ordering browsing navigation steps
  • filling & submitting forms
  • clicking & following links
  • capturing screenshots of a page (or part of it)
  • testing remote DOM
  • logging events
  • downloading resources, including binary ones
    writing functional test suites, saving results as JUnit XML
  • scraping Web contents

Friday, September 12, 2014

Configure GRAILS , GROOVY , JAVA , IntelliJ IDEA in Ubuntu.

  1. Install Ubuntu .
  2. Download GRAILS from https://grails.org/download .
    1) Copy the download Grails ZIP into OPT folder . Type this command on terminal
    sudo cp grails-2.3.7.zip  /opt  and then type cd  /opt .2) Run few commands in Terminal to install GRAILS . Suppose, I have GRAILS version grails-2.3.7.zip.To UNZIP GRAILS , run command sudo unzip grails-2.3.7.zip , this will create a folder named grails-2.3.7 inside OPT.Make a SOFT LINK for grails-2.3.7 , run command sudo ln  -s  grails-2.3.7 grails

Manage Multiple GRAILS version in Ubuntu.

I had installed 7 GRAILS version in my ubuntu system . To install grails in ubuntu see this link https://pkashyap28.wordpress.com/2014/09/11/configure-grails-groovy-java-intellij-idea-in-ubuntu/#more-112 . After installing GRAILS, put the code below at the bottom of .bashrc file.