学习《QTP自动化测试进阶》第11章 – QTP描述性编程
使用QTP的描述性编程编写脚本的方式,与录制脚本以及在关键字视图编写脚本的方式有很大的不同。描述性编程能提供更加灵活的测试脚本编写方法,并且能摆脱测试对象库的限制,编写出更为复杂、适应力更强的测试脚本。
两种描述性编程的开发方式:
直接描述
使用Description对象
描述性编程的“后续强迫性”:如果在测试对象层次结构的某一点开始使用了描述性编程,则该测试对象层次结构下的后续测试对象都要使用描述性编程的方式来描述对象。
其他学习资料:
1、《两种DP描述方法的比较》:
http://blog.youkuaiyun.com/Testing_is_believing/archive/2010/01/01/5116959.aspx
2、《什么时候使用DP》:
http://blog.youkuaiyun.com/Testing_is_believing/archive/2010/01/01/5116856.aspx
3、《QTP中使用OR还是DP对于IE内存泄漏的影响》:
http://blog.youkuaiyun.com/Testing_is_believing/archive/2009/11/29/4900770.aspx
4、《QTP: Creating Object Descriptions “On The Fly”》:
http://relevantcodes.com/qtp-creating-object-descriptions-on-the-fly/
5、《QTP: Understanding the Description Object (Description.Create)》介绍了Description对象的使用方法:
http://relevantcodes.com/qtp-all-about-the-description-object-description-create/
6、《Descriptive Programming (DP) – 4 (Creating a Test Script)》:
http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/
7、《Descriptive Programming (DP) Concepts – 3 (Ordinal Identifiers)》介绍了使用描述性编程时顺序标识符的用法:
http://relevantcodes.com/descriptive-programming-dp-concepts-3-ordinal-identifiers-demo/
8、《Descriptive Programming (DP) vs Object Repository (OR)》介绍了使用对象库和使用描述性编程的区别:
http://relevantcodes.com/dp-vs-or/
9、《Descriptive Programming (DP) Concepts – 2 {Regular Expressions}》介绍了描述性编程中正则表达式的使用:
http://relevantcodes.com/descriptive-programming-dp-concepts-2-regular-expressions/
10、《Descriptive Programming (DP) Concepts – 1》介绍了描述性编程的基本概念和脚本编写方法:
http://relevantcodes.com/descriptive-programming-concepts-1/
转载于:https://blog.51cto.com/5587423/959924