实用性测试(Pragmatistic Testing)

Seeing is not believing!Testing is believing!做个实用主义测试者!

2009年12月12日

置顶 原创 QTP自动化测试培训大纲


QTP自动化测试培训大纲


面向目标:软件测试工程师、QA、测试经理

课程大纲:
1、如何开展自动化功能测试?
2、GUI测试工具原理
    练习1:自己动手设计和编写一个小型的基于GUI的自动化测试工具。

3、QTP基本概念、QTP基本使用方法(QTP检查点、参数化、DataTable、对象库管理)
4、线性框架的缺陷
5、模块化框架、函数库结构框架
    练习2:完成某个项目指定功能的测试用例的自动化实现。

6、Data-Driven测试框架
    练习3:使用数据驱动方式完成某个项目指定功能的自动化测试脚本编写。

7、DP vs. OR ( QTP描述性编程技术及应用 )
8、KeyWord-Driven测试框架
    练习4:完整剖析一个关键字驱动测试框架的源代码。

9、对象识别与控制、第三方控件测试方法
阅读全文>

发表于 @ 2009年12月12日 17:27:00 | 评论( loading... ) | 编辑| 举报| 收藏

2010年02月09日

原创 LoadRunner监控Tomcat的几种方法

通过JConsole监控Tomcat
1、打开tomcat5的bin目录中的catalina.bat文件,在头部注释部分的后面加上:
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false

2、修改JMX远程访问授权。
进入JAVA安装目录的\jre6\lib\management目录,把jmxremote.password.template文件改名为jmxremote.password,去掉最后两行的注释(用户名和密码):
monitorRole  QED
controlRole   R&D

确保jmxremote.access文件末尾的访问角色没有被注释掉:
monitorRole   readonly
con阅读全文>

发表于 @ 2010年02月09日 16:37:00 | 评论( loading... ) | 编辑| 举报| 收藏

2010年02月06日

原创 WebLoad初印象



这几天简要看了一下WebLoad。写些东西下来,以备工具选型用。

相比起LoadRunner,它支持的协议要少一些,但是WebLoad的功能还是比较全面的,WebLoad IDE类似于LR中的VUGen,WebLoad Console类似于LR的Controller,WebLoad Analytics类似于LR的Analysis。

WebLoad IDE中的Agenda Tree +  Execution View +  Browser View 类似于LR中的TreeView视图。

WebLoad的脚本采用的是JavaScript。

试用版下载:
http://www.radview.com/DownloadCenter/ProductEvaluation.aspx

WebLoad在线Sample网站(WebLoad的很多视频和教程都基于这个网站来做的):
http://www.webloadmpstore.com/in阅读全文>

发表于 @ 2010年02月06日 16:09:00 | 评论( loading... ) | 编辑| 举报| 收藏

2010年02月05日

原创 LoadRunner测试GWT


GWT(Google Web Toolkit) 是 Google 推出的 Ajax 应用开发包,GWT 支持开发者使用Java 语言开发 Ajax 应用。

LoadRunner中的AJAX 函数支持的框架包括:
·   Atlas 1.0.10920.0/ASP.NET AJAX - 所有控件
·   Scriptaculous 1.8 - 自动完成、重新排序列表和滑块
VuGen 支持引擎级别的以下框架。这表示 VuGen 将创建标准的 Web (Click and Script) 步骤,而不是创建 AJAX 特定函数:
·   Prototype 1.6
·   Google Web Toolkit (GWT) 1.4

其中包括了GWT。下载了一个gwt-windows-1.4.61,解压后可以在里面的samples目录找到一些GWT的AJAX应用的例子,测试了一下其中的DynaTable。

启动其中的DynaTable-shell.cmd批处理文阅读全文>

发表于 @ 2010年02月05日 22:25:00 | 评论( loading... ) | 编辑| 举报| 收藏

原创 LoadRunner测试Google Suggest



Google的搜索框是典型的AJAX应用,用户在输入关键字的同时,前端页面通过xmlhttp与后台服务器动态交互,根据用户输入的关键字查找匹配的内容,向用户提示建议的搜索项,也就是所谓的“google suggest”。

如果使用LoadRunner进行测试,采用AJAX(Click and Script)协议录制的话会得到以下脚本:

Action()
{

       web_add_cookie_ex("Cookie=PREF=ID=372e76ef6c7e842e:U=1961d03ffd7ab924:NW=1:TM=1264934277:LM=1264934316:S=OYfvCjRzGq1u4u4z; domain=google.cn; path=/", ENDITEM,
              "Cookie=NID=31=hwv9eoM6IVUuD1ssILGftThmu8fjLzTdRUZXJTwcEggxBjCoy4Fh3dEsZVLVZ66_W阅读全文>

发表于 @ 2010年02月05日 15:39:00 | 评论( loading... ) | 编辑| 举报| 收藏

原创 LoadRunner测试一个简单的AJAX例子




测试的例子:
http://www.degraeve.com/reference/simple-ajax-example.php



如果用WEB(HTTP/HTML)协议来录制,则AJAX行为会被录制成web_submit_data函数:
Action()
{

       web_add_cookie("__utma=251078419.1213328951.1265334283.1265334283.1265339393.2; DOMAIN=www.degraeve.com");

       web_add_cookie("__utmz=251078419.1265334283.1.1.utmccn=(referral)|utmcsr=wilsonmar.com|utmcct=/ajax_rec.htm|utmcmd=referral; DOMAIN=www.degraeve.com");

阅读全文>

发表于 @ 2010年02月05日 12:26:00 | 评论( loading... ) | 编辑| 举报| 收藏

2010年02月04日

原创 LoadRunner测试AJAX


什么是AJAX?
Ajax, shorthand for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire web page does not have to be reloaded each time the user requests a change.This is meant to increase the web page's interactivity, speed, and usability.

The Ajax technique uses a combination of:阅读全文>

发表于 @ 2010年02月04日 23:43:00 | 评论( loading... ) | 编辑| 举报| 收藏

原创 RPT8.1新特性


RPT8.1下载地址:
http://www.ibm.com/developerworks/cn/downloads/r/rpt/



RPT8.1版本的新特性说明:What's new in Rational Performance Tester 8.1 (HTTP)
New features in this release include the ability to set performance requirements; split a test; define variables within a test; add comments, add transactions, and change page names during recording; watch a virtual user during a test run, replay a virtual user after a run completes, and create reports that change color whe阅读全文>

发表于 @ 2010年02月04日 12:30:00 | 评论( loading... ) | 编辑| 举报| 收藏

原创 RPT8.0


注:
1、本文最早于2009年4月发表于ITPub《RPT 8.0初印象 免编码显易用》
2、RPT目前最新版本是 RPT 8.1





IBM去年就已经发布了Rational Performance Tester 8.0版本,一直没时间去下载来试试,今天终于鼓起勇气去下载了这个2G多的安装包,并装到机器上,顺便看看它有了哪些方面的改进,能否挑动LoadRunner的王者位置。系统要求
首先看一下Rational Performance Tester 8.0对系统的要求:

操作系统
软件
硬件
Linux, Windows 2000, Windows 2003, Windows XP Professional
RedHat Desktop Version 4.0 Update 1-5 (running in 32-bit mode)
RedHat Enterprise Version 4.0 Update阅读全文>

发表于 @ 2010年02月04日 11:59:00 | 评论( loading... ) | 编辑| 举报| 收藏

原创 RPT录制问题


RPT(Rational Performance Tester)录制页面后出现错误。

问题:
录制后提示:
RPTO0029E 记录不包含已安装测试生成器的任何协议数据

解决办法:
录制页面时,访问的URL不要使用localhost或127.0.0.1,改用分配的IP地址,例如:
http://192.168.1.100:1080/webtours

参考:
http://www.sqaforums.com/showflat.php?Number=368429阅读全文>

发表于 @ 2010年02月04日 10:41:00 | 评论( loading... ) | 编辑| 举报| 收藏

原创 LoadRunner9.51中文帮助手册


在HP的网站上找到一个名为Chinese Documentation Pack的补丁,用于汉化LoadRunner9.51的部分文档:

LR_03013:
Simplified Chinese Documentation Pack for HP LoadRunner 9.51
下载地址(需要passport):
http://support.openview.hp.com/selfsolve/document/KM820410?searchIdentifier=18890701%3a12691c11aac%3a-2f44&resultType=document&documentURL=KM820410&resultsURL=%2fselfsolve%2fpatches&allowReturn=true


Ensure that you install the different versions
of LoadRunner in the following order:
阅读全文>

发表于 @ 2010年02月04日 00:00:00 | 评论( loading... ) | 编辑| 举报| 收藏

2010年02月03日

原创 在LoadRunner脚本中实现随机ThinkTime


一般情况下,我们都是通过Run-Time Settings来设置Think Time(思考时间),可以设置回放脚本时忽略思考时间,或者是设置回放随机的一段思考时间。

By default, when you run a Vuser script, the Vuser uses the think time values that were recorded into the script during the recording session. VuGen allows you to use the recorded think time, ignore it, or use a value related to the recorded time: Ignore think time. Ignore the recorded think time—replay the script ignoring all lr_think_time functions.Replay the think time. The second set of think阅读全文>

发表于 @ 2010年02月03日 22:26:00 | 评论( loading... ) | 编辑| 举报| 收藏

原创 LoadRunner监控SQLServer

添加SQL Server监视出错
Monitor name :MS SQL Server. Cannot create measurement SQLServer|User Connections| on machine 127.0.0.1.
Details: 在计算机上找不到指定的对象。

Hint:
Check that there is such a measurement on this machine.
Check that you selected the right platform for the monitored machine in the Add Machine dialog box.
Note: When you monitor a Win2000 machine from an NT, some counters may not be available.
Try to delete this measurement and add it again (use the Add 阅读全文>

发表于 @ 2010年02月03日 21:51:00 | 评论( loading... ) | 编辑| 举报| 收藏

原创 在LoadRunner中模拟真实用户行为需要注意的方面


性能测试应该模拟真实用户的场景和尽可能贴近用户的行为,在LR中模拟真实的用户行为与下面的设置有很大的关系:
1. Think Time
2. Action Blocks
3. Pacing
4. Iteration

Configurables for user behavior in Controller are as followed:
5. Ramp-up and Ramp-down rate
6. Rendezvous

参考:
http://www.loadrunnertnt.com/concepts/configuring-real-user-behavior-in-loadrunner-time/

http://www.loadrunnertnt.com/concepts/how-to-configure-vuser-behavior-in-vugen-that-affects-time/
阅读全文>

发表于 @ 2010年02月03日 16:40:00 | 评论( loading... ) | 编辑| 举报| 收藏

原创 在LoadRunner中设置HTTP请求time-out的时间


Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s) [MsgId: MERR-27728]

LR默认使用120秒作为每一个HTTP请求连接和接收和timeout时间,如果一个HTTP下载页面的时间超过120秒,那么就会碰到上面的错误提示。

Step Download Timeout means that the step needed to performed for the subsequent step to be performed have reached its timeout limit (default is 120 secs) in LoadRunner.

If the error occurs during the generation of the script (replay in Vugen), it could mean that the ap阅读全文>

发表于 @ 2010年02月03日 16:01:00 | 评论( loading... ) | 编辑| 举报| 收藏

原创 性能测试辅助工具 - HTTPWatch简介


在使用LoadRunner进行HTTP协议的压力测试时,可以使用HTTPWatch来协助分析客户端和服务器端之间详细的HTTP交互过程。可以查看每个HTTP发送的数据、响应的数据、URL、Method、Type、Header等信息。

与Wireshark支持的广泛协议捕获不同,HTTPWatch专注于HTTP和HTTPS协议的捕获,并且作为与浏览器结合在一起,更加方便易用。

HttpWatch is an HTTP viewer and debugger that integrates with IE and Firefox to provide seamless HTTP and HTTPS monitoring without leaving the browser window.

支持IE和Firefox(6.0版本后支持FF2.0和3.0),并且提供自动化接口
HttpWatch has a comprehensive  automation interface that can be阅读全文>

发表于 @ 2010年02月03日 15:12:00 | 评论( loading... ) | 编辑| 举报| 收藏

第1页,共35页
第一页上一页下一页最后一页
Copyright © Testing_is_believing
Powered by CSDN Blog