什么是QTP中的描述性编程(程序描述) [英] What is descriptive programming (Programmatic Description) in QTP

查看:123
本文介绍了什么是QTP中的描述性编程(程序描述)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是QTP中的描述性编程?

What is descriptive programming in QTP?

推荐答案

在不使用对象存储库的情况下创建测试称为描述性编程,因为您将对象描述为脚本的一部分.

Creating a test without using the object repository is known as descriptive programming since you describe the objects as part of the script.

例如

Browser("title:=Google").Page("title:=Google").Link("text:=Advanced Search").Click

请注意测试对象名称中的:=,这不是笑脸,这意味着属性title的值为Google(作为正则表达式).

Note the := in the test objects' names, this is not a smiley it means that the property title has value Google (as a regular expression).

您还可以通过Description.Create使用Description对象.

You can also use the Description object via Description.Create.

您可以在此处看到更多详细信息.

You can see more details here.

这篇关于什么是QTP中的描述性编程(程序描述)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆