如何设置“唯一数据/用户”使得每个用户对其所有相应的迭代使用相同的数据(在第一瞬间选择) [英] How to set "Unique data/user" such that each user uses same data(selected at first instant) for all its corresponding iterations

查看:136
本文介绍了如何设置“唯一数据/用户”使得每个用户对其所有相应的迭代使用相同的数据(在第一瞬间选择)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我目前正在研究VSTS2010并对数据访问方法进行以下查询

I'm currently working on VSTS2010 and have the below query on Data Access Method

1。我正在录制Sharepoint门户,并且应用程序在启动门户时不会要求我提供用户凭据。我相信它从Windows身份验证中获取它。

1. I'm recording a Sharepoint portal and the application does not asks me for user credentials while launching the portal. I beleive it takes it from windows authentication.

2。我没有在脚本中的任何地方找到用户名/密码,也没有找到为此脚本生成的代码。因此,当我在另一台机器上重放脚本时,脚本因用户身份验证而失败。

2. I do not find the username/password being recorded anywhere in the script nor in the code generated for this script. Because of this while I replay the script on a different machine the script fails due to user authentication.

3。为了克服第2点中的问题,我使用了"设置凭证"。选项并提供用户名和密码。该脚本在任何计算机上运行良好,但现在我需要为相同的登录脚本模拟100个用户,并且每个用户使用唯一的
凭证登录。

3. To overcome the issue in point 2, I used the "set credentials" option and provided the username and password. The script worked fine from any machine, but now I need to simulate 100 users for the same login script and each user logins in using unique credentials.

4。我尝试使用"set datasource access method as -unique"。在这种情况下,我观​​察到的是,单个用户的每次迭代使用唯一数据(即唯一 - 每次迭代)。但我想要的是100个用户使用唯一ID登录,然后为所有相应的迭代保留
相同的Id(即Loadrunner术语中的唯一-once)

4. I tried using the "set datasource access method as -unique". In this case what I observe is, unique data is being used for each iteration of a single user (ie unique - each iteration). But what i want is 100 users login using unique id and then retain the same Id for all of its corresponding iterations (ie unique -once in Loadrunner terminology)

你能请帮我解决这个问题。

Can you kindly help me resolve this.

谢谢

推荐答案

您必须编写自定义代码才能实现此目的。

You will have to write custom code to achive this.

实施
ILoadTestPlugin
界面和钩子自定义  LoadTest事件根据要求。

Implement ILoadTestPlugin interface and hook custom LoadTest events as per the requirement.

-Tejas。


这篇关于如何设置“唯一数据/用户”使得每个用户对其所有相应的迭代使用相同的数据(在第一瞬间选择)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆