tcl.8.6.10 tk.8.6.10 proc proj.filename {} {return main.tcl} proc proj.relaunch {} { exec [info nameofexecutable] [proj.filename] & } proc proj.clear ...
分类:
其他好文 时间:
2020-01-28 12:37:46
阅读次数:
92
测试环境 tcl 8.6.10,tk 8.6.10。 自用的 tcl proc,用来生成以整个预置菜单(并不详细配置菜单项)。代码如下: proc makemenu {root args} { set me makemenu set mu $root if {![winfo exists $root ...
分类:
其他好文 时间:
2020-01-20 22:45:38
阅读次数:
83
1、运行一个exe文件,发生中断 Ctrl+Alt+Delete打开任务管理器-->详细信息-->选择对应的应用名称,右键选择创建转储文件,等待文件创建完成。 2、打开WinDbg工具 2.1 设置符号表的方式 选择File>Symbol File Path,设置pdb文件的位置为待调试exe的pd ...
分类:
数据库 时间:
2020-01-19 22:28:33
阅读次数:
142
1、简介 gtest中,断言的宏可以理解为分为两类,一类是ASSERT系列,一类是EXPECT系列。区别: ASSERT_* 系列的断言,当检查点失败时,退出当前函数(注意:并非退出当前案例)EXPECT_* 系列的断言,当检查点失败时,继续往下执行。会在结果中输出期望值和实际值,也可在XML文件中 ...
分类:
其他好文 时间:
2020-01-19 19:19:33
阅读次数:
111
"""在运行测试时,有时需要直接跳过某些测试用例,或者当用例符合某个条件时跳过测试,又或者直接将测试用例设置为失败。unittest提供了实现这些需求的装饰器。·unittest.skip(reason)无条件地跳过装饰的测试,说明跳过测试的原因。·unittest.skipIf(condition ...
分类:
其他好文 时间:
2020-01-19 00:16:49
阅读次数:
78
二叉树中和为某一值的路径 path数组时刻记录着当前所行走的路径 只有当遍历到叶子结点的时候进行 求和的判断 看是否能把路径添加到结果数组res中. ...
分类:
其他好文 时间:
2020-01-16 10:45:39
阅读次数:
62
检查响应体中是否包含“金庸”: pm.test("body matches string",function(){ pm.expect(pm.response.text()).to.include("金庸");}); 前提: 测试脚本: 失败如下所示: ...
分类:
其他好文 时间:
2020-01-15 15:33:33
阅读次数:
118
错误信息: Clone failed RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function. The remote end hung up unexpectedly early EOF index-pack f ...
分类:
Web程序 时间:
2020-01-14 14:45:41
阅读次数:
211
a=`cat ./host`password=$1for i in $ado/usr/bin/expect << EOFspawn ssh-copy-id root@$iexpect "continue connecting (yes/no)?"send "yes\r"expect "passwor ...
分类:
其他好文 时间:
2020-01-13 12:48:46
阅读次数:
68
谷歌无头浏览器 import time from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.support import expect ...
分类:
其他好文 时间:
2020-01-10 20:35:21
阅读次数:
75