Friday, 25 September 2015

Summary of Dzone’s 2015 Guide to Code Quality and Software Agility


Recently  I went through ‘Dzone’s 2015 Guide to Code Quality and Software Agility’ and learned few things.
Summary points: –

  1. Quality is perception of individuals.[Quality is value to some person.]
    • In same product, the term quality used by individuals can mean different things.
      Example: –

    Different perspective about quality

      • Quality is more than just ensuring a lack of software defects. It can also include project cost, feature release time, and even team skill development.
    • Continuous Delivery for better software, faster
      • When organizations build quality into the product, they begin a virtuous cycle of better and faster releases.
      • Being time is factor in quality,  continuous delivery and automation is must for better software.
    • Your Code is like a Crime Scene
      • Sometimes, only a small percentage of the codebase is responsible for the majority of historic defects. By narrowing down their efforts, developers can often solve a large number of defects by working on a very small section of code.
    • Testing Practices can be improved using following techniques: –
      • Analyze “release day” emotions of team
      •  Pick one unanswered question that the team has at release.

    I also like article by Gerry Claps – ‘What Elon Musk Can Teach Us About Agile Software Development '    

    Wednesday, 9 September 2015

    Download and Configure Selenium with Intellij IDE.



                 In last post, you have learned how to create project in Intellij IDE. In this post, we will see :-
    • Download Selenium JAR

    • Index Page For Selenium Versions
      Index Page For Selenium Versions
      Index Page For Selenium Versions
      Index Page For Selenium Versions
      Index Page For Selenium Versions
      Index Page For Selenium Versions
      Index Page For Selenium Versions
      Index Page For Selenium Versions
      Configure Selenium JAR in Intellij IDE

    Downloading the Selenium/WebDriver 2:-
                Recently WebDriver committee has pushed WebDriver 3 in the beta, so Selenium 2 (also known as WebDriver) is not readily available for downloading under download section of official website. We have to click on previous releases link to download stable version of WebDriver which was 2.53.1

    Selenium Website
    Selenium Website

            
                   After clicking on previous releases, you will be navigated to index page which has enlisted previous version of WebDriver. Click on link 2.53 as shown in image.



    Click on link selenium-server-2.53.0.zip to start the download of required Selenium WebDriver.



    Download  Selenium
    Download  Selenium

    Zip file will start downloading after you click the link.

    Selenium Zip file is getting downloaded
    Selenium Zip file is getting downloaded

          You can find your zip file in your downloaded folder.

    Configure Selenium JAR in Intellij IDE:-
               Now that we have required JAR files with us we can configure those files in our Intellij IDE so we can start writing our first Selenium Script. We will create new folder libs in our project as shown in image.

    Create new folder in Intellij
    Create new folder in Intellij

    Our new project structure is now looks like as below:-

    Updated Folder Structure
    Updated Folder Structure

    We will copy all the jars from lib folder of downloaded zip to lib folder created under this project. Note that you have to copy both selenium jars along with all jar present in libs folder of zip file.


    Copying Jars from Zip folder to Project Folder.
    Copying Jars from Zip folder to Project Folder.

    You can see jars files are reflected under the project.

    Updated Libs folder
    Updated Libs folder


                We are just one step away from completing our configuration.  We need to add this jars file as Library for the project. Open Module Setting by Right Clicking on Project. Click on ‘+’ button and then click on first option ‘JARs or Directories’. Select the libs folder as directory and then click on OK button. Then Click on OK button.


    Open Module Setting in Intellij
    Open Module Setting in Intellij

    Add JARs or directories as dependency in Intellij
    Add JARs or directories as dependency in Intellij


    Select Libs Folder as dependancy
    Select Libs Folder as dependency

    Newly Added Dependancy
    Newly Added Dependancy

    Congratulations! You have configured Selenium JARs with Intellij IDE.
    Copyrights held by Amol Chavan. Powered by Blogger.