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

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

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

51Testing软件测试网6f].J ]&^%g wNr

Problem 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!X C5L ^
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 Qi HCF p0"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

XOTU V0RH8~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%Ee m8w1@XE'Vs051Testing软件测试网 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|w C0Part 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软件测试网hv 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'yns!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.
,xTw ZG 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. This will use the Default security settings as we did in Part III.51Testing软件测试网Fm0a5C5Dhr
51Testing软件测试网2wS W qI8f
7. Click Apply, then OK to commit the changes.51Testing软件测试网@}1N\+}
8. Now, you are ready to run a remote execution test with QTP.51Testing软件测试网Q;a8{ JY!YUvF1S
Example Screenshot of the Security Configuration (see word attachment)51Testing软件测试网XE&Ne Xj|*m
Part V: (for WR only)51Testing软件测试网 Yl(b;e(f
1. While still in the Component Services window, navigate to Console Root -> Component Services -> Computers -> My Computer -> DCOM Config.51Testing软件测试网W6yX7u0mBu
51Testing软件测试网 v7XKqk8@Eb
2. Look for the following:
A3B ^1W*ej0
P;@0vX?"x0{0B171F02-F204-11D0-9398-0080C837F11F}51Testing软件测试网0YOo4Ah1iu
Wrun Document51Testing软件测试网a*h x(u;LA r1X
51Testing软件测试网t R.b'}mt(vv
3. For each of these DCOM applications, right click and select.51Testing软件测试网!r5oCqX
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.51Testing软件测试网m5i-?1H.@ _0?3D

1{f&SE0}|05. Next, go to the Security tab.51Testing软件测试网'G"cG!XQx#TcD
6. For both theand, select. This will use the Default security settings as we did in Part III.51Testing软件测试网,v'g*c p#q S%HC0r

a,m c-BrN%x.K07. Click Apply, then OK to commit the changes.51Testing软件测试网&Kb|.H D)gSDm
8. Now, you are ready to run a remote execution test with WR.51Testing软件测试网K H:q}/r7QB
Part VI: (For System Test, BPT, and VAPI-XP)
a&\3U5Uiu^ww3|(~0Repeat 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:
&vR+yo2Q)H*Cm+UF0
r5]c.d(Rp051Testing软件测试网1@!v"}hYav;F J(^
Vapi-XP object
9lqI&]/I&z;|8a0{CD70EDCE-7777-11D2-9509-0080C82DD192}
v(@7|(qy \0
LW["Z.SlAl*U6U0Business Process Testing object51Testing软件测试网C f%I!g"~u
{6A03829E-EC39-4802-A631-3841484EFBE3}51Testing软件测试网Y#Y ~-sgA#S-c E

i!CyPJ#O0System Test Remote Agent
4pHJd0h3A[@0{1B78CAE4-A6A8-11D5-9D7A-000102E1A2A2}51Testing软件测试网k6CP0LcBnO
51Testing软件测试网#C.q.avWw)^ i V
Notes:51Testing软件测试网+Z!F.\5k T)h7X

}8H/u bP6OZ}5xO051Testing软件测试网Q3R9Y.k,V)S
If 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.
;y~t3E%pB q*C5EXY0
0s6Q_*g2H0L0If 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.51Testing软件测试网^Rt$gF n.Crt7c)~
51Testing软件测试网_q.gr`4Y
Below is a list of supported Mercury's Testing Tools on Windows XP SP2:51Testing软件测试网C t2w:^Zg.Z4xs
51Testing软件测试网:h_2P5QJ k*E
TestDirector Version Testing Tool Testing tool versions
;|4q)T/cM9^!~:H1\2_"G(Z0TestDirector for Quality Center 8.2 QuickTest Professional 8.251Testing软件测试网_$`3tL1a/^A&N/}^
WinRunner 8.0, 8.251Testing软件测试网(a~&ad;J,s
Business Process Testing 8.2
9W{,aE!g~-Z;r'V0TestDirector 8.0 SP2 QuickTest Professional 8.2
F-k$b!S(Ke} M u0WinRunner 8.0, 8.251Testing软件测试网WZ$R#{M HX


TAG: QC

 

评分:0

我来说两句

日历

« 2024-04-19  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

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

RSS订阅

Open Toolbar