1. 作业(第 7 章)
语句覆盖的测试用例
判定 输入 预期的输出
序号
1 2 3 A B C X Y Z
1 F F F 1 1 1 1 2 3
2 T T T 20 40 60 10 20 30
2. 作业(第 7 章) 路径覆盖的测试用例
预期的输
序 判定 输入
出
号
1 2 3 A B C X Y Z
1 F F F 1 1 1 1 2 3
2 F F T 1 1 60 1 2 30
3 F T F 1 40 1 1 20 3
4 F T T 1 40 60 1 20 30
5 T F F 20 1 1 10 2 3
6 T F T 20 1 60 10 2 30
7 T T F 20 40 1 10 20 3
8 T T T 20 40 60 10 20 30
61. Test Tools
CASE tool index - Quite a comprehensive
list of CASE Tools
Old site:
http://www.cs.queensu.ca/Software-Engineering/
400 categories; 10% for test
List of Test related tools
61
62. LOGISCOPE
LOGISCOPE: Software Quality, Testing,
Maintenance and Reverse-Engineering
http://
www.telelogic.com/products/logiscope/overview
VERILOG
IBM Rational Performance Tester 和 HP
Mercury LoadRunner 的比较
http://www.ibm.com/developerworks/cn/rational/
62
63. Mercury Interactive
www. Mercury.com
With Mercury Quality Center, you can:
Standardize and manage the entire quality process.
Make quality decisions based on business risks and
priorities.
Reduce application deployment risk.
Improve application quality and reliability.
Manage application change impact through manual and
automated functional testing.
Track quality assets and progress across releases and test
cycles.
Warehouse critical application quality project data.
Test service-oriented architecture services for both
functionality and performance.
Ensure support for all environments including J2EE, .NET,
Oracle and SAP. 63
64. IBM Rational quality
management
Requirements and Test Requirements, test planning, test results, test analysis,
Management
and reports and defects
Functional Testing Automated and manual functional testing and regression
testing of a wide array of applications including: Java,
.Net, SAP, Siebel and web services
Performance Testing Load testing, performance testing and scalability testing
for a wide array of applications including: Web, Java, .Net,
Citrix, IBM mainframe, SAP, Siebel and web services
Web Application Security
Automated application security scanning, testing and
reporting
Web Compliance Content scanning for privacy, quality and accessibility
compliance testing and reporting
Code Quality and Embedded Systems
Run-time analysis, memory leak detection, performance
profiling, and component testing
64
Editor's Notes
面向对象语言的特点 : 动态联编 , 交互式开发环境,类的概念和继承机制,数据抽象 ( 封装 ).
测试面向对象软件时,不能再孤立地测试单个操作,而应该把操作作为类的一部分来测试。例如,假设有一个类层次,操作 X 在超类中定义并被一组子类继承,每个子类都使用操作 X ,但是, X 调用子类中定义的操作并处理子类的私有属性。由于在不同的子类中使用操作 X 的环境有微妙的差别,因此有必要在每个子类的语境中测试操作 X 。这就说明,当测试面向对象软件时,传统的单元测试方法是不适用的,不能再在“真空”中(即孤立地)测试单个操作。
基于使用的测试( use based testing): 首先测试独立类 ( 几乎不使用其它类的类 ) ,再测试使用独立类的下一个层次的类(称为依赖类)。据此依赖关系持续下去,直至把整个软件系统构造完为止。
图中箭头方向代表消息的传递方向,箭头线上的标注给出了作为由消息所蕴含的协作的结果而调用的操作。
这些操作符向服务器类实例发送消息。
图 12.4 给出了前面讨论过的 account 类的状态图,从图可见,初始转换经过了 empty acct 和 setup acct 这两个状态,而类实例的大多数行为发生在 working acct 状态中,最终的 withdraw 和 close 使得 account 类分别向 nonworking acct 状态和 dead acct 状态转换。
,也就是说,操作序列应该使得 account 类实例遍历所有允许的状态转换
See and show file CAseTools.xls
VERILOG, founded in 1984, subsidiary of Compagnie des Signaux (CS), develops and distributes software and system engineering tools. VERILOG is represented worldwide by its distributors and seven offices (see How to contact VERILOG) . Now subsidiary of Swedish Telelogic AB: White box automatical logical coverage with graphical display. 标准 UNIX 调试工具 DBX 已经做了扩充,可用于调试 C++ 程序 ; text mode/vt100 Visual studio, Delphi etc. for debugging.
2 leaders of CASE Rational and mercury Web linked to HP; 2006 HP buys Mercury for $4.5Billion, core tech is TEST
IBM® Rational® Quality Management solutions? Make confident go/no go decisions with: Single integrated software quality management platform for improved reliability, predictability and team efficiency across the software lifecycle Superior functional testing with test automation and data sharing for streamlined, efficient test execution Integrated traceability of business, functional requirements, use cases, for accurate test case planning More thorough performance testing both pre and post deployment for reduced system downtime Integrated web application security and compliance testing At Rational we understand that it takes a combination of automated testing and manual testing coupled with good test management and best practices to be successful. Citrix: application delivery leader (make applications sure et accessible, load balance eg.)