摘要: Q. What is a test strategy? Answer: A test strategy must address the risks and present a process that can reduce those risks. The two components of Test strategy are: a) Test Factor: The risk of issue that needs to be addressed as a part of the test strategy. Factors that are to be addressed in tes. 阅读全文
posted @ 2012-06-26 15:55 xiaoshiyilang 阅读(197) 评论(1) 推荐(1) 编辑
摘要: 本文来自 http://www.testingthefuture.net/2009/11/20-ways-to-test-the-login-function/This post describes a couple of these test cases. If you have more of them please let me know so I can add them to the post. If you are a (functional) tester you can use these examples during your test execution.1) Corre 阅读全文
posted @ 2012-06-25 14:55 xiaoshiyilang 阅读(304) 评论(5) 推荐(0) 编辑
摘要: C#给你一个string字符串, abcd as,ccd.dsa反转这个字符串变为: dsa.ccd,as abcd要求:不能用【任何】【系统函数】。实现代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;namespace ReverseString{ class Program { public static string ReverseString(String ori... 阅读全文
posted @ 2012-05-31 15:57 xiaoshiyilang 阅读(1107) 评论(15) 推荐(0) 编辑
摘要: 本文来自 http://www.cnblogs.com/gnagwang/archive/2010/04/20/1716006.htmlMSAA的全称是Microsoft Active Accessibility。这是类似DCOM技术。技术模型是这样的,UI程序可以暴露出一个Interface,方便另一个程序对其进行控制。 MSAA技术的初衷是为了方便残疾人使用Windows 程序。比如盲人看不到窗口,但是盲人可以通过一个USB读屏器连接到电脑上, 读屏器通过UI程序暴露出来的这个Interface,就可以获取程序信息,通过盲文或者其它形式传递给盲人。MSAA提供了如此方便的功能, UI自动化 阅读全文
posted @ 2012-05-28 13:31 xiaoshiyilang 阅读(1539) 评论(0) 推荐(0) 编辑
摘要: 本文来自《设计模式之禅》。原文用java实现,这里改用c#来实现。最近感觉很无聊,于是开始玩游戏消磨时间。在这段时间体会到网络游戏的苦与乐。参与家族攻城,胜利后那叫一个乐啊,感觉自己像一个狂暴战士,无往不胜。那苦是什么呢?就是升级,为了升一级,就要开始杀怪,自己做任务。变态的是那个游戏对外挂管理的非常的严格,基本上出个外挂,没两天就开始封号,不敢用。升级基本靠自己手打。接下来我们用架构的方式记录下这段经历。游戏过程如上图所示。首先定义一个IGamePlayer接口,是所有喜欢网络游戏的玩家的规范,然后定义一个具体的实现类GamePlayer,实现每个游戏玩家为了玩游戏要执行的功能。实现代码如下 阅读全文
posted @ 2012-05-24 23:00 xiaoshiyilang 阅读(1791) 评论(9) 推荐(7) 编辑
摘要: 不知不觉来博客园一年了啊。学习发哥感叹以下:岁月催人老。 Howtime flies.回想去这一年,自己在博客园没有留下什么好的东西,倒是从博客园中学习到了不少的知识。 博客随便写了几篇,不过写的很一般。准确的说,这些博客都是写给自己看的,而不是写给读者的。接下来的一年里面,我希望我能为博客园贡献点什么,从中应该也可以学习到不少的知识。两全其美,何乐而不为。分享是我接下来的主题。给自己定一个目标吧。 每周写一篇博客。 阅读全文
posted @ 2012-05-08 10:42 xiaoshiyilang 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 来自msdn的实现:using System;public sealed class Singleton{ private static volatile Singleton instance; private static object syncRoot = new Object(); private Singleton() {} public static Singleton Instance { get { if (instance == null) { lock (syncRoot) { if (instance == null) instance = new Singl... 阅读全文
posted @ 2011-12-09 10:49 xiaoshiyilang 阅读(157) 评论(0) 推荐(0) 编辑
摘要: String strAppDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);String strFullPathToMyFile = Path.Combine(strAppDir, "fileName.txt");Console.WriteLine(String.Format("Path to the application is: '{0}'." +"Full path to the file in the appli 阅读全文
posted @ 2011-12-06 15:32 xiaoshiyilang 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 表结构: • 成绩表(Grade),包含字段:GradeID(Int,自增), SNO(int, 学号), CNO(int, 课程号), Score(float,分数) 查询每门课程的平均(最高/最低)分及课程号; select avg(score) ,cno from [DBTest].[dbo].[grade] group by cnoselect max(score) ,cno from [DBTest].[dbo].[grade] group by cnoselect min(score) ,cno from [DBTest].[dbo].[grade] group by cno 查. 阅读全文
posted @ 2011-11-30 15:19 xiaoshiyilang 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 天下武功 唯快不破 阅读全文
posted @ 2011-11-22 14:56 xiaoshiyilang 阅读(104) 评论(0) 推荐(0) 编辑