Loadrunner - share common action between scripts

左心房为你撑大大i 提交于 2019-12-24 10:38:20

问题


Is there a clever way to share common actions between scripts in Loadrunner?

Let me explain. Our company will have to create 50 different scripts with different scenarios. Most of them requires logging on to our website, and logging out. It's kind of annoying to have to update 50 scripts, when the log-in requests are changed. Can this be created once, and be used by all the other scripts?

Using C-language, Web - http, Loadrunner 11.5


回答1:


Use a C header file, such as myfunctions.h

You can either include this as a separate file in your script, copy it to all of the load generators loadrunner\include directory (default search scope) or provide it in a network location which is accessible to all load generators



来源:https://stackoverflow.com/questions/26670742/loadrunner-share-common-action-between-scripts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!