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

被折叠的 条评论
为什么被折叠?



