在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

 

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/

 

 

原创粉丝点击