目前日期文章:200907 (22)

瀏覽方式: 標題列表 簡短摘要

 對於 VSTS 的測試功能一直使用還算順利, 但前一陣子遇到將 Web Server 移到另一台 Server上,

發現 VSTT 將 Web Server 參數化的功能, 只有在單一個 Web Test, 不是整個專案的範圍,

最快的決解決方法:

1. 用尋找及取代的方法, 把 Web Server 替換掉, 但有可能會改錯

2. 把所有的 測試都錄在同一個 Web Test 中, 這也是不太可能, 那測試案例要如何管理.

 

所以, 筆者還是花了一些時間, 寫了一個 Web Test Plug-In

讓使用這個 Plug-In 的 Web Test 都可以動態讀入 Web Server 的位置, 只要修改一個設定檔即可

詳細內容如下:

1. 加入一個 XML 檔做為設定檔, Settings.xml

<?xml version="1.0" encoding="utf-8"?>
<WebTestSettings>
  <WebServerURL>http://tw-anISV</WebServerURL>
</WebTestSettings>

 

2. 讀取 Settings.xml 中設定值, 這裡只以讀取 Web Server 為例, 可以再自行加入其它的值

WebTestSettings.cs

using System;
using System.IO;
using System.Xml.Serialization;

namespace WebTestPlugins
{
[Serializable]
public class WebTestSettings
{
private string webServerURL;

public string WebServerURL
{
get { return webServerURL; }
set { webServerURL = value; }
}

internal void ReadConfig(string ConfigFilePath)
{
using (StreamReader reader = new StreamReader(ConfigFilePath))
{
XmlSerializer serializer = new XmlSerializer(typeof(WebTestSettings));
WebTestSettings readSettings = (WebTestSettings)serializer.Deserialize(reader);

if (string.IsNullOrEmpty(readSettings.WebServerURL))
{
//This is a default value.
this.webServerURL = "http://localhost";
}
else
{
this.webServerURL = readSettings.WebServerURL;
}
}
}
}
}


3. 在 Web Test Plug-In 中讀入設值 

 

WebServerPlugIn.cs

using System;
using Microsoft.VisualStudio.TestTools.WebTesting;

namespace WebTestPlugins
{
public class WebServerPlugIn: WebTestPlugin
{
public override void PostWebTest(object sender, PostWebTestEventArgs e)
{

}

private WebTestSettings settings = new WebTestSettings();
private const string settingsFile = "Settings.xml";

public override void PreWebTest(object sender, PreWebTestEventArgs e)
{
settings.ReadConfig(settingsFile);

if (e.WebTest.Context.ContainsKey("WebServer1"))
{
e.WebTest.Context["WebServer1"] = settings.WebServerURL;
}
else
{
e.WebTest.Context.Add("WebServer1", settings.WebServerURL);
}
}
}
}


這個範例是使用 VS 2005 的環境寫的, 基本上可以適用於 VS 2008 and VS 2010.

Enjoy.

anISV 發表在 痞客邦 PIXNET 留言(1) 人氣()

邀你一起閱讀陳映真作品 - 山路:

http://www.trend.org/event/2009masterevent/0713/0713onlinebook.html

anISV 發表在 痞客邦 PIXNET 留言(1) 人氣()

The Bing API Software Development Kit provides:

  • A Compiled HTML Help file that documents core concepts, available protocols and SourceTypes, and reference infomation necessary for developing applications with the Bing API.
  • 65 code samples covering each of three protocols (JSON, XML, and SOAP) for each SourceType in multiple languages (JavaScript for JSON, Visual Basic and C# for XML and SOAP).

 

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=0f513086-078b-47a8-a889-842dc93a69ab

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

Windows Azure Tools for Microsoft Visual Studio extend Visual Studio 2008 and Visual Studio 2010 Beta 1 to enable the creation, building, debugging, running and packaging of scalable web applications and services on Windows Azure.

Please note that this is a CTP release and should not be used on production systems. Please see the EULA for more details.

New for the July 2009 CTP:

  • Support for developing and deploying services containing multiple web and worker roles. A service may contain zero or more web roles and zero or more worker roles with a minimum of one role of either type.
  • New project creation dialog that supports creating Cloud Services with multiple web and worker roles.
  • Ability to associate any ASP.NET Web Application project in a Cloud Service solution as a Web Role
  • Support for building Cloud Services from TFS Build
  • Enhanced robustness and stability

Windows Azure Tools for Microsoft Visual Studio includes:
  • C# and VB Project Templates for creating a Cloud Service solution
  • Tools to change the Service Role configuration
  • Integrated local development via the Development Fabric and Development Storage services
  • Debugging Cloud Service Roles running in the Development Fabric
  • Building and packaging of Cloud Service Packages
  • Browsing to the Azure Services Developer Portal
  • SSL Certificate selection

 

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=8d75d4f7-77a4-4adf-bce8-1b10608574bb

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

The Windows Azure platform is an internet-scale cloud computing services platform hosted in Microsoft data centers. The Windows Azure platform, which provides a range of functionality to build applications that span from consumer Web to enterprise scenarios, includes a cloud services operating system and a set of developer services. Windows Azure, Microsoft SQL Azure and Microsoft .NET Services are the key components of the Windows Azure platform. Windows Azure provides developers on-demand compute and storage capabilities to host, scale, and manage web applications on the internet through Microsoft data centers.

Windows Azure is elastic, flexible, and interoperable. With Windows Azure developers can achieve high levels of service availability and application interoperability while maintaining freedom of choice.

The Windows Azure SDK provides developers with the tools and APIs needed to develop, deploy, and manage scalable services in Windows Azure.

New in the July 2009 CTP

  • The Windows Azure SDK now supports developing and deploying services containing multiple web and worker roles.
  • The new PowershellRole sample hosts the Powershell runtime within a Windows Azure role

 

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=aa40f3e2-afc5-484d-b4e9-6a5227e73590

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

八月中後才可以下載.

詳細資訊:

Windows 7 Has Been Released to Manufacturing

http://windowsteamblog.com/blogs/windows7/archive/2009/07/22/windows-7-has-been-released-to-manufacturing.aspx

Windows Server 2008 R2 Reaches the RTM Milestone!

http://blogs.technet.com/windowsserver/archive/2009/07/22/windows-server-2008-r2-rtm.aspx

Enjoy.

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

在軟體中,「煙霧測試」(Smoke Testing) 是指在將變更簽入至產品的原始碼之前,驗證程式碼變更的程序。在檢閱過程式碼之後,用煙霧測試來確認程式碼函式中的變更是否與預期相同,而且不會使整個組建不穩定。

 

由於煙霧測試著重於已變更的程式碼,因此,您必須與撰寫程式碼的開發人員一起合作。您必須瞭解下列事項:

  •     程式碼中的變更:若要瞭解其中的變更,您也必須瞭解所使用的技術,開發人員可以協助您瞭解這點
  •     變更對功能的影響
  •     變更對不同元件之相互依存性的影響

 

在煙霧測試之前進行程式碼檢閱

執行煙霧測試之前,請進行著重於程式碼任何變更的程式碼檢閱。程式碼檢閱是用來驗證程式碼品質,並且確保不會出現程式碼缺失以及任務錯誤的最有效方法。煙霧測試可確保由程式碼檢閱或風險評估所識別出的主要重大或具有弱點的區域,都能首先進行驗證,因為如果這項驗證失敗了,那麼測試也就無法繼續執行。

 

Web 測試和負載測試

建置 Web 測試和負載測試時,建議在執行任何長時間且負載過重的測試之前,先執行煙霧測試。在 Web 測試和負載測試中,煙霧測試屬於簡短、負載較輕的測試。在針對測試進行效能或壓力測試 (Stress Testing) 之前,請使用煙霧測試,驗證每個設定都已正確地設定,並且如預期般正常運作。

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

微軟於  7/14 公佈了 Windows Azure 的收費方式

Windows Azure 的收費方式 - 每一小時 $0.12 美元, 每天為 2.88 美元, 每個月為 86.4 美元, 每年為 1036.8 美元(這是還沒有任何折扣的價格)

目前Azure平台處於社群技術預覽版(CTP)階段,可免費提供服務,但微軟預計趁今年11月舉行的專業開發人員會議上宣布展開收費。

Windows Azure:

· Compute = $0.12 / hour

· Storage = $0.15 / GB stored / month

· Storage Transactions = $0.01 / 10K

· Bandwidth = $0.10 in / $0.15 out / GB

SQL Azure:

· Web Edition – Up to 1 GB relational database = $9.99 / month

· Business Edition – Up to 10 GB relational database = $99.99 / month

· Bandwidth = $0.10 in / $0.15 out / GB

.Net Services:

· Messages = $0.15/100K message operations , including Service Bus messages and Access Control tokens

· Bandwidth = $0.10 in / $0.15 out / GB

詳細說明可以參考:

http://www.microsoft.com/azure/pricing.mspx

Enjoy.

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

這個問題也是筆者一直以來的一個疑問,現在找到解決的方法囉:

原文網址:

http://blogs.technet.com/csstwplatform/archive/2009/07/16/moss-server-rms-server-5092-5145.aspx

問題:在MOSS Server上,在使用資訊版權管理設定時,使用SCP或是直接指向RMS Server正確位置都失敗,無法完成設定。另外在MOSS Server上,會看到5092或是5145的錯誤。

image

1. Stop the Windows SharePoint Services 3.0 Web application by running the following command at the command prompt.

iisreset /stop

2. On the Windows SharePoint Services 3.0 front-end Web server, navigate to the %allusersprofile%\Application Data\Microsoft\DRM\Server\ folder

3. Delete all folders named after the Windows SharePoint Services 3.0 application pool identity account. The application pool identity is the user account that Windows SharePoint Services 3.0 is running under.

4. Restart the Windows SharePoint Services 3.0 process by running the following command at the command prompt.

iisreset /start

參考資料

Event ID 5092 (Windows SharePoint Services health model)

http://technet.microsoft.com/en-us/library/cc561103.aspx

Event ID 5145 (Windows SharePoint Services health model)

http://technet.microsoft.com/en-us/library/cc560972.aspx

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

因為筆者之前常把 XP 及 Vista 用來做 Web 應用程式的開發及測試,所以都會手動修改這些設定。

在 Vista SP2 中已直接幫我們解除這個限制囉。

下列連結有絴細的說明:

http://blogs.technet.com/csstwplatform/archive/2009/07/16/windows-vista-sp2-10-half-open-active-connections.aspx

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

只要在 Linux 的 作業系統上安裝 mono 後,即可在 Linux 的 Web Server 上執行 ASPX 的網頁

經過兩個晚上的測試,試了一些不同的方法,終於可以成功的執行 ASPX 囉

image

筆者主要是參考:http://mingstert.blogspot.com/2008/12/mono-2x-on-centos-5.html

然後做了些小調整,把 mono 的原始檔下載下來並重新 compiler

Enjoy.

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

 

Ctrl + Alt + F1 ~ F6  => Virtual consoles 間的切換(virtual console 為指令的模式)

Ctrl + Alt + F7 => 切換到 graphical console

init 6 => 重新開機

init 0 => 關機

startx => 啟動 X server

adduser Jacky => 新增使用者

useradd Jacky => 新增使用者

passwd => 改變密碼

gedit => 簡易的文字編輯器

cat filename => 印出目前檔案的內容

man 指令 => 查詢指令的用法

date => 顯示目前的日期與時間

touch test.txt => 建立一個檔案

rm => 刪除檔案

ls –al => 列出檔案及資料夾

pwd => current working directory 目前的工作目錄

cd – => 回到前一個工作目錄

cp –a => 複製檔案及目錄

mv => 移動檔案及目錄

mkdir => 建立目錄

rmdir => 刪除目錄

chown Jacky test.txt => 將 test.txt 檔案的 owner 改為 Jacky

chgrp Jacky test.txt => 將 test.txt 檔案的 group 改為 Jacky

Enjoy.

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

筆者對於 Linux 作業系統真的是非常的給它不熟,連啟動 Web Server 都需要再查說明文件。

找到啟動的指令為: /sbin/service httpd start

再新增一個 html 檔案並給與權限,終於可以在瀏覽器中看到網頁的資訊了。

image

Enjoy.

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

有圖有真相:

image

Enjoy.

anISV 發表在 痞客邦 PIXNET 留言(1) 人氣()

今天外出重新學習 Red Hat Enterprise,先把重要文件的位置記錄起來,以免日後忘記了

 

今天的講師也再三的強烈建議大家:不用急著買書,一定要下載這些文件來看。

 

網址:

http://www.redhat.com/docs/

 

image

 

選擇『繁體中文』的語言

image

 

就可以看到繁體中文的文件囉

image

 

http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/zh-TW/index.html

 

Enjoy.

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

This SDK includes API libraries, tools, samples, and documentation for building connected applications with the .NET platform. It spans the entire spectrum of today’s Internet applications – from rich connected applications with advanced connectivity requirements to Web-style applications that use simple protocols such as HTTP and Atom to communicate with the broadest possible range of clients.

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=38d8cf79-fc39-4aef-b3fd-ef280f2e9fa6

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

Defines extensions to DirectX® Video Acceleration (DXVA) to support decoding of H.264/AVC video.

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=3d1c290b-310b-4ea2-bf76-714063a6d7a6

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

The Microsoft® Silverlight™ 3 Software Development Kit provides libraries and tools for developing Silverlight applications.

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=2050e580-f1d5-4040-bb09-e6185591b6b5

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

Add-on for Visual Studio 2008 SP1 for developing Silverlight 3 applications

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=9442b0f2-7465-417a-88f3-5e7b5409e9dd

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

We are pleased to present a technology preview of Deep Zoom Composer, a tool to allow the preparation of images for use with the Deep Zoom feature currently being previewed in Silverlight 3. The new Deep Zoom technology in Silverlight allows users to see images on the Web like they never have before. The smooth in-place zooming and panning that Deep Zoom allows is a true advancement and raises the bar on what image viewing should be. High resolution images need to be prepared for use with Deep Zoom and this tool allows the user to create Deep Zoom composition files that control the zooming experience and then export all the necessary files for deployment with Silverlight 3.

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=457b17b7-52bf-4bda-87a3-fa8a4673f8bf

anISV 發表在 痞客邦 PIXNET 留言(0) 人氣()

1 2