51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 4632|回复: 6
打印 上一主题 下一主题

[原创] 模拟50个用户并发,结果为什么不是50个

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-12-4 13:48:31 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
在使用LR测试时候,前面我提过一个问题,就是如何测上传,
后来使用LR的万能协议,我搞定了

但是新问题出现了,我模拟1个用户,上传1张照片成功。模拟10个也上传10张
但是我模拟 30个却上传了 20张 ,模拟50个只上传了 23张
LR 运行结果都是PASS 的
按正常来说不是都应该在结果中吗 ???
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

7#
 楼主| 发表于 2008-12-4 15:44:40 | 只看该作者
纠正你个观念

即便是单个用户,我用LR 模拟50个并发难道不可以吗?? 性能测试的点就在点击“上传”吧
这点 和是谁登录没有关系

                 个人观点
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2008-12-4 15:38:18 | 只看该作者
那些东西是被我改过的
这点东西我还做不到啊 ,你认为LR能读中文
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2008-12-4 15:00:07 | 只看该作者
汗。。。业务脚本就不要发了,有关机密哈,嘿嘿(话说在中石油可是很爽滴
不过确实发现了这个问题,其中没有任何参数化,也就是说同一个用户,上传图片,在loadrunner中没有并发的概念,即便系统支持统一用户不同IP的登陆,但是loadrunner也只会认为是一个用户的。
你可以和管事儿的沟通添加同一业务逻辑下的多个用户进行测试。如果像你说的每个用户的场景都是不一样的,那就麻烦了。。只能每个录制一个脚本,然后在Controller里设置场景,让所有脚本同时跑,但是这样的话貌似“并发”就不真实了吧?
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2008-12-4 14:48:40 | 只看该作者

知道结果了,够我郁闷半天了

刚才和我们开发人员沟通了一下,人家说我这是针对同一个企业进行的操作,在照片上传过程中被系统进行了重命名 ,
而1秒之内上传不同的照片重命名后的名称还是相同的。。。。。。

他要我模拟100个不用的用户,我 真想揍他

首先 ,系统不只是一个上传功能
其次 ,不同用户操作的是不同 东西 我用 LR能识别吗 ?
再次 ,我鄙视他不该程序帮我测
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2008-12-4 14:44:17 | 只看该作者

加一点脚本给你看看

lr_end_transaction("01选择中国石油",LR_AUTO);


        lr_start_transaction("02点击上传");

        web_submit_data("PspicUpload.aspx_2",
                "Action=http://192.168.1.24/zxsbwebsite/PspicUpload.aspx?PSCode=110111000005&PSName=%u4e2d%u56fd%u77f3%u6cb9%u5316%u5de5%u80a1%u4efd%u6709%u9650%u516c%u53f8%u5317%u4eac%u71d5%u5c71%u5206%u516c%u53f8%u70bc%u6cb9%u5382",
                "Method=POST",
                "EncType=multipart/form-data",
                "RecContentType=text/html",
                "Referer=http://192.168.1.24/zxsbwebsite/PspicUpload.aspx?PSCode=110111000005&PSName=中国石油化工股份有限公司北京燕山分公司炼油厂",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=ToolkitScriptManager1_HiddenField", "Value=;;AjaxControlToolkit, Version=1.0.20229.17233, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e:zh-CN:82b5721c-233f-49be-9e97-8497f10eda8e:9ea3f0e2:e2e86ef9:9e8e87e9:1df13a87:80f47b59", ENDITEM,
                "Name=__EVENTTARGET", "Value=", ENDITEM,
                "Name=__EVENTARGUMENT", "Value=", ENDITEM,
                "Name=__VIEWSTATE", "Value=/wEPDwULLTE5NDQzMjA0NDAPZBYCAgMPFgIeB2VuY3R5cGUFE211bHRpcGFydC9mb3JtLWRhdGEWGAIBDw8WAh4EVGV4dAVC5Lit5Zu955+z5rK55YyW5bel6IKh5Lu95pyJ6ZmQ5YWs5Y+45YyX5Lqs54eV5bGx5YiG5YWs5Y+454K85rK55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ZpbGVnYXNvdXRwaWMnKTtkAg8PZBYCZg9kFgICAQ88KwAJAQAPFgQfAxYAHwRmZGQCHA9kFgYCAQ9kFgRmDxUBGOWbm+iSuOmmj+ijhee9ruWKoOeDreeCiWQCAQ8WAh8BBS48Zm9udCBjb2xvcj0iI0ZENjgwNCI+KOacquS4iuS8oOeFp+eJhyk8L2ZvbnQ+"
                "ZAIJDw9kFgIfAgUtcmV0dXJuIGNoZWNrKCdkbGdhc291dF9jdGwyOF9GaWxlZ2Fzb3V0cGljJyk7ZAIPD2QWAmYPZBYCAgEPPCsACQEADxYEHwMWAB8EZmRkAh0PZBYGAgEPZBYEZg8VAQBkAgEPFgIfAQUuPGZvbnQgY29sb3I9IiNGRDY4MDQiPijmnKrkuIrkvKDnhafniYcpPC9mb250PmQCCQ8PZBYCHwIFLXJldHVybiBjaGVjaygnZGxnYXNvdXRfY3RsMjlfRmlsZWdhc291dHBpYycpO2QCDw9kFgJmD2QWAgIBDzwrAAkBAA8WBB8DFgAfBGZkZAIFD2QWAgIBDxYCHwFlZAIHDzwrAAkBAA8WBB8DFgAfBAIEZBYIZg9kFgYCAQ9kFgRmDxUBD+WHpOWHsOS6reays+mBk2QCAQ8WAh8BBS48Zm9udCBjb2xvcj0iI0ZENjgwNCI+KOacquS4iuS8oOeFp+"
                "eJhyk8L2ZvbnQ+"
                "
                "Name=
回复 支持 反对

使用道具 举报

该用户从未签到

2#
发表于 2008-12-4 14:37:22 | 只看该作者
没脚本。。可能出现的问题很多。。。不知道怎么帮你
建议上传操作添加事务,查看是否成功执行了50次,或者设置检查点,上传后,看页面返回了几次成功提示。。。等等。。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-12 06:39 , Processed in 0.074525 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表