惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Spread Privacy
Spread Privacy
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
SecWiki News
SecWiki News
腾讯CDC
P
Privacy International News Feed
Webroot Blog
Webroot Blog
J
Java Code Geeks
爱范儿
爱范儿
A
About on SuperTechFans
S
Secure Thoughts
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
D
DataBreaches.Net
Cloudbric
Cloudbric
Security Archives - TechRepublic
Security Archives - TechRepublic
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Security Latest
Security Latest
Forbes - Security
Forbes - Security
小众软件
小众软件
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Threatpost
量子位
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
W
WeLiveSecurity
P
Privacy & Cybersecurity Law Blog
Vercel News
Vercel News
Google Online Security Blog
Google Online Security Blog
云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
S
Security @ Cisco Blogs
T
The Exploit Database - CXSecurity.com
Help Net Security
Help Net Security
V
Visual Studio Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 聂微东
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
Attack and Defense Labs
Attack and Defense Labs

博客园 - 测试之家

英文资源检查工具 鸭子和螃蟹 管道(一个不常用,但是很用的功能) 让VB应用程序支持鼠标滚轮 安装程序文件测试工具 监视进程 ACT 对象描述----connection对象简历 (1) 自己带领新人的一些过程(2) 尴尬的课堂往事 搜索引擎大全(很常用的哦) ACT 客户端创建的负载量估计值 自己带领新人的一些过程(1) 如何根据IP得到对方的机器名? 利用google查找资料 联系方式 汉字的对话(搞笑版) 蝴蝶嫁蜗牛 新的历史翻开一页——解决不久前碰到与磁盘碎片有关的问题 介绍一下本人常用操作系统快键(原创)
去微软测试的总结——ACT(原创)
测试之家 · 2005-04-05 · via 博客园 - 测试之家

Microsoft Application Center Test是一个基于软件的能够对Web服务器产生负载的压力测试工具。可以通过查看性能报告分析和诊断性能问题,并且判断出Web应该程序的性能极限。还可以用ACT针对Web应用程序通过录制或手工创建测试脚本的方法来得到测试脚本。这些脚本可以根据某种用户场景模拟出许多浏览器同时访问某些页面的情景。但是其对于测试场景以及测试结果分析比较的简单,与lr测试工具相差比较远。由于简单,比较容易上手,如果不需要比较复杂的并发用户数以及对于测试结果分析要求不是很高选择act还是不错的。

1、运行场景中可以设置代理服务器,在工程的属性窗口中;
2、设置日志,同样也在工程的属性窗口,并且可以设置日志保存的位置,默认在C:\Program Files\Microsoft ACT\ACTTrace.log,但在必须将测试脚本中的Test.TraceLevel属性;
3、可以设置压力系数,如10 connections,在test的属性窗口中;
4、对于测试周期有两种方式,一种是运行时间设置,另外一种是运行周期设置,同样的test的属性窗口中;

附本人常的测试代码:
option explicit
Dim fEnableDelays  '是否进行sleep
fEnableDelays = False

dim lngSleep   '进行sleep的时间
lngSleep = 0

dim strHostName   '进行连接的机器名
strHostName = "192.168.115.1"

dim strFilePath   '文件位置
strFilePath = "/test/index.aspx"


sub sendRequest()
 dim oConnection,oRequest,oResponse,oHeaders,strStatusCode
 if fEnableDelays = true then test.sleep(lngSleep)
 set oConnection = Test.CreateConnection(strHostName, 80)
 
 if (oConnection is nothing ) then
  Test.Trace("Error: unable to create connection")
 else
  set oRequest = Test.CreateRequest
  oRequest.Path = strFilePath
  oRequest.Verb = "GET"
  oRequest.HTTPVersion = "HTTP/1.1"
  
  set oHeaders = oRequest.Headers
  oHeaders.RemoveAll
  oHeaders.Add "Accept", "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*"
        oHeaders.Add "Accept-Language", "zh-cn"
        oHeaders.Add "Cookie", "(automatic)"
        oHeaders.Add "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"                  
        oHeaders.Add "Host", "(automatic)"
        oHeaders.Add "Cookie", "(automatic)"  
       
        set oResponse = oConnection.Send(oRequest)
        if (oResponse is nothing ) then
   Test.Trace "Error:failed to Receive for url to" + strFilePath
        else
   strStatusCode = oResponse.ResultCode
        end if
       
  oConnection.close
 end if
end sub

Sub Main()
 'Test.TraceLevel = -1
 dim i
 'for i = 0 to 10
  call SendRequest() 
 'next
 
end sub

main