登入 MSDN 訂閱,選擇 Operating System => Windows 7

image

Enjoy.

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

 對於 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 發表在 痞客邦 留言(1) 人氣()

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

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

anISV 發表在 痞客邦 留言(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 發表在 痞客邦 留言(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 發表在 痞客邦 留言(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 發表在 痞客邦 留言(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 發表在 痞客邦 留言(0) 人氣()

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

 

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

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

 

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

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

 

Web 測試和負載測試

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

anISV 發表在 痞客邦 留言(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 發表在 痞客邦 留言(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 發表在 痞客邦 留言(0) 人氣()