您的位置:軟件測(cè)試 > 開(kāi)源軟件測(cè)試 > 開(kāi)源性能測(cè)試工具 > TPTP接口
Eclipse的TPTP工具使用方法
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時(shí)間:[ 2012/12/17 15:58:21 ] 推薦標(biāo)簽:
   
    /* Simulates car usage */
    public static void simulateCarUsage(CarModel car)
    { 
      car.left.window.rollup();
      car.engine.start();
      car.engine.rev();
      car.wheel[0].align();
      car.engine.stop();
    }
}


/* Inner classes used to model car parts */
class Engine
{       
    public void start()
      { System.out.println("Start the car.");}
    public void rev()  
      {System.out.println("Rev the engine.");}
    public void stop() 
      {System.out.println("Car stopped.");}
}

class Wheel
{       
    public void align()
      {System.out.println("Tires aligned.");} 
}

class Window
{       
    public void rollup()
      {System.out.println("Rollup the window.");}
    public void rolldown()
      {System.out.println("Rolldown the window.");}
}

class Door
{
    public Window window = new Window();
    public void open()
          {System.out.println("Open()");}
    public void close()
      {System.out.println("Close()");}

 

右鍵點(diǎn)擊CarModel.java,這時(shí)會(huì)在彈出菜單中顯示出Profile As ->Java Application
運(yùn)行.
同時(shí)切換視圖到”Profiling and logging”,這樣可以得到正在運(yùn)行中程序的Profile
在這個(gè)視圖中如果設(shè)置得當(dāng)?shù)脑捒梢圆榭吹饺缦陆Y(jié)果:

1.        Coverage
2.        Execution flow
3.        Memory
4.        Object Reference
5.        UML2 object/class/Thread Interaction

下載地址:
  Eclipse SDK 3.1.0(Win32):   www.eclipse.com/downloads/index.php
JDK 1.4(Win32):    java.sun.com
EMF SDK 2.1.0(Win32): www.eclipse.com/downloads/index.php
XSD 2.1.0(Win32):http://download.eclipse.org/tools/emf/downloads/drops/2.1.0/R200507070200/xsd-SDK-2.1.0.zip:TPTP(Win32)
http://download.eclipse.org/tptp/4.1.0/TPTP-4.1.0-200511150100/tptp.runtime-TPTP-4.1.0-200511150100.zip
Agent Controller(Win32):http://download.eclipse.org/tptp/4.1.0/TPTP-4.1.0-200511150100/tptpdc.win_ia32-TPTP-4.1.0-200511150100.zip

上一頁(yè)12下一頁(yè)
軟件測(cè)試工具 | 聯(lián)系我們 | 投訴建議 | 誠(chéng)聘英才 | 申請(qǐng)使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd