How can you log line-level code execution in Java - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 hours ago.
Improve this question
I'd like to be able to log what code is being executed in a JVM down to the method level and even the individual lines that are being executed. This would be a handy capability for QA purposes. I know that this is possible because Jacoco already does something similar to report on code coverage. However, it's not clear to me how this is done and I'm not sure I want to use their agent. Has anyone had experience logging this type of data? Are there any tools that can help?

So you want to log information not for functional checks but more for code coverage and performance analyis.
Rather than creating the solution from scratch and inside your application you might want to look into Application Performance Monitoring tools that can easily be attached to any application and thus are reusable. Here is a noncomplete list of such tools.

Related

static analysis of open source projects [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
we started with static code analysis and I would like to see how we compare with other projects. Now I am aware I could go out and run tools for different OS projects, but I was curious if there is a repository for this data. such as
cyclomatic complexity, code coverage, size of methods, size of classes, scope nesting, etc
thanks
almir
For Java OS projects a free monitoring system with some metrics is available here: http://opensource.quality-gate.com/
Ohloh.net has a few of the metrics you mentioned
FLOSS Metrics may have some
FLOSSmole - includes data from the now-defunct SourceKibitzer though it's a little old (2007), as well as the same metrics run on Debian packages in 2011
Sourcerer may have some

looking for automatic stress tests framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a application that is deployed on tomcat container.
I'm running the jmeter load (x threads with HttpRequests).
then I'm looking on TPS, latencies, cpu, and memory (through jmx).
I'm looking for a automatic way to do all this, and may be better.
Any good references, blogs, articles, maybe some github sources is appresiated
You'd really need to be more specific about what you would like to automate, running the test, analyzing the results, monitoring your AUT or?
That said, you could try this: https://github.com/oliverlloyd/jmeter-ec2. This will automate test execution using remote hosts which can be useful to some people in some scenarios.
Ehm so are you searching for what exactly? I was using JProfiler and it was very efficient for me. I recorded measurement data from my app which i could analyze on the fly and afterwards as well. But i'm not sure if this is what you need. "Automatic stress test". Maybe you could run a bunch of Selenium tests while running JProfiler? Will you use commercial or do you prefer 'free' (sorry for the term) tools?
Have fun anyway :)
Dave

Tool similar to Dynatrace [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Is there anything out there which is similar to this tool? I'm hoping to do some verification of our caching setup with Hibernate.
I found TPTP, but it seems that the project is dead.
Is there any other good profiling tool out there to verify Hibernate Caching configurations?
You could try jvisualvm, it is bundled with the jvm since 1.6_10.
It should enable you to inspect the heap and stack, even against jvm's that are running on a remote host.
Have you tried yourkit? In J2EE mode it can show you the Database calls you app does. If you dont implement caching properly it will show you the extra calls. It has a free 30 day trial. Should be enough for a one off test

Documentation tool that allows building documentation from tests [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have made a couple dozens of tests for a legacy system I was handed over.
They generally test/describe some high level feature of the system, and I generally include in the test file itself a little comment about that feature. In this way, I both have a regression test suite and I'm compiling knowledge of the system in a single place, so others in the future don't have to lose all the time I lost trying to understand the (up to now) undocumented system.
Now, I was looking for some tool that would allow me to organize and see the high level features in a simpler way than having to look up to the test files. If it allowed a tag system, even better.
I have heard of Fitnesse but it doesn't look to fit really in what I'm looking for. I'm not looking for a tool to bridge the communication between the client and developers.
This project is coded in Java.
Thanks
If you moved the documentation from the unit tests to the classes you are testing, you could use either standard JavaDoc or doxygen.

Looking for free and easy that (auto) generates JUnit tests [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Can I get recommendations of free and easy tool(s) that can generate JUnit tests based on existing code?
Either as a stand-alone application or pref. an Eclipse-plugin.
Well, depends on what do you need your tests for...
If just to have tests coverage and basic behavior tested - then yes, use can use test generators.
If you are serious about the project and plan to expend it, see the future of the project - then it would be really better to create good unit tests in traditional way.

Categories

Resources