在LoadRunner中使用MySQL替代VTS
来源:互联网 发布:广州房价 知乎 编辑:程序博客网 时间:2024/06/11 11:59
Richard Bishop在《Using MySQL instead of VTS for LoadRunner》这篇文章中介绍了如何使用MySQL替代VTS:
http://www.bish.co.uk/~richardmjbishop/index.php?option=com_content&view=article&id=89%3Ausing-mysql-instead-of-vts-for-loadrunner&catid=34%3Arecent&Itemid=1
VTS(Virtual Table Server)用来解决跨脚本测试数据共享的问题,但是存在很多缺点,例如:
- VTS can only read in data one row at a time. Queries must then be written in LoadRunner using C code to determine whether the data is suitable for use. This is inefficient when compared to SQL queries which execute on the server and can return data directly to the vUser.
- VTS is not officially supported by HP (and it wasn't supported by Mercury). MySQL isn't supported either, but MySQL is well documented on the Internet and there is an established user community as well as large numbers of people familiar with SQL syntax.
- VTS is an in-memory database and needs to import data before a test and export data to file before it is shut down. This makes it very easy to accidentally close VTS before data is saved and lose your test data. MySQL and other databases automatically save the database tables when they shut down which reduces the risk of this occurring.
使用MySQL可以很好地解决这些问题,关于具体如何在LoadRunner中连接MySQL,可参考(提供了一个MySQL连接的DLL以及一些使用样例):
http://www.bish.co.uk/forum/index.php?topic=50.msg60#msg60
VTS的内容请参考:
http://www.wilsonmar.com/1mercvts.htm
http://www.myloadtest.com/mercury-virtual-table-server/
更多关于LoadRunner连接MySQL的内容请参考:
http://www.myloadtest.com/connecting-to-a-mysql-database-with-loadrunner/
- 在LoadRunner中使用MySQL替代VTS
- 在.NET 中使用Javascript 替代Lua
- 在LoadRunner中使用SSH连接Linux
- 在LoadRunner中使用windows socket协议
- LoadRunner使用mysql数据源
- 在QTP中使用Dictionary对象来替代环境变量
- 在switch分支中使用return可以替代break
- 在分布式项目中使用memcached+cookie替代session
- 在LoadRunner中使用文件的相关函数
- 如何在LoadRunner中使用集合点进行测试(十一)
- 性能loadrunner--使用loadrunner录制脚本时集合点只能在Action中插入
- LoadRunner中访问mysql数据库
- mysql 存储过程中使用游标中使用临时表可以替代数组效果
- mysql 存储过程中使用游标中使用临时表可以替代数组效果
- LoadRunner 使用SiteScope监控mysql
- 【LoadRunner】使用SiteScope监控mysql
- mysql中group by和order by同时使用无效的替代方案
- Lane-CentOS7(3)-使用MariaDB替代Mysql
- AS学习网址大全
- FAQ10:函数调用和返回时,堆栈是怎么变化的?
- smali反编译dex
- 可空类型(C# 编程指南)(MSDN)
- 给地图叠加层(地铁)
- 在LoadRunner中使用MySQL替代VTS
- IE8 中 session 管理的变化(转)
- 陪伴女儿成长:上海70男养女日记 2010年3月27日之熄灯
- 15位改变了互联网的重要人物
- 免费代码大全
- Web前台设计——DIV+CSS
- sping 配置文件信息及相应异常处理
- 常见EXCEPTION
- oracle 创建自动增加主键的表