今天在準備正式測試時(shí),將測試環(huán)境放到了win2003服務(wù)器上,突然在用Microsoft .net協(xié)議錄制測試程序時(shí)報了如下錯誤:
c:\program files\interner explorer\iexplore.exe was terminated by windows
due to the windows data execution prevention feature.please refer to the
vugen teadme limitations section for insturctions on midifying setting,
and try record again.
原因在上面的提示里已經(jīng)很清楚了,是由于windows的數據執行安全特性阻止了錄制
過(guò)程。
解決:參考vugen 的readme做法就可以了。
下面是readme的原文:
Limitations
General
Windows XP SP2 and Windows 2003 contain a Data Execution Prevention (DEP)
feature which may cause VuGen to stop recording. If you experience unusual
behavior during recording in these environments, modify the DEP settings.
To modify the Windows DEP settings:
Open Start > Control Panel > System.
In the Advanced tab, click Performance settings.
In the Performance Options Data Execution Prevention tab, select the first
option, DEP for essential services only.
Click OK to save the settings.
Reboot the machine.
ps:my pc configuration:
win2003 + qtp9.5