![spring tool suite how to install maven and log4j spring tool suite how to install maven and log4j](https://miro.medium.com/max/1468/1*IzydOdrpH6gZ9nTsZdmRjA.png)
- Spring tool suite how to install maven and log4j code#
- Spring tool suite how to install maven and log4j download#
Spring tool suite how to install maven and log4j code#
J In above created class, write a basic code for opening a website and search to check all above setup is working or not. Now the real QA work starts which we all know how to do with Selenium webdriver.When you will click run, it will start downloading all your JARs automatically (It will be reusable and you can use same Jars in different projects without downloading or defining them specifically all time in your new project.For above build, you will have to write “deploy” like in below image :.Goals are some keywords which you should write in maven to do some specific tasks like build, test etc.
![spring tool suite how to install maven and log4j spring tool suite how to install maven and log4j](https://images1.tqwba.com/20200512/llcj3qiibph.png)
You should know some basic Goals in Maven.For beginners, you can press any of this but important is the next step ? Now you will see 2 build options now which to Press :O.This build is very simple and you just have to right click on your project folder and click run>Build.
Spring tool suite how to install maven and log4j download#
Build means you just have to run this maven project to download all your plugins and JARs which we have mentioned above in POM.xml file. Now you have added all dependencies in your project but for downloading them in Project, you should build this project.Below are the basic dependencies you should add to run your selenium project with TestNG.There are some basic dependencies and plugins you have to include in your POM.xml file to run your basic project.I show you what is the inside of POM.xml. This file is very important in Maven, because all your dependencies, plugins you can define there. Now you can see there is a POM.xml file in above project folders.(I am showing you example of one of my project that is different from above shown project so guys don’t be confused J) Now create a package in above folder and create a class in that package.Now your testing work will only be in src/test/java folder(For beginners) :.You will get final created project look like below folder structures :.It will look like below image(Zoom the image for all the steps) :. Create a Maven project in STS File>New>Maven Project.We will mainly focus on what connectivity issues a QA faces when he creates a project in STS and try to run that. You just have to put that JAR or dependency IDs in your project and Maven will automatically download all the JAR files for you and will store for you so that you do not need to download all the time You just have to mention that information in your STS and STS will automatically download it from that website based on Artifact, versions provided by you. Like for selenium you can refer below link.Įverything you will get on Maven, related to your libraries or JARs. These details will be there on MAVEN’s official website. But by the use of Maven, you just have to provide group ID, artifact ID and version.įor non familiars, these words will look like strangers and you were thinking that where will you get these words (Artifacts and versions). Like for example if we use selenium JAR files in our project, then in eclipse all the time we import those files into our project. In other words you can say it is a library or JAR files provider as per your need. Maven is mainly used for providing all the JAR files or libraries which will be used in your project. I give you a brief about Maven in my language. I will call Spring tool suite as STS so please concentrate Jįirstly I am considering that you have downloaded STS and successfully configured it. So today we will learn the easy way to get connected with STS (Spring tool Suite). Some of the big companies are using Spring Tool Suite (STS) with Selenium, TestNG and Maven for Automation. Many of the companies are not using eclipse with Selenium. Hope you are doing great in your fields and with your life J