惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
V
Vulnerabilities – Threatpost
GbyAI
GbyAI
P
Proofpoint News Feed
L
LINUX DO - 热门话题
P
Palo Alto Networks Blog
A
About on SuperTechFans
T
Tenable Blog
M
MIT News - Artificial intelligence
IT之家
IT之家
I
Intezer
D
DataBreaches.Net
爱范儿
爱范儿
T
Threatpost
C
CERT Recently Published Vulnerability Notes
云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
K
Kaspersky official blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Y
Y Combinator Blog
Cyberwarzone
Cyberwarzone
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
Spread Privacy
Spread Privacy
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
AWS News Blog
AWS News Blog
博客园 - 聂微东
C
Check Point Blog
S
Securelist
有赞技术团队
有赞技术团队
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
D
Docker
G
GRAHAM CLULEY
T
The Exploit Database - CXSecurity.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
L
Lohrmann on Cybersecurity
G
Google Developers Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog

博客园 - James

Send-only Mail Server with Exim on Ubuntu 10.04 LTS Change hostname on Ubuntu without reboot 51IT最全的自动化测试工具QTP资料 找出用户表中有重复密码的用户 如何改变Linux Kennel中的shmmax参数 如何在C语言中使用constructor和destructor,gcc环境 如何在Ubuntu上update gem for ruby 1.9.1的版本 google疯了 - James - 博客园 碰巧遇到一些智力面试题,解答一下 避免在电脑上浪费时间的好办法 如何在Postgresql中产生自己的集合function 用RJS写的检测用户名和email是否存在 ajax check username available in rails MSN Messager密码 - James - 博客园 重新开始Blog生活 准备用C#写一个Blog的客户端,大家看看功能缺哪些,哪些不需要? PInvoke 白话文 Apache 2 + PHP Windows安装指南(官方版本) .Text Blog .95中一个Unicode的bug - James
QTP如何启动应用程序(转) - James - 博客园
James · 2010-06-08 · via 博客园 - James

QTP提供了很多自动启动应用程序的办法,方法如下:

        1)SystemUtil.Run 允许启动新的进程

        格式:SystemUtil.Run file, [params], [dir], [op], [mode]

        下面代码利用SystemUtil对象如何启动进程。

        '启动IE

          SystemUtil.Run "iexplore.exe"

         SystemUtil.Run "iexplore.exe", "http://www.51testing.com/?72" '打开pcl blog

         SystemUtil.Run "iexplore.exe", "http://www.knowledgeinbox.com", , , 3

打开其他软件:

SystemUtil.Run "E:\software\xshell30.exe"   

        2)InvokeApplication 启动应用程序

        格式:InvokeApplication(Command [,StartIn])

        例子:

        '启动ie

           InvokeApplication "IEXPLORE.EXE"

        '启动计算器

           InvokeApplication "calc.exe"

        3) COM - Wsh

           利用Wsh对象进行启动

        例子:

            Dim oShell

           set ōShell= CreateObject ("Wscrīpt.shell")

           oShell.Run "IEXPLORE.EXE"

           Set ōShell = Nothing

oShell.Run "E:\software\xshell30.exe"

        4)Qtp自动启动应用程序

          Qtp打开 Automation-〉Record and Run Settings 下进行设置

        5)录制启动过程

也可以手动将Dialog:运行的所有对象添加到对象库中,并首先启动dialog:运行

          Dialog("运行").WinEdit("打开(O):").Set "calc"

         Dialog("运行").WinButton("确定").Click