1.安装qtp, 一路默认下来,到要求输入License的界面
2.拷贝mgn-mqt82.exe(下载)到C:\Program Files\Mercury Interactive(自己手动创建)文件夹下
3.自己手动创建C:\Program Files\Common Files\Mercury Interactive\License Manager文件夹
4.执行自己刚才创建的C:\Program Files\Mercury Interactive文件夹下的破解工具mgn-mqt82.exe,会提示lservrc文件生成。
这里主要解决的是:没办法生成lservrc文件。
这与 *** 作系统有关,我用的是win7。
在windows7的系统里面要用管理员的身份去运行这个程序就能够生成这个文件了
分析原因:
由于Vista/win7的权限问题,在C:/Program Files/下创建文件,总是要提示目标文件夹访问被拒绝,你需要确认这个 *** 作,确认后又提示WINDOWS需要你的许可才能继续,继续后,文件才会被创建成功。虽然我们使用的账户是管理员,但是系统默认是打开用户帐户控制的。
解决办法:
进入控制面板->进入用户帐户->选择最后一个选项:
打开或关闭"用户帐户控制",此时是打开状态的,设为从不通知,确定就可以了。
win7 64位的 *** 作系统下 有两个ie 一个是32位 一个是64位的 。需要安装补丁,qtp10的补丁我没使用过。你可以尝试qtp11及其64位ie补丁(QTPWEB_00086_IE 64-bit.EXE)。也可以直接uft12,uft12是不需要安装补丁的。还有另外一个办法,那就是用32位的ie把64位的ie覆盖掉,但是这种方法有可能会导致后面的使用不稳定。
建议找下qtp对win7 64位及其64位ie的补丁吧。
<html><meta name="content-type" content="text/htmlcharset=UTF-8">
<head>
<title>Calculator</title>
<!--?按??容以字符串形式存?在文字框中?按??“=”?,?用eval方法?算?果然后??果?出文字框中-->
<script type="text/javascript">
var numresult
var str
function onclicknum(nums) {
str = document.getElementById("nummessege")
str.value = str.value + nums
}
function onclickclear() {
str = document.getElementById("nummessege")
str.value = ""
}
function onclickresult() {
str = document.getElementById("nummessege")
numresult = eval(str.value)
str.value = numresult
}
</script>
</head>
<body bgcolor="affff" >
<!--定?按?表格,每?按???一?事件触?-->
<table border="1" align="center" bgColor="#bbff77"
style="height: 350pxwidth: 270px">
<tr>
<td colspan="4">
<input type="text" id="nummessege"
style="height: 90pxwidth: 350pxfont-size: 50px" />
</td>
</tr>
<tr>
<td>
<input type="button" value="1" id="1" onclick="onclicknum(1)"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
<td>
<input type="button" value="2" id="2" onclick="onclicknum(2)"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
<td>
<input type="button" value="3" id="3" onclick="onclicknum(3)"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
<td>
<input type="button" value="+" id="add" onclick="onclicknum('+')"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
</tr>
<tr>
<td>
<input type="button" value="4" id="4" onclick="onclicknum(4)"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
<td>
<input type="button" value="5" id="5" onclick="onclicknum(5)"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
<td>
<input type="button" value="6" id="6" onclick="onclicknum(6)"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
<td>
<input type="button" value="-" id="sub" onclick="onclicknum('-')"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
</tr>
<tr>
<td>
<input type="button" value="7" id="7" onclick="onclicknum(7)"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
<td>
<input type="button" value="8" id="8" onclick="onclicknum(8)"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
<td>
<input type="button" value="9" id="9" onclick="onclicknum(9)"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
<td>
<input type="button" value="*" id="mul" onclick="onclicknum('*')"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
</tr>
<tr>
<td colspan="2">
<input type="button" value="0" id="0" onclick="onclicknum(0)"
style="height: 70pxwidth: 190pxfont-size: 35px">
</td>
<td>
<input type="button" value="." id="point" onclick="onclicknum('.')"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
<td>
<input type="button" value="/" id="division"
onclick="onclicknum('/')"
style="height: 70pxwidth: 90pxfont-size: 35px">
</td>
</tr>
<tr>
<td colspan="2">
<input type="button" value="Del" id="clear"
onclick="onclickclear()"
style="height: 70pxwidth: 190pxfont-size: 35px" />
</td>
<td colspan="2">
<input type="button" value="=" id="result"
onclick="onclickresult()"
style="height: 70pxwidth: 190pxfont-size: 35px" />
</td>
</tr>
</table>
</body>
</html>
试一下
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)