wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Setting up a test environment, how to? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Setting up a test environment, how to?" Watch "Setting up a test environment, how to?" New topic
Author

Setting up a test environment, how to?

Gynnad Paullussen
Ranch Hand

Joined: Jan 26, 2011
Posts: 49
Hello,

I’m trying to set up a test environment for a CMS system in Jenkins. I want to run a bat file first and afterwards I want to call in the CMS (with Selenium?) the code in the content pages to start the tests. But how can I do that? Can anyone help me a little witch configuration I need and is there some tutorial or something?

Thanks already!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Options I would look into:

a) Figure out to how to run the Selenium tests from the command line. Then it is a simple matter of adding that command to bat file (or to a PowerShell script)

b) There is a Selenium plugin for Jenkins: https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin

Of course, this assumes you are using Selenium to run the tests. But just about any tool that can test web applications should work, and for all of them the above options are pretty much what you have.


JBoss In Action
Gynnad Paullussen
Ranch Hand

Joined: Jan 26, 2011
Posts: 49
Yeah I understand, but I can't find how to start Jenkins with my CMS server.. Everytime I start a test he doesn't find anything. He said there is no project. So I would like to do a tutorial where I can find out how this works..
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

What do you mean by "start Jenkins with my CMS server"? The CMS (it would help if you told me which one you were using) is deployed to an application server and you run that by itself. Ditto for Jenkins - it uses either a app server (Resin, I think) built into its WAR file, or you can deploy the WAR to an app server. There is no such thing as "starting" Jenkins from the CMS.

Everytime I start a test he doesn't find anything. He said there is no project.

Who is "he"? Jenkins? The CMS?
And what project?

In Jenkins, you create jobs. A job runs a script on a build slave. That script does whatever, usually compiles something, but it can also do other things such as run tests (such as tests created using Selenium).

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting up a test environment, how to?