摘要: 当TestCase运行时需要进行调试,但是case的代码非常多,并不想或则没发打开所有项目进行调试,只需要调试某个Case即可.添加下面代码到case的初始化中,设置ISDEBUG变量=true,在运行case时,会提示进行进行调试,附加相关进程,点击确定即可进行调试.当然也可以应用到其他的应用程序中,不一定为Testcase.  public static bool IsDebugging { ... 阅读全文
posted @ 2010-04-14 09:54 Zhongjian Zhang 阅读(1098) 评论(1) 推荐(0) 编辑
摘要: 前几天在自己工作机(Win2k8 R2)上安装的VS等一些工具,机器的系统盘空间大幅减少到3G以下. 在此机器上用Hyper-v启动MyVirtualMachine(配给内存为5120M)时,Hyper-v报错误信息: Could not initialize memory: There is not enough space on the disk. 具体如下:[Window Title]Vir... 阅读全文
posted @ 2010-03-19 10:58 Zhongjian Zhang 阅读(1918) 评论(1) 推荐(1) 编辑
摘要: 在有些大系统中,客户端查询非常复杂,需要显示很多字段和过滤很多条件,例如TFS中的条件过滤,或则用户希望客户端查询能像EXCEL过滤那样方便这样可能导致查询语句非常复杂,此时的效率也比较低.TFS查询条件界面:如果可以获取查询语句的成本,当SQL语句执行成本很大(可能执行时间会很长时),系统自动提示用户是否继续或则大概需要多长时间,这样会提高用户体验.下举一例:查询Sql Server中的所有列信... 阅读全文
posted @ 2010-03-16 15:44 Zhongjian Zhang 阅读(3079) 评论(6) 推荐(0) 编辑
摘要: oracle :1521 sqlserver :1433 mysql :3306 sybase:5000 db2 :50000 postgresql :5432 阅读全文
posted @ 2010-03-06 11:56 Zhongjian Zhang 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 在cmd进行注册表进行操作,可以使用Reg命令(reg.exe),可以在%windir%\system32下找到此文件. 详情参见:http://technet.microsoft.com/en-us/library/cc732643(WS.10).aspx这个链接可以查询到其他的cmd中命令.其他关于reg的操作的工具有:RegBack.exe, RegRest.exe, and Regedt3... 阅读全文
posted @ 2010-03-05 11:05 Zhongjian Zhang 阅读(2994) 评论(0) 推荐(0) 编辑
摘要: 一道面试题:provider a method and test it:input: int [], like 1,2,3,3,3,3,3,3,3,4,3,3,2,4,4function: provider a method move mumber is adjacent andduplicated with the prior one, result like 1,2,3,4,3,2,4 ( o... 阅读全文
posted @ 2010-02-02 21:10 Zhongjian Zhang 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 延长windows激活时间:cscript c:\windows\system32\slmgr.vbs -rearm 阅读全文
posted @ 2010-02-02 20:51 Zhongjian Zhang 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 1.defineand delvariable  set variablename=variablevalue_in_string  variable name is not case-sensitive, could have embedded spaces, like set test test=t if valuevariablevalue_in_string is emty, the v... 阅读全文
posted @ 2010-01-24 22:53 Zhongjian Zhang 阅读(1151) 评论(0) 推荐(0) 编辑
摘要: DOSKey allows the use of severalcommand switches:DOSKEY [/switch ...] [macroname=[text]]/REINSTALLInstalls a new copy of DOSKey./LISTSIZE=[size]Sets size of command history buffer tosize./MACROSDispla... 阅读全文
posted @ 2010-01-23 16:38 Zhongjian Zhang 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 操作系统shell的比较/Comparison of command shells下面的比较能可以帮助大家对shell功能和分类有个大致的了解:Acommand shellis acommand line interfacecomputer program to anoperating system.bash(v4.0)cshtcshScshksh(ksh93t+)pdkshzshashWindo... 阅读全文
posted @ 2010-01-23 16:33 Zhongjian Zhang 阅读(259) 评论(0) 推荐(0) 编辑