aspose file tools*
The moose likes Testing and the fly likes EAR Automated testing 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 » Testing
Bookmark "EAR Automated testing " Watch "EAR Automated testing " New topic
Author

EAR Automated testing

Mariano Austral
Greenhorn

Joined: Jul 27, 2007
Posts: 7
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

Joined: May 26, 2003
Posts: 30764
    
156

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
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.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
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?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Mariano Austral
Greenhorn

Joined: Jul 27, 2007
Posts: 7
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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!


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Mariano Austral
Greenhorn

Joined: Jul 27, 2007
Posts: 7
ok, done!
[ August 02, 2007: Message edited by: Mariano Austral ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EAR Automated testing