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.

时间: 2024-11-08 18:29:16

Software Testing soot —— 软件测试soot安装及使用的相关文章

Software Testing Lab2 (软件测试实验二) —— Selenium安装及入门

Download and install Firefox browser If you are the user of WINDOWS, there is a link available for you. Download and install selenium&firebug There is the way that how I finish this step. Open Firefox, click the buttom like picture. Then, search sele

《Software Testing》 exercise 3 : 安装并使用PICT

下载安装pict33.msi,网址http://vdisk.weibo.com/s/d6k2tcgXDa7Eq 安装完后找到文件pict.exe所在目录:C:\Program Files (x86)\PICT 在C:\Program Files (x86)\PICT目录下新建一个txt文本,把参数填入txt文本中. 打开开始-运行,输入CMD进入命令提示符.输入命令cd C:\Program Files (x86)\PICT进入工作目录.输入pict test.txt 命令输出结果. 将结果输出

soot的安安装与使用

soot 工具是一个可以分析多种源代码的工具,可以进行插桩,最新版本可对android apk文件,进行相应的分析以往可以直接在eclipse里面在线安装. soot(A framework for analyzing and transforming Java and Android Applications)主页http://sable.github.io/soot/ 在线自动安装: 安装完eclipse之后,打开eclipse,并且安装soot插件. 进eclipse,点help,点ins

Exploratory Software Testing

最近找到去年上半年看过一本关于测试方面书籍的总结笔记,一直放在我的个人U盘里,当时是用Xmind记录的,现在重新整理下分享给大家了! James A.Whittaker [美] 詹姆斯·惠特克(软件测试领域绝对的大师)著作<Exploratory Software Testing>,中文名<探索式软件测试>,记得当时被这本书深深吸引啦(我不知道有多少做测试的小伙伴看过这本书)!感觉是测试方面一本必不可少的书籍,瞬间感觉测试的魅力!废话不多说,直接来干货,希望可以给对探索式测试喜欢或

Software Testing, Lab 1

Software Testing, Lab 1 一.实验要求: Install Junit(4.12), Hamcrest(1.3) with Eclipse Install Eclemma with Eclipse Write a java program for the triangle problem and test the program with Junit. a)       Description of triangle problem: Function triangle ta

Software Testing Techniques LAB 02: Selenium

1. Installing 1. Install firefox 38.5.1 2. Install SeleniumIDE    After installing, I set the view of toolbox, then we can see this 3. Install Selenium Client & WebDrive 4. Install Selenium Standalone Server 5. Installed Test After downloading we hav

Software Testing Concepts

Software Testing Concepts

Software Testing Homework of Lesson2(FindBugs的安装及使用)

FindBugs的安装及使用 开始使用URI的方式在线安装,安装两次都失败了,所以先下载FindBugs插件压缩包,将其解压后拷贝到Eclipse的Plugin目录下,重新启动Eclipse即可 安装或在项目或是java文件上右击可以出现findbugs选项,如图 首先在window中添加findbugs的view,选择第一项即可使用该工具,使用结果 双击某一项就可以看到bug对应的代码 我双击的是检查结果的第一项,这是一个实现Serializable接口的类,但是其中的intent成员并没有实

Software Testing (软件测试作业三) HW3 prin

The source code: 源代码: /******************************************************* * Finds and prints n prime integers * Jeff Offutt, Spring 2003 ******************************************************/ public static void printPrimes (int n) { int curPrim