wood burning stoves 2.0*
The moose likes Testing and the fly likes Testing JNLP application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Testing JNLP application" Watch "Testing JNLP application" New topic
Author

Testing JNLP application

Yiu Wing Tsang
Ranch Hand

Joined: Sep 10, 2005
Posts: 30
Is there any good method to test the JNLP application deployed in an application server?

Currently our team use "abbot" to test the swing application and it works fine, but the swing application is going to deployed through JNLP in application server and we want to find some good methods to test if the deployment environment configuration is okay or not. Any good sugguestion for that?

Thanks for any advice.


SCJP(1.4 & 1.5), SCWCD(1.4), SCBCD, SCDJWS, SCEA, Core Spring Certification 2.5
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I haven't written JNLP files myself, but would it be possible to just fetch the JNLP file programmatically over HTTP, parse (and validate?) the file, and check that all the server-side resources referenced in the JNLP file are actually available?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Yiu Wing Tsang
Ranch Hand

Joined: Sep 10, 2005
Posts: 30
Thanks for your suggestion but I think that your approach may not be able to verify the correctness of the jnlp application as it cannot check if all of the dependencies have been included and stated correctly or the application can be run by the web start.

It would be the best to test the application using abbot just as like running as a simple swing application, however after searching through the web, not a solution can be found for help.

Or any idea to test a JNLP application in an automatic and general way rather than by hands?

(sorry that I have repeated the same post in the other forum)
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Hmm. How about including some kind of self-diagnostics tests into the Webstart application itself? Something that could be run with a shortcut under the "Help" menu, for example?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing JNLP application