DCSIMG
June 2011 - Posts - Eran Ruso
Sign in | Join | Help

June 2011 - Posts

יצא Patch חדש ל–Visual Studio 2010 SP1 עבור כלי הבדיקות

פורסם בתאריך Jun 27 2011, 02:05 PM על ידי Eran Ruso

יצא Patch חדש ל–Visual Studio 2010 SP1 עבור כלי הבדיקות

לפני מספר ימים הוכרז על Patch חדש ל – Visual Studio 2010 SP1.

ה – Patch מכיל תיקוני באגים בעיקר עבור כלי הבדיקות, רשימה מלאה של התיקונים נמצאת בסוף הפוסט.

ניתן להוריד את ה – Patch מהלינק:

http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=36847

יש להתקין Visual Studio 2010 SP1 לפני התקנת ה – Patch.

צירפתי את תיאור הבעיות אותן פותר ה – Patch מאתר ההורדה:

An update rollup is available that resolves the following issues for the testing tools in Microsoft Visual Studio 2010 Service Pack 1 (SP1).

Issue 1
When you run tests on the test agent that is installed on a computer that has Visual Studio 2010 SP1 installed, the tests may not run, and the following error message is logged:

Attempted to access an unloaded AppDomain. (Exception from HRESULT: 0x80131014)

Issue 2
When you run a playback of a Coded UI Test on certain Windows Presentation Foundation (WPF) controls, a Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException exception occurs, and then you receive the following error message:

"Search may have failed at '<name>' <control type> as it may have virtualized children. If the control being searched is descendant of '<name>' <control type> then including it as the parent container may solve the problem."

Notes

  • One of the causes of this error message is that the WPF controls are deep in the UI control hierarchy. Therefore, the control cannot be addressed in the recorded QuerID UI control hierarchy in the UI map. After you install this update, the control can be addressed.
  • After you install this update, the following key is added to CodedUITestBuilder.exe.config/MTM.exe.config files to resolve this issue:

    <add key="MaxLevelsForItemContainer" value="<desiredLevel>"/>

  • UI Test Framework searches the UI Hierarchy until <desiredLevel> to identify a parent container. By default, <desiredLevel> is set to 2. Set the value to an appropriate value for your situation.
  • If a high value is set, performance may be affected when a recording operation occurs.
Issue 3
When you try to create a work item from the Test Results pane in Visual Studio 2010 after you connect to a Team Foundation Server (TFS) server, a System.OutOfMemory exception occurs, and the creation operation fails. This issue usually occurs if the TFS server has many builds.
Issue 4
When some tests run in a build operation, some builds that are queued in a TFS server stop responding. Additionally, the following error message is logged in the build log:

Waiting to publish...
Publishing results of test run <build name> to http://<TFS server address>:8080/tfs/DefaultCollection...
The process cannot access the file '<directory>\data.coverage' because it is being used by another process.
Publish failed or canceled.

Note This issue occurs because the Mstest.exe process crashes. When a non-test thread encounters a nonfatal exception that is unhandled or an assertion failure, the Mstest.exe process crashes if code-coverage collector is enabled for the test run.
This issue may occur when tests run in an MSBuild script. MSBuild scripts skip the test run step.

איך לייצא דיאגרמות של ה – Visual Studio 2010 Architect כ – Image להפצה

פורסם בתאריך Jun 17 2011, 03:08 PM על ידי Eran Ruso

איך לייצא דיאגרמות של ה – Visual Studio 2010 Architect כ – Image להפצה

נשאלתי את השאלה הזאת כבר מספר פעמים, אז הינה התשובה המסודרת.

ישנם שני דרכים לעשות את זה:

דרך 1: Copy ו – Paste

פשוט לסמן את כל האייטמים בדיאגרמה, לעשות Copy ו – Paste למסמך ה – Word לדוגמא.

צעד 1: לחץ על File

צעד 2: לחץ על Print

Step_2_Print

צעד 3: לחץ OK

שים לב לבחירת המדפסת: Microsoft XPS Document Writer

Step_3_print_window

צעד 4: בחר שם לקובץ ושמור

Step_4_save

התוצאה היא קובץ xps עם הדיאגרמה

Step_5_Presentation

תיהנו!!!

בואו נדבר קצת על אוטומציה – מאמר בניוזגייק (Newsgeek)

פורסם בתאריך Jun 13 2011, 11:26 PM על ידי Eran Ruso

היום פורסם מאמר שהיתי שותף לכתיבתו, לדעתי המאמר מסכם בצורה טובה את הצורך באוטומציה ולמה זה טוב לנו.

אשמח לקבל את תגובתכם על המאמר…

http://www.newsgeek.co.il/e4d-expert-days-test-automation/

תהנו!!!

איך נעשה דוקומנטציה למקרי הבדיקה ולתוצאות ההרצה? Test Scribe

פורסם בתאריך Jun 12 2011, 10:03 PM על ידי Eran Ruso

איך נעשה דוקומנטציה למקרי הבדיקה ולתוצאות ההרצה? Test Scribe

נתחיל בלומר שה – Test Scribe הוא כלי חינמי אותו ניתן להוריד מהלינק הבא:

http://visualstudiogallery.msdn.microsoft.com/e79e4a0f-f670-47c2-9b8a-3b6f664bf4ae

ה – Test Scribe יכול לייצר לנו מסמכים מיתוך Test Plan ומיתוך תוצאות הרצה.

בפוסט הזה אני יראה איך יוצרים מסמך  Software Test Description ומסמך Software Test Results

איך יוצרים STD?

צעד 1: הפעל את ה - MTM

Step_1_Launch_MTM

צעד 2: לאחר התקנת ה – Test Scribe יופיע טאב נוסף הניקרא Tools עבור לטאב זה.

Step_2_Choose_Tools

צעד 3: בחר “Test Plan Summary”

צעד 4: בחר תוכנית בדיקות, בדוגמא זו בחרתי את תוכנית הבדיקות שניקראת “Iteration 2”

Step_3_Test_Plan

צעד 5: לחץ על Generate

Step_4_Generate

ה – Test Scribe בשלב זה ייצור את המסמך

Step_5_Generate

התוצאה: מסמך STD מבוסס תוכנית בדיקות.

Step_6_Result_1

שימו לב כי מספר הבדיקה הינו Hyperlink הפותח את הבדיקה ב – MTM.

Step_7_Result_2

איך ניצור STR?

אני מדלג לשלב שבו בוחרים ב – Test Scribe את ה – “Test Run Summary”

בשלב זה נבחר את ה – Test Runs אותם נירצה לייצא למסמך, שים לב שניתן לבחור יותר מ – Test Run אחד.

Step_8_Test_Run

התוצאה: מסמך STR המכיל גם תצורה גראפית של התוצאות וגם פירוט, במידה ןישנם באגים גם הם יופיעו במסמך.

Step_10_Results_1

Step_11_Results_2

כפי שניתן לראות ה – Test Scribe עונה על צרכי הדוקומנטציה של מרבית החברות כאשר מדובר על STD או STR.

תיהנו!!!