• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EAR Automated testing

 
Mariano Austral
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm developing a web services based application. I'm using JUnit for testing components. We need to test it with different types of data, so it's loaded from an external source to do it better and faster.

Now I have a problem. After building and deploying my app, I need to keep on testing it. I need to run some sort of test suite (it could be the junit test cases) periodically from outside the ear.
I can't use maven because the app is already build and i don't want to re-build it.
Is there any framework for this specific test? maybe i could add a class with a main method that calls my JUnit classes like maven does, but i would like to know if there already is an open source tool that suits for this problem (i don't want to reinvent the wheel)

Thanks in advance!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
378
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mariano,
Welcome to JavaRanch!

If your web service is an EJB, you could make a remote call from outside the EAR. You should be able to do that for any type of web service for that matter.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ideally, you need an automated test harness which will read the data files, build the requests and submit them via the web service. I don't know of any open source for this, in our department we hand-built our test harnesses.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mariano Aaaaa:

Now I have a problem. After building and deploying my app, I need to keep on testing it. I need to run some sort of test suite (it could be the junit test cases) periodically from outside the ear.


What is your goal? What do you need to do this for?
 
Mariano Austral
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you fot the welcome! n_n


What is your goal? What do you need to do this for?


Mostly because of regresion tests. We release new versions quite often and the Q&A guys can't perform all test cases on time, so we are looking for an automated way of doing this
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi "Mariano Aaaaa",

(and welcome to the JavaRanch)

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed and I'm afraid "Aaaaa" is fictitious.

Please edit your profile and correct your display name since accounts with display names get deleted.

Thanks!
 
Mariano Austral
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, done!
[ August 02, 2007: Message edited by: Mariano Austral ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic