本文介绍了Loadrunner-在脚本之间共享常见操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Loadrunner中,有一种聪明的方法可以在脚本之间共享常见操作吗?

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

让我解释一下.我们公司将不得不根据不同的场景创建50个不同的脚本.其中大多数要求登录到我们的网站,然后注销.更改登录请求后,必须更新50个脚本有点烦人.可以创建一次,然后将其用于所有其他脚本吗?

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?

使用C语言,Web-http,Loadrunner 11.5

Using C-language, Web - http, Loadrunner 11.5

推荐答案

使用C头文件,例如myfunctions.h

Use a C header file, such as myfunctions.h

您可以将此文件作为一个单独的文件包含在脚本中,将其复制到所有负载生成器loadrunner \ include目录(默认搜索范围),或在所有负载生成器都可以访问的网络位置中提供它

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

这篇关于Loadrunner-在脚本之间共享常见操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-03 18:05