I'm wondering if there is anyway that makes possible getting data (variables values and other) from a java compiled application?
[Automated testing is] my objective... ;)
the verification I've just talked about is to be made over data that was inputed into that (B) application as configuration/data.
I'm not sure of your exact need (sorry to insist in that direction):
- If you want to check the values of variables within the application, you're doing white-box testing, and unit-testing may probably be the most appropriate form (client code that knows the API of the code being tested).
- - -> Then search for unit-testing tools,jUnit will probably come first, then a few extensions, then a very few competitors.
- if you want to perform functional testing, you should merely be concerned with observable output of application B, instead of with its inner variables.
Observable output is something that goes out of the application, and may be inspected : output file, screen output, bytes sent on the network,...
A variable is only a temporary storage location, that exists only in the application working memory, but may never be output: for example, a variable may contain a correct result, but the result may be incorrectly displayed, or the wrong variable may be displayed, or...
- - -> Then search for automated functional testing tools. A few come to mind (WinRunner, QuickTestPro,...), but I have no practical experience with them.
If application B has a GUI, I dare point you to
this thread for a discussion of various techniques to do unit- or functional- testing.