• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

EAR Automated testing

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
author & internet detective
Posts: 41998
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok, done!
[ August 02, 2007: Message edited by: Mariano Austral ]
 
It's feeding time! Give me the food you were going to give to this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic