• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Setting up a test environment, how to?

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Gynnad Paullussen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).

 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic