51Testing软件测试网6f].J]&^%gwNrProblem Descrīption: Error: "RPC server is unavailable" when doing remote execution of automated scrīpts after installing Windows XP SP251Testing软件测试网@&G\e{/K
51Testing软件测试网u7M!XC5L
^
The user receives the following error message when executing a automated scrīpt remotely after installing Windows XP SP2:
Q.a1N4t)z.n0
X T QiHCFp0"The RPC server is unavailable."
+_r7T/e(X!Aa051Testing软件测试网'?s\w6Ws(M
Executing the scrīpt locally works correctly.51Testing软件测试网-t:pLJe2]
51Testing软件测试网N(^&qA?dWb)`R
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.
HJG5Z3i\zy;_/a(^051Testing软件测试网r+YP JYmWP&M(O#BE
Note: Windows XP SP2 is supported with TestDirector 8.0 SP2 and TestDirector for Quality Center 8.2 only51Testing软件测试网l5LF+Zf
XOTUV0RH8~0Solution: Change the DCOM permissions on the Windows XP SP2 client to allow for remote execution51Testing软件测试网dt;i9u
O
51Testing软件测试网i~ sQN1N(P[0_
l
Notes:
X,^st:a%c051Testing软件测试网L{8[$Gx
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.51Testing软件测试网%T8R.xvf%O
\5m
@.o;x
D Z9b0If you disable the firewall installed with Windows XP SP2, you do not need to apply the steps in Part II below.
b%Eem8w1@X E'V s051Testing软件测试网
o-?#f;_2qP4@
_
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.
9K+\4jXU_ I051Testing软件测试网I(^.P
QH8S#V iU
Part I:
x7Or n5E]6J\(]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.51Testing软件测试网 T_m,ZcA
ay~G(P"q&`DB4gX|wC0Part II:51Testing软件测试网AH+g-WW?B+_
j0|b3F
On the Testing Tool client machine configure Windows Firewall to allow Port 135 for DCOM:
?:a|1b'x(dCz_B01. Select Start -> Control Panel -> Windows Firewall.51Testing软件测试网.Y7M-ysLe)kG3Q"@
2. Navigate to the Exceptions tab.
UR%u
Gp5C
b03. Configure the Remote Agent to be allowed under "Programs and Services." Configuration should be done for each testing tools as given below:
4DCR_ik051Testing软件测试网$c$t3[G)Z_6dA
51Testing软件测试网`#[PY8l1`
ov G
WinRunner Remote Agent (path::\Program Files\Common Files\Mercury Interactive\WR_Remoter\wrrmtsrv.exe)
]U;yd]Dg0QuickTest Professional Remote Agent (path::\Program Files\Mercury Interactive\QuickTest Professional\bin\AQTRmtAgent.exe)51Testing软件测试网p*Y'A$d2^9K8_
{,}H,_K/s D\e0Execution Agent for Business Process Testing (path::\Program Files\Common Files\Mercury Interactive\TD2000_80\bp_exec_agent.exe)51Testing软件测试网h v h%u#vO1d
51Testing软件测试网sm#rd1j-?
4. Click onand add the DCOM TCP port 135 to the Exceptions list.51Testing软件测试网:Q$b.o
J'e!zmT
Note: 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:
dB;Ef1IBK)bR051Testing软件测试网
nJO
z-dUoM
http://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.asp
MDNc4v3D)?Q0
R9Y]+_%WM;r6q0Part III:51Testing软件测试网 l8E.\%Y,M6T*qN(E
Modify DCOM Security Properties:51Testing软件测试网2H+J2Q.jWJ*T0?&`l~
1. Select Start -> Run and enter dcomcnfg.
&nnu _4|!}#z0`M02. Navigate to Console Root -> Component Services -> Computers -> My Computer.51Testing软件测试网 _Ac'x0x
Note: If Windows Security Alert dialog window appears, click onor.
_'kh8r?B03. Right-click on My Computers and select "Properties."
Y'N6I^"Qvnr04. Navigate to the Default Properties tab.
4RQ'sB!i05. Make sure the Default Impersonation Level is "Identify."
6L3OgB7qR/wr06. Click.51Testing软件测试网2H_'v$D5i4S%H7Zu
7. Navigate to the Defualt COM Security tab.51Testing软件测试网^ [}~x
8. Under Access Permissions, click on. The Access Permission dialog window appears.51Testing软件测试网"aS@ g
@Gif,pe
9. Click on. The Select Users or Groups dialog windows appear.
{h5v5Fy3~dJ010. Click on.
E
zI"Sj)z:}l011. Click on.51Testing软件测试网5yvf?*X5T+I@/c
12. Add the following groups and users from the local machine (below is an example screenshot):51Testing软件测试网!k9P+}1D+lVdC!E
g/U'yn s!n0
%Q~8WpWy-Jfr0Administrator51Testing软件测试网"CV,ne b(O
Administrators51Testing软件测试网$eBl/[~p'_-{9{
Authenticated User
S;ong6p}J"h0Anonymous Logon51Testing软件测试网(W.]8aFp\A
Everyone51Testing软件测试网-e6]
v-KaPp2}w
Interactive
;h!HU4G
Sj/@|:V(]0Network51Testing软件测试网tvAB)r0N3|
System
Hc.j4ju0
3E/yc@8e4d$i:X#`~013. Click.
WV5s'G{/f?,_ V014. Add the following groups and users from the domain:
5i Y#w3@@xAP051Testing软件测试网
K2L8sD'w0P}T
9}O*@K%V051Testing软件测试网Xr(Fn t(PNX
UeH
.Z
K!e+j8qI
E-tglC015. Click.
;`5d@!S ~TX016. Give "Local Access" and "Remote Access" permissions to the groups and users.51Testing软件测试网u.RX$q7C7tZFC#h \[
17. Click.51Testing软件测试网4j6PbK(l3E_8T!b x
18. Under Access Permissions, repeat steps 9-17 for.
,xTwZG W.e:Y_gG019. Under Launch and Activation Permissions, click on. The Launch Permission dialog window appears.51Testing软件测试网0l Y ~6Y6Y/?/}
20. Repeat steps 9-15.51Testing软件测试网"@6M
J(t.t
}
21. Enable "Local Launch," "Remote Launch," "Local Activation," and "Remote Activation" permissions to the groups and users.
q2th4\Gb!h'c051Testing软件测试网NbLaj-qX?
22. Click.
1SvenDG9Zx5}4o023. Repeat steps 20-22 for.
D#v+r3gW(E+U Z0Part IV: (for QTP only)51Testing软件测试网D9`!UZh}/s;a
1. While still in the Component Services window, navigate to Console Root -> Component Services -> Computers -> My Computer -> DCOM Config.
Sh;Sq1G.m051Testing软件测试网 i'd/d/k;Y,f1]
2. Look for the following.
J3T&me;T{bET'v:Zl0
`u[@|'?5_%d1hc051Testing软件测试网ic"]VOX`
AQTRmtAgent51Testing软件测试网+W5~:H,iE:t&iU
QuickTest Professional Automation
9Z7}
}+Ep
[t0TlpRmtServer
We-x3t0c0
(YD+}IGw8@6D
R
M(M03. For each of these DCOM applications, right click and select.51Testing软件测试网 r~%@:J8Z[d!S
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.
b0P_3VG0d051Testing软件测试网-x;Uo
Z?u'c}
5. Next, go to the Security tab.51Testing软件测试网 J'a7}
e'm
6. For both theand, select