摘要: Why Are There So Many C++ Testing Frameworks? by Zhanyong Wan (Software Engineer)最近貌似有很多人正在开发他们自己的C++测试框架,如果还没能完工。Wiki上有一个此类框架的不完全列表。因为大多数面向对象编程语言只有1到2个主要的框架,对C++而言这就显得有趣了。例如,大多数Java开发者都使用JUnit或TestNG。难道C++程序员都是疯狂的DIY爱好者吗?当我们开发并将Google Test(Google的C++测试框架)开源后,人们开始好奇为什么我们要做这件事。简单的回答是我们没有能够找到一个已有的并且能够 阅读全文
posted @ 2013-10-11 18:21 移山测试工作室黑灯老师 阅读(2243) 评论(0) 推荐(0) 编辑
摘要: 目前手里有个测试项目各个feature的测试用例都放在对应的子目录下,虽然有自动化测试框架的帮助执行起来很方便,但是偶尔也有需要在本地执行某个feature的全部测试用例集合。因为本人对shell脚本不熟悉,所以Ruby的问题还是用Ruby来解决。每个测试脚本的命名遵循如下规范:Testlink ID + 测试用例名字。比如100_invalid_signature.rb表示该测试用例在Testlink里的ID是100,用来测试无效签名。在脚本的实现中,测试用例的名字就对应为TC_100。例子代码如下:1 class TC_100 < Test::Unit::TestCase2 # .. 阅读全文
posted @ 2013-10-11 15:39 移山测试工作室黑灯老师 阅读(815) 评论(0) 推荐(0) 编辑
摘要: 前几天看了Google Testing Blog上的一篇文章讲到C++因为没有反射机制,所以如何注册测试用例就成了一件需要各显神通的事情。从我的经验来看,无论是Google的GTest还是微软的LTM,都是通过宏来解决问题。但是对于Ruby之流的动态语言,这种事情太小菜一叠了。请看以下代码例子: 1 class Test 2 def test_001 3 puts 'test_001' 4 end 5 6 def test_002 7 puts 'test_002' 8 end 9 end10 11 t = Test.new12 test_method... 阅读全文
posted @ 2013-10-11 15:03 移山测试工作室黑灯老师 阅读(485) 评论(0) 推荐(0) 编辑
摘要: http://oj.leetcode.com/problems/longest-substring-without-repeating-characters/Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For & 阅读全文
posted @ 2013-10-11 15:01 移山测试工作室黑灯老师 阅读(278) 评论(0) 推荐(0) 编辑
摘要: http://oj.leetcode.com/problems/median-of-two-sorted-arrays/There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).思路:对一维数组的二分查找进行扩展(findKthNumber函数的实现)。先分别定位在A,B的中点。现在分两种情况:(mid = middle)A,B前 阅读全文
posted @ 2013-10-11 14:46 移山测试工作室黑灯老师 阅读(723) 评论(2) 推荐(0) 编辑
摘要: http://oj.leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your return 阅读全文
posted @ 2013-10-11 14:31 移山测试工作室黑灯老师 阅读(747) 评论(0) 推荐(0) 编辑
摘要: Conversation with a Test Engineer by Alan FaulnerAlan Faulner谷歌的一名测试工程师,他工作在DoubleClick Bid Manager项目,该项目允许广告公司和广告客户对多个广告进行议价。你是一个测试工程师(Test Engineer - TE)还是测试软件工程师(Software Engineer in Test - SET)?你认为这两者有差别吗?就目前而言我是一个测试工程师,但是这两个角色是很相似的。作为一个测试工程师,你更关注产品的总体质量和发布速度,而作为一个测试软件工程师,你可能更关注测试框架,自动化以及为了可测试性的 阅读全文
posted @ 2013-10-11 14:04 移山测试工作室黑灯老师 阅读(914) 评论(0) 推荐(0) 编辑
count website visits
Buy Computers