﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-测试者家园</title><link>http://www.cnblogs.com/tester2test/</link><description>测试者和开发者的家园</description><language>zh-cn</language><lastBuildDate>Tue, 09 Feb 2010 23:07:43 GMT</lastBuildDate><pubDate>Tue, 09 Feb 2010 23:07:43 GMT</pubDate><ttl>60</ttl><item><title>曹向志老师新书《软件测试项目实战：技术&amp;#183;流程&amp;#183;管理&amp;#183;实践》简介</title><link>http://www.cnblogs.com/tester2test/archive/2009/12/02/1615697.html</link><dc:creator>测试者家园</dc:creator><author>测试者家园</author><pubDate>Wed, 02 Dec 2009 13:52:00 GMT</pubDate><guid>http://www.cnblogs.com/tester2test/archive/2009/12/02/1615697.html</guid><description><![CDATA[<p>阅读: 194 评论: 0 作者: <a href="http://www.cnblogs.com/tester2test/" target="_blank">测试者家园</a> 发表于 2009-12-02 21:52 <a href="http://www.cnblogs.com/tester2test/archive/2009/12/02/1615697.html" target="_blank">原文链接</a></p><div id="threadtitle">
<h1>本书前言</h1></div>
<div class="t_msgfontfix">
<table cellspacing="0" cellpadding="0">
<tr>
<td class="t_msgfont" id="postmessage_19826">迄今为止，软件测试是人类所能找到的能确保交付软件质量的最好方法。本书是作者12年软件测试行业工作实践的成果，尤其是在金融行业外包项目测试工作的2年时间里以及在软件测试培训行业工作的两年时间里，对我产生了深远的影响。对于我们国内最早一批从事软件测试工作的先行者来说，把自己的工作体验拿出来与测试同行分享那应该算是一件非常热爱软件测试工作的一种表现，而我本人在培训企业工作的经历使我拓展了测试视野，也亲身设计了多门课程（并非在市场公开销售培训书籍），而从事外包项目管理的工作经验，我们感受到了测试技术在实践中的运用也不是一件容易的事情，且项目中很多不是技术本身的事情，当我坐在电脑前面，开始策划编写一本集测试技术、测试方法和<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%B2%E2%CA%D4%B9%DC%C0%ED">测试管理</span>的书籍，曾几何时下定了多少的决心，因为我知道，策划编写一本书是需要付出多少的时间和辛苦，而这些时间你可能用来陪家人和孩子，可能与朋友畅谈，可能在咖啡馆或酒吧享受人生，但是当我开始写和编写的过程中，得到了很多同行的支持，大家也都期待有一本讲述测试项目管理的书籍，这些是我坚持写完这本书的最大动力。<br />软件测试行业的发展，需要我们每个人的努力，希望同行们加倍努力，研究测试技术、测试方法，让我们国内的软件测试水平达到国际先进水平。因为测试技术本身是与软件应用的领域和行业相关的，软件测试技术跟软件开发一样，必将进行细分，在各行各业从事软件测试的同行，都可能成为该领域的测试专家。<br />不管如何，我写完了这本书，当你拿到这本书时，不管它是否适合你，或者它的内容质量是否好，你都可以在我的blog（<a href="http://www.bt-test.com/" target="_blank">http://www.bt-test.com/</a>，软件测试中文站）发表<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%D2%E2%BC%FB">意见</span>，那将成为我改进的动力。我们也可以交流测试工作经验和心得体会。<br />虽然这本书经过了多次校对，但是因为毕竟是我在实践中整理的内容，难免在认识上存在误区或片面的地方，这也难免，测试技术本身正在发展之中，可以说是百花齐放，百家争鸣的时代，欢迎同行们提出意见和斧正。<br /></td></tr></table></div>
<h1>图书目录</h1>
<p>第一章、&nbsp; &nbsp; &nbsp; &nbsp; 测试实践方法论&nbsp; &nbsp; &nbsp; &nbsp; 1<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 2<br />1.1软件测试的发展历程、现状及未来&nbsp; &nbsp; &nbsp; &nbsp; 2<br />1.2外包测试外包项目分类和发展趋势&nbsp; &nbsp; &nbsp; &nbsp; 3<br />1.3软件测试方法论&nbsp; &nbsp; &nbsp; &nbsp; 4<br />1.3.1软件测试目的演变&nbsp; &nbsp; &nbsp; &nbsp; 5<br />1.3.2坚持软件测试的原则&nbsp; &nbsp; &nbsp; &nbsp; 6<br />1.3.3不要被多种测试类型分类所迷惑&nbsp; &nbsp; &nbsp; &nbsp; 8<br />1.3.4两种最常用的软件测试模型&nbsp; &nbsp; &nbsp; &nbsp; 11<br />1.4可纳入测试规范的测试活动流程&nbsp; &nbsp; &nbsp; &nbsp; 13<br />1.5对软件测试理解的误区&nbsp; &nbsp; &nbsp; &nbsp; 15<br />1.6测试岗位对人员基本素质要求&nbsp; &nbsp; &nbsp; &nbsp; 17<br />1.7检查自己知识的储备够不够&nbsp; &nbsp; &nbsp; &nbsp; 17<br />1.7.1操作系统知识&nbsp; &nbsp; &nbsp; &nbsp; 17<br />1.7.2 TCP/IP协议&nbsp; &nbsp; &nbsp; &nbsp; 19<br />1.7.3DNS域名服务&nbsp; &nbsp; &nbsp; &nbsp; 22<br />1.7.4DHCP&nbsp; &nbsp; &nbsp; &nbsp; 23<br />1.7.5HTTP协议简介&nbsp; &nbsp; &nbsp; &nbsp; 25<br />1.8金融行业软件系统特点和测试特点&nbsp; &nbsp; &nbsp; &nbsp; 30<br />第二章、&nbsp; &nbsp; &nbsp; &nbsp; 软件质量和缺陷报告&nbsp; &nbsp; &nbsp; &nbsp; 33<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 34<br />2.1软件质量&nbsp; &nbsp; &nbsp; &nbsp; 34<br />2.1.1质量的定义&nbsp; &nbsp; &nbsp; &nbsp; 34<br />2.1.2测试度量&nbsp; &nbsp; &nbsp; &nbsp; 35<br />2.2理解国标中的质量模型&nbsp; &nbsp; &nbsp; &nbsp; 36<br />2.3软件缺陷不再仅仅是小&#8220;bug&#8221;&nbsp; &nbsp; &nbsp; &nbsp; 39<br />2.4测试工作离不了的缺陷报告&nbsp; &nbsp; &nbsp; &nbsp; 43<br />2.4.1测试能力成熟度决定您的缺陷报告要素有多少&nbsp; &nbsp; &nbsp; &nbsp; 44<br />2.4.2缺陷严重程度5级分类&nbsp; &nbsp; &nbsp; &nbsp; 45<br />2.4.3缺陷的6种状态&nbsp; &nbsp; &nbsp; &nbsp; 47<br />2.4.4缺陷报告填写不能没有规范&nbsp; &nbsp; &nbsp; &nbsp; 48<br />2.5定制您们团队的缺陷跟踪流程&nbsp; &nbsp; &nbsp; &nbsp; 48<br />2.6选用缺陷跟踪<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%B9%A4%BE%DF">工具</span>提高团队工作效率&nbsp; &nbsp; &nbsp; &nbsp; 59<br />2.6.1功能全面的Quality Center工具&nbsp; &nbsp; &nbsp; &nbsp; 59<br />2.6.2小巧精干的Butterfly工具&nbsp; &nbsp; &nbsp; &nbsp; 62<br />2.7缺陷故障模型&nbsp; &nbsp; &nbsp; &nbsp; 65<br />2.8<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%B5%E4%D0%CD">典型</span>缺陷分析&nbsp; &nbsp; &nbsp; &nbsp; 67<br />第三章、文档审查和测试<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%D0%E8%C7%F3%B7%D6%CE%F6">需求分析</span>&nbsp; &nbsp; &nbsp; &nbsp; 70<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 71<br />3.1文档审查和评审&nbsp; &nbsp; &nbsp; &nbsp; 71<br />3.1.1业务需求规格说明书审查&nbsp; &nbsp; &nbsp; &nbsp; 71<br />3.1.2概要设计文档审查&nbsp; &nbsp; &nbsp; &nbsp; 71<br />3.1.3安装部署文档审查&nbsp; &nbsp; &nbsp; &nbsp; 72<br />3.1.4<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%D3%C3%BB%A7">用户</span>手册审查&nbsp; &nbsp; &nbsp; &nbsp; 72<br />3.1.5在线帮助审查&nbsp; &nbsp; &nbsp; &nbsp; 73<br />3.1.6项目测试中的评审活动&nbsp; &nbsp; &nbsp; &nbsp; 73<br />3.2测试活动的基础&#8212;测试需求分析&nbsp; &nbsp; &nbsp; &nbsp; 74<br />3.2.1如何理解测试需求&nbsp; &nbsp; &nbsp; &nbsp; 74<br />3.2.2测试需求分析&nbsp; &nbsp; &nbsp; &nbsp; 75<br />3.3使用QC管理测试需求&nbsp; &nbsp; &nbsp; &nbsp; 77<br />3.3.1定制字段让测试需求表现更充分&nbsp; &nbsp; &nbsp; &nbsp; 78<br />3.3.2从Excel导入测试需求&nbsp; &nbsp; &nbsp; &nbsp; 79<br />第四章、测试设计&nbsp; &nbsp; &nbsp; &nbsp; 84<br />4.1给<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%B2%E2%CA%D4%D3%C3%C0%FD">测试用例</span>下个定义&nbsp; &nbsp; &nbsp; &nbsp; 85<br />4.2测试用例要素最小集&nbsp; &nbsp; &nbsp; &nbsp; 85<br />4.3等价类划分&nbsp; &nbsp; &nbsp; &nbsp; 86<br />4.3.1等价类划分设计方法的基础&nbsp; &nbsp; &nbsp; &nbsp; 86<br />4.3.2等价类划分设计方法的运用&nbsp; &nbsp; &nbsp; &nbsp; 88<br />4.4边界值&nbsp; &nbsp; &nbsp; &nbsp; 92<br />4.4.1边界值设计方法的基础&nbsp; &nbsp; &nbsp; &nbsp; 92<br />4.4.2边界值设计方法的运用&nbsp; &nbsp; &nbsp; &nbsp; 93<br />4.5因果图&nbsp; &nbsp; &nbsp; &nbsp; 94<br />4.5.1因果图设计基础&nbsp; &nbsp; &nbsp; &nbsp; 94<br />4.5.2因果图设计方法的运用&nbsp; &nbsp; &nbsp; &nbsp; 96<br />4.6测试用例管理&nbsp; &nbsp; &nbsp; &nbsp; 97<br />4.6.1QC中测试用例组织和编写&nbsp; &nbsp; &nbsp; &nbsp; 97<br />4.6.2从Excel导入测试用例&nbsp; &nbsp; &nbsp; &nbsp; 98<br />4.6.3测试需求和测试用例相互关联&nbsp; &nbsp; &nbsp; &nbsp; 101<br />4.7测试用例设计&nbsp; &nbsp; &nbsp; &nbsp; 102<br />4.7.1集成测试用例设计&nbsp; &nbsp; &nbsp; &nbsp; 104<br />4.7.2功能测试用例设计&nbsp; &nbsp; &nbsp; &nbsp; 105<br />4.7.3<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%D0%D4%C4%DC%B2%E2%CA%D4">性能测试</span>用例设计&nbsp; &nbsp; &nbsp; &nbsp; 106<br />4.7.4测试用例说明&nbsp; &nbsp; &nbsp; &nbsp; 108<br />4.8熟悉项目中运用的&#8220;新&#8221;知识&nbsp; &nbsp; &nbsp; &nbsp; 109<br />4.8.1柜面（ACE）介绍&nbsp; &nbsp; &nbsp; &nbsp; 109<br />4.8.2事务中间件-Tuxedo&nbsp; &nbsp; &nbsp; &nbsp; 112<br />4.9在测试中采用界面测试规范&nbsp; &nbsp; &nbsp; &nbsp; 113<br />4.9.1C/S界面设计规范&nbsp; &nbsp; &nbsp; &nbsp; 113<br />4.9.2B/S界面规范&nbsp; &nbsp; &nbsp; &nbsp; 117<br />第五章、做好项目测试计划&nbsp; &nbsp; &nbsp; &nbsp; 124<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 125<br />5.1测试活动变化也要制定测试计划&nbsp; &nbsp; &nbsp; &nbsp; 125<br />5.2测试目标和范围&nbsp; &nbsp; &nbsp; &nbsp; 126<br />5.3测试资源&nbsp; &nbsp; &nbsp; &nbsp; 128<br />5.4进度计划&nbsp; &nbsp; &nbsp; &nbsp; 128<br />5.5测试约束条件&nbsp; &nbsp; &nbsp; &nbsp; 129<br />5.6测试轮次&nbsp; &nbsp; &nbsp; &nbsp; 131<br />5.7测试策略&nbsp; &nbsp; &nbsp; &nbsp; 131<br />5.8项目风险&nbsp; &nbsp; &nbsp; &nbsp; 133<br />5.9测试约定&nbsp; &nbsp; &nbsp; &nbsp; 134<br />5.10编写<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%D0%D4%C4%DC">性能</span>测试计划关注点&nbsp; &nbsp; &nbsp; &nbsp; 134<br />5.11系统测试计划模板&nbsp; &nbsp; &nbsp; &nbsp; 136<br />第六章、单元测试及结果审核&nbsp; &nbsp; &nbsp; &nbsp; 161<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 162<br />6.1白盒测试基础&nbsp; &nbsp; &nbsp; &nbsp; 162<br />6.1.1语句覆盖&nbsp; &nbsp; &nbsp; &nbsp; 163<br />6.1.2判定覆盖\分支覆盖&nbsp; &nbsp; &nbsp; &nbsp; 164<br />6.1.3条件覆盖&nbsp; &nbsp; &nbsp; &nbsp; 164<br />6.1.4判定-条件覆盖&nbsp; &nbsp; &nbsp; &nbsp; 165<br />6.1.5条件组合测试&nbsp; &nbsp; &nbsp; &nbsp; 165<br />6.1.6路径测试&nbsp; &nbsp; &nbsp; &nbsp; 166<br />6.1.7循环测试&nbsp; &nbsp; &nbsp; &nbsp; 166<br />6.2单元测试&nbsp; &nbsp; &nbsp; &nbsp; 169<br />6.2.1单元测试步骤&nbsp; &nbsp; &nbsp; &nbsp; 169<br />6.2.2单元测试内容&nbsp; &nbsp; &nbsp; &nbsp; 170<br />6.2.3单元测试用例设计&nbsp; &nbsp; &nbsp; &nbsp; 171<br />6.3测试驱动框架&nbsp; &nbsp; &nbsp; &nbsp; 172<br />6.3.1JUnit介绍&nbsp; &nbsp; &nbsp; &nbsp; 172<br />6.3.2JUnit运用案例&nbsp; &nbsp; &nbsp; &nbsp; 174<br />6.4每日构建&nbsp; &nbsp; &nbsp; &nbsp; 179<br />6.5单元测试结果审核&nbsp; &nbsp; &nbsp; &nbsp; 182<br />第七章、产品集成测试&nbsp; &nbsp; &nbsp; &nbsp; 188<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 189<br />7.1产品集成测试关注点&nbsp; &nbsp; &nbsp; &nbsp; 189<br />7.2产品集成测试&nbsp; &nbsp; &nbsp; &nbsp; 190<br />7.3集成测试计划&nbsp; &nbsp; &nbsp; &nbsp; 192<br />7.4集成测试设计&nbsp; &nbsp; &nbsp; &nbsp; 193<br />7.5集成测试执行&nbsp; &nbsp; &nbsp; &nbsp; 195<br />7.6集成测试总结分析&nbsp; &nbsp; &nbsp; &nbsp; 196<br />第八章、项目功能测试&nbsp; &nbsp; &nbsp; &nbsp; 198<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 199<br />8.1执行前的工作都做完了吗&nbsp; &nbsp; &nbsp; &nbsp; 199<br />8.2最重要的确认&#8212;测试计划和用例评审&nbsp; &nbsp; &nbsp; &nbsp; 199<br />8.3独立的测试执行环境&nbsp; &nbsp; &nbsp; &nbsp; 200<br />8.4测试数据准备好了吗&nbsp; &nbsp; &nbsp; &nbsp; 200<br />8.5<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%B2%CE%CA%FD">参数</span>、流程等配置也不可或缺&nbsp; &nbsp; &nbsp; &nbsp; 201<br />8.6把握功能测试入口条件的冒烟测试&nbsp; &nbsp; &nbsp; &nbsp; 201<br />8.7项目经理的烦心事&#8212;工作分工和跟踪&nbsp; &nbsp; &nbsp; &nbsp; 202<br />8.8 管理工具也需要规则&#8212;QC中测试执行要求&nbsp; &nbsp; &nbsp; &nbsp; 203<br />8.9使用PL/SQL Developer获取对比的数据&nbsp; &nbsp; &nbsp; &nbsp; 208<br />8.9.1编写存储过程&nbsp; &nbsp; &nbsp; &nbsp; 211<br />8.10测试过程中的数据采集和分析&nbsp; &nbsp; &nbsp; &nbsp; 213<br />8.10.1数据采集和度量&nbsp; &nbsp; &nbsp; &nbsp; 214<br />8.10.2多角度展示缺陷统计数据&nbsp; &nbsp; &nbsp; &nbsp; 215<br />8.10.3测试用例执行统计和需求覆盖统计&nbsp; &nbsp; &nbsp; &nbsp; 217<br />8.10.4如何给客户做测试有效性分析&nbsp; &nbsp; &nbsp; &nbsp; 218<br />第九章、项目性能测试&nbsp; &nbsp; &nbsp; &nbsp; 220<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 221<br />9.1把握性能测试中概念&nbsp; &nbsp; &nbsp; &nbsp; 221<br />9.2测试执行准备工作也重要&nbsp; &nbsp; &nbsp; &nbsp; 223<br />9.3判断设备选型性能评估&nbsp; &nbsp; &nbsp; &nbsp; 224<br />9.3.1用户业务状况分析&nbsp; &nbsp; &nbsp; &nbsp; 225<br />9.3.2系统服务器处理能力估算原则&nbsp; &nbsp; &nbsp; &nbsp; 225<br />9.3.3数据库服务器处理能力估算结果&nbsp; &nbsp; &nbsp; &nbsp; 227<br />9.3.4应用服务器处理能力估算结果&nbsp; &nbsp; &nbsp; &nbsp; 227<br />9.3.5主机内存容量估算&nbsp; &nbsp; &nbsp; &nbsp; 227<br />9.3.6 I/O资源&nbsp; &nbsp; &nbsp; &nbsp; 228<br />9.3.7存储设备硬件配置估算&nbsp; &nbsp; &nbsp; &nbsp; 228<br />9.4为测试整合测试工具&nbsp; &nbsp; &nbsp; &nbsp; 231<br />9.5资源监控和数据采集&nbsp; &nbsp; &nbsp; &nbsp; 232<br />9.5.1Unix/Linux监控指标&nbsp; &nbsp; &nbsp; &nbsp; 232<br />9.5.2Oracle 监控指标&nbsp; &nbsp; &nbsp; &nbsp; 235<br />9.5.3Informix监控&nbsp; &nbsp; &nbsp; &nbsp; 240<br />9.5.4Weblogic监控指标&nbsp; &nbsp; &nbsp; &nbsp; 245<br />9.5.5 Apache监控&nbsp; &nbsp; &nbsp; &nbsp; 250<br />9.5.6Tuxedo监控&nbsp; &nbsp; &nbsp; &nbsp; 253<br />9.6启用IP欺骗&nbsp; &nbsp; &nbsp; &nbsp; 254<br />9.7性能测试过程&nbsp; &nbsp; &nbsp; &nbsp; 257<br />9.7.1轻松创建虚拟用户&nbsp; &nbsp; &nbsp; &nbsp; 258<br />9.7.2创建真实的负载&nbsp; &nbsp; &nbsp; &nbsp; 259<br />9.7.3实时监控场景&nbsp; &nbsp; &nbsp; &nbsp; 260<br />9.7.4分析测试结果&nbsp; &nbsp; &nbsp; &nbsp; 260<br />9.8构造测试基础数据&nbsp; &nbsp; &nbsp; &nbsp; 261<br />9.9 <span class="t_tag" onclick="tagshow(event)" href="tag.php?name=LoadRunner">LoadRunner</span>和QC完美结合&nbsp; &nbsp; &nbsp; &nbsp; 264<br />9.10某信息化系统性能测试案例&nbsp; &nbsp; &nbsp; &nbsp; 266<br />9.10.1分析性能需求&nbsp; &nbsp; &nbsp; &nbsp; 266<br />9.10.2测试场景设计与开发&nbsp; &nbsp; &nbsp; &nbsp; 269<br />9.10.3性能测试建模&nbsp; &nbsp; &nbsp; &nbsp; 270<br />9.10.4构造测试基础数据&nbsp; &nbsp; &nbsp; &nbsp; 271<br />9.10.5测试环境&nbsp; &nbsp; &nbsp; &nbsp; 272<br />9.10.6测试策略&nbsp; &nbsp; &nbsp; &nbsp; 273<br />9.10.7测试场景设计&nbsp; &nbsp; &nbsp; &nbsp; 275<br />9.10.8测试<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%BD%C5%B1%BE">脚本</span>录制和修改&nbsp; &nbsp; &nbsp; &nbsp; 276<br />9.10.9参数关联和参数化&nbsp; &nbsp; &nbsp; &nbsp; 287<br />9.10.10测试结果分析和调优&nbsp; &nbsp; &nbsp; &nbsp; 288<br />9.11常见性能故障模型&nbsp; &nbsp; &nbsp; &nbsp; 292<br />9.12性能测试中需要注意的一些问题&nbsp; &nbsp; &nbsp; &nbsp; 296<br />第十章、用户验收测试和测试报告评审&nbsp; &nbsp; &nbsp; &nbsp; 299<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 300<br />10.1用户验收测试&nbsp; &nbsp; &nbsp; &nbsp; 300<br />10.2测试报告&nbsp; &nbsp; &nbsp; &nbsp; 301<br />10.3测试报告评审&nbsp; &nbsp; &nbsp; &nbsp; 302<br />第十一章、项目测试也要<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%D7%D4%B6%AF%BB%AF">自动化</span>&nbsp; &nbsp; &nbsp; &nbsp; 303<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 304<br />11.1自动化测试面面观&nbsp; &nbsp; &nbsp; &nbsp; 304<br />11.2千万别误解自动化测试&nbsp; &nbsp; &nbsp; &nbsp; 306<br />11.3自动化测试不可缺少的工具&nbsp; &nbsp; &nbsp; &nbsp; 307<br />11.4功能自动化测试工具-QuickTest Professional&nbsp; &nbsp; &nbsp; &nbsp; 309<br />11.4.1脚本录制方式&nbsp; &nbsp; &nbsp; &nbsp; 311<br />11.4.2QTP各种参数设置&nbsp; &nbsp; &nbsp; &nbsp; 311<br />11.4.3测试结果分析&nbsp; &nbsp; &nbsp; &nbsp; 318<br />11.5QTP对象识别&nbsp; &nbsp; &nbsp; &nbsp; 319<br />11.6QC和QTP构建自动化测试框架&nbsp; &nbsp; &nbsp; &nbsp; 321<br />11.6.1BPT介绍&nbsp; &nbsp; &nbsp; &nbsp; 321<br />11.6.2工具连接&nbsp; &nbsp; &nbsp; &nbsp; 322<br />11.6.3BPT使用经验&nbsp; &nbsp; &nbsp; &nbsp; 327<br />11.7自动化测试流程&nbsp; &nbsp; &nbsp; &nbsp; 330<br />11.8自动化测试脚本编写规范&nbsp; &nbsp; &nbsp; &nbsp; 331<br />第十二章、测试项目管理&nbsp; &nbsp; &nbsp; &nbsp; 339<br />简介&nbsp; &nbsp; &nbsp; &nbsp; 340<br />12.1项目工作量评估模型&nbsp; &nbsp; &nbsp; &nbsp; 340<br />12.1.1开发比例法&nbsp; &nbsp; &nbsp; &nbsp; 341<br />12.1.2外包项目经验类比法&nbsp; &nbsp; &nbsp; &nbsp; 342<br />12.1.3WBS估算法&nbsp; &nbsp; &nbsp; &nbsp; 344<br />12.1.4Delphi法&nbsp; &nbsp; &nbsp; &nbsp; 348<br />12.2测试范围控制&nbsp; &nbsp; &nbsp; &nbsp; 349<br />12.3项目控制&nbsp; &nbsp; &nbsp; &nbsp; 350<br />12.3.1项目经理对项目控制&nbsp; &nbsp; &nbsp; &nbsp; 350<br />12.3.2管理层对项目的控制&nbsp; &nbsp; &nbsp; &nbsp; 352<br />12.4测试团队工作质量保障&nbsp; &nbsp; &nbsp; &nbsp; 353<br />12.4.1同行评审&nbsp; &nbsp; &nbsp; &nbsp; 353<br />12.4.2QA审计&nbsp; &nbsp; &nbsp; &nbsp; 354<br />12.5测试团队人员管理&nbsp; &nbsp; &nbsp; &nbsp; 358<br />12.5.1组织架构&nbsp; &nbsp; &nbsp; &nbsp; 358<br />12.5.2测试团队中各岗位职责&nbsp; &nbsp; &nbsp; &nbsp; 358<br />12.5.3组建适合您需要的测试团队&nbsp; &nbsp; &nbsp; &nbsp; 361<br />12.5.4绩效考核&nbsp; &nbsp; &nbsp; &nbsp; 362<br />12.6不可小视的风险管理&nbsp; &nbsp; &nbsp; &nbsp; 364<br />12.6.1项目风险&nbsp; &nbsp; &nbsp; &nbsp; 365<br />12.6.2组织风险&nbsp; &nbsp; &nbsp; &nbsp; 368<br />12.6.3技术风险&nbsp; &nbsp; &nbsp; &nbsp; 370<br />12.6.4风险分析和风险跟踪&nbsp; &nbsp; &nbsp; &nbsp; 372<br />12.7您40%的时间是在沟通&nbsp; &nbsp; &nbsp; &nbsp; 375<br />12.7.1 书面沟通&nbsp; &nbsp; &nbsp; &nbsp; 375<br />12.7.2 会议沟通&nbsp; &nbsp; &nbsp; &nbsp; 379<br />12.7.3 口头和IM沟通&nbsp; &nbsp; &nbsp; &nbsp; 379<br />12.7.4沟通中注意事项&nbsp; &nbsp; &nbsp; &nbsp; 379<br />12.8用数据度量项目&nbsp; &nbsp; &nbsp; &nbsp; 380<br />12.8.1时间和开销度量&nbsp; &nbsp; &nbsp; &nbsp; 380<br />12.8.2缺陷度量&nbsp; &nbsp; &nbsp; &nbsp; 381<br />12.8.3测试用例度量&nbsp; &nbsp; &nbsp; &nbsp; 383<br />12.9似乎不重要的配置管理&nbsp; &nbsp; &nbsp; &nbsp; 383<br />附件一：功能测试报告模板&nbsp; &nbsp; &nbsp; &nbsp; 388<br />G.1目的&nbsp; &nbsp; &nbsp; &nbsp; 390<br />G.2输入文档&nbsp; &nbsp; &nbsp; &nbsp; 390<br />G.3测试实际进度&nbsp; &nbsp; &nbsp; &nbsp; 390<br />G.4测试版本&nbsp; &nbsp; &nbsp; &nbsp; 391<br />G.5测试环境&nbsp; &nbsp; &nbsp; &nbsp; 391<br />G.6系统测试所完成的测试类型&nbsp; &nbsp; &nbsp; &nbsp; 392<br />G.7测试结果分析&nbsp; &nbsp; &nbsp; &nbsp; 392<br />G.7.1测试用例执行分析&nbsp; &nbsp; &nbsp; &nbsp; 392<br />G.7.2测试需求覆盖分析&nbsp; &nbsp; &nbsp; &nbsp; 393<br />G.7.3安全性测试和分析&nbsp; &nbsp; &nbsp; &nbsp; 393<br />G.7.4缺陷分布分析&nbsp; &nbsp; &nbsp; &nbsp; 394<br />G.7.5重点/典型缺陷分析&nbsp; &nbsp; &nbsp; &nbsp; 395<br />G.7.6遗留缺陷&nbsp; &nbsp; &nbsp; &nbsp; 395<br />G.7.7测试过程分析&nbsp; &nbsp; &nbsp; &nbsp; 395<br />G.7.8测试有效性分析&nbsp; &nbsp; &nbsp; &nbsp; 396<br />G.8量化分析&nbsp; &nbsp; &nbsp; &nbsp; 396<br />G.8.1缺陷数据&nbsp; &nbsp; &nbsp; &nbsp; 396<br />G.8.2偏差原因分析&nbsp; &nbsp; &nbsp; &nbsp; 397<br />G.8.3对策或调整措施&nbsp; &nbsp; &nbsp; &nbsp; 397<br />G.9测试结论及产品质量分析&nbsp; &nbsp; &nbsp; &nbsp; 397<br />G.10缺陷清单&nbsp; &nbsp; &nbsp; &nbsp; 398<br />附件二：性能测试报告模板&nbsp; &nbsp; &nbsp; &nbsp; 399<br />G.1测试范围&nbsp; &nbsp; &nbsp; &nbsp; 401<br />G.1.1性能需求指标&nbsp; &nbsp; &nbsp; &nbsp; 401<br />G.1.2典型交易&nbsp; &nbsp; &nbsp; &nbsp; 401<br />G.1.3指标收集&nbsp; &nbsp; &nbsp; &nbsp; 402<br />G.2测试环境&nbsp; &nbsp; &nbsp; &nbsp; 402<br />G.2.1测试环境部署架构图&nbsp; &nbsp; &nbsp; &nbsp; 402<br />G.2.2测试环境软硬件配置&nbsp; &nbsp; &nbsp; &nbsp; 402<br />G.3测试<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%B7%BD%B0%B8">方案</span>&nbsp; &nbsp; &nbsp; &nbsp; 404<br />G.3.1模拟数据&nbsp; &nbsp; &nbsp; &nbsp; 404<br />G.3.2网络带宽&nbsp; &nbsp; &nbsp; &nbsp; 404<br />G.3.3测试约定&nbsp; &nbsp; &nbsp; &nbsp; 405<br />G.4测试结果&nbsp; &nbsp; &nbsp; &nbsp; 405<br />G.5测试中间结果&nbsp; &nbsp; &nbsp; &nbsp; 405<br />G.5.1单业务基准测试结果&nbsp; &nbsp; &nbsp; &nbsp; 405<br />G.5.2单业务场景测试结果&nbsp; &nbsp; &nbsp; &nbsp; 406<br />G.5.3混合业务场景测试结果&nbsp; &nbsp; &nbsp; &nbsp; 407<br />G.5.4大数据量下单业务场景测试结果&nbsp; &nbsp; &nbsp; &nbsp; 407<br />G.5.5大数据量下混合业务场景测试结果&nbsp; &nbsp; &nbsp; &nbsp; 408<br />G.5.6大数据量下稳定性测试结果&nbsp; &nbsp; &nbsp; &nbsp; 409<br />G5.7清算性能测试结果&nbsp; &nbsp; &nbsp; &nbsp; 410<br />G.6调优过程和结果分析&nbsp; &nbsp; &nbsp; &nbsp; 411<br />G.6.1第一轮测试&nbsp; &nbsp; &nbsp; &nbsp; 411<br />G.6.2第二轮测试&nbsp; &nbsp; &nbsp; &nbsp; 411<br />G.7性能测试缺陷&nbsp; &nbsp; &nbsp; &nbsp; 411<br />G.7.1缺陷列表&nbsp; &nbsp; &nbsp; &nbsp; 411<br />G.7.2遗留缺陷分析&nbsp; &nbsp; &nbsp; &nbsp; 411<br />G.8系统评价&nbsp; &nbsp; &nbsp; &nbsp; 412<br />附件三：测试总结报告模板&nbsp; &nbsp; &nbsp; &nbsp; 413<br />G.1目的&nbsp; &nbsp; &nbsp; &nbsp; 415<br />G.2输入文档&nbsp; &nbsp; &nbsp; &nbsp; 415<br />G.3测试实际进度&nbsp; &nbsp; &nbsp; &nbsp; 416<br />G.4测试结果分析&nbsp; &nbsp; &nbsp; &nbsp; 416<br />G.4.1测试需求覆盖情况&nbsp; &nbsp; &nbsp; &nbsp; 416<br />G.4.2用例执行情况分析&nbsp; &nbsp; &nbsp; &nbsp; 417<br />G.4.3缺陷分析统计&nbsp; &nbsp; &nbsp; &nbsp; 417<br />G.4.4系统性能指标分析&nbsp; &nbsp; &nbsp; &nbsp; 418<br />G.5系统遗留缺陷&nbsp; &nbsp; &nbsp; &nbsp; 419<br />G.6过程问题回顾&nbsp; &nbsp; &nbsp; &nbsp; 419<br />G.7测试结论及产品质量分析&nbsp; &nbsp; &nbsp; &nbsp; 419<br />G.8缺陷清单&nbsp; &nbsp; &nbsp; &nbsp; 420</p><img src="http://www.cnblogs.com/tester2test/aggbug/1615697.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/tester2test/archive/2009/12/02/1615697.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/tester2test/archive/2009/12/02/1615697.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>一个文件重复生成的小工具[附源码和可执行文件]</title><link>http://www.cnblogs.com/tester2test/archive/2009/10/11/1580996.html</link><dc:creator>测试者家园</dc:creator><author>测试者家园</author><pubDate>Sun, 11 Oct 2009 13:03:00 GMT</pubDate><guid>http://www.cnblogs.com/tester2test/archive/2009/10/11/1580996.html</guid><description><![CDATA[<p>阅读: 263 评论: 0 作者: <a href="http://www.cnblogs.com/tester2test/" target="_blank">测试者家园</a> 发表于 2009-10-11 21:03 <a href="http://www.cnblogs.com/tester2test/archive/2009/10/11/1580996.html" target="_blank">原文链接</a></p><div>最近，因为项目的需要，我用Delphi开发了一个小的程序。程序的功能就是选择一个文件，而后可以指定复制多少个相同的文件，用这些复制的文件做并发上传文件用。下面附源码和可执行文件。<br /><br />源码如下：<br /><br /><br />
<p><font face="Times New Roman">unit Unit1;</font></p>
<p><font face="Times New Roman">interface</font></p>
<p><font face="Times New Roman">uses<br />&nbsp; Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br />&nbsp; Dialogs, SUIButton, Buttons, StdCtrls, ExtCtrls, SUIForm, ComCtrls;</font></p>
<p><font face="Times New Roman">type<br />&nbsp; TForm1 = class(TForm)<br />&nbsp;&nbsp;&nbsp; suiForm1: TsuiForm;<br />&nbsp;&nbsp;&nbsp; lbl1: TLabel;<br />&nbsp;&nbsp;&nbsp; edt1: TEdit;<br />&nbsp;&nbsp;&nbsp; btn1: TSpeedButton;<br />&nbsp;&nbsp;&nbsp; lbl2: TLabel;<br />&nbsp;&nbsp;&nbsp; edt2: TEdit;<br />&nbsp;&nbsp;&nbsp; btn2: TsuiButton;<br />&nbsp;&nbsp;&nbsp; btn3: TsuiButton;<br />&nbsp;&nbsp;&nbsp; dlgOpen1: TOpenDialog;<br />&nbsp;&nbsp;&nbsp; pb1: TProgressBar;<br />&nbsp;&nbsp;&nbsp; procedure btn2Click(Sender: TObject);<br />&nbsp;&nbsp;&nbsp; procedure btn1Click(Sender: TObject);<br />&nbsp;&nbsp;&nbsp; procedure btn3Click(Sender: TObject);<br />&nbsp; private<br />&nbsp;&nbsp;&nbsp; { Private declarations }<br />&nbsp; public<br />&nbsp;&nbsp;&nbsp; { Public declarations }<br />&nbsp; end;</font></p>
<p><font face="Times New Roman">var<br />&nbsp; Form1: TForm1;</font></p>
<p><font face="Times New Roman">implementation</font></p>
<p><font face="Times New Roman">{$R *.dfm}</font></p>
<p><font face="Times New Roman">procedure TForm1.btn2Click(Sender: TObject);<br />var<br />&nbsp; i:integer;<br />&nbsp; str:string;<br />begin</font></p>
<p><font face="Times New Roman">&nbsp; if Trim(edt1.Text)='' then begin<br />&nbsp;&nbsp;&nbsp; Application.MessageBox('请选择要复制的源文件！', '提示', MB_OK + <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MB_ICONINFORMATION);<br />&nbsp;&nbsp;&nbsp; btn1.Click();<br />&nbsp;&nbsp;&nbsp; Exit;<br />&nbsp; end;</font></p>
<p><font face="Times New Roman">&nbsp; try<br />&nbsp;&nbsp;&nbsp; if StrToInt(edt2.Text)&lt;=0 then begin<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edt2.Clear;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edt2.SetFocus;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit;<br />&nbsp;&nbsp;&nbsp; end;</font></p>
<p><font face="Times New Roman">&nbsp;&nbsp;&nbsp; except<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application.MessageBox('请输入合法数值！', '提示', MB_OK +<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MB_ICONINFORMATION);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edt2.Clear;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edt2.SetFocus;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pb1.Max:=StrToInt(edt2.Text);</font></p>
<p><font face="Times New Roman">&nbsp; if not DirectoryExists('c:\测试数据') then<br />&nbsp;&nbsp;&nbsp; ForceDirectories('c:\测试数据');</font></p>
<p><font face="Times New Roman">&nbsp; for i:=1 to StrToInt(edt2.Text) do<br />&nbsp; begin<br />&nbsp;&nbsp;&nbsp; try<br />&nbsp;&nbsp;&nbsp; str:='c:\测试数据\'+Copy(ExtractFileName(edt1.Text),1,Length(ExtractFileName(edt1.Text))-4)+inttostr(i)+Copy(ExtractFileName(edt1.Text),Length(ExtractFileName(edt1.Text))-4+1,4);<br />&nbsp;&nbsp;&nbsp; CopyFile(PChar(edt1.text),PChar(str),False);<br />&nbsp;&nbsp;&nbsp; pb1.Position:=i;<br />&nbsp;&nbsp;&nbsp; except<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br />&nbsp;&nbsp;&nbsp; end;<br />&nbsp; Application.MessageBox('文件生成完毕,数据存放于"c:\测试数据"目录！', '提示', MB_OK +<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MB_ICONINFORMATION);<br />end;</font></p>
<p><font face="Times New Roman">procedure TForm1.btn1Click(Sender: TObject);<br />begin<br />&nbsp;&nbsp;&nbsp;&nbsp; dlgOpen1.Execute;<br />&nbsp;&nbsp;&nbsp;&nbsp; edt1.Text:=dlgOpen1.FileName;<br />end;</font></p>
<p><font face="Times New Roman">procedure TForm1.btn3Click(Sender: TObject);<br />begin<br />&nbsp;&nbsp;&nbsp;&nbsp; Application.Terminate;<br />end;</font></p>
<p><font face="Times New Roman">end.<br /></font></p><br /><br />可执行文件：<a title="文件批量复制工具" href="http://files.cnblogs.com/tester2test/Fc.rar">文件批量复制工具</a></div><img src="http://www.cnblogs.com/tester2test/aggbug/1580996.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/tester2test/archive/2009/10/11/1580996.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/tester2test/archive/2009/10/11/1580996.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>LoadRunner 脚本语言认识</title><link>http://www.cnblogs.com/tester2test/archive/2009/09/20/1570609.html</link><dc:creator>测试者家园</dc:creator><author>测试者家园</author><pubDate>Sun, 20 Sep 2009 13:32:00 GMT</pubDate><guid>http://www.cnblogs.com/tester2test/archive/2009/09/20/1570609.html</guid><description><![CDATA[<p>阅读: 675 评论: 0 作者: <a href="http://www.cnblogs.com/tester2test/" target="_blank">测试者家园</a> 发表于 2009-09-20 21:32 <a href="http://www.cnblogs.com/tester2test/archive/2009/09/20/1570609.html" target="_blank">原文链接</a></p><table id="content" style="table-layout: fixed; width: 650px" cellspacing="10" cellpadding="0" width="650" border="0">
<tr>
<td>
<div class="copy"><strong>版权声明：</strong>原创作品，如需转载，请与作者联系。否则将追究法律责任。</div></td></tr>
<tr>
<td>
<div style="font-size: 10pt; word-break: break-all; position: relative; word-wrap: break-word">
<div class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%"><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??><font size="3">以下内容选自本人作品：《精通软件性能测试与LoadRunner实战》，11月份即将出版，敬请关注！</font></span></div>
<div class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%"><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??><font size="3"></font></span>&nbsp;</div>
<div class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%"><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??><font size="3">&nbsp;&nbsp;&nbsp; 很多准备做性能测试工程师的朋友，经常会问我：&#8220;于老师，您说做性能测试工程师需要有编程基础吗？&#8221;。我也总是非常坚定的对问我这个问题的同志们回答道：&#8220;非常需要！&#8221;。做过几个性能测试项目的同志们，应该都清楚，很多情况下，性能测试是不能通过简单的脚本录制，回放来完成任务的。在很多种情况下，都需要性能测试工程师自行编写脚本，这时如果您没有语言基础，让您来做这样的事情是非常困难的。当然，如果由于性能测试工程师水平较差，编写出来的脚本本身就存在业务错误，存在内存泄漏等问题的时候，性能测试的过程和结果也必将是不可以信赖的，所以性能测试工程师有编程基础是非常必要的，也是必须的。</font></span></div>
<div class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 15.75pt; line-height: 150%; mso-char-indent-count: 1.5"><font size="3"><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>下面这段脚本是在第</span><span lang="EN-US">3</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>章，录制</span><span lang="EN-US">Tomcat <st1:chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">5.5.11</st1:chsdate></span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>自带的一个小程序</span><span lang="EN-US">numguess</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>的脚本，该小程序主要是一个非常简易的猜数字游戏。</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><span lang="EN-US"><font size="3">#include "web_api.h"</font></span></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><span lang="EN-US"><o:p><font size="3">&nbsp;</font></o:p></span></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><span lang="EN-US"><font size="3">Action()</font></span></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><span lang="EN-US"><font size="3">{</font></span></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>lr_rendezvous("</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>集合点</span><span lang="EN-US">");</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><span lang="EN-US"><o:p><font size="3">&nbsp;</font></o:p></span></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>lr_start_transaction("</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>执行时间</span><span lang="EN-US">");</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>web_url("numguess.jsp"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>"URL=http</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>：</span><span lang="EN-US">//localhost</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>：</span><span lang="EN-US">8080/jsp-examples/num/numguess.jsp"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>"Resource=0"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>"RecContentType=text/html"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>"Referer="</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span lang="FR" style="mso-ansi-language: fr">"Snapshot=t1.inf"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: FR?>，</span><span lang="FR" style="mso-ansi-language: fr"><o:p></o:p></span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="FR" style="mso-ansi-language: fr"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>"Mode=HTML"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: FR?>，</span><span lang="FR" style="mso-ansi-language: fr"><o:p></o:p></span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="FR" style="mso-ansi-language: fr"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span lang="EN-US">LAST);</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><span lang="EN-US"><o:p><font size="3">&nbsp;</font></o:p></span></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>web_submit_form("numguess.jsp_2"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>"Snapshot=t2.inf"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>ITEMDATA</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>"Name=guess"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span><span lang="EN-US"> "Value=2"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span><span lang="EN-US"> ENDITEM</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><span lang="EN-US"><font size="3"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>LAST);</font></span></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><font size="3"><span lang="EN-US"><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>lr_end_transaction("</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>执行时间</span><span lang="EN-US">"</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>，</span><span lang="EN-US"> LR_AUTO);</span></font></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><span lang="EN-US"><o:p><font size="3">&nbsp;</font></o:p></span></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><span lang="EN-US"><font size="3"><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>return 0;</font></span></div>
<div class="MsoNormal" style="background: #99ccff; margin: 0cm 0cm 0pt"><span lang="EN-US"><font size="3">}</font></span></div>
<div class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%"><font size="3"><span lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span></span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>细心的同志们，也许已经发现了一些问题，比如：&#8220;</span><span lang="EN-US">#include "web_api.h</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>&#8221;、&#8220;｛｝&#8221;、&#8220;</span><span lang="EN-US">return 0</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>；&#8221;，这些内容是不是和</span><span lang="EN-US">C</span><span style="font-family: 宋体; mso-ascii-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New Roman??>语言的语法非常类似呢？</span></font></div><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>事实上，</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>LoadRunner </span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>支持多种协议，您在编写脚本的时候，可以根据不同的应用，选择适合的协议。同时，您可以选择&#8220;</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>Java Vuser</span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>&#8221;、&#8220;</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>Javascript Vuser</span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>&#8221;、&#8220;</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>Microsoft .NET</span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>&#8221;、&#8220;</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>VB Vuser</span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>&#8221;、&#8220;</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>VB Script Vuser</span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>&#8221;等协议进行相应语言的脚本的编写。在进行&#8220;</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>Web</span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>（</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>HTTP/HTML</span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>）&#8221;等协议编写的时候，脚本的默认语法规则都是按照</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>C</span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>语言的语法规则，当然您也可以选择&#8220;</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>Java Vuser</span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>&#8221;用</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "  Times Roman?; New mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA? mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt;>Java</span><span style="font-size: 10.5pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: "  Times Roman?; mso-hansi-font-family: ?Times New mso-ansi-language: mso-ascii-font-family: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA?>语言实现同样功能的脚本。</span> 
<p>本文出自 &#8220;<a href="http://tester2test.blog.51cto.com/">测试者家园</a>&#8221; 博客，转载请与作者联系！</p><a class="hidden" href="http://tester2test.blog.51cto.com/461899/203462">本文出自 51CTO.COM技术博客</a></div></td></tr></table><img src="http://www.cnblogs.com/tester2test/aggbug/1570609.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/tester2test/archive/2009/09/20/1570609.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/tester2test/archive/2009/09/20/1570609.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>于涌为您解答测试方面的问题</title><link>http://www.cnblogs.com/tester2test/archive/2009/08/06/1540735.html</link><dc:creator>测试者家园</dc:creator><author>测试者家园</author><pubDate>Thu, 06 Aug 2009 13:38:00 GMT</pubDate><guid>http://www.cnblogs.com/tester2test/archive/2009/08/06/1540735.html</guid><description><![CDATA[<p>阅读: 278 评论: 0 作者: <a href="http://www.cnblogs.com/tester2test/" target="_blank">测试者家园</a> 发表于 2009-08-06 21:38 <a href="http://www.cnblogs.com/tester2test/archive/2009/08/06/1540735.html" target="_blank">原文链接</a></p><font face="Times New Roman">如果大家有什么软件测试行业之职业规划与难点突破的问题，可以访问下面链接，http://doctor.51cto.com/develop-137.html，于涌将为您解答这方面的问题。</font><img src="http://www.cnblogs.com/tester2test/aggbug/1540735.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/tester2test/archive/2009/08/06/1540735.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/tester2test/archive/2009/08/06/1540735.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>《软件性能测试与LoadRunner实战》网上订购问题</title><link>http://www.cnblogs.com/tester2test/archive/2009/07/21/1527772.html</link><dc:creator>测试者家园</dc:creator><author>测试者家园</author><pubDate>Tue, 21 Jul 2009 06:34:00 GMT</pubDate><guid>http://www.cnblogs.com/tester2test/archive/2009/07/21/1527772.html</guid><description><![CDATA[<p>阅读: 364 评论: 6 作者: <a href="http://www.cnblogs.com/tester2test/" target="_blank">测试者家园</a> 发表于 2009-07-21 14:34 <a href="http://www.cnblogs.com/tester2test/archive/2009/07/21/1527772.html" target="_blank">原文链接</a></p><div><font face="Times New Roman">
<p><font face="Times New Roman"></font>&nbsp;</p>
<p><font face="Times New Roman">《软件性能测试与LoadRunner实战》自2008年6月份出版以来，在测试分类书籍中销售量始终名列前茅，在此作者向读者朋友们表示衷心的感谢。最近，也收到了很多读者朋友们的来信，询问本书网上购买相关事宜。这里作者向这部分读者做一下简单的介绍：</font></p>
<p><font face="Times New Roman">订购网址：</font></p>
<p><font face="Times New Roman">当&nbsp;&nbsp;&nbsp; 当：http://product.dangdang.com/product.aspx?product_id=20228840</font></p>
<p><font face="Times New Roman">互&nbsp;&nbsp;&nbsp; 动：http://www.china-pub.com/39876（已缺货）</font></p>
<p><font face="Times New Roman">大众书网：http://www.dazo.com.cn/book/067/229487/</font></p>
<p><font face="Times New Roman">蔚蓝书网：http://www.wl.cn/3510397</font></p></font></div> <img src="http://www.cnblogs.com/tester2test/aggbug/1527772.html?type=1" width="1" height="1" alt=""/><p>评论: 6　<a href="http://www.cnblogs.com/tester2test/archive/2009/07/21/1527772.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/tester2test/archive/2009/07/21/1527772.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>[原创]结构在Loadrunner中的应用</title><link>http://www.cnblogs.com/tester2test/archive/2009/05/21/1486695.html</link><dc:creator>测试者家园</dc:creator><author>测试者家园</author><pubDate>Thu, 21 May 2009 15:40:00 GMT</pubDate><guid>http://www.cnblogs.com/tester2test/archive/2009/05/21/1486695.html</guid><description><![CDATA[<p>阅读: 640 评论: 0 作者: <a href="http://www.cnblogs.com/tester2test/" target="_blank">测试者家园</a> 发表于 2009-05-21 23:40 <a href="http://www.cnblogs.com/tester2test/archive/2009/05/21/1486695.html" target="_blank">原文链接</a></p><p><strong><span style="color: red"><strong>注：非授权，请勿转载</strong>&nbsp; </span></strong></p>
<p>&nbsp;</p>
<p style="text-indent: 15.75pt; line-height: 150%"><span style="font-family: 宋体">在实际工作中，很多情况我们需要将不同类型的数据组织起来一起应用，比如：学校在期末考试结束后，通常都要进行学生成绩的填报和查询工作。一个一年级小学生的信息通常包括：姓名、学号、性别、年龄、语文成绩、数学成绩等。姓名、性别是一个字符类型的数据，而年龄、学号为整数类型，语文成绩、数学成绩通常都为单精度浮点类型数据。我们知道不同类型的数据是不能放到同一个数组里面的，那么在</span>C<span style="font-family: 宋体">语言中是否有方法将这些不同数据类别的数据组织到一起呢？回答是：&#8220;有，可以用结构来处理这种问题。&#8221;，接下来，就让我们来了解一下，什么叫结构。&#8220;结构&#8221;是一种构造类型，它是由若干&#8220;成员&#8221;组成的，每一个成员可以是一个基本数据类型或者又是一个构造类型。通常，一个结构的一般形式为：</span></p>
<p style="background: #99ccff; text-indent: 21pt">struct <span style="font-family: 宋体">结构名</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;{<span style="font-family: 宋体">成员表列</span>};</p>
<p style="text-indent: 15.75pt; line-height: 150%"><span style="font-family: 宋体">成员表列，由若干个成员组成，每个成员都是该结构的一个组成部分。对每个成员也必须作类型说明，其形式为：</span></p>
<p style="background: #99ccff; text-indent: 21pt"><span style="font-family: 宋体">类型说明符</span> <span style="font-family: 宋体">成员名</span>;</p>
<p style="line-height: 150%"><span style="font-family: 宋体">现在，让我们一起来给学生来定义一个&#8220;结构&#8221;</span></p>
<p style="background: #99ccff; text-indent: 21pt">struct student</p>
<p style="background: #99ccff; text-indent: 21pt">{</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; int num;&nbsp;//<span style="font-family: 宋体">学号</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; char name[20];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">姓名</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; char sex[2];&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">性别</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int&nbsp;age;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">年龄</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; float chinesescore;&nbsp;//<span style="font-family: 宋体">语文成绩</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float mathscore;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">数学成绩</span></p>
<p style="background: #99ccff; text-indent: 21pt">};</p>
<p style="line-height: 150%"><span style="font-family: 宋体">上面我们定义了一个名称为&#8220;</span>student<span style="font-family: 宋体">&#8221;的结构，它包含了，学号、姓名、性别、年龄、语文成绩和数学成绩信息。</span></p>
<p style="line-height: 150%"><span style="font-family: 宋体">那么如何应用结构，在</span>LoadRunner<span style="font-family: 宋体">中应用结构的示例脚本如下：</span></p>
<p style="background: #99ccff; text-indent: 21pt">struct student</p>
<p style="background: #99ccff; text-indent: 21pt">{</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; int num;&nbsp;//<span style="font-family: 宋体">学号</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; char name[8]; //<span style="font-family: 宋体">姓名</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int&nbsp;age;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">年龄</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; char sex[2];&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">性别</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; float chinesescore;&nbsp;//<span style="font-family: 宋体">语文成绩</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float mathscore;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">数学成绩</span></p>
<p style="background: #99ccff; text-indent: 21pt">};</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;</p>
<p style="background: #99ccff; text-indent: 21pt">Action()</p>
<p style="background: #99ccff; text-indent: 21pt">{<span style="font-family: 宋体">　</span> //<span style="font-family: 宋体">为结构数组赋前２个结构数组元素值</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; struct student stu[3]={{101,"<span style="font-family: 宋体">孙悟空</span>",30,"<span style="font-family: 宋体">男</span>",100.00,100.00},</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {102,"<span style="font-family: 宋体">沙和尚</span>",28,"<span style="font-family: 宋体">男</span>",99.00,99.00},};</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; struct student stu1={103,"<span style="font-family: 宋体">白骨精</span>",99,"<span style="font-family: 宋体">女</span>"};&nbsp;//<span style="font-family: 宋体">为结构变量</span>stu1<span style="font-family: 宋体">赋部分数据</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int i;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stu1.chinesescore=90.50;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">为</span>stu1<span style="font-family: 宋体">赋语文成绩</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stu1.mathscore=89.00;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">为</span>stu1<span style="font-family: 宋体">赋数学成绩</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stu[2]=stu1;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">将</span>stu1<span style="font-family: 宋体">变量赋给数组元素</span>stu[2]</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i=0;i&lt;=2;i++) {</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("-----------------------------");</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">第</span>%d<span style="font-family: 宋体">个学生信息</span>:",i+1);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">学号</span>=%d",stu[i].num);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">姓名</span>=%s",stu[i].name);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">性别</span>=%s",stu[i].sex);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">年龄</span>=%d",stu[i].age);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">语文成绩</span>=%.2f",stu[i].chinesescore);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">数学成绩</span>=%.2f",stu[i].mathscore);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("-----------------------------");</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;</p>
<p style="background: #99ccff; text-indent: 21pt">}</p>
<p style="line-height: 150%"><span style="font-family: 宋体">上面脚本的输出内容为：</span></p>
<p style="background: #99ccff; text-indent: 21pt">Running Vuser...</p>
<p style="background: #99ccff; text-indent: 21pt">Starting iteration 1.</p>
<p style="background: #99ccff; text-indent: 21pt">Starting action Action.</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(24): -----------------------------</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(25): <span style="font-family: 宋体">第</span>1<span style="font-family: 宋体">个学生信息</span>:</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(26): <span style="font-family: 宋体">学号</span>=101</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(27): <span style="font-family: 宋体">姓名</span>=<span style="font-family: 宋体">孙悟空</span></p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(28): <span style="font-family: 宋体">性别</span>=<span style="font-family: 宋体">男</span></p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(29): <span style="font-family: 宋体">年龄</span>=30</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(30): <span style="font-family: 宋体">语文成绩</span>=100.00</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(31): <span style="font-family: 宋体">数学成绩</span>=100.00</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(32): -----------------------------</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(24): -----------------------------</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(25): <span style="font-family: 宋体">第</span>2<span style="font-family: 宋体">个学生信息</span>:</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(26): <span style="font-family: 宋体">学号</span>=102</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(27): <span style="font-family: 宋体">姓名</span>=<span style="font-family: 宋体">沙和尚</span></p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(28): <span style="font-family: 宋体">性别</span>=<span style="font-family: 宋体">男</span></p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(29): <span style="font-family: 宋体">年龄</span>=28</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(30): <span style="font-family: 宋体">语文成绩</span>=99.00</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(31): <span style="font-family: 宋体">数学成绩</span>=99.00</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(32): -----------------------------</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(24): -----------------------------</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(25): <span style="font-family: 宋体">第</span>3<span style="font-family: 宋体">个学生信息</span>:</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(26): <span style="font-family: 宋体">学号</span>=103</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(27): <span style="font-family: 宋体">姓名</span>=<span style="font-family: 宋体">白骨精</span></p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(28): <span style="font-family: 宋体">性别</span>=<span style="font-family: 宋体">女</span></p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(29): <span style="font-family: 宋体">年龄</span>=99</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(30): <span style="font-family: 宋体">语文成绩</span>=90.50</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(31): <span style="font-family: 宋体">数学成绩</span>=89.00</p>
<p style="background: #99ccff; text-indent: 21pt">Action.c(32): -----------------------------</p>
<p style="background: #99ccff; text-indent: 21pt">Ending action Action.</p>
<p style="background: #99ccff; text-indent: 21pt">Ending iteration 1.</p>
<p style="background: #99ccff; text-indent: 21pt">Ending Vuser...</p>
<p style="line-height: 150%"><span style="font-family: 宋体">当然，为了我们引用结构方便，您可以应用类型定义符&#8220;</span>typedef<span style="font-family: 宋体">&#8221;将&#8220;</span>struct student<span style="font-family: 宋体">&#8221;命名成简洁的、明了的名称。</span>C<span style="font-family: 宋体">语言允许由用户自己定义类型说明符，即：类型定义符&#8220;</span>typedef<span style="font-family: 宋体">&#8221;，允许由用户为数据类型取&#8220;别名&#8221;。上面的结构脚本，我们可以用&#8220;</span>typedef<span style="font-family: 宋体">&#8221;实现同样的功能。</span></p>
<p style="background: #99ccff; text-indent: 21pt"><strong>typedef</strong> struct student</p>
<p style="background: #99ccff; text-indent: 21pt">{</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; int num;&nbsp;//<span style="font-family: 宋体">学号</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; char name[8]; //<span style="font-family: 宋体">姓名</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int&nbsp;age;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">年龄</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; char sex[2];&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">性别</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp; float chinesescore;&nbsp;//<span style="font-family: 宋体">语文成绩</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float mathscore;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">数学成绩</span></p>
<p style="background: #99ccff; text-indent: 21pt">} <strong>STU</strong>;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;</p>
<p style="background: #99ccff; text-indent: 21pt">Action()</p>
<p style="background: #99ccff; text-indent: 21pt">{&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">为结构数组赋前２个结构数组元素值</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>STU</strong> stu[3]={{101,"<span style="font-family: 宋体">孙悟空</span>",30,"<span style="font-family: 宋体">男</span>",100.00,100.00},</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {102,"<span style="font-family: 宋体">沙和尚</span>",28,"<span style="font-family: 宋体">男</span>",99.00,99.00},}; </p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STU stu1={103,"<span style="font-family: 宋体">白骨精</span>",99,"<span style="font-family: 宋体">女</span>"};//<span style="font-family: 宋体">为结构变量</span>stu1<span style="font-family: 宋体">赋部分数据</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int i;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stu1.chinesescore=90.50;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">为</span>stu1<span style="font-family: 宋体">赋语文成绩</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stu1.mathscore=89.00;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">为</span>stu1<span style="font-family: 宋体">赋数学成绩</span></p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stu[2]=stu1;&nbsp;&nbsp;&nbsp; //<span style="font-family: 宋体">将</span>stu1<span style="font-family: 宋体">变量赋给数组元素</span>stu[2]</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i=0;i&lt;=2;i++) {</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("-----------------------------");</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">第</span>%d<span style="font-family: 宋体">个学生信息</span>:",i+1);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">学号</span>=%d",stu[i].num);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">姓名</span>=%s",stu[i].name);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">性别</span>=%s",stu[i].sex);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">年龄</span>=%d",stu[i].age);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">语文成绩</span>=%.2f",stu[i].chinesescore);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("<span style="font-family: 宋体">数学成绩</span>=%.2f",stu[i].mathscore);</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr_output_message("-----------------------------");</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;</p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p style="background: #99ccff; text-indent: 21pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;</p>
<p style="background: #99ccff; text-indent: 21pt">}</p>
<p style="line-height: 150%"><span style="font-family: 宋体">请大家注意黑体字部分，应用&#8220;</span>typedef<span style="font-family: 宋体">&#8221;后，您会发现在定义结构变量的时候，我们省略了&#8220;</span>struct student<span style="font-family: 宋体">&#8221;而用自定义的符号&#8220;</span>STU<span style="font-family: 宋体">&#8221;来声明相应变量即可，非常方便。还有一点，不知道您注意到没有，就是我们在定义的时候书写了这样的语句&#8220;</span>STU stu[3]<span style="font-family: 宋体">&#8221;，如果您在</span>Delphi<span style="font-family: 宋体">等语言中书写，它会提示您书写错误的，原因是这些语言是不区分大小写的，而在</span>C<span style="font-family: 宋体">语言中是区分大小写的，&#8220;</span>STU<span style="font-family: 宋体">&#8221;和&#8220;</span>stu<span style="font-family: 宋体">&#8221;分别代表两个不同的内容。</span></p>
<img src="http://www.cnblogs.com/tester2test/aggbug/1486695.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/tester2test/archive/2009/05/21/1486695.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/tester2test/archive/2009/05/21/1486695.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>杀死指定进程名称的小VBS </title><link>http://www.cnblogs.com/tester2test/archive/2009/05/14/1457089.html</link><dc:creator>测试者家园</dc:creator><author>测试者家园</author><pubDate>Thu, 14 May 2009 12:30:00 GMT</pubDate><guid>http://www.cnblogs.com/tester2test/archive/2009/05/14/1457089.html</guid><description><![CDATA[<p>阅读: 599 评论: 0 作者: <a href="http://www.cnblogs.com/tester2test/" target="_blank">测试者家园</a> 发表于 2009-05-14 20:30 <a href="http://www.cnblogs.com/tester2test/archive/2009/05/14/1457089.html" target="_blank">原文链接</a></p><div>以下是一小段杀死指定进程名字的小vbs，希望对大家有帮助。</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Function KillProc(strProcName)<br />
On Error Resume Next<br />
&nbsp;Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")<br />
&nbsp;Set arrProcesses = objWMIService.ExecQuery( "select * from win32_process where Name ='"&amp;strProcName&amp;"'" )<br />
&nbsp;For Each proccess In arrProcesses<br />
&nbsp;&nbsp;proccess.Terminate 0 <br />
&nbsp;Next<br />
End Function</div>
<img src="http://www.cnblogs.com/tester2test/aggbug/1457089.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/tester2test/archive/2009/05/14/1457089.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/tester2test/archive/2009/05/14/1457089.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>量体裁衣性能测试在企业中的应用</title><link>http://www.cnblogs.com/tester2test/archive/2009/05/08/1452943.html</link><dc:creator>测试者家园</dc:creator><author>测试者家园</author><pubDate>Fri, 08 May 2009 15:14:00 GMT</pubDate><guid>http://www.cnblogs.com/tester2test/archive/2009/05/08/1452943.html</guid><description><![CDATA[<p>阅读: 1495 评论: 2 作者: <a href="http://www.cnblogs.com/tester2test/" target="_blank">测试者家园</a> 发表于 2009-05-08 23:14 <a href="http://www.cnblogs.com/tester2test/archive/2009/05/08/1452943.html" target="_blank">原文链接</a></p>版权声明：原创作品，谢绝转载！否则将追究法律责任。
&#160;
<h2><span style="font-family: 黑体">量体裁衣性能测试在企业中的应用</span></h2>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="line-height: 150%; font-family: 宋体">一个估计有百万用户的门户网站代码编写完成了。进行功能测试，运行效果良好，项目组为此欢呼雀跃。在产品的演示会上，风险投资商提出了一个问题－&#8220;咱们这个网站能支持多少用户同时在线啊？&#8221;。整个会场寂静，一会儿，项目经理说：&#8220;我们还没有进行这方面的测试。&#8221;会场哗然</span><span style="line-height: 150%; font-family: 宋体">&#8230;&#8230;</span></p>
<h3><span style="font-family: 宋体">性能测试介绍</span></h3>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">只进行功能测试，而不进行性能测试，对一个拥有百万用户的门户网站来说，无疑是一个天大的笑话。一个好的网站（软件）应该是性能稳定的，经的起考验的。那么什么是性能测试呢？</span></p>
<p style="margin-left: 21pt; text-indent: -21pt"><span style="font-size: 12pt; font-family: Wingdings">u<span style="font: 7pt 'Times New Roman'">&#160;&#160;&#160;&#160;&#160; </span></span><strong><span style="font-size: 12pt; font-family: 宋体">性能测试的概念及种类</span></strong></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">性能测试是为描述测试对象与性能相关的特征并对其进行评价，而实施和执行的一类测试。它主要通过自动化的测试工具模拟多种正常、峰值以及异常负载条件来对系统的各项性能指标进行测试。通常大家把性能测试、负载测试、压力测试统称为性能测试。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">负载测试－通过逐步增加系统负载，测试系统性能的变化，并最终确定在满足系统的性能指标情况下，系统所能够承受的最大负载量的测试。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">压力测试－通过逐步增加系统负载，测试系统性能的变化，并最终确定在什么负载条件下系统性能处于失效状态，并来获得系统能提供的最大服务级别的测试。</span></p>
<p style="margin-left: 21pt; text-indent: -21pt"><span style="font-family: Wingdings">u<span style="font: 7pt 'Times New Roman'">&#160;&#160;&#160;&#160;&#160;&#160; </span></span><strong><span style="font-family: 宋体">性能测试的工具介绍</span></strong></p>
<p>&#160;</p>
<p style="margin-left: 42pt; text-indent: -21pt"><span style="font-family: Wingdings">n<span style="font: 7pt 'Times New Roman'">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-family: 宋体">开源工具</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">开源工具以其源代码开放、针对性强、小巧灵活多变、免费的特性吸引着越来越多的企业和个人投入到开源项目研发当中。</span>IBM<span style="font-family: 宋体">投资</span>1000<span style="font-family: 宋体">万的</span>Eclipse<span style="font-family: 宋体">无疑是最为吸引大家眼球的开源项目。伴随着开源项目的蓬勃发展，很多非常优秀的开源性能测试工具也纷纷出炉，如：</span>Jmeter<span style="font-family: 宋体">、</span>OpenSTA<span style="font-family: 宋体">、</span>DBMonster<span style="font-family: 宋体">、</span>TpTest<span style="font-family: 宋体">等。</span></p>
<table style="border-right: medium none; border-top: medium none; margin-left: 16.95pt; border-left: medium none; border-bottom: medium none; border-collapse: collapse" cellspacing="0" cellpadding="0" border="1">
    <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: e9ccff; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 58.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="78">
            <p align="center"><strong><span style="font-family: 宋体">工具名称</span></strong></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: e9ccff; padding-bottom: 0cm; border-left: medium none; width: 350.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="468">
            <p align="center"><strong><span style="font-family: 宋体">功能简介</span></strong></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 58.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="78">
            <p><span style="font-family: 宋体">Jmeter</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 350.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="468">
            <p><span style="font-family: 宋体">Jmeter</span><span style="font-family: 宋体">可以完成针对静态资源和动态资源（Servlets, Perl脚本, Java对象, 数据查询, FTP服务等）的性能测试、可以模拟大量的服务器负载、网络负载、软件对象负载，通过不同的加载类型全面测试软件的性能、提供图形化的性能分析。</span></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 58.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="78">
            <p><span style="font-family: 宋体">OpenSTA</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: medium none; width: 350.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="468">
            <p><span style="font-family: 宋体">OpenSTA</span><span style="font-family: 宋体">可以模拟大量的虚拟用户、结果分析包括虚拟用户响应时间、web服务器的资源使用情况、数据库服务器的使用情况，可以精确的度量负载测试的结果。</span></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 58.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="78">
            <p><span style="font-family: 宋体">DbMonster</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 350.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="468">
            <p><span style="font-family: 宋体">DBMonster</span><span style="font-family: 宋体">是一个生成随机数据，用来测试SQL数据库的压力测试工具。</span></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 58.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="78">
            <p><span style="font-family: 宋体">TpTest</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: medium none; width: 350.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="468">
            <p><span style="font-family: 宋体">TPTest</span><span style="font-family: 宋体">的提供测试Internet连接速度的简单方法。</span></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 58.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="78">
            <p><span style="font-family: 宋体">&#8230;&#8230;</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 350.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="468">
            <p><span style="font-family: 宋体">&#8230;&#8230;</span></p>
            </td>
        </tr>
    </table>
<p align="center"><span style="font-family: 宋体">表</span>13-1:<span style="font-family: 宋体">开源性能测试工具介绍</span></p>
<p style="margin-left: 21pt">&#160;</p>
<p style="margin-left: 42pt; text-indent: -21pt"><span style="font-family: Wingdings">n<span style="font: 7pt 'Times New Roman'">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-family: 宋体">商业工具</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">商业工具以其界面美观、功能强大、操作方便、插件种类多、统计分析项丰富、直观，同时提供产品的定期或者不定期的升级以及技术支持服务等优势也广泛的应用于各个企业。目前比较流行的商业性能测试工具也非常多，如</span>Mercury LoadRunner<span style="font-family: 宋体">、</span>IBM Rational Performance Tester(RPT)<span style="font-family: 宋体">等工具。</span></p>
<table style="border-right: medium none; border-top: medium none; margin-left: 16.95pt; border-left: medium none; border-bottom: medium none; border-collapse: collapse" cellspacing="0" cellpadding="0" border="1">
    <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: e9ccff; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 184.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="246">
            <p align="center"><strong><span style="font-family: 宋体">工具名称</span></strong></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: e9ccff; padding-bottom: 0cm; border-left: medium none; width: 224.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="300">
            <p align="center"><strong><span style="font-family: 宋体">功能简介</span></strong></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 184.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="246">
            <p><span style="font-family: 宋体">Mercury LoadRunner</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 224.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="300">
            <p><span style="font-family: 宋体">Mercury LoadRunner </span><span style="font-family: 宋体">是一种预测系统行为和性能的工业级标准性能测试负载测试工具。通过以模拟上千万用户实施并发负载及实时性能监测的方式来确认和查找问题，LoadRunner 能够对整个企业架构进行测试。支持Web(HTTP/HTML)Windows Sockets、File Transfer Protocol(FTP) 、Media Player(MMS) 、ODBC、MS SQL Server等协议。</span></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 184.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="246">
            <p><span style="font-family: 宋体">IBM Rational Performance Tester</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: medium none; width: 224.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="300">
            <p><span style="color: black; font-family: 宋体">适用于团队验证 Web 应用程序的可伸缩性的负载和性能测试工具，引入了新的技术进行负载测试的创建、修改、执行和结果分析。</span></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 184.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="246">
            <p><span style="font-family: 宋体">&#8230;&#8230;</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 224.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="300">
            <p><span style="font-family: 宋体">&#8230;&#8230;</span></p>
            </td>
        </tr>
    </table>
<p align="center"><span style="font-family: 宋体">表</span>13-2:<span style="font-family: 宋体">商业性能测试工具介绍</span></p>
<p style="margin-left: 42pt; text-indent: -21pt"><span style="font-family: Wingdings">n<span style="font: 7pt 'Times New Roman'">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-family: 宋体">免费工具</span></p>
<p style="margin-left: 21pt; line-height: 150%"><span style="font-family: 宋体">免费工具以其界面美观、免费使用、统计分析项较多、操作较方便等优点也吸引了很多</span></p>
<p style="line-height: 150%"><span style="font-family: 宋体">的企业应用这类软件，比较出名的免费性能测试工具有</span>Microsoft Application Center Test<span style="font-family: 宋体">、</span>Microsoft Web Application Stress Tool<span style="font-family: 宋体">。</span></p>
<table style="border-right: medium none; border-top: medium none; margin-left: 16.95pt; border-left: medium none; border-bottom: medium none; border-collapse: collapse" cellspacing="0" cellpadding="0" border="1">
    <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: e9ccff; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 184.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="246">
            <p align="center"><strong><span style="font-family: 宋体">工具名称</span></strong></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: e9ccff; padding-bottom: 0cm; border-left: medium none; width: 224.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="300">
            <p align="center"><strong><span style="font-family: 宋体">功能简介</span></strong></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 184.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="246">
            <p><span style="font-family: 宋体">Microsoft Application Center Test</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 224.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="300">
            <p><span style="font-family: 宋体">它可以对 Web 服务器进行强度测试，分析 Web 应用程序（包括 ASPX 页及其使用的组件）的性能和可伸缩性问题。通过打开多个服务器连接并迅速发送 HTTP 请求，Application Center Test 可以模拟大量用户。</span></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 184.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="246">
            <p><span style="font-family: 宋体">Microsoft Web Application Stress Tool</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: medium none; width: 224.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="300">
            <p><span style="font-family: 宋体">由微软的网站测试人员所开发，专门用来进行实际网站压力测试的一套工具。可以数种不同的方式建立测试指令：包含以手动、录制浏览器操作步骤、或直接录入IIS的记录文件、录入网站的内容及录入其它测试程序的指令等方式。</span></p>
            </td>
        </tr>
        <tr>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 184.8pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="246">
            <p><span style="font-family: 宋体">&#8230;&#8230;</span></p>
            </td>
            <td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 224.65pt; padding-top: 0cm; border-bottom: windowtext 1pt solid" valign="top" width="300">
            <p><span style="font-family: 宋体">&#8230;&#8230;</span></p>
            </td>
        </tr>
    </table>
<p align="center"><span style="font-family: 宋体">表</span>13-3:<span style="font-family: 宋体">免费性能测试工具介绍</span></p>
<h3><span style="font-family: 宋体">性能测试在软件企业的应用</span></h3>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">随着软件行业的不断发展，越来越多的企业更加重视产品的质量。性能测试已经成为软件质量保障的一个重要因素。一个软件性能的优劣很有可能直接决定一个软件的成败，甚至一个企业的兴衰。每个软件企业都有各自不同的应用领域，有着不同的实际情况，这样必然要求每个企业量体裁衣，选择适合自己的应用策略。</span></p>
<p style="margin-left: 21pt; text-indent: -21pt"><span style="font-family: 宋体">大型企业、大型项目的应用策略</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">大型企业应用的软件系统，业务比较复杂、用户数很多、存在并发情况、业务的响应时间、操作的实时性、稳定性、安全性、可恢复性等都要求很高。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">象银行、电信、铁路等大型企业一般通过</span>CMMI<span style="font-family: 宋体">、</span>ISO<span style="font-family: 宋体">等认证，企业拥有先进的管理模式、人员储备丰富、实力雄厚，在涉足的领域基本处于不可撼动的地位。这些行业对性能的要求很高。在此仅举一个铁路售票系统的例子：每逢春节、五一、十一，相信坐火车回家探亲或度假的朋友一定身有体会。在火车站、车票零售点，人海茫茫，一望无际，此时火车售票系统正在经受着巨大的性能考验。全市几百个售票网点同时紧张忙碌工作。售票过程一般分为两步</span>,<span style="font-family: 宋体">首先根据购票者提供的要出行的日期、车次和目的地进行相关查询</span>,<span style="font-family: 宋体">然后在有票的情况下，收取现金，打印出相应的车票交付给购票者。一个看起来简单的两个步骤</span>,<span style="font-family: 宋体">但当成百上千的终端同时执行时，情况就复杂了。如此众多的交易同时发生</span>,<span style="font-family: 宋体">对应用程序本身、操作系统、中心数据库服务器、中间件服务器、网络设备的承受力都是一个严峻的考验。由这些行业的性质决定了决策者不可能在发生问题后才考虑系统的承受力</span>, <span style="font-family: 宋体">预见并发承受力</span>, <span style="font-family: 宋体">是这些行业应该考虑的一个很重要的问题。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">鉴于大型企业资金雄厚、管理规范、人员分工明确，笔者认为主要可以有两种方式解决大型企业的性能测试问题。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">解决方案一：构建自己的性能测试团队</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">组建由性能测试专家、数据库专家、网络专家和系统软件管理员以及资深的程序员（有的公司还有业务专家）构成的性能测试团队。性能测试团队是一个独立的部门，在进行性能测试时，需要制定详细的性能测试计划、测试设计、测试用例，而后依据测试用例执行性能测试、分析性能测试结果，提出性能调整建议、书写性能测试总结报告。在工具的选用方面，建议选择商业性能测试工具，强大的功能、丰富的统计分析项、而且象</span>Mercury LoadRunner<span style="font-family: 宋体">和</span>IBM Rational Performance Tester<span style="font-family: 宋体">等工具还提供了专门的插件可以集成到</span>IDE<span style="font-family: 宋体">中，做粒度很细的工作，如看某个算法的执行时间、某个存储过程的执行时间、甚至某个语句的执行时间等。这些优势无疑为专家们定位系统问题提供了很好的依据。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">解决方案二：专业性能测试机构为系统测试</span></p>
<p style="margin: 7.8pt 0cm; line-height: 150%">&#160;&#160; <span style="font-family: 宋体">如果企业没有自己的性能测试部门，请专业的性能测试机构为系统做测试也不失为一个好办法。专业软件测试机构具有成熟的测试流程和测试方法，由有丰富的工作经验的性能测试工程师进行测试并提交专业的性能分析报告，可极大地提高测试有效性，同时企业不需为维护性能测试而保留的由各方面专家组成的部门人员的高额费用（这种情况在很少进行性能测试的企业尤为重要）。还可保证测试的独立性、公正性，避免了部门之间产生矛盾或磨擦。</span></p>
<p style="margin-left: 21pt; text-indent: -21pt"><span style="font-family: 宋体">中型企业、中型项目的应用策略</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">中型应用的软件系统，业务比较复杂、用户数较多、存在并发情况，对业务的响应时间、稳定性等都有一定的要求。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">中型企业一般通过</span>ISO<span style="font-family: 宋体">认证，企业拥有比较先进的管理模式、有一定的人员储备、较强实力，在涉足的领域有比较有名气，对性能的要求比较高。在此仅举一个汽车配件查询系统的例子：该系统提供近千家的汽车配件信息，通常有</span>50<span style="font-family: 宋体">－</span>120<span style="font-family: 宋体">人在线。用户操作的最多的就是查询厂家及其配件信息的操作。这是一个典型的中型项目。用户并发数量不是很大，涉及到频繁的查询操作，对系统的响应时间和系统的稳定性要求比较高。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">鉴于中型企业有较强实力、管理较规范、有一定的人员储备，笔者认为主要可以有三种方式解决中型企业的性能测试问题。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">解决方案一：临时组建性能测试团队</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">在测试部门和开发部门临时组建由资深的程序员、资深的测试员、数据库专家、网络专家和系统软件管理员构成的性能测试团队。性能测试团队不是一个独立的部门，分别由隶属于开发、测试等部门的专家构成。在进行性能测试时，需要制定详细的性能测试计划、测试用例，而后依据测试用例执行性能测试、分析性能测试结果，提出性能调整建议、书写性能测试总结报告。在工具的选用方面，建议选择商业性能测试工具，购买单协议的</span>Mercury LoadRunner<span style="font-family: 宋体">、</span>IBM Rational Performance Tester<span style="font-family: 宋体">等工具。也可以选择开源的性能测试工具，如：</span>Jmeter <span style="font-family: 宋体">、</span> OpenSTA<span style="font-family: 宋体">等。还可以选择免费的性能测试工具，如：</span>Microsoft Web Application Stress Tool <span style="font-family: 宋体">或</span> Microsoft Application Center Test <span style="font-family: 宋体">。但是无论是开源工具还是免费的测试工具，因为这些工具为非商业工具，它们使用的熟悉过程时间长、统计分析项不是十分丰富以及产品的后期升级和技术支持没有保证都应该成为企业考虑的内容。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">解决方案二：自行编写测试程序</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">对于特定的模块或者插件也可以进行针对性进行代码编写，进行相关性能测试。在此我仅举一个例子，记得在开发一个汽车定损行业管理软件时，系统需要以</span>FTP<span style="font-family: 宋体">方式传送汽车损坏情况照片，决定采用第三方提供的</span>FTP<span style="font-family: 宋体">服务器组件。需要对该</span>FTP<span style="font-family: 宋体">服务组件进行系统稳定性和并发性测试。经过项目组协商决定采用自行编写多线程程序模拟多个客户端进行不间断的持续</span>FTP<span style="font-family: 宋体">上传和下载操作。自行编写测试程序也不失为另一种性能测试的方法，但是在您进行程序编写的时候一定要注意您所应用的组件是否是线程安全的，如果线程不安全将会出现问题。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">解决方案三：专业性能测试机构为系统测试</span></p>
<p style="margin: 7.8pt 0cm; line-height: 150%">&#160;&#160; <span style="font-family: 宋体">如果在时间紧、任务重以及在企业条件允许的情况下，请专业的性能测试机构为系统做测试也不失为一个办法，其优势不再赘述。</span></p>
<p style="margin-left: 21pt; text-indent: -21pt"><span style="font-family: 宋体">小型企业、小型项目的应用策略</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">小型应用的软件系统，业务比较简单、用户数也不是很多、存在并发情况，对业务的响应时间、稳定性等都有一定的要求。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">小型企业一般管理不是很规范、人员储备不太充足、有一定的经济实力，在涉足的领域有些名气，对性能有一定的要求。在此仅举一个进销存管理系统的例子：该系统为一个大型商场对日常进销存业务的管理，通常有</span>10<span style="font-family: 宋体">－</span>30<span style="font-family: 宋体">人应用此系统。用户操作的最多的就是查询与销售商品的操作。这是一个典型的中、小型项目。用户并发数量不大，涉及到频繁的查询和出库操作，对系统的响应时间和系统的稳定性有一定要求。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">鉴于小型企业有一定的经济实力、管理不是很规范、人员储备也不是很充足，笔者认为主要可以有两种方式解决小型企业的性能测试问题。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">解决方案一：临时组建性能测试团队</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">临时组建由资深的程序员、数据库专家、网络专家和系统软件管理员构成的性能测试团队，有的公司可能存在上述提及人员不完整的情况，那么可以针对项目的重要程度，适当增加相应的专家人员，必要时应该外聘一些专职或者兼职的专家。性能测试团队不是一个独立的部门，分别由隶属于开发等部门的专家构成。在进行性能测试时，需要制定详细的性能测试计划、测试用例，而后依据测试用例执行性能测试、分析性能测试结果，提出性能调整建议、书写性能测试总结报告。在工具的选用方面，可以考虑选择商业性能测试工具，购买单协议的</span>Mercury LoadRunner<span style="font-family: 宋体">、</span>IBM Rational Performance Tester<span style="font-family: 宋体">等工具、或者购买具有一个月或者几个月许可协议的商业性能测试工具。也可以选择适合项目的开源、免费性能测试工具。</span></p>
<p style="margin: 7.8pt 0cm; text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">解决方案二：专业性能测试机构为系统测试</span></p>
<p style="line-height: 150%">&#160;&#160; <span style="font-family: 宋体">如果在时间紧、任务重或者软件性能测试要求较高以及在企业条件允许的情况下，请专业的性能测试机构为系统做测试也不失为一个办法，其优势不再赘述。</span></p>
<h3><span style="font-family: 宋体">总结</span> </h3>
<p style="line-height: 150%">&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-family: 宋体">以上策略是一个普遍的应用于大、中、小企业以及大、中、小项目进行性能测试的应用策略，并不见得大公司就不做小项目，而小公司就不可以承揽大型项目，每个企业应该根据企业的实际情况和项目的规模，选择行之有效的性能测试团队组建形式和具体的解决方案来成功完成性能测试工作。</span></p>
<p>&#160;</p>
 <img src="http://www.cnblogs.com/tester2test/aggbug/1452943.html?type=1" width="1" height="1" alt=""/><p>评论: 2　<a href="http://www.cnblogs.com/tester2test/archive/2009/05/08/1452943.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/tester2test/archive/2009/05/08/1452943.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>面试后您该做的事情 </title><link>http://www.cnblogs.com/tester2test/archive/2009/05/06/1450358.html</link><dc:creator>测试者家园</dc:creator><author>测试者家园</author><pubDate>Tue, 05 May 2009 22:31:00 GMT</pubDate><guid>http://www.cnblogs.com/tester2test/archive/2009/05/06/1450358.html</guid><description><![CDATA[<p>阅读: 708 评论: 2 作者: <a href="http://www.cnblogs.com/tester2test/" target="_blank">测试者家园</a> 发表于 2009-05-06 06:31 <a href="http://www.cnblogs.com/tester2test/archive/2009/05/06/1450358.html" target="_blank">原文链接</a></p><p><font face="Times New Roman">　　许多求职者只留意面试时的礼仪，忽略了应聘后的善后工作，可事实上，面试结束并不意味着求职过程的完结。求职者不应该袖手以待聘用通知的到来，有些事情您还必须加以注意。 <br />
&nbsp;<br />
写信表示感谢为了加深招聘人员对您的印象，增加求职成功的可能性，面试后的两三天内，您最好给招聘人员打个电话或写信表示感谢。感谢电话要简短，最好不要超过3分钟；感谢信要简洁，最好不超过一页纸。感谢信的开头应提及您的姓名及简单情况，以及面试的时间，并对招聘人员表示感谢。感谢信的中间部分要重申您对该公司、该职位的兴趣，增加一些对求职成功有用的新内容。感谢信的结尾可以表示您对自己的信心，以及为公司的发展壮大做贡献的决心。<br />
&nbsp;<br />
不要过于急切的打听面试结果，在一般情况下，每次面试结束后，招聘主管人员都要进行讨论和投票，然后送人事部门汇总，最后确定录用人选，这个阶段可能多则需要几周、几个月，少则需要三五天的时间。求职者在这段时间内一定要耐心等候消息。 <br />
&nbsp;<br />
如果您同时向几家公司求职，在一次面试结束后，则要注意调整自己的心情，准备全身心投入到第二家面试的考验当中。因为，在没有接到聘用通知之前，面试结果还是个未知数，您不应该放弃其他机会，即使同时获得几家招聘单位的录用通知，您在有所准备的情况下，也可以从优选择。 <br />
&nbsp;<br />
一般来说，如果您在面试的两周后，或主考官许诺的时间之后还没有收到对方的答复时，就应该写信或打电话给招聘单位，询问面试结果。 <br />
&nbsp;<br />
谁也无法保证应聘时每次都会成功，如果您在应聘时失败了，也不要气馁，这一次失败了，还有下一次，有的时候还存在因为您要工资高于企业所能够接受的范围，企业不得不忍痛舍弃选择您，这种情况您就更不能灰心失望了，就业机会不只一个。&#8220;失败是成功之母&#8221;，关键是必须总结经验教训，找出失败的真正原因，并针对这些不足重新做准备，以谋求下一次面试成功。<br />
</font></p>
<img src="http://www.cnblogs.com/tester2test/aggbug/1450358.html?type=1" width="1" height="1" alt=""/><p>评论: 2　<a href="http://www.cnblogs.com/tester2test/archive/2009/05/06/1450358.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/tester2test/archive/2009/05/06/1450358.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>面试时您该做的事情</title><link>http://www.cnblogs.com/tester2test/archive/2009/04/17/1438409.html</link><dc:creator>测试者家园</dc:creator><author>测试者家园</author><pubDate>Fri, 17 Apr 2009 13:58:00 GMT</pubDate><guid>http://www.cnblogs.com/tester2test/archive/2009/04/17/1438409.html</guid><description><![CDATA[<p>阅读: 598 评论: 0 作者: <a href="http://www.cnblogs.com/tester2test/" target="_blank">测试者家园</a> 发表于 2009-04-17 21:58 <a href="http://www.cnblogs.com/tester2test/archive/2009/04/17/1438409.html" target="_blank">原文链接</a></p><span style="font-size: 10.5pt; font-family: 黑体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 黑体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">&nbsp; 
<p style="line-height: 150%"><strong><span style="font-family: 宋体">消除紧张情绪的策略</span> </strong></p>
<p style="line-height: 150%">&nbsp;<span style="font-family: 宋体">应聘者在面试的过程中都或多或少有紧张的情绪，这在所难免，但如果过分紧张就会影响到面试的效果。那么，如何才能消除紧张呢</span>? </p>
<p style="line-height: 150%">&nbsp;<span style="font-family: 宋体">您可以尝试下面的方面，来缓解紧张的心情：</span> </p>
<p style="line-height: 150%">&nbsp;<span style="font-family: 宋体">第一，礼貌的话大声地说。一般情况是，当人在紧张时大声说上几句话，会缓解一下紧张情绪。当应聘者走进考试室，一进门，就强迫自己向在座的考官响亮地打声招呼：&#8220;大家好，我叫某某，今天非常高兴能够有机会来贵公司参加面试&#8221;。这既表现您的礼貌，又可稳定自己的情绪，这样心情会轻松很多。</span> </p>
<p style="line-height: 150%">&nbsp;<span style="font-family: 宋体">第二，放慢讲话速度。不管是谁，在紧张的时候，常常说话就会像打机关枪一样，速度极快；而且，说得越快，就越紧张，造成恶性循环。如果发现自己的语素变快，应该适当控制自己说话的速度，让字清楚的从口中吐出来，速度放慢，紧张的情绪就会得到有效的控制也就会感到不十分紧张了。</span> </p>
<p style="line-height: 150%">&nbsp;<span style="font-family: 宋体">第三，每句话说得清楚明白。紧张时，容易使语尾含糊，给人一种有气无力的感觉，如果您反其道而行之，加重语尾发音，说得缓慢响亮，有助于消除紧张。</span> </p>
<p style="line-height: 150%">&nbsp;<span style="font-family: 宋体">第四，如实说出自己心情紧张。如果太紧张不妨直接对考官说：&#8220;对不起，我有点紧张。&#8221;真的说出来，您的紧张情绪也会逐渐消失，有经验的面试官也会找一些话题来缓解您的紧张情绪，也会考虑您紧张因素，在答题方面会适当的考虑这方面原因，不会因此而多扣您的分。</span> </p>
<p style="line-height: 150%">&nbsp;<span style="font-family: 宋体">第五，面试时目光的停放位置很重要。两眼盯着考官的双眼，自然会感到紧张，低着头或东张西望，又给人一种不沉着的感觉。最好的办法是：面对考官坐下后，脸对着考官的眼睛，但目光却落在考官的额头上，这样既可以给人一种专心听讲的良好印象，又会使自己的紧张情绪得以缓解和消除。</span> </p>
<p style="line-height: 150%">&nbsp;<strong><span style="font-family: 宋体">树立良好形象的策略</span> </strong></p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　通过笔试后，考官已经对您有了初步的认识，这只能说是对您的专业知识认可，可以确定您给考官的专业方面知识也许是不错的，否则，就不会让您参加面试。</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">经验丰富的考官能够通过您的举手投足，微笑皱眉等肢体语言看出您的性格。参加面试，您向别人传递的信息，往往是非语言的成分多，而语言的成分反而少。所谓肢体语言，是很难确切给它下个定义的，通过身体动作来表达无法用语言表达的情感都可归为肢体语言。</span><span>&nbsp;&nbsp; </span><strong><span style="font-family: 宋体">处理尴尬局面的策略</span></strong> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">面试过程中，无论您做了怎样充分的准备，由于紧张或其他原因，往往还会出现一些意想不到的情况，为此，应聘者必须学会一些应急的技巧：</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>1.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">遇到不懂的问题时</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">通常情况下，不应让考官重复问题，或做补充说明，但您如果实在弄不清楚问题的要领，最好不要随意回答。就考官来说，由于某种原因，也可能问出别人无法回答的问题，这时您最好先弄明白，不要盲目地回答。比如，您可以说：&#8220;您的意思是&#8230;&#8230;&#8221;或&#8220;对不起，我没听明白，请您把问题再讲一遍好吗？&#8221;，但您绝不能用命令的口气，否则会引起考官的不愉快，影响面试效果。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>2.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">遇到难以回答的问题时</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">面试当中很容易碰到一些您不会或毫无准备的问题，这时如果您硬着头皮去回答，肯定是语无伦次，前言不搭后语。此时您最好坦白地说不懂，这比胡乱回答要好得多。</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">对此，您不必感到不妥，因为面试不同于笔试，有的问题本来就无固定的答案，再说面试主要是考查应聘者的能力、性格和品德等。您重点回答那些应考动机、经历和自己的优缺点等问题。另外，人无完人，每个人精力都是有限，不可能样样都精通，您坦然承认自己不会，反而会使对方产生好印象。否则，不懂装懂，往往会适得其反。有时考官也可能故意设一些本来就无答案的陷阱，此时，您盲目应答反而为错。但有些问题您又无法回避，不能不回答，这时您可来个缓兵之计，尽可能多地争取时间来理清思路。比如，您可以说这个问题我从来没有认真想过，或者说这个问题还是比较有趣的，也可以说这个问题不太好回答，不过&#8230;&#8230;在这短暂的时间里，您要尽快选择好该说什么话，当然，您不可能想全要讲的所有内容，但您至少可以想出一个开头，然后讲开头时，想第二点，讲第二点时想第三点，直至把问题讲完。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>3.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">面试中遇到熟人时</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">面试主考官中有熟人是常有的事，但一些应聘者往往处理得不够妥当。面试中遇到熟人，他会让您稍事寒暄或鼓励您&#8220;不要紧张、尽量发挥&#8221;，但也可能怕引起别的主考官误解而不作任何表示。有的应聘者遇到这种情况便喜出望外，自认为有了帮手，于是过分地与之寒暄，有意表现亲热，好像在暗示别人&#8220;我有关系&#8221;，其实这是最不明智之举。第一，自恃有熟人在场就忘乎所以，必然冷落了其他主考官，使他们尚未对您发问，心理上就产生了一种不满，甚至认为您在抬熟人向他们施加压力，这种逆反心理势必影响他们对您的评价；第二，在有多位主考官在场的情况下过分地与熟人亲热，很可能会给熟人造成难堪；第三，过分地依赖于熟人，势必造成自己精力分散、思路混乱，不能有条不紊地回答主考官提出的各类问题，面试成绩自然不会突出。因此，面试遇到熟人时，只要以点头、微笑等方式与之打个招呼即可，其他方面应维持对别的主考官一样的礼貌，不要有过分之举。这样做，既避免了别人猜忌，干扰面试的进行，又可使自己的水平得到充分而真实地发挥。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>4.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">讲错了话时</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">应聘者由于紧张很容易说错话，比如答非所问、用错词语，以致引起哄堂大笑，这时您千万要沉住气，对所发生的错误不要耿耿于怀，以避免影响后面问题的正确回答。您可以一笑置之，在别人发笑时，调整一下自己的情绪。人非圣贤，孰能无过？您尽可大方一点，哄堂大笑正好能调节一下考场气氛，您不妨把此当作一种幽默，这样心情就会放松许多。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>5.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">面试中不同意主考官的观点时</span> </p>
<p style="line-height: 150%">&nbsp;&nbsp;&nbsp;<span style="font-family: 宋体">俗话说：&#8220;顺着好吃，横着难咽&#8221;。这一观念往往被一些应聘者所接受，并用于面试之中。于是，往往不管主考官问什么、是否正确，都唯唯诺诺顺着往下说，想借此来讨好主考官，以为这样易被录取。殊不知，现在的用人单位大都喜欢有独立思考问题、处理事务能力强的人，工作中可独当一面、提高工作效率的人。只会迎合别人、没有自主观点的应聘者，很容易被用人单位淘汰。因为哪个单位领导也不希望下属是只会顺情说好话的&#8220;马屁精&#8221;。特别是有经验的主考官常会提出一些似是而非、亦此亦彼的问题，以探测应聘者思考问题、解决问题的能力。如果应聘者都是阿谀逢迎，其结果可想而知。</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">其实，面试中应聘者自己对问题的主张、观点、看法如果也能被主考官接受，对面试成功具有很重要的意义。因为这表明您是一个有思想、有性格的人。您的能力、水平符合单位对人才的要求，这必定能赢得主考官的赏识。</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">需要注意的是：如果面试中主考官的意见与自己的观点相左，一方面您不要固执己见、一味反驳，因为如此反驳必然要延误面试时间，同时又破坏了和谐的面试气氛；另一方面，您应抱着讨论、探索的态度，采取比较宽容的方式，实事求是地阐述自己的观点。这样既维护了面试的和谐气氛，又能使主考官倾听您的意见，接受您的观点，对提高您的面试成绩大有裨益。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>6.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">面试中触及自己的弱点时</span> </p>
<p style="line-height: 150%">&nbsp;<span style="font-family: 宋体">&#8220;金无足赤、人无完人&#8221;，任何人都有其长处，也都存在某些弱点。应聘者的弱点在面试中也时常被触及。一般应聘者在主考官提问触及自己弱点后，就觉得有些难堪、表情很不自然，甚至心情久久不能平静，从而影响了整个面试中的情绪。</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">主考官提问触及应聘者的弱点，一般有两种情况：一是从应聘者的简历或其他材料中了解到的弱点；二是提问中无意触及了应聘者的弱点。但不管是有意还是无意，主考官并不是抓住应聘者的弱点不放让您下不来台，而是借此来观察应聘者应付于己不利情况的能力，进而评价其个性素质。因此，当提问触及自己的弱点时，千万不要悲观丧气，更不能胡猜乱想。聪明的做法是首先敢于正视自己的不足，保持心平气和的情绪。回答问题时要发挥自己的优势，想办法克服自己的不足。例如，您平时寡言少语，特别是在众人面前不善于表达，而这样的弱点又不是一下子可以克服的。那么您在回答问题时，就要注意抓住问题的核心，言语虽少但力求内涵丰富、答案准确，这样您仍能转变劣势，得到好评。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>7.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">说大话被揭穿了时</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　对每一个应聘者来说，都有一种强烈的愿望，就是自己能够被录取。所以可能会千方百计地投其所好，不失时机地表现自己，结果履历表上可能出现一些言过其实的地方，回答问题时也可能把自己的行为、经历说得好一点。这种心理，应该说是可以理解的。虽然如此，我们仍认为，做人还是要老老实实，不要大言欺人。但有些应聘者往往把握不住自己，说大话的事情屡有发生。如果主考官没有在意或不予计较那就是您的福气。但您若遇到一个经验丰富的主考官就不会那么容易通过了。比如，您要应试测试部门的一个岗位，为了赢得主考官的好感，当被问及自修过哪些课程时，可能随口说出学过计算机软件、计算机应用专业方面的内容，可是主考官进一步问：软件测试方面的内容通常在大学的那本书中包含这部分内容，您当时学的是哪一本书呢</span>?<span style="font-family: 宋体">您了解极限测试吗，能大概介绍一下极限测试的思想吗</span>?<span style="font-family: 宋体">您要是根本没认真学肯定会答不出来。这时您必然会陷入尴尬的境地。那么怎么办呢</span>?<span style="font-family: 宋体">本来您说大话不应该，多方掩饰只能说明您不诚实。既然被揭穿了就只有老老实实地承认错误。只有这样，才会取得主考官的谅解，不致影响面试的结果。</span> </p>
<p style="line-height: 150%"><strong><span style="font-family: 宋体">&#8220;以退为进&#8221;的策略</span> </strong></p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　在考场上，运用好以退为进或者以守为攻策略，会帮助应聘者化劣势为优势。</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　一位应聘者在挤公共汽车去面试的路上，挤掉了西服的扣子，到考场后来不及补救也没办法补救，于是他就硬着头皮走进考场。面试中一位考官打量了他好几眼之后询问他公务员的形象应该是怎样的，对于这样一个直击其要害的问题，该应聘者做了&#8220;以退为进&#8221;的回答，他说：&#8220;国家公务员的形象代表着政府部门的形象，必须是庄重、严肃、符合礼仪要求的。我参加这个职位的面试，应该从此刻开始，自觉地以国家公务员的标准要求自己。但很抱歉，在公共汽车上我的西服扣子被挤掉了，严重影响了国家公务员的形象，因此扣我一个月的工资都是应该的</span>!<span style="font-family: 宋体">&#8221;该应聘者的回答，&#8220;退&#8221;在于主动认错，并提出建议&#8213;扣一个月工资；其&#8220;进&#8221;在于要处罚他就先录取他做国家公务员&#8213;多么巧妙的回答。当考官突然提出难以回答的问题时，应聘者不妨&#8220;以难制难&#8221;，以其提问方式对其反问，从而化解自己的窘迫。因为考官提这种问题并不是为了难倒应聘者或难为应聘者，正是这种问题才可以充分表现应聘者的应变能力与卓越的才识和魅力。&#8220;以退为进&#8221;本身也是有一定的技巧的，它不是单指&#8220;退&#8221;，比如坦然承认自己的错误等，&#8220;退&#8221;只是手段，而最终目的还是在于&#8220;进&#8221;&#8213;让考官接纳您。</span> </p>
<p style="line-height: 150%">&nbsp;&nbsp;&nbsp;<span style="font-family: 宋体">因此&#8220;退&#8221;有几个原则：</span> </p>
<p style="line-height: 150%">&nbsp;&nbsp;<span style="font-family: 宋体">（</span>1<span style="font-family: 宋体">）可能&#8220;进&#8221;的时候，不&#8220;退&#8221;（应聘者有时也需这样，但这不是&#8220;以退为进&#8221;要谈</span></p>
<p style="text-indent: 42pt; line-height: 150%"><span style="font-family: 宋体">的）。</span> </p>
<p style="line-height: 150%">&nbsp;&nbsp;<span style="font-family: 宋体">（</span>2<span style="font-family: 宋体">）在考官意想不到的时候，&#8220;退&#8221;往往比&#8220;进&#8221;的可能性和效果要好一些，出奇兵方</span></p>
<p style="text-indent: 42pt; line-height: 150%"><span style="font-family: 宋体">能制胜。</span> </p>
<p style="line-height: 150%">&nbsp;<span style="font-family: 宋体">（</span>3<span style="font-family: 宋体">）原则性的问题不宜采用这个技巧。如果考官问应聘者是否适合这个职位，应聘者也</span></p>
<p style="text-indent: 36.75pt; line-height: 150%"><span style="font-family: 宋体">以退为进，回答说：&#8220;现在不合适，但录取我后，我会努力使自己做好这份工作的。&#8221;</span></p>
<p style="text-indent: 36.75pt; line-height: 150%"><span style="font-family: 宋体">这样的&#8220;以退为进&#8221;，最终将只会留给考官&#8220;退&#8221;。</span> </p>
<p style="line-height: 150%">&nbsp;<strong><span style="font-family: 宋体">应对主考官的策略</span> </strong></p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>1.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">沉默型考官</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">这类主考官好像聋哑人，坐在那里只等应聘者自己介绍，您不得不没话找话，谈天说地，可最后他还是死活不开口，示意面试就此结束。这种主考官当然不是哑巴，也不是木头疙瘩，只是采用了一种日本式的不动声色面试策略。他们自始至终一言不发（当然更不要说面带笑容了），或最多在完事时吐出几个字：&#8220;您可以走了。&#8221;整个过程，主考官呆若木鸡，只是察言观色，静观应聘者怎样在这种&#8220;冰窟窿&#8221;场合中展露才能。</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　对策：</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　应聘者不要试图撬开对方的口。紧张、尴尬是难免的，因为应聘者好像不是和主考官谈话，而是与自己谈话，但应该意识到，一言不发正是主考官设下的圈套。应聘者最好没话找话，只管口若悬河般发挥，什么都可以谈一谈，直到对方示意面试结束为止。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>2.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">城府型考官</span></p>
<p style="line-height: 150%"><span style="line-height: 150%">&nbsp;&nbsp;&nbsp;</span><span style="line-height: 150%; font-family: 宋体">这类考官城府很深，说什么话都留有后路。他们在与应聘者握手时仅是碰碰而已。他们接待应聘者非常礼貌、非常客气，无可挑剔，但礼貌保持距离，好像外交场合的谈判代表一样。他们对人热情，又好像冷漠，从来不会自己主动挑起话头，决不轻易让应聘者洞察其心思。</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">跟这类主考官谈话，应聘者会觉得很累，而且很尴尬。他不会对应聘者的谈话内容做出直接的反应，最常用的方法是点头。一接触正题，他们更是从来不会显山露水，当然不肯轻易表态。他们的笑永远猜不透，问话总是话中有活，话中套话。总之，主考官的言语不会出现任何赞美成分，甚至在应聘者自我感觉良好时，也冷不防用冷峻的表情弄得您面红耳赤。</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　对策：</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">应付城府深的主考官，也要以其人之道还治其人之身，坚持&#8220;沉默是金&#8221;的原则。沉默不是不说话，而是说的话少而精，深思熟虑后再说不迟。当话题论及应聘者的能力、愿望、工资要求时一定要慎重，最好说一些具体的东西，宏观而浪漫的目标、理想最好免谈。另外，应聘者也应该多提问，如问主考官&#8220;您认为怎么样</span>?<span style="font-family: 宋体">&#8221;、&#8220;我的观点大致如此，您觉得对不对</span>?<span style="font-family: 宋体">&#8221;城府深的人自然不会轻易表示赞同或否定，但他还是极愿意应聘者把自己放在受尊敬的位置上，因为，这类主考官一般多为中年人，城府不是一朝一夕就可以形成的。</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">应付策略是，留给主考官一个好印象，这个好印象是：沉稳、坚定、精明能干、责任心强、值得信赖。城府深的主考官往往心里很快做出决定，而且不会更改，所以留下一个好印象极为重要。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>3.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">慢条斯理型考官</span></p>
<p style="text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">遇上这种主考官，最需要的就是耐心，慢条斯理的主考官在精心研读完应聘者的个人资料后，仍然不厌其烦问许多简历上已经写明的问题，包括许多细节。他们与应聘者谈话总是从鸡毛蒜皮的小事出发，然后再慢慢铺开，而且不时&#8220;旧事&#8221;重提，反复询问，应聘者必须反复解释。他们主持的面试往往没有主题，没有层次，东拉西扯，不知何时完结，有时还会说出心中的顾虑，使您忧心忡忡。</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　对策：</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　应聘者此时千万要按捺住，说话尽量保持谦虚温和的口气，耐心回答问题，内容尽量详细，多说明，少辩论。主考官说话时，应聘者则要做个耐心而专注的聆听者，少插话多听讲，有问题必须在对方说完后再提出来。面试过程千万不要心不在焉或显出倦意。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>4.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">喋喋不休型考官</span></p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　遇上这类主考官，应聘者一开始感觉轻松，而后却感到不安，最后竟不知如何应付了：对方太过于健谈，克制不住自己的嘴巴，一张嘴就说个没完没了；一些喋喋不休的主考官是口若悬河的理论家，他可以大谈能胜任公司工作的人需要如何高的水平；可以大谈特谈这家公司的应聘者是如何多如牛毛，甚至列出具体数字；可以大谈工作的职责、前途和未来发展大计。喋喋不休的主考官当然比一言不发者&#8220;可爱&#8221;得多。不过，他那夸张而形象的描述实在不着重点，他无心倾听应聘者的发言，只求自己淋漓尽致地表现自己。他们对应聘者是否注意听讲极不放心，往往同一话题重复两三遍。他们也许对应聘者的一切情况已经了如指掌，但又担心遗漏了什么，不断发问后不断评价，而语气免不了有些怀疑，对细枝末节再三重复询问。</span> </p>
<p style="text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">对策：</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">应对此类考官的策略是，让主考官无限制地表达，让他处于自我兴奋状态。这样，应聘者多半会被录用。在聆听对方讲话时，一定要显示出浓厚的兴趣，不断利用这种&#8220;很感兴趣&#8221;的表情促使其把话说下去。不要担心时间拖得太长，因为您焦虑不安的神情，一定使他大为扫兴，面试结果也不会好到哪里去。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>5.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">可亲型考官</span></p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">这类主考官一见应聘者，便马上主动让座、握手，然后是端茶倒水，仿佛招待贵宾，令您受宠若惊，好像面试的对象是他而不是应聘者。紧接着又添几句赞美之词，如：&#8220;您小小年纪就大学毕业，不简单哪</span>!<span style="font-family: 宋体">&#8221;、&#8220;您还是名牌大学毕业的，我们单位可是小庙，委屈您了。&#8221;一切看来都相当顺利，应聘者自我感觉良好，心情轻松愉快，自信心很容易&#8220;爆炸&#8221;。其实，一切都是假象。这类主考官表面看来谦虚亲切，容易通融，可内心却清醒得很。他们有严谨的思维，有超出一般人的洞察能力，有一双鹰一样的眼睛。即使应聘者尽力掩饰内心的不安，并伪装平静，仍然会被识破。但是，他永远让应聘者感到可亲可敬，他们用赞同的语气与之交谈，如&#8220;您说得不错&#8221;，然后又巧妙地走到其反面，而且让应聘者感到他确实言之有理，如&#8220;不过这个问题，我认为&#8230;&#8230;您说对吗</span>?<span style="font-family: 宋体">&#8221;热情有加的主考官在心理上占有绝对优势，因为他比应聘者更会&#8220;做戏&#8221;，从而紧紧掌握着应聘者。他们乐意让应聘者充分表达，并加以诱导；不管是否看中应聘者，总是贬低公司或职位，以使其感到安慰，他们有办法使应聘者信任他。</span> </p>
<p style="text-indent: 26.25pt; line-height: 150%"><span style="font-family: 宋体">对策：</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">应聘者务必保持高度警惕，第一不要&#8220;做戏&#8221;，诚心诚意、老老实实地谈自己的想法。第二不要一味迎合主考官，不要妄自尊大。主考官表面谦虚可亲，内心却有一种优越感，妄自尊大最令他反感。谦虚的主考官既然如此谦虚，您最好比他更谦虚，以其人之道还治其人之身。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>6.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">心不在焉型考官</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">主考官对面试似乎不那么关心，一切按部就班，但一切又漫不经心。这种主考官从事面试工作的时间太长了，多数是人事部职员，以至于有些麻木。对于应聘者的到来，他当然毫无新鲜之感，更不要说有浓厚的兴趣了。一切都和以前一样平淡，甚至平淡得让人感到厌倦。这种主考官问话时总是心不在焉，说话总是偏离主题，常常言不由衷。他可以一边听您回答问题，一边在白纸上乱画，要不就是眼睛看着窗外发愣，或者浑身不自在，手脚不停地做这做那。</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　对策：</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">应聘者最好刺激他们的新鲜感，使他对自己产生格外深刻的印象。因为他们天天面对循规蹈矩、正襟危坐的应聘者，早就看腻了。应聘者不妨在面试时显得大方些，与他们进行闲聊式的对谈。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>7.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">傲慢型考官</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">这类主考官故意给人一种唯我独尊的样子，目中无人。他们说话虽然也客气，但装腔作势，眼神傲慢，且脸上无一丝笑意，经常用鼻音或&#8220;哼哈&#8221;之声应付人，甚至不理不睬。这种主考官认为自己大权在握，所以摆出神态严肃的面孔。应聘者十有八九认为这种人最难应付，碰上这种人可算是倒了大霉，几乎从一开始就丧失了自信心。</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">傲慢主考官分两类：一类是装出来的，目的是为了考验应聘者的心理承受能力。遇上这种主考官，应聘者一定要打赢心理战，不要产生自尊心受到伤害的感觉。另一类是主考官利用面试机会满足心理上的需求。他们本人实际上并非表面上那么威风，平时不受领导重用，或者是怀才不遇，心有不甘，故此对招聘工作产生抗拒感，于是通过面试这种公开露面的机会，发泄心中的不满。</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　对策：</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　应聘者要彬彬有礼，来些必要的寒暄，说话简洁有力，尽量不要得罪对方，将必要情况简单交待即可，而无须理会对方的反应。如果对方说些刺耳难听的话，要不愠不火，尽力保持平静。</span> </p>
<p style="margin-left: 42pt; text-indent: -21pt; line-height: 150%"><span>8.<span style="font: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 宋体">冷酷型考官</span> </p>
<p style="line-height: 150%">&nbsp;<span>&nbsp;&nbsp;</span><span style="font-family: 宋体">走进面试室，应聘者首先会感到不寒而栗，但见主考官呆坐在那里，对应聘者的出现并无任何反应，好像其不存在似的。应聘者浑身不自在，不知该如何打招呼，就算很客气地和他寒暄，他也不会表现出半点热情，并且不会注意应聘者的一举一动，通常第一句话就是：&#8220;嗯，请坐。&#8221;以后再无下文，直到应聘者开口介绍了自己的情况后，他才会提问题。碰到这类考官，再怎样高明的交际能手也会产生畏惧感，一般的新手更是不知所措。这类考官性格内向沉稳，比较固执地坚持原则，考查应聘者的方式更是一板一眼，绝不作遐想。他对陌生人的评估全凭头脑中那些概念性的程序进行，缺乏灵活性，面试过程严格按照原定程序，所提问题多来自书本。</span> </p>
<p style="line-height: 150%"><span style="font-family: 宋体">　　对策：</span> </p>
<p style="text-indent: 21pt; line-height: 150%"><span style="font-family: 宋体">而对此类主考官应聘者不妨多注意他的一举一动，从其言谈中找出他真正关心的问题，随便和他聊聊，只要能够使他主动开口，事情就好办多了。冷冰冰的人一遇到自己感兴趣或关心的话题，多数会神情为之一变，话也多起来。应付冷面主考官的最佳方法是耐心听讲，然后刺激他说话，做出认真倾听的样子，最好使对方认为您是知音。</span></p></span> <img src="http://www.cnblogs.com/tester2test/aggbug/1438409.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/tester2test/archive/2009/04/17/1438409.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/tester2test/archive/2009/04/17/1438409.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item></channel></rss>