如何使ASP.NET控件QTP安全? [英] How to make a ASP.NET control QTP safe ?

查看:64
本文介绍了如何使ASP.NET控件QTP安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

有什么方法可以使ASP.NET控件快速测试专家(QTP)安全吗?通过QTP安全,我的意思是QTP不能在UI上检测到它们.我试图将访问修饰符更改为私有,但这不起作用.

根本不可能吗?

Hello,

Is there any way to make ASP.NET control Quick Test Professional (QTP) safe ? By QTP safe I mean QTP should not be able detect them on UI. I have tried to change access modifiers to private but that does not work.

Is it not possible at all ?

推荐答案

没有使QTP安全的可靠机制

但是您可以尝试使QTP安全

对象属性不应是标准的.例如:id ="txtName"
对象属性应该是动态的.例如:id ="XSTVBTFSHSVXC"

注意:(如果要放置部分固定字符串和部分动态字符串,在这种情况下,QTP将使用正则表达式识别对象)

问候,
蒙娜·萨弗拉兹(Munna Sarfraz)
There is no solid mechanism to make QTP safe

But you can try to make QTP-safe

Object property should not be standard. ex: id="txtName"
Object property should be dynamic. ex: id="XSTVBTFSHSVXC"

Note: (if you will put some part fixed string and some part dynamic string, In that situation QTP will recognize the object by using regular expression)

Regards,
Munna Sarfraz


这篇关于如何使ASP.NET控件QTP安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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