致力于测试团队建设和自动化测试开发,欢迎有兴趣者一起研究讨论

自动化脚本链接QC错误The RPC server is unavailable的解决方案

上一篇 / 下一篇  2008-08-28 17:46:18 / 个人分类:QC

51Testing软件测试网.H ryP?:jy

Problem Descrīption: Error: "RPC server is unavailable" when doing remote execution of automated scrīpts after installing Windows XP SP2
d2Ts-Sm051Testing软件测试网'Q ~ D} s] Z#[;\
The user receives the following error message when executing a automated scrīpt remotely after installing Windows XP SP2:
1IpzJ0f8NW$s051Testing软件测试网:K1fyaWqL
"The RPC server is unavailable."
0cv&W)\S6s.b v0
W Q-n6xM9d|0Executing the scrīpt locally works correctly.
Xz`%Om8G!eW051Testing软件测试网 f"qHPh8m?g
Diagnosis: Security changes in Windows XP SP2 have blocked the remote agent of the testing tool from being launched. This caused the failure of the automated scrīpt execution.
Rb6ay&v-g0
G S4v;rG0Note: Windows XP SP2 is supported with TestDirector 8.0 SP2 and TestDirector for Quality Center 8.2 only51Testing软件测试网E:V3~~-K6R`

51Testing软件测试网[u8x:P%D} @

Solution: Change the DCOM permissions on the Windows XP SP2 client to allow for remote execution51Testing软件测试网%f#D$TBh x"@K0}

:O8DN.l:p(vF@l7}0Notes:51Testing软件测试网s(InD%G
51Testing软件测试网CS7mFpQ5wo
The security changes suggested below should be applied by your System Administrator. Please contact Microsoft Support if you have questions regarding changes in DCOM securities caused by installing Windows XP SP2.
s.L.l2b q5w!U;^s051Testing软件测试网"PB{6~W.e L
If you disable the firewall installed with Windows XP SP2, you do not need to apply the steps in Part II below.
$T(LL&m9^SFm051Testing软件测试网#X/s#rR5Gn
The following is the manual process for openning the firewall ports and modifying the DCOM properties for WR, QTP, BPT, System Test, and VAPI-XP.
+G&~XNV051Testing软件测试网,{,]_!Ml8P1h3M$r
Part I:
,dcxEX |"rQ2A`0Add both machines into the same domain. For the domain users logged into both machines, add these domain users to the Local Administrators group on the QTP/WR machine. This is required for Windows to authenticate the remote user executing the tests against the DCOM objects.
F` S,i]9p i4Q;u0
9w8f?O'^)k1s0Part II:
!G(qg rIx0On the Testing Tool client machine configure Windows Firewall to allow Port 135 for DCOM:
] b#cN-h(_$YG%]3o01. Select Start -> Control Panel -> Windows Firewall.51Testing软件测试网H2F z x9@ i-^w/Qc
2. Navigate to the Exceptions tab.
3a#Ct*] b(H`-Iiu03. Configure the Remote Agent to be allowed under "Programs and Services." Configuration should be done for each testing tools as given below:51Testing软件测试网5bM.rS?~0W8R.^

8akEEf5MC0
}Ml Eo vO0WinRunner Remote Agent (path::\Program Files\Common Files\Mercury Interactive\WR_Remoter\wrrmtsrv.exe)51Testing软件测试网jb CD)I9L6{~;N
QuickTest Professional Remote Agent (path::\Program Files\Mercury Interactive\QuickTest Professional\bin\AQTRmtAgent.exe)
6iO&W-O0P&dI0
.o.f%xZ_nu,\0Execution Agent for Business Process Testing (path::\Program Files\Common Files\Mercury Interactive\TD2000_80\bp_exec_agent.exe)
D z/NY-r/G%V/Z&N0
l(q;p2m/~04. Click onand add the DCOM TCP port 135 to the Exceptions list.
4Q u!y9j |0Note: The WR remote agent is a DCOM object and requires port 135 to work. The list of "Port Assignments for Commonly-Used Services" is provided in the URL below:51Testing软件测试网1cGZ[)UG

B[[_/N0http://www.microsoft.com/resources/documentation/Windows/2000/server/reskit/en-us/Default.asp?url=/resources/documentation/windows/2000/server/reskit/en-us/cnet/cnfc_por_SIMW.asp51Testing软件测试网5m wbLN F%rv
51Testing软件测试网zY1@^7f;}lS2t.yv
Part III:51Testing软件测试网fD Vx0ItGs
Modify DCOM Security Properties:51Testing软件测试网 `)pADalD9Dk5_
1. Select Start -> Run and enter dcomcnfg.
dP*FIH!R0[02. Navigate to Console Root -> Component Services -> Computers -> My Computer.
?m[.X/]OJ ]/p0Note: If Windows Security Alert dialog window appears, click onor.
$qqeAw{'w2t1rm Q03. Right-click on My Computers and select "Properties."
;Ut\.Rj_W3E04. Navigate to the Default Properties tab.
R$Y~EQ5^$i#C JX*yD05. Make sure the Default Impersonation Level is "Identify."51Testing软件测试网)?5zvs]eX&v
6. Click.
JY&BK)F07. Navigate to the Defualt COM Security tab.
b3HC/Pi1X08. Under Access Permissions, click on. The Access Permission dialog window appears.
8t5n*I+a!B4X09. Click on. The Select Users or Groups dialog windows appear.51Testing软件测试网1F,f8XlF#w;uD
10. Click on.
{'d6T1p/^/T)IDqV011. Click on.51Testing软件测试网pN$W,\!c4A!o
12. Add the following groups and users from the local machine (below is an example screenshot):51Testing软件测试网a)^ l4[U

/Z\Uvr|s#c0
7?%T$f)Vl E"[t)g0Administrator
tVTA0z\"y#g0Administrators51Testing软件测试网H2\ P T;X;\:X,T.N
Authenticated User
3by@.l1f,qz3Ke0Anonymous Logon
S8?8mk$|%o0Everyone51Testing软件测试网W{)Tf'K Rh9T
Interactive51Testing软件测试网-BLZ$K6gW:agh8G
Network51Testing软件测试网!pO U{NP vVr B/@7[
System51Testing软件测试网\0m#X ZI b0Z S

Voyy3b:F}013. Click.
me4G0J'V7Zkq0imW014. Add the following groups and users from the domain:51Testing软件测试网 g-n1alb{n\+F ym0u
51Testing软件测试网#q anV}-g/[
51Testing软件测试网vl3VK(w a$kL

uP;@*Et }0
uNN5OQ n~.z)a&b+[015. Click.51Testing软件测试网S5HdV1@-o$s9[
16. Give "Local Access" and "Remote Access" permissions to the groups and users.
a:K:t2e1YPhnk017. Click.51Testing软件测试网OLfJyZU6y
18. Under Access Permissions, repeat steps 9-17 for.51Testing软件测试网"OJ F:fa
19. Under Launch and Activation Permissions, click on. The Launch Permission dialog window appears.
0ju4G3pMb^.BT};u020. Repeat steps 9-15.
9Y%Oygu021. Enable "Local Launch," "Remote Launch," "Local Activation," and "Remote Activation" permissions to the groups and users.
H$i0H/o$ux v eXj@051Testing软件测试网D"r$B&_$]6s)P?t
22. Click.
E)|3ku/B9qG]2x023. Repeat steps 20-22 for.51Testing软件测试网;Qi#`,l%}9Z6T
Part IV: (for QTP only)51Testing软件测试网*]&c2k.JW'qr#[
1. While still in the Component Services window, navigate to Console Root -> Component Services -> Computers -> My Computer -> DCOM Config.51Testing软件测试网/]_%gg-{Ea;^F
51Testing软件测试网b k AF+a+h3i
2. Look for the following.
"n:c U%TUC7d051Testing软件测试网+bv.HQP0|

[o iW8d4B5L E#@;q4[[0AQTRmtAgent51Testing软件测试网B{JDl7N2i:G
QuickTest Professional Automation
7O WP ]0e IX Wb;e0TlpRmtServer
,[C%u1F\2F_051Testing软件测试网 Hp}oH3V
3. For each of these DCOM applications, right click and select.
]&IW? R:EaI"TQ04. Under the Identity tab, select. This will allow the DCOM application to authenticate the process against the logged in Windows user and run the process in that security context.51Testing软件测试网*vjd2wbh
51Testing软件测试网*n,~ V/V.l7c}RS8J
5. Next, go to the Security tab.
^ ?[!E CG!X Y+~O06. For both theand, select. This will use the Default security settings as we did in Part III.51Testing软件测试网R3gT qi^4\bG
51Testing软件测试网$B [.R [#Y9H,go Kr-M
7. Click Apply, then OK to commit the changes.
ZC$~-}bKh08. Now, you are ready to run a remote execution test with QTP.51Testing软件测试网Rm|0})s2m7G
Example Screenshot of the Security Configuration (see word attachment)51Testing软件测试网T&h3J g3B,izrhZ
Part V: (for WR only)51Testing软件测试网a Q} ZZa2N(|v
1. While still in the Component Services window, navigate to Console Root -> Component Services -> Computers -> My Computer -> DCOM Config.51Testing软件测试网Kxe9^| X

"W'R Y5G(Z+Z[{ b02. Look for the following:
1L.D,R6d}1QF.U0
/MZ!|!Cg$EW{A6w0{0B171F02-F204-11D0-9398-0080C837F11F}51Testing软件测试网Ep)C4iE5A.V%i
Wrun Document
3m^%Az6P|051Testing软件测试网({c6wOY)LN
3. For each of these DCOM applications, right click and select.51Testing软件测试网es:k-WDu_S_7B
4. Under the Identity tab, select. This will allow the DCOM application to authenticate the process against the logged in Windows user and run the process in that security context.
]([1H*s b)i051Testing软件测试网vl.n*ZX!S @
5. Next, go to the Security tab.
)Vt+m+rEJC#M{06. For both theand, select. This will use the Default security settings as we did in Part III.51Testing软件测试网`:G A3Qb1Y

2evi5s}+O*A/io07. Click Apply, then OK to commit the changes.
E:d`;W3[F08. Now, you are ready to run a remote execution test with WR.51Testing软件测试网 d-n%x-w1@&z"w
Part VI: (For System Test, BPT, and VAPI-XP)
?!ix/vzUXo0Repeat the procedure outlined in Part V above but replace the WR Application ID in step 2 with the appropriate one for each of the remote agent listed below:
)Jg6? b+Z/ZkW4O051Testing软件测试网(t9t3Qnb9~]
51Testing软件测试网xb@WyM.|
Vapi-XP object51Testing软件测试网} | [e2UrZ
{CD70EDCE-7777-11D2-9509-0080C82DD192}51Testing软件测试网\(V JzDf
51Testing软件测试网%w4['K?m.Y"BJw@O
Business Process Testing object51Testing软件测试网"X/n0w8ae/Mf
{6A03829E-EC39-4802-A631-3841484EFBE3}51Testing软件测试网'o(Y7bo2B'uhX

CF-h&V Hma|0System Test Remote Agent
O] RX/[}b-m0{1B78CAE4-A6A8-11D5-9D7A-000102E1A2A2}
b5GOceFKdpG"C O051Testing软件测试网oO[#fk%k6q
Notes:
:b'n(q8A OY0
6dvg$[@Q0
#W mUs8z8g3l0If you have not configured the Remote Agent to be allowed under "Programs and Services," a Windows Security Alert message will appear while running a test remotely. Clickto resolve this problem. The next time you execute an automated scrīpt, the warning will not appear.
9?0`;p?/Y!Ms)hv Q051Testing软件测试网8aL'p$[*dv+`p3R6m
If after performing all the described steps and you still receive "The RPC server is unavailable" message, create some shared folder anywhere on the Testing Tool machine.
r#Nnx!@J0
:Z8|b|-I0Below is a list of supported Mercury's Testing Tools on Windows XP SP2:
Jm)o8{G~0
'IT cW/P0TestDirector Version Testing Tool Testing tool versions
i{0@M)X yT n }0TestDirector for Quality Center 8.2 QuickTest Professional 8.251Testing软件测试网Mi QBJN s
WinRunner 8.0, 8.251Testing软件测试网)Xg%z A._"a-S
Business Process Testing 8.251Testing软件测试网s'}/UK Q
TestDirector 8.0 SP2 QuickTest Professional 8.251Testing软件测试网K|8R?&Z'r;C.O0UD)aQ!G+F
WinRunner 8.0, 8.251Testing软件测试网O(UK Ga.n f"h


TAG: QC

 

评分:0

我来说两句

日历

« 2024-04-26  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 91094
  • 日志数: 79
  • 图片数: 1
  • 建立时间: 2008-05-18
  • 更新时间: 2009-06-04

RSS订阅

Open Toolbar