welcome to Qijie's Blog 薛其杰
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页
摘要: You may have to test a simple web page to make sure the web page is working fine. the page may only have few controls, like two text boxes and one button. If one textbox is set to a specific value, once you click on the button, the other text box may get a defined value, then you could check the re. 阅读全文
posted @ 2012-02-04 19:35 零点零一 阅读(278) 评论(0) 推荐(0)
摘要: Excel 2010 连接字符串case1:ConnectionString=string.Format(@"Provider=Microsoft.Jet.OLEDB.4.0;DataSource={0};ExtendedProperties='Excel8.0;HDR=Yes;IMEX=1'",ExcelPath);break;case2:ConnectionString=string.Format(@"Provider=Microsoft.Jet.OLEDB.4.0;DataSource={0};ExtendedProperties=' 阅读全文
posted @ 2012-01-13 15:17 零点零一 阅读(1727) 评论(0) 推荐(1)
摘要: In WinForm, when we trying to set a value for Text property of a TextBox control that run in another thread, we can use code like this:inttotalFileNumbers=ReturnTotalFiles();delegate_SetBarMaximumdel_SetMax=newdelegate_SetBarMaximum(SetProgressBar_Maximum);Invoke(del_SetMax,newObject[]{totalFileNum. 阅读全文
posted @ 2011-11-29 16:56 零点零一 阅读(482) 评论(0) 推荐(0)
摘要: 最近在使用的一些Test Case 的逻辑结构:接口:interfaceITestCase{stringCaseID{get;set;}stringCaseTitle{get;set;}boolPassed{get;set;}voidExcuteTC(stringxmlFilePath,stringinfFilePath);boolVerifyPass(stringxmlFilePath,stringinfFilePath);}Sample of Test Case:classTestCase_1:ITestCase{publicstringCaseID{get{return"1&a 阅读全文
posted @ 2011-11-01 17:29 零点零一 阅读(573) 评论(0) 推荐(1)
摘要: This Post is very useful if you want to remote connect to a Hyper-V machine in another host from your own host. it's simple using the software introduced in this post. You first should have windows server 2008 installed in your host.Post location: http://archive.msdn.microsoft.com/HVRemote 阅读全文
posted @ 2011-10-27 11:03 零点零一 阅读(861) 评论(0) 推荐(0)
摘要: 我有一个Hyper-V上的虚拟机, 在使用的过程中我给这个虚拟机创建了多个snapshots。 有一天我把整个的snapshots tree从root删掉了(delete snapshot with subtree), 然后我把虚拟机关机, 看到它在merge. 我期待着所有的avhd能够merge到我VHD里边去, 然后我到 snapshots目录里边去看了, 发现所有的avhd还都在里边。 我如果人工把snapshots移掉的话, 我试了下发现虚拟机启动不了。 所以证明这些个avhd并没有merge到我的vhd里边去, 我们需要手工通过Edit VHD去把每一个avhd merge到它的. 阅读全文
posted @ 2011-10-26 14:47 零点零一 阅读(910) 评论(0) 推荐(0)
摘要: Use XslTransform class in System.Xml.Xsl ;Original XML(testCases.xml):<?xmlversion="1.0"encoding="utf-8"?><testcases><testcaseid="001"bvt="yes"><inputs><arg1>red</arg1><arg2>blue</arg2></inputs><expected 阅读全文
posted @ 2011-08-22 21:46 零点零一 阅读(420) 评论(0) 推荐(0)
摘要: Using C# language to call windows API, in following codes we mainly used methods located in user32.dll , so we firstly should create a method in C# that will mapping the corresponding method in user32.dll. in these codes, you will see:1. to geta window handler2. to get a control in the window3. to g 阅读全文
posted @ 2011-08-18 07:59 零点零一 阅读(555) 评论(0) 推荐(1)
摘要: When doing UI testing of Win Formwith .NET, there is an easy way to automate it. It is reflection in .NET.There is a tool integrated in VSTS, named Spy++, using it you can get any win form caption in your desk.Following are the code for UI testing by reflection, key code refered <<.NET Test Au 阅读全文
posted @ 2011-08-13 20:16 零点零一 阅读(1156) 评论(0) 推荐(0)
摘要: 为什么泛型?面向对象的语言好处是使得程序员可以很方便地重用代码, 在面向对象中程序员可以写一个子类去继承自一个父类,写不同的程序能够重用以前的代码, 会减少很多代码的工作量。但是算法能不能重用呢? 答案是肯定的, CLR提供了一个算法重用的机制, 就是泛型。算法重用的例子, 参考List<T>类型, 在System.Collections.Generic中定义。泛型类型和继承我们使用两段代码来说明:Internal sealed class Node<T>{Public T m_data;Public Node<T> m_next;Public Node(T 阅读全文
posted @ 2011-07-30 10:34 零点零一 阅读(469) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页