- Fusion簡介: http://en.wikipedia.org/wiki/.NET_assembly#Fusion
- 安裝與刪除Assembly到GAC: http://blogs.msdn.com/junfeng/archive/2005/10/24/484063.aspx
- Fusion uses the DEVPATH environment variable to search for assemblies in every path that is specified in the DEVPATH environment variable.
星期日, 2月 18, 2007
Fusion
星期一, 2月 12, 2007
星期日, 2月 11, 2007
JavaScript的Memory Leak
據說IE中javascript使用reference count來處理物件的生命週期,當有循環參照時就會發生物件死不了的狀況,因而產生memory leak。關於此問題,有以下相關討論:
- http://isaacschlueter.com/2006/10/msie-memory-leaks/
- 據說Yahoo! User Interface Library採用輪詢(polling)的方式來偵測http request物件的readystate,避免因為指定function給onreadystate而造成循環參照。
- http://keelypavan.blogspot.com/2006/03/reusing-xmlhttprequest-object-in-ie.html
- 另一種可能是重複使用同一個物件。不過這種方法似乎用在IE的http request物件上會有一些問題,上述page有提供解決方案:
req_fail_IE.open("GET", url, true);
req_fail_IE.onreadystatechange = processReqChange_fail_IE; //open後再設handler
req_fail_IE.send("");
星期六, 2月 10, 2007
AJAX除錯
JavaScript logger
- JSLog: http://earthcode.com/blog/tools/contents.html
- 整個site取消log:
在jslog.js中找到config_enabled,將之設定成false - 單頁啟用logger:
在該頁的url中加入「&enablejslog」如 http://localhost/mypage.do?foo=bar&enablejslog - log4javascript: http://www.timdown.co.uk/log4javascript
如果要將log資訊回傳伺服器,可以考慮使用log4javascript
瀏覽器端除錯工具
- DebugBar: http://www.debugbar.com/
可用來在IE上檢視dom資訊
星期一, 1月 01, 2007
軟體測試工具
自動化使用者介面測試工具
- 商業軟體: Mercury, Rational
- 開放軟體:
- Abbot: 測試Java使用者介面
- jfcUnit
- HttpUnit: 測試Web使用者介面
- Selenium: ThoughtWorks的作品,用來錄製與測試web使用者介面
Dan Bunea的介紹: http://danbunea.blogspot.com/2007/01/test-first-web-applications-tdding.html - WatiN:
http://blogs.clearscreen.com/dtax/archive/2007/01/07.aspx
自動化Acceptance Test工具
- Fit: 讓客戶能夠以Word之類的表格來撰寫測試範例,同時又能夠讓開發者的程式自動測試這些範例
軟體測試的分類
從測試內容與實作細節有沒有關係來做區分:
- White-Box Test: 測試內容只與軟體介面有關
- Black-Box Test: 測試內容除了與軟體介面有關之外,還與特定實作有關
從測試的層級來區分(單一開發者-->多開發者-->專案-->客戶)
- Unit Test: 測試單一元件
- Integration Test: 測試多個元件
- System Test: 測試整個系統
- Acceptance Test: 測試客戶需求
- Alpha Test: 公司內部模擬客戶來測試需求
- Beta Test: 由實際客戶來進行測試
從目的來定義
- Regression Test:
根據Wikipedia: - 任何用來發掘regression bugs的測試都叫做regression test
(Regression testing is any type of software testing which seeks to uncover regression bugs) - 當原先正常功能後來被改壞掉時,我們稱之產生了一個regression bug
(Regression bugs occur whenever software functionality that previously worked as desired stops working or no longer works in the same way that was previously planned)
訂閱:
文章 (Atom)