2013年7月29日

On the fly test

摘要: on the fly test就是边开发边测试的意思.test code不是早就生成好的,在一边生成code的同时一边做test running,最大的好处是,flexiable ,每一次可以选择不同的路径来跑case,感觉更加高效 阅读全文

posted @ 2013-07-29 14:52 CynthiaHuo 阅读(309) 评论(0) 推荐(0) 编辑

2013年7月26日

Spec Explorer 工具学习

摘要: 基础概念:http://blogs.msdn.com/b/sechina/archive/2009/12/28/test.aspx 在线教程:http://blogs.msdn.com/b/sechina/archive/2010/04/20/spec.aspx 最近需要用这个工具进行E2E的functional test所以在学习这个工具Spec Explorer. 资源: 团... 阅读全文

posted @ 2013-07-26 18:06 CynthiaHuo 阅读(847) 评论(2) 推荐(0) 编辑

2013年7月17日

C# Static修饰符的作用

摘要: MSDN上的定义 Use the static modifier to declare a static member, which belongs to the type itself rather than to a specific object. The static modifier can be used with classes, fields, methods, propert... 阅读全文

posted @ 2013-07-17 17:34 CynthiaHuo 阅读(2380) 评论(0) 推荐(0) 编辑

[转]C#静态方法与非静态方法的比较

摘要: http://wenku.baidu.com/view/4e1704084a7302768e9939e0.html C#的类中可以包含两种方法:C#静态方法与非静态方法。那么他们的定义有什么不同呢?他们在使用上会有什么不同呢?让我们来看看最直观的差别:使用了static 修饰符的方法为静态方法,反之则是非静态方法。 下面我们分四个方面来看看C#静态方法与非静态方法的差异: C#静态方法与非静... 阅读全文

posted @ 2013-07-17 17:32 CynthiaHuo 阅读(382) 评论(0) 推荐(1) 编辑

2013年7月9日

如何获取网站服务器运行状态

摘要: 在学习的过程中总要经历一些痛苦的过程才能达到想要达到的地方。前几天牛人给我出了一道题,说是让我写一段程序判断一个网站的服务器是否正常运行。本着我自己先仔细研究实在不行再问的原则我各种郁闷了好几天。 各种没头绪,虽然磕磕绊绊的找到了一个网址http://zhoufoxcn.blog.51cto.com/792419/561934 但是各种看不懂不理解啊。 在看了好久实在是不理解之后,我求助了。... 阅读全文

posted @ 2013-07-09 18:04 CynthiaHuo 阅读(1082) 评论(0) 推荐(0) 编辑

2013年7月4日

C#快速整理代码格式

摘要: 删除最后一个大括号,再添加。vs自动整理代码结构。 阅读全文

posted @ 2013-07-04 15:35 CynthiaHuo 阅读(1472) 评论(0) 推荐(0) 编辑

2013年6月28日

UI auto程序结构组织方式

摘要: UI Auto分三个layer: 1. Object finding – 单独一个类,寻找到控件。因为UI auto最容易改动的就是UI界面,这样全部放到一起就便于统一修改。 2. Task - 对控件的原子操作,类似click等动作。 3. Test Case - 单独一个类 就是拼接第二层的方法,再加上验证就完事了 阅读全文

posted @ 2013-06-28 11:31 CynthiaHuo 阅读(344) 评论(0) 推荐(0) 编辑

2013年6月27日

TestClass必须是public的

摘要: 运行一个测试类遇到一下问题: namespace TestSample.Sample { [TestClass] class CynthiaTest { [TestMethod] public void UITestSample() { DemoAPIs.... 阅读全文

posted @ 2013-06-27 16:59 CynthiaHuo 阅读(558) 评论(0) 推荐(0) 编辑

VS2012如何显示行号

摘要: Tools-Options-Text Editor-All Languages –General – Display 阅读全文

posted @ 2013-06-27 16:24 CynthiaHuo 阅读(6183) 评论(0) 推荐(2) 编辑

Error: member names cannot be the same as their enclosing type

摘要: 在编译的时候会遇到如下问题:member names cannot be the same as their enclosing type 原因:方法名和类名不能一样,如果一样就是一个构造函数。而构造函数不能有返回值。 构造函数:只写public 没有void 阅读全文

posted @ 2013-06-27 16:18 CynthiaHuo 阅读(2334) 评论(0) 推荐(0) 编辑

导航