ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Generating Automation Scripts

Generating Automation Scripts

原创 Linux操作系统 作者:ipqiaojj 时间:2009-03-17 15:10:24 0 删除 编辑

Generating Automation Scripts

The General tab of the Options dialog box and the Object Identification dialog box each contain a Generate Script button. Clicking this button generates an automation script. file (.vbs) containing the current settings from the corresponding dialog box.

You can run the generated script. as is to open QuickTest with the exact configuration of the QuickTest application that generated the script, or you can copy and paste selected lines from the generated files into your own automation script.

For example, the generated script. for the Options dialog box may look something like this:

Dim App 'As Application

Set App = CreateObject("QuickTest.Application")

App.Launch

App.Visible = True

App.Options.DisableVORecognition = False

App.Options.AutoGenerateWith = False

App.Options.WithGenerationLevel = 2

App.Options.TimeToActivateWinAfterPoint = 500

...

...

App.Options.WindowsApps.NonUniqueListItemRecordMode = "ByName"

App.Options.WindowsApps.RecordOwnerDrawnButtonAs = "PushButtons"

App.Folders.RemoveAll 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16792402/viewspace-571187/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-02-22

  • 博文量
    140
  • 访问量
    73620