标题: 如何使用自动化对象模型,利用外用脚本添加action? [打印本页] 作者: scarly_hawk8586 时间: 2010-1-20 09:53 标题: 如何使用自动化对象模型,利用外用脚本添加action? Hi,大家好,我是初来乍道的菜鸟,现在有一问题想知道否可以解决,该问题为:
如何使用自动化对象模型(Automation Object Model),利用外用脚本(如C#程序)向一个QTP Test中添加已有的action?作者: zzxxbb112 时间: 2010-1-20 15:50
Description
Uses the specified string as the new script for the action.
Important Information
If the script contains syntax or other errors, the SetScript step will fail.
Syntax
object.SetScript ScriptContent
Syntax Details
Argument Description
object An expression evaluating to an object of type Action.
ScriptContent Required. A String value. A single string containing the VBScript content of the action script. For line breaks, use vbCrLf or Chr(13)+Chr(11).