文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Watir自动测试应用(3):数据库连接篇

Watir自动测试应用(3):数据库连接篇

时间:2011-02-14  来源:Douglasyang

  1. 首先要下载DevKit 
  2. 安装DBI 使用gem install dbi
  3. 安装 dbd-odbc gem install dbd-odbc 
  4. 安装 dbi  gem install dbi 
  5. 安装 ruby-odbc gem install ruby-odbc 如果遇到以下情况:下载DevKit https://github.com/oneclick/rubyinstaller/wiki/development-kit

Fetching: ruby-odbc-0.99994.gem (100%) 
ERROR:  Error installing ruby-odbc: 
The 'ruby-odbc' native gem requires installed build tools. 
Please update your PATH to include build tools or download the DevKit 
from 'http://rubyinstaller.org/downloads' and follow the instructions 
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' 

OK,可以使用ODBC连接你的SqlServer数据库了,在这里要注意的就是自己电脑要装相对应的ODBC类库哦。

因为这里说的自动测试没有相关数据库方面的,所以在这里不介绍相关数据库方面的测试,本系列文章只关于页面级测试内容。

相关阅读 更多 +
排行榜 更多 +
ooxe官方版下载

ooxe官方版下载

金融理财 下载
ooxe

ooxe

金融理财 下载
OXE交易app安卓版下载

OXE交易app安卓版下载

金融理财 下载