Changes between Version 4 and Version 5 of autotest


Ignore:
Timestamp:
05/16/2012 03:05:51 PM (14 years ago)
Author:
qinhongyuan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • autotest

    v4 v5  
    44    可以使用多种语言编写测试用例,可以使用Java,但是推荐使用ruby来编写,因为使用ruby来编写的话,语言简洁很多,而且测试人员可以很简单地去编写Ruby脚本[[BR]] 
    55    具有录制功能,但是只针对在firefox下,录制生成的脚本可以转为各种语言的测试用例。 
     6---- 
     7== 安装:== 
     8- [http://files.rubyforge.vm.bytemark.co.uk/rubyinstaller/rubyinstaller-1.9.2-p290.exe window-下载ruby][[BR]] 
     9 
     10- [http://rubyforge.org/frs/download.php/66888/devkit-3.4.5r3-20091110.7z window-DevKit]      [https://github.com/oneclick/rubyinstaller/downloads 更多DevKit] 
     11 
     12- 下载ruby 安装 , 修改系统path配置 , 命令行输入ruby -v  
     13- 下载DevKit 安装 (安装时,路径不要有空格) 
     14- 到DevKit安装目录,命令行 
     15{{{ 
     16> cd <DEVKIT_INSTALL_DIR> 
     17> ruby dk.rb init 
     18#生成config.yml,这里会检查将要添加DevKit支持的Ruby列表,只支持通过RubyInstaller安装的Ruby 
     19#如果这里列出的Ruby与你的要求不符,可以手动修改 
     20> ruby dk.rb review  #检查要添加DevKit支持的Ruby列表是否有误,可以略过 
     21> ruby dk.rb install 
     22[INFO] Updating convenience notice gem override for 'C:/Ruby192' 
     23[INFO] Installing 'C:/Ruby192/lib/ruby/site_ruby/devkit.rb' 
     24> 
     25}}} 
     26 
     27- 检查是否安装成功 
     28{{{ 
     29> gem install selenium-webdriver 
     30}}} 
     31 
     32- selenium-webdriver 就是测试工具,安装成功即可 
     33{{{ 
     34C:\Documents and Settings\pc>gem install selenium-webdriver 
     35Temporarily enhancing PATH to include DevKit... 
     36Building native extensions.  This could take a while... 
     37Fetching: childprocess-0.3.2.gem (100%) 
     38Fetching: addressable-2.2.8.gem (100%) 
     39Fetching: libwebsocket-0.1.3.gem (100%) 
     40Fetching: selenium-webdriver-2.21.2.gem (100%) 
     41Successfully installed ffi-1.0.11 
     42Successfully installed childprocess-0.3.2 
     43Successfully installed addressable-2.2.8 
     44Successfully installed libwebsocket-0.1.3 
     45Successfully installed selenium-webdriver-2.21.2 
     465 gems installed 
     47Installing ri documentation for ffi-1.0.11... 
     48Installing ri documentation for childprocess-0.3.2... 
     49Installing ri documentation for addressable-2.2.8... 
     50Installing ri documentation for libwebsocket-0.1.3... 
     51Installing ri documentation for selenium-webdriver-2.21.2... 
     52Installing RDoc documentation for ffi-1.0.11... 
     53Installing RDoc documentation for childprocess-0.3.2... 
     54Installing RDoc documentation for addressable-2.2.8... 
     55Installing RDoc documentation for libwebsocket-0.1.3... 
     56Installing RDoc documentation for selenium-webdriver-2.21.2... 
     57}}} 
     58 
     59- 编写第一个案例,打开netbeans ,新建ruby工程 
     60{{{ 
     61 
     62}}}