QTP的The remote server machine does not exist or is unavailable错误

网站编辑
网站编辑
编辑
1211
文章
0
粉丝
技术流1 8,325阅读模式

    这个错误是如此的奇怪,以至于花了整个下午的时间我才将它调通。

    原因是同样的代码,我在A机器上使用正常无误,但是在B机器上就报这个错“The remote server machine does not exist or is unavailable”文章源自原紫番博客-https://www.yuanzifan.com/1597.html

代码如下:文章源自原紫番博客-https://www.yuanzifan.com/1597.html

   Set qtApp = CreateObject("QuickTest.Application")文章源自原紫番博客-https://www.yuanzifan.com/1597.html

   这段平平无奇的代码居然引来此种困扰。经过审慎研究和痛苦纠结,我得出的结论是:AB机器的不同是A机器尚未与QC同步执行Case,而B机器一直在链接QC执行Case。文章源自原紫番博客-https://www.yuanzifan.com/1597.html

     于是,在Process中,我发现了有一点点的不同:B机器上有一个process,名叫 QTAutomation.exe,而A机器上没有这个进程。文章源自原紫番博客-https://www.yuanzifan.com/1597.html

      我冷冷地出手,半秒后,B机器上的QTAutomation.exe进程被杀。之后,这段代码就可以正常使用了。文章源自原紫番博客-https://www.yuanzifan.com/1597.html 文章源自原紫番博客-https://www.yuanzifan.com/1597.html

站长微信
扫码添加(注明来意)
weinxin
Yuanzifan99
微信号已复制
原梓番博客公众号
博客内容精选
weinxin
原梓番博客
公众号已复制
 
    • 空气净化器 2

      QTAutomation.exe 这个进程是干什么的

    发表评论

    匿名网友
    确定

    拖动滑块以完成验证