Skip to main content

Beginners- Installation of Selenium ->Maven for Win and Mac OS_ Part-1




Most of you are might want to switch from manual testing to automation or starting a career in automation testing, here I am going to lay down few guidelines to install selenium/TestNG/Cucumber, on Windows as well as Mac OS
I hope this would help you out for hassle free installation.



Windows
Download java
In order to install selenium on you system check if Java is present in your system preferable(1.8.)
1. open command prompt(cmd)
2. type -> Java -version
if java is not installed please download the above mentioned version of Java from here, for windows files are .exe files

Download eclipse
To download and install eclipse for Windows use this link (zip file) 

Download Maven
Download Maven by using this link  on your system using the mentioned link, click on "Binary Zip archive" link which is a compressed file, extract (.exe) and install maven



Setting up environment variables

Java
Go to system properties-> click on environment variables->click on Edit
Enter variable name as "Java_Home" and variable value as "path where your Java is installed"
(by default it will be in your c drive folder program files) copy the path and click OK.
repeat the same in system variable and user variable

Maven
Go to system properties-> click on environment variables->click on Edit
Enter variable name as "Maven_Home" and variable value as "path where your Maven is installed"
(by default it will be in your c drive folder program files) and click OK.
repeat the same is system variable and user variable


Downloading Maven in eclipse

Maven
Once you are able to open eclipse  go to help->Eclipse marketplace-> search for m2e-> maven integration for eclipse  and install.



Amazing you are done installing Maven to your windows  successfully


In order to install TestNG and Cucumber on you system watch out for next blog.

Macintosh

Download java
In order to install selenium on you system check if Java is present in your system preferable(1.8) version
1. open Terminal
2. Type-> Java -version enter it will show youth version of java installed in your system


if java is not installed please download the above mentioned version of Java from  here (for Mac executable files are in .dmg format )


Installing eclipse
To download  and install eclipse for Mac use this link(dmg file)

Installing Maven
Download Maven from here on your system, click on "Binary tar.gz archive" link which is a compressed file extract(.dmg) and install maven


Setting up environment variables

Java

As the environment variable should be created in .bash file so we need to first check if .bash file is present in the directory.
To check. Go to Terminal and enter command->
ls -al(it will list all files and folders present if directory) 
To create a bash file  enter command touch .bash_file once bash file is created.  
Enter command Is -al (It will show .bash file created)


To open .bash profile in edit mode Go to Terminal and enter command-> 
open -e .bash_profile  a new window of ".bash profile" would open,  copy and paste the below statement export JAVA_HOME=$(/usr/libexec/java_home) and save the .bash profile





Go to Terminal and enter command echo $JAVA_HOME It will give you the current path of java

You can also run this command to load .bash profile in source Source .bash_profile




Maven

As we have created .bash profile . Open the .bash profile be entering the command in terminal
open -e .bash_profile now copy and paste  export M2_HOME=(Path of your Maven) 
To get Path of maven  enter mvn -version in terminal
You will get path of Maven home copy the path place it as like below command, as in my case it is 
   export M2_HOME=/users/priyankac/apach-maven=3.6.3 and also paste 
    export=$PATH:$M2_HOME/bin. and save the file

 After the .bash file is updated with path of Java an Maven it would look like this






Downloading Maven in eclipse

Maven

Once you are able to open eclipse  go to help->Eclipse marketplace-> search for m2e-> "maven integration" for eclipse  and install.



Give yourself a pat on your back you are done installing Maven to your Mac system

In order to  install TestNG and Cucumber on your Mac systems watch out for my next blog




Comments

Popular posts from this blog

Cucumber - Execution of test cases and reporting

Before going through this blog please checkout blog on   Cucumber Fundamentals Cucumber is testing tool which implements BDD(behaviour driven development).It offers a way to write tests that  anybody can understand, regardless of there technical knowledge. It users Gherkin (business readable language) which helps to  describe behaviour without going into details of implementation It's helpful for  business stakeholders who can't easily read code ( Why cucumber tool,  is  called  cucumber , I have no idea if you ask me I could have named it "Potato"(goes well with everything and easy to understand 😂) Well, According to its founder..... My wife suggested I call it  Cucumber  (for no particular reason), so that's how it got its  name . I also decided to give the Given-When-Then syntax a  name , to separate it from the  tool . That's why it's  called  Gherkin ( small variety of a cucumber that's been pickled. I...

Jmeter 5.4.1- Config Elements - Part-03

  Part-01- Installation of Jmeter and HTTP's Recorder click  here Part 02--Previous blog on Assertion Config elements in Jmeter are used to configure or modify the samplers requests made to the server. These elements are added at the same or higher level of the samplers that we want to configure  Let' start with  CSV data config As the name suggest it used to read data from CSV first we need to put data in variables and then use the variables in sampler request. create a new test plan add CSV data set config Add a Thread Group and then add Sampler "Java Request"  Create a CSV file  with some data (Name and Data) and save it  Now go to Jmeter CSs data set config browse and upload the css file create Make few more changes in place of  variable name - Name and Dept Ignore first line - True Delimeter - \t (as suggested) Now move on the Sampler-" Java Request" and rename it with header elements of CSV As we have Name and d...

Beginners tutorial -:working with JMeter in Mac and windows - Part-01

  Prequisite   you should have Java downloaded in your system with Home path set under environment variables.(as of today Java version 8 and higher are required fro jmeter ) for help check out this link Note Always run the jmeter on your secondary browser,  if you give the primary browser for proxy settings then your internet connection will be disrupted for the browser as well as system For ex if you have chrome and firefox and your primary or default browser is chrome then do all the proxy setting in firefox so it won't hamper the system Internet connection  if you have safari as your default browser in your mac os then set proxy in chrome/firefox  MAC Download jmeter from the link  here click on the hypelink under section Binaries  "Apache JMeter( 5.3 ). tgz" file  for Mac   Tar file will get downloaded Double click on the tar file to unzip  once you open the folder  got to bin and search for jmeter.sh file this is a executa...