Software Testing soot —— 软件测试soot安装及使用
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Software Testing soot —— 软件测试soot安装及使用相关的知识,希望对你有一定的参考价值。
Well, I try to install soot in Eclipse through "help -> install...", but when I finish it, I can not find "soot" on the right click of project.
So, I use soot in command line.
Firstly, put soot-trunk.jar under bin. And run soot.
java -cp soot-trunk.jar soot.tools.CFGViewer --soot-classpath .;"%JAVA_HOME%"\\jre\\lib\\rt.jar homeWork.homeWork
Tipes: The first one is package name, and the second one is class name.
Then, open the file. There is a new file called "sootOutput".
As we can see, A new document is created in sootOutput.
Open the document, it is difficult for us to read clearly.
Thus, install graphviz. Use graphviz dot to switch a document to a picture. Before that, we should config environment.
The name of the document is too long, so I change the name.
Run graphviz dot.
dot -Tpng -o homeWork.png homeWork.dot
Give the name of the picture and the last one is the name of your document.
Result.
以上是关于Software Testing soot —— 软件测试soot安装及使用的主要内容,如果未能解决你的问题,请参考以下文章