2018年6月14日
posted @ 2018-06-14 13:57
sanmao.net
阅读(1309)
推荐(0)
2013年9月13日
摘要:
http://blog.sciencenet.cn/blog-51026-566742.html1、查看当前所有可用的环境变量:输入 set 即可查看。2、查看某个环境变量:输入 “set 变量名”即可,比如想查看path变量的值,即输入 set path。3、修改环境变量 :输入 “set 变量名=变量内容”即可。这是覆盖以前的内容,并不是追加。4、设置为空:如果想将某一变量设置为空,输入“set 变量名= ”即可。5、给变量追加内容输入“set 变量名=%变量名%变量内容”。如,为path添加一个新的路径,输入“ set path=%path%;d:\nmake.exe”即可将d:\nma
阅读全文
posted @ 2013-09-13 15:29
sanmao.net
阅读(952)
推荐(0)
2013年8月2日
摘要:
原文:http://www.shortcutworld.com/en/win/Run-command.html1. Calling Run CommandWin +r Start Run command2. Windows Toolswinver Windows Versioncalc Open Calculatorcmd Open Comand Windowcontrol Open Control Panelexplorer Open Windows Explorerftp Open FTPmsconfig Open Windows Startup Configurationreg...
阅读全文
posted @ 2013-08-02 18:10
sanmao.net
阅读(258)
推荐(0)
摘要:
http://blogs.msdn.com/b/astebner/archive/2007/03/14/mailbag-what-version-of-the-net-framework-is-included-in-what-version-of-the-os.aspxhttp://petermarcu.blogspot.in/2010/02/which-version-of-net-is-built-into.html.NET as integrated OS components (Green: optional, on by default;Red: optional, off by
阅读全文
posted @ 2013-08-02 16:23
sanmao.net
阅读(147)
推荐(0)
2013年4月26日
摘要:
同事写的,概括表达出了平时自己的一些关于测试的想法,拿来分享一下。1.回避含糊用语----在case中不要出现含糊不清的语言,如果现在对有些结果没办法把握的话,你可以用标记标注出来,找时间确认,但不能用概括性的语言带过。试想如果设计case的人都不清楚,那跑case的人又怎么能知道什么结果是对的,什么结果可能有问题呢。(测试的人要报跑case的想成都是机器人,只能按部就班)2.把握深度和广度----设计case并不是直接把task/spec的内容重复一下,因为task/spec中往往描述的是最常见和最基本的场景,然而,测试保证这些情况的话,只能算基本测试,对一个功能来说最多只能算是覆盖了20%
阅读全文
posted @ 2013-04-26 09:41
sanmao.net
阅读(306)
推荐(0)
2012年4月25日
摘要:
private void MoveDirectory(string sourceDir, string targetDir, bool allowOverWriteFile){ if (targetDir[targetDir.Length - 1] != Path.DirectorySeparatorChar) { targetDir += Path.DirectorySeparatorChar; } if (!Directory.Exists(targetDir)) { Directory.CreateDirectory(target...
阅读全文
posted @ 2012-04-25 14:56
sanmao.net
阅读(166)
推荐(0)
摘要:
private string ExecuteCommand(string command) { ProcessStartInfo startInfo = new ProcessStartInfo() { FileName = "cmd.exe", UseShellExecute = false, CreateNoWindow = true, RedirectStandardInput = true, Redire...
阅读全文
posted @ 2012-04-25 14:02
sanmao.net
阅读(160)
推荐(0)
摘要:
FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*9.*.mum /c “cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname”http://www.kolltveit.org/?p=514
阅读全文
posted @ 2012-04-25 13:36
sanmao.net
阅读(164)
推荐(0)
2011年10月12日
摘要:
我们在对软件做功能测试时,经常需要重复相同的操作过程,但是输入不同的数据来进行测试,也就是一个单元测试对应多组测试数据。而一个单元测试中,一个Assert只能做一个判断,如果仅仅因为测试数据不同而重复设计多个相同的测试用例,显然没有人愿意这样做。使用数据驱动测试,就能达到一个单元测试执行多组测试数据的目的,还能使操作逻辑和测试数据分离。下面就通过实例简单介绍一下这种测试方法,该实例使用excel作为存储测试数据的数据源。某销售人员每月的工资为底薪加提成,底薪2000,所售产品的单价10元,,当月销量不大于1000时,提成率为0.05,销量超过1000不大于2000时,提成率为0.10,超过20
阅读全文
posted @ 2011-10-12 16:10
sanmao.net
阅读(513)
推荐(0)
2011年9月21日
摘要:
在对一个产品做功能full test pass的时候,常常需要知道哪些地方没有被测到,以便针对性地增加测试用例,使得测试更全面,收集代码覆盖率就是一个找出这些testing hole的很好的方法,以下是测试web开源项目时收集代码覆盖率的具体步骤:1. 获取最新源代码,部署到iis,编译成功;2. 停止iis服务;3. Instrument要测试模块的dll和exe文件; set VsInstr="%VSINSTALLDIR%\Team Tools\Performance Tools\VsInstr.exe" %VsInstr% -coverage [product].ex
阅读全文
posted @ 2011-09-21 16:56
sanmao.net
阅读(540)
推荐(0)