标签:blog http io os ar 使用 sp on 2014
(1)读取Built-in
‘file -> settings -> Enrionment -> variable type 为 Built-in
os = Environment.Value("OS")
os_version = Environment.Value("OSVersion")
Msgbox os & os_version
(2)设置和读取User-fined
‘file -> settings -> Enrionment -> variable type 为 User-fined
‘可设置环境变量,自定义登录账户和密码
name = Angent_name , value = mercury
name = Password , value = mercury
Msgbox弹出的是一个可以单击确定关闭的按钮;
print显示的结果在output中显示
UFT自学:Environment对象的使用;Msgbox和Print的区别
标签:blog http io os ar 使用 sp on 2014
原文地址:http://www.cnblogs.com/jiangkeji/p/4059645.html