51Testing软件测试网.H ryP?:jyProblem 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软件测试网:K1f yaWqL
"The RPC server is unavailable."
0cv&W)\S6s.b v0
W Q-n6xM9d|0Executing the scrīpt locally works correctly.
X z`%Om8G!e W051Testing软件测试网 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$TBhx"@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(qgrIx0On 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.^
8a kE Ef5MC0
}Ml
EovO0WinRunner 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
wbLNF%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~E Q5^$i#CJX*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
tVT A0z\"y#g0Administrators51Testing软件测试网H2\ PT;X;\:X,T.N
Authenticated User
3by@.l1f,qz3Ke0Anonymous Logon
S8?8mk$|%o0Everyone51Testing软件测试网W{)Tf'KRh9T
Interactive51Testing软件测试网-BLZ$K6gW:agh8G
Network51Testing软件测试网!pO U{NP vVr B/@7[
System51Testing软件测试网\0m#XZI
b0Z S
Voyy3b:F}013. Click.
me4G0J'V7Zkq0imW014. Add the following groups and users from the domain:51Testing软件测试网
g-n1alb{n\+Fym0u
51Testing软件测试网#q an V}-g/[
51Testing软件测试网vl3VK(wa$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 kA F+a+h3i
2. Look for the following.
"n:c U%TUC7d051Testing软件测试网+bv.HQP0|
[o
iW8d4B5L
E#@;q4[[0AQTRmtAgent51Testing软件测试网B{JDl7N2i:G
QuickTest Professional Automation
7OWP
]0eIX
Wb;e0TlpRmtServer
,[C%u1F\2F_051Testing软件测试网 H p}oH3V
3. For each of these DCOM applications, right click and select.
]&IW?R:Ea I"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.
^ ?[!ECG!X Y+~O06. For both theand, select