在LoadRunner中使用MySQL替代VTS

本文介绍如何通过MySQL解决跨脚本测试数据共享问题,对比VTS的缺点,强调MySQL在效率、官方支持、数据安全性方面的优势,并提供在LoadRunner中连接MySQL的具体方法和相关资源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

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

 

VTSVirtual 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/

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值