昭昭47天【2010.2.22,打针,游泳,听力筛查】

February 22nd, 2010

这半个月下来,昭昭有了明显的变化,开始有更多的表情,也会尝试用声音来发出指令了。也开始有些粘人呢,总想要人抱着,不然就歇斯底里地叫唤,吃饱了也不容易入睡,嗯叽嗯叽的。

2月10日,全家带着昭昭去社区卫生站打第二针乙肝疫苗。忘了最初医生关照是几点开始打针了,去时十点都过了,后来才知道是周二到周四的上午8-11点是打针时间,到时看见很多比昭昭大的孩子,但多很不情愿打针,有的被妈妈抱着时神采奕奕,大夫碰了一下就吱哇乱叫嚎啕大哭。

我很担心昭昭打针时的表现,结果小家伙一直沉睡,即使周围的小孩子此起彼伏的哭声在耳也丝毫不为所动。终于轮到昭昭了,在把嫩嫩的小胳膊抽出来准备扎针时,我不停地嘱咐他,别怕打个针就好,很快就回家,结果小家伙在针头扎进去嚷嚷了两声后就没哭了,哄哄就好。接着是郝医生给体检,小家伙基本上一直还是在睡。体重5.2公斤,身长58cm(印象中)。

因为家里有浴缸,就没给昭昭买婴儿游泳池,终于在2月17号戴上游泳圈下水了,姥姥和姥爷都很担心感冒,他们不理解为什么小孩子一定需要游泳,但好在我和昭昭妈都坚持稍微游一下。昭昭下水没有怕水的表现,甚至有点很自得的样子,唯一尴尬的是,妈妈把水放少了,昭昭都可以触底了,妈妈一脱手,昭昭自己都能在浴缸里转圈,用自己的小腿扑腾扑腾。

今天终于带着昭昭和昭昭妈一起去医院做42天检查,昭昭主要是做出院时没来得及做的听力筛查。小家伙仍然以睡觉为主,不管医院的环境有多嘈杂,睡着的状态对做听力筛查是必需的。这次是一次性通过,很顺利。然后就是很久才等妈妈检查完毕。今天穿多了,回家的路上就开始热得不安生,哭闹不听,妈妈和姥爷都哄不好,最后还是晕车中的姥姥安抚了他。回到家,一切照旧,情绪好得很,该吃吃该喝喝。

照片293

admin , 随笔

51 Elliot: Selenium IDE Flow Control – Goto and While Loops

February 21st, 2010

51 Elliot: Selenium IDE Flow Control – Goto and While Loops.

This exension provides goto, gotoIf and while loop functionality in Selenium IDE. Selenium IDE is a plugin for Firefox that automates the testing of web-based applications. There is an excellent flow-controll extension for the Selenium Server and TestRunner components, but it does not work with Selenium IDE (the Firefox plugin) directly. This makes it difficult to develop controlled test cases within Selenium IDE, and there are times when the frame-based TestRunner cannot be used (such as when the website under test employs a frame-buster script).

I’ve ported the existing control-flow extension to work in the Selenium IDE Firefox add-on. The image below shows a sample test case using goto, gotoIf and a while loop, all running successfully in Selenium IDE.


The file linked at the end of this post should be saved as “goto_sel_ide.js” to your hard drive. Then the Options settings in Selenium IDE should set the Selenium Core extensions to include the path of this file, similar to the image below.


Link:

Download goto_sel_ide.js here

Copy & Paste the contents into a new file and save it as “goto_sel_ide.js” in a location such as C:\Documents and Settings\goto_sel_ide.js and configure the Selenium Options tab as shown.  NOTE: please copy and paste the text rather than downloading the file – some people have had formatting issues that prevented the dowloaded file from working. So COPY & PASTE and you should be fine.

Update 26 February, 2006:
This mod of the FlowControl extension works only with the Selenium IDE Firefox add-on. If you want to use the TestRunner component or Selenium RC, please use the original FlowControl extension.

admin Tech

So you want to become an automated tester

February 16th, 2010

Geeks-R-Us: So you want to become an automated tester.

都来做自动化测试开发吧,这是给经验较少的手工测试工程师来看的。

admin Tech, 职场 ,

InfoQ: JSON作者、Yahoo!资深架构师Douglas确认QCon北京2010演讲题目

February 10th, 2010

InfoQ: JSON作者、Yahoo!资深架构师Douglas确认QCon北京2010演讲题目.

这是即将在今年4月23-25日知春路京仪大酒店举行的QCon 2010技术大会中,Browser as a Platform(简称BaaP)主题中会带来分享题目的诸位讲师。这会是此界QCon中非常有亮点的主题,在前端工作日显重要的今天。

————————–

对下届QCon的一点想法:移动开发,尤其是在企业级中的应用,应该会是一个很好的主题。

admin Tech, 随笔

InfoQ: 让测试也敏捷起来

February 10th, 2010

InfoQ: 让测试也敏捷起来.

我觉得段念讲解的内容是有一定参照价值的。只是敏捷测试的理念,是需要公司文化和工作氛围来共同推动的,自下而上的促进难度可想而知。仅仅从测试工程师的角度来做,任重而道远。

一些要点:

1、敏捷测试是以自动化测试(单元测试、验收测试)、持续集成为前提的,脱离这个,还依赖大量的手工测试,基本属于白扯。

2、开发和测试角色和责任不再那么明确划分甚至对立,测试不再仅仅满足于发现缺陷,而是共同提高产品质量,甚至促进软件开发过程改进。

3、开发负责大量的测试工作(单元测试),这很重要,这才可以从一定程度上提高质量,解放测试,让测试更有精力投放在明确客户需求、探索性测试等工作上面。

admin 工作日记, 随笔

[ZZ]IBM高绩效的薪酬文化

February 8th, 2010

IBM高绩效的薪酬文化_IT客_新浪博客.

这个IT客真是IBM通啊,发表的内容基本全是IBM相关的。这篇里面,IBM知道的,不知道的,体验没体验过的,他都知道。

admin 职场

dojo.data.util.simpleFetch

February 8th, 2010

dojo.data.util.simpleFetch.fetch = function(/* Object? */ request){ …… }

这是simpleFetch在dojo site上的文档,格式很糟,http://api.dojotoolkit.org/jsdoc/1.3.2/dojo.data.util.simpleFetch,我分了段贴在这里。

The simpleFetch mixin is designed to serve as a set of function(s) that can be mixed into other datastore implementations to accelerate their development.

The simpleFetch mixin should work well for any datastore that can respond to a _fetchItems() call by returning an array of all the found items that matched the query.

The simpleFetch mixin is not designed to work for datastores that respond to a fetch() call by incrementally loading items, or sequentially loading partial batches of the result set.

For datastores that mixin simpleFetch, simpleFetch implements a fetch method that automatically handles eight of the fetch() arguments — onBegin, onItem, onComplete, onError, start, count, sort and scope.

The class mixing in simpleFetch should not implement fetch(), but should instead implement a _fetchItems() method.

The _fetchItems() method takes three arguments, the keywordArgs object that was passed   to fetch(), a callback function to be called when the result array is available, and an error callback to be called if something goes wrong.

The _fetchItems() method should ignore any keywordArgs parameters for start, count, onBegin, onItem, onComplete, onError, sort, and scope.

The _fetchItems() method needs to correctly handle any other keywordArgs parameters, including the query parameter and any optional parameters (such as includeChildren).

The _fetchItems() method should create an array of result items and pass it to the fetchHandler along with the original request object — or, the _fetchItems() method may, if it wants to, create an new request object with other specifics about the request that are specific to the datastore and pass that as the request object to the handler.

For more information on this specific function, see dojo.data.api.Read.fetch()

dojo.data是个很强大的功能,提供了统一的数据处理接口,以及可用于对8个handler调用的机会:onItem, onBegin, onComplete, onError等等。开发者需要做的就是,自己实现_fetchItems()并在其中调用simpleFetch.fetch中定义的两个handler。在实际使用时,开发者需要调用的仍然是datastore的fetch方法。

admin Tech