您的位置:軟件測試 > 開源軟件測試 > 開源性能測試工具 > TPTP接口
Eclipse的TPTP工具使用方法
作者:網絡轉載 發(fā)布時間:[ 2012/12/17 15:58:21 ] 推薦標簽:
   
    /* 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()");}

 

右鍵點擊CarModel.java,這時會在彈出菜單中顯示出Profile As ->Java Application
運行.
同時切換視圖到”Profiling and logging”,這樣可以得到正在運行中程序的Profile
在這個視圖中如果設置得當的話可以查看到如下結果:

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

上一頁12下一頁
軟件測試工具 | 聯系我們 | 投訴建議 | 誠聘英才 | 申請使用列表 | 網站地圖
滬ICP備07036474 2003-2017 版權所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd