In this article, i will show you how to integrate the Selenium tests into a Maven webapp project using the selenium-maven-plugin and cargo-maven2-plugin.
In this example, i used JUnit as the testing framework. There is no problem if you use TestNG to replace JUnit. This example is a simple Java webapp Maven project which only shows a simple html page (index.jsp). During the build, a Selenium Server is started with the webapp deployed in the Embedded Jetty. It then runs an Unit Test (Selenium Test) during the Maven integration-test life cycle. Here comes to the code. Continue reading Selenium – Integrate the Selenium Tests into Maven Build→
Selenium is a suite of tool to automate web application testing. Unlike the unit testing in backend application, it is hard to test user interface in frontend application. Thanks Selenium, it makes frontend testing much easier and fun.
Selenium are 3 sets of tools.
Selenium IDE – A Firefox plugin to record and convert user actions into different programming language (Selenium tests)
After creating all the entity beans in the backend project. it’s time to move on to the frontend stuff. First, we need to decide what Java frontend framework is used in our project. so i take the chance to learn Tapestry.
With Maven, we can make use of the Archetype as a project template to start our first Tapestry project. This post shows u how to make start your first Tapestry project in Eclipse with m2eclipse installed. Continue reading Tapestry – Create a Tapestry Project in Maven→
If you want to copy a Maven project dependency to a specific location, the maven-dependency-plugin could help.
For example. if you want to copy the log4j-1.2.15.jar to the project target folder during mvn install. you can use the following piece of code. Continue reading Maven – Copy A Dependency→
It is possible to add other Maven repositories which is specified explicitly in the pom.xml using the <repositories> node. But if you have a Maven Repository Manager like Archiva, you should configure those remote Maven repostories in Archiva instead of adding them in the pom.xml Continue reading Maven – Add New Remote Maven Repository in Archiva→
I always think that building a good developing environment for developers are essential in terms of efficiency as well as quality. maven-jetty-plugin let you run the webapp without deploying the .war to Java web container and run debug mode directly in the Eclipse IDE. Continue reading Maven – Run Webapp by maven-jetty-plugin→
I have heard Spring for years but i have no chance to work with it before. Finally i could get a touch on it in year 2010. My first goal is learning the Spring MVC.
I find a very useful tutorial on building a Spring MVC application. The sample codes there use Ant for building the application.