tag:blogger.com,1999:blog-80151188314650508002024-03-05T05:09:20.302-08:00IT DON'T WORKI started this blog to keep notes and reminders about Visual Studio Team System.Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.comBlogger102125tag:blogger.com,1999:blog-8015118831465050800.post-86379956638252219052017-04-18T08:24:00.001-07:002017-04-18T08:24:23.300-07:00Web Performance and Load Test - the Web Test Recorder plugin loads but controls are grayed out in Windows 10 with IE 11<div class="MsoNormal">
<span style="color: #1f497d;">I had an issue with IE 11 where the </span><span style="color: #1f497d;">Web Test Recorder was loading but all controls were grayed out.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg44a6e3NgqIvP80RjV-u7RE856LJcmVBkrws268nXbmFa6p3TVDQEKZCAxaAE5LPBWyze73YTa2Ny0YtUajBKn5WtYynR3pe7OGphCOr_ZbVtbgVpTqKyohjZ9Qk1LKMzc6k5gxdh_wbI/s1600/WebTestRecorder.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg44a6e3NgqIvP80RjV-u7RE856LJcmVBkrws268nXbmFa6p3TVDQEKZCAxaAE5LPBWyze73YTa2Ny0YtUajBKn5WtYynR3pe7OGphCOr_ZbVtbgVpTqKyohjZ9Qk1LKMzc6k5gxdh_wbI/s1600/WebTestRecorder.JPG" /></a></div>
<div class="MsoNormal">
<span style="color: #1f497d;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d;">I verified the “Web
Test Recorder 14.0” and “Microsoft Web Test Recorder 14.0 Helper” add-ons were enabled in IE.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d;">Then reset and restarted IE under (Tools> Internet
Options> Advanced>Reset). After that all IE add-ons were then
disabled. I re-enabled the Web Test Recorder add-ons when prompted. <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"><br /></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;">That resolved the issue with the controls being grayed out, but then I was g</span><span style="color: #1f497d;">etting a missing DLL
exception clicking Pause or Stop during the recording: "System.DllNotFoundException:
Unable to load DLL 'Microsoft.VisualStudio.QualityTools.RecorderBarBHO100.x64.dll':
The specified module could not be found. (Exception from HRESULT:
0x8007007E)"</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d;"><a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fblogs.microsoft.co.il%2Fshair%2F2010%2F11%2F18%2Fhow-to-quotunable-to-load-dll-microsoftvisualstudioqualitytoolsrecorderbarbho100dll-the-specified-module-could-not-be-foundquot%2F&data=02%7C01%7CPrachi.Bora%40microsoft.com%7C73284406c07d4671c53008d480d2a769%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636275089664956157&sdata=n%2Be09UA5U03%2FDguyw%2BPBW6kVzMpljUp5PfxnfH02wDM%3D&reserved=0">This
site</a> said to copy the DLL to the IE folder to resolve the missing DLL
exception.<o:p></o:p></span></div>
<span style="color: #1f497d; font-family: "Calibri",sans-serif; font-size: 11.0pt;">Copy
<b>Microsoft.VisualStudio.QualityTools.RecorderBarBHO100.dll</b> (For older
versions RecorderBarBHO<b>90</b>.dll etc) l</span><span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;">ocated
under C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\PrivateAssemblies</span><br />
<br />
<span style="color: #1f497d; font-family: "Calibri",sans-serif; font-size: 11.0pt;">To
– <b>C:\Program Files\Internet Explorer </b>and for 64bit machines also Copy To
– <b>C:\Program Files (x86)\Internet Explorer</b><o:p></o:p></span><br />
<span style="color: #1f497d; font-family: "Calibri",sans-serif; font-size: 11.0pt;"><b><br /></b></span>
<span style="color: #1f497d; font-family: "Calibri",sans-serif; font-size: 11.0pt;">I copied the DLL to the IE folders and the issue is now resolved.</span>Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-72798192614852287682015-04-24T09:39:00.000-07:002015-04-24T09:39:33.051-07:00Execute the TestComplete TestExecute module remotely on a VM using PSExec Using the SysInternals tool <a href="https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx">PSExec.exe</a> to launch TestExecute and run a project on a VM.<br />
<br />
<ol>
<li>Login to VM as normal user</li>
<li>Run PSExec from command line (or batch file) on local machine. I was having trouble with this; needs to be username not in quotes and password in double quotes.</li>
</ol>
C:\SysInternals\PSTools\PsExec.exe \\TESTVM -u domain\user -p "P@$$w0rd" -i \\TESTVM\C$\Users\testaccount\Downloads\TestExecuteRemote.bat<br /><ol>
<li>User launching PSExec.exe is the same user logged in to the VM (without admin rights)</li>
<li>-i option executes interactive</li>
<li>TestExecuteRemote.bat contains command line to call TestExecute that looks like this:</li>
</ol>
<div>
<div>
:: Run TestExecute and export log to c:\LOG\ExportLog.mht</div>
<div>
:: Log file cannot exist or test will fail to run</div>
<div>
:: Test account needs write permission to the project folder (log is also generated under project)</div>
</div>
"\\TESTVM\C$\Program Files (x86)\SmartBear\TestExecute 10\Bin\TestExecute.exe" \\TESTVM\C$\Test\ProjectSuite1\ProjectSuite1.pjs /r /e /DoNotShowLog /ExportLog:\\TESTVM\C$\LOG\ExportLog.mht<br />
<div>
<br /></div>
<div>
PSExec.exe has an option for -l to run as limited user, but the remote batch file failed to run using that option. </div>
<div>
<br /></div>
Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-41183215881202087062015-01-04T13:47:00.002-08:002015-01-04T13:47:27.177-08:00STEP #6: Add Custom Assertion to UIMap1.cs file that verifies properties of an HtmlHyperlink add call to assertion method and code to log messages using TestContext.WriteLine to CodedUITestAmazon.cs<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Expand UIMap1.uitest in solution explorer to see the two files: UIMap1.cs
is where we add the custom code and UIMap1.Designer.cs contains generated code
which is just the definitions of the controls on the page in this case</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5mhBQ-9mxvIhzIay4FRO6J1IOLfAcRUTrnAPKrJ42bf__2SZfizRDxzsAmWIUsiPMSGe1c5BOrlrF-ZBccuQJZyCsyu2hKwh6cJHZs73YJUId8LMfznhsZdWHifmMVqnSFvH1v7_nSIc/s1600/SolutionExplorerExpandUIMap1.uitest.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5mhBQ-9mxvIhzIay4FRO6J1IOLfAcRUTrnAPKrJ42bf__2SZfizRDxzsAmWIUsiPMSGe1c5BOrlrF-ZBccuQJZyCsyu2hKwh6cJHZs73YJUId8LMfznhsZdWHifmMVqnSFvH1v7_nSIc/s1600/SolutionExplorerExpandUIMap1.uitest.JPG" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Double Click UIMap1.cs and UIMap1.Designer.cs to open both files and copy u</span><span style="font-family: Arial, sans-serif; font-size: 10.5pt;">sing directives from UIMap1.Designer.cs to UIMap1.cs</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNTEwK2Guqd5JTD6YF8OHQcIwi_qunqf-DLbBW4ftIj4hUgDaRn3KyFclz2KYdymyR3BA0swH_OsYOWod3N53TH1SvIsqyPchuZ9pX8rcz2FIrWymwVxIxf8_kkDtwtZ9vCSoIQxuKD_c/s1600/UIMap1.Designer.csUsingDirectives.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNTEwK2Guqd5JTD6YF8OHQcIwi_qunqf-DLbBW4ftIj4hUgDaRn3KyFclz2KYdymyR3BA0swH_OsYOWod3N53TH1SvIsqyPchuZ9pX8rcz2FIrWymwVxIxf8_kkDtwtZ9vCSoIQxuKD_c/s1600/UIMap1.Designer.csUsingDirectives.JPG" height="285" width="320" /></a></div>
<span style="font-family: Arial, sans-serif; font-size: 10.5pt;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRNS1XKye4RUc2b3oIQNkZ-F_m3N8Bc6rn6BHO8VktYqOO8JfHYLqC4u63EFh003ul1bCBk4jNV5OfxzH8hHMcZ_Fe0eWt2VDKnusWu8LpEwdXQr_pV-1VsL0EcgJ3E8gNvCbxhN4TEEE/s1600/UIMap1.csUsingDirectives.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRNS1XKye4RUc2b3oIQNkZ-F_m3N8Bc6rn6BHO8VktYqOO8JfHYLqC4u63EFh003ul1bCBk4jNV5OfxzH8hHMcZ_Fe0eWt2VDKnusWu8LpEwdXQr_pV-1VsL0EcgJ3E8gNvCbxhN4TEEE/s1600/UIMap1.csUsingDirectives.JPG" height="137" width="320" /></a></div>
<span style="font-family: Arial, sans-serif; font-size: 10.5pt;"><br /></span>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Add custom Assertion Method to UIMap1.cs that validates properties of an
HTML Hyperlink</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3vg62vxibu9KRx5pR438XtI4TqIDG1zd9Pc4bBbR6p2NugQub4MNAV48v-Z46axm7zmcjzGXDnLvRvSOZolqikqQasmaeL1cJQumEFMYXnlRKbvXUd8ml1gZ2RESydiB4_2KzzDKgeVM/s1600/UIMap1.csAssertionMethod.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3vg62vxibu9KRx5pR438XtI4TqIDG1zd9Pc4bBbR6p2NugQub4MNAV48v-Z46axm7zmcjzGXDnLvRvSOZolqikqQasmaeL1cJQumEFMYXnlRKbvXUd8ml1gZ2RESydiB4_2KzzDKgeVM/s1600/UIMap1.csAssertionMethod.JPG" height="166" width="320" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Add call to Assertion Method to CodedUITestAmazon.cs and log messages
using TestContext.writeline in a new [TestMethod]</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSUVsrC2DQfyrz-MsQ14di9CdQ_HzM8Y5I-7S45oQl0C22U8ZsGPQAeOgxfM3j9pGE6pRkddM2PMj4NL_dTzG8OiTwl7A_yzJ9OX0UE0LrNvJUck2RXzztDbR1i2HNrkGalmKN5hRhSVE/s1600/CodedUITestAmazonCallAssertionMethod.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSUVsrC2DQfyrz-MsQ14di9CdQ_HzM8Y5I-7S45oQl0C22U8ZsGPQAeOgxfM3j9pGE6pRkddM2PMj4NL_dTzG8OiTwl7A_yzJ9OX0UE0LrNvJUck2RXzztDbR1i2HNrkGalmKN5hRhSVE/s1600/CodedUITestAmazonCallAssertionMethod.JPG" height="107" width="320" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Select Build>Build Solution</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZKo2WUPH9AYCZWn9sTaauOveUBCjv-_QZsQSmNdhV45GRwttx5wxA67AptGqLdcMOWS37JiG4fYk2PrqNmPDNi8w4nO-_TvGWPtq0qYxFjqQIVhA7NNthjYIK7txXGBMylQoBn-sAOc8/s1600/BuildSolution.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZKo2WUPH9AYCZWn9sTaauOveUBCjv-_QZsQSmNdhV45GRwttx5wxA67AptGqLdcMOWS37JiG4fYk2PrqNmPDNi8w4nO-_TvGWPtq0qYxFjqQIVhA7NNthjYIK7txXGBMylQoBn-sAOc8/s1600/BuildSolution.JPG" height="148" width="320" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Open Test Explorer under Test>Windows>Test Explorer</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-QME26icbPbdyaoPQdG-hhBxRIbknq7otnh6D6CIPdEf5xj2uD2_RzaaJXkeCFos-St4NpiXLAvNH7sdu5a3X6aE3i6gg07YzZLDZF9VxGPh1JbmvlZwH7Dmj97KORTJ1_izTJhbwj2A/s1600/OpenTestExplorer.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-QME26icbPbdyaoPQdG-hhBxRIbknq7otnh6D6CIPdEf5xj2uD2_RzaaJXkeCFos-St4NpiXLAvNH7sdu5a3X6aE3i6gg07YzZLDZF9VxGPh1JbmvlZwH7Dmj97KORTJ1_izTJhbwj2A/s1600/OpenTestExplorer.JPG" height="88" width="320" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Select Test Method name, right click, and “Run Selected test”</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAl4MIA6oGe1kCWUvuu7Wp937glprdacK6ASCuxhm81ymmUQOMgrMRZxdj846hvV4UoucPY5u42zxIBlbcjXv62RC1nUYGIUB5MSamJcXj10Uc_LaWj3eKp8gmimDbsjLvaPhTAj7m5rg/s1600/RunTest.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAl4MIA6oGe1kCWUvuu7Wp937glprdacK6ASCuxhm81ymmUQOMgrMRZxdj846hvV4UoucPY5u42zxIBlbcjXv62RC1nUYGIUB5MSamJcXj10Uc_LaWj3eKp8gmimDbsjLvaPhTAj7m5rg/s1600/RunTest.JPG" height="225" width="320" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Test Runs: Loads IE to <a href="http://www.amazon.com/">www.amazon.com</a>
validates properties of hyperlink and logs messages to Output: result is
displayed in TestExplorer</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvdsJQlEZqkieaTCteh4M1VUhK0AMHd-xSQIPW5LG1itsYt74RgiDfX5iwQNCwDU8mqBDNhgWvCU1Z5zh6knnHPbIlnBg6kBCvC-LmXSSktpBSURoMyTAhqwal64Rr7bRPjllwqgDOUno/s1600/TestExplorerResult.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvdsJQlEZqkieaTCteh4M1VUhK0AMHd-xSQIPW5LG1itsYt74RgiDfX5iwQNCwDU8mqBDNhgWvCU1Z5zh6knnHPbIlnBg6kBCvC-LmXSSktpBSURoMyTAhqwal64Rr7bRPjllwqgDOUno/s1600/TestExplorerResult.JPG" height="320" width="166" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<div class="KBody">
Click Output link to view messages that were logged<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR6RjerIr-_LyJhqZHNTcu4MX7w8m2uvFUjO_YALk7DW-C5-o6chcrs2wN7UfoeVIM5N1mGNeDuTbu2wsin_mtSPfPz5qh_5Y2f11LpTS5It4xomxQ7Pb5BLuxMhIDrgnbGgmMKs3emVc/s1600/TestOutput.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR6RjerIr-_LyJhqZHNTcu4MX7w8m2uvFUjO_YALk7DW-C5-o6chcrs2wN7UfoeVIM5N1mGNeDuTbu2wsin_mtSPfPz5qh_5Y2f11LpTS5It4xomxQ7Pb5BLuxMhIDrgnbGgmMKs3emVc/s1600/TestOutput.JPG" height="91" width="320" /></a></div>
<div class="KBody">
<br /></div>
Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-50718945224467906632015-01-04T13:15:00.001-08:002015-01-04T13:15:04.519-08:00STEP #5; Add code to TestInitialize section of the CodedUITestAmazon.cs file that loads IE, browse to URL, and log message<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Click + sign to expand region named “Additional Test Attributes” where
the TestInitialize section is located in CodedUITestAmazon.cs file</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis-j_dixtinuiLrmrI2aehVen_9eH4hknxxBLiV3XGa1Lv8NWdRoJZp2nQRF0GpcuoKM_bxMc6LV9mevdo6KoGUxb6m9iR77CYTQO0qnlCv1S06GhTTriCL8kymeEnaoFH3pfe4t88Ik4/s1600/CodedUIAdditionalTestAttributes.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis-j_dixtinuiLrmrI2aehVen_9eH4hknxxBLiV3XGa1Lv8NWdRoJZp2nQRF0GpcuoKM_bxMc6LV9mevdo6KoGUxb6m9iR77CYTQO0qnlCv1S06GhTTriCL8kymeEnaoFH3pfe4t88Ik4/s1600/CodedUIAdditionalTestAttributes.JPG" height="191" width="320" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Select [TestInitialize] code and uncomment using toolbar button</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFWaKw8B7XlJBtPR8YvQCvHtUGNVaYgUHf_UPsMLc8VhtS4PtbZKjNIdF0rgmulAhK-afzIExhiLWPRrkjdILEwgiwgEjpwECdqJUXMHx4OQI4OT5GiEvAPxg17J8qYyfuR8erfpZndXA/s1600/CodedUIUncommentTestInitialize.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFWaKw8B7XlJBtPR8YvQCvHtUGNVaYgUHf_UPsMLc8VhtS4PtbZKjNIdF0rgmulAhK-afzIExhiLWPRrkjdILEwgiwgEjpwECdqJUXMHx4OQI4OT5GiEvAPxg17J8qYyfuR8erfpZndXA/s1600/CodedUIUncommentTestInitialize.JPG" height="162" width="320" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Add code to launch a new browser window and log a message using
TestContext.WriteLine</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhudwnN47SbzCr6vTkN1r3v2PRqT1L1tTD6c1I4vX2UZxzfzP5x3Wz3KVhUHjkm807BRQu8OPtL9hD0__Sk9TWh15N1Zi9mKleqqtiZ4_Zir2Ye1YdYgntHEMoD3mliS9LvyrXccrDMn-Q/s1600/CodedUITestInitialize.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhudwnN47SbzCr6vTkN1r3v2PRqT1L1tTD6c1I4vX2UZxzfzP5x3Wz3KVhUHjkm807BRQu8OPtL9hD0__Sk9TWh15N1Zi9mKleqqtiZ4_Zir2Ye1YdYgntHEMoD3mliS9LvyrXccrDMn-Q/s1600/CodedUITestInitialize.JPG" height="197" width="320" /></a></div>
<br />Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-79508514266764621742015-01-04T12:56:00.003-08:002015-01-04T12:56:26.944-08:00STEP #4: Add the Using directive and Constructor to the CodedUITestAmazon.cs file<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Open CodedUITestAmazon.cs file - double click in Solution Explorer</span><br />
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Add using directive to enable calls to custom methods and assertions that
will be added to the UIMap1.cs file</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgckvMmEBXfS0zblkWtQxqRbRdWav7c_oGCh2rO9g26-7sLSns31xhzG3uaWWKZgoM6r7ukJX-w-yIwK3yOcRxTPe4b_3ukMLtRYhzJp_wexGbeWDHuV2dL1zcfQRaRagWySiC2JXrop2I/s1600/CodedUIUsingDirective.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgckvMmEBXfS0zblkWtQxqRbRdWav7c_oGCh2rO9g26-7sLSns31xhzG3uaWWKZgoM6r7ukJX-w-yIwK3yOcRxTPe4b_3ukMLtRYhzJp_wexGbeWDHuV2dL1zcfQRaRagWySiC2JXrop2I/s1600/CodedUIUsingDirective.JPG" height="200" width="320" /></a></div>
<br />
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Scroll to the end of the file to add the Constructor to make a new
instance of UIMap1 named UIMap after “private TestContext testContextInstance”</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif-TICHsvieznj6SlBMePJQ7ETGi7JLFntqfx6fCJ6H11ujXE8InSVv_vW6HDgL2-EdQCd8K__IUUf9zrzTtNdNxLgSa5FLcZaV8Rmry_CelN_kyzRKPQzI5yG8fafWWVgDamTcf1Kqgs/s1600/CodedUIConstructor.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif-TICHsvieznj6SlBMePJQ7ETGi7JLFntqfx6fCJ6H11ujXE8InSVv_vW6HDgL2-EdQCd8K__IUUf9zrzTtNdNxLgSa5FLcZaV8Rmry_CelN_kyzRKPQzI5yG8fafWWVgDamTcf1Kqgs/s1600/CodedUIConstructor.JPG" height="261" width="320" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<br />
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-53620300671175297672015-01-02T11:20:00.006-08:002015-01-02T11:20:58.472-08:00STEP #3 Add Controls to UIMap1.uitest - this is a partial class so the generated code will be added to UIMap1.Designer.cs and we'll add custom code to UIMap1.cs<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Load IE and browse to Amazon.com</span><br />
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Go back to Visual Studio, right click UIMap1.uitest and select “Edit with
Coded UI Test Builder” and the builder loads in the lower right corner with
Amazon.com open in IE</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zXiNl8ftxzexfHY6npxvfrR4zqSDjMR2135HnG6dZaag2-NPKIvbh79k0K8Tzbh__Z0YAU64Gw2aT6cnnreoJd8lFXnIAr42V4JsHmLVzqw53kJPITD_sEmSFT0uWJC17F83UDKDiOc/s1600/BuilderLoadsWithAmazonOpen.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zXiNl8ftxzexfHY6npxvfrR4zqSDjMR2135HnG6dZaag2-NPKIvbh79k0K8Tzbh__Z0YAU64Gw2aT6cnnreoJd8lFXnIAr42V4JsHmLVzqw53kJPITD_sEmSFT0uWJC17F83UDKDiOc/s1600/BuilderLoadsWithAmazonOpen.JPG" height="179" width="320" /></a></div>
<br />
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Left click and hold down the Cross Hair button, then drag to highlight
the control to be added to the UI Map</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCl3tnmB46ZLD55jaJSip541VbCb2DRBlg4lc0ZAVtYUXW43iG5ptYF1jq3ZVtxufZe5ZxSRDpR3Bvfjnsp1b1ZLNEjVi1VViF1LVFg1TbE7MzI4jWSkuIfK04RClEdYxpK4e7Nc8R4P8/s1600/BuilderHighlightLink.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCl3tnmB46ZLD55jaJSip541VbCb2DRBlg4lc0ZAVtYUXW43iG5ptYF1jq3ZVtxufZe5ZxSRDpR3Bvfjnsp1b1ZLNEjVi1VViF1LVFg1TbE7MzI4jWSkuIfK04RClEdYxpK4e7Nc8R4P8/s1600/BuilderHighlightLink.JPG" height="178" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Click the double arrow in top left corner </span><span style="font-family: "Cambria Math","serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: "Cambria Math"; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">≪ </span><span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">and
the UIMap is displayed</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitF5LbhnISgo_dRsTXIYTBtCr4w16JG3uKxrGGOJ4YRtBMZHA4OUjJggNROBg_r7zNnDq_1xuUkocGUo-KQfESxHuJkeI1ncn3T32cL5sGUuuHoaS2Av3vY2Aezjgoyp8Nec_5DY9TSoQ/s1600/BuilderExpandtoAddtoMap.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitF5LbhnISgo_dRsTXIYTBtCr4w16JG3uKxrGGOJ4YRtBMZHA4OUjJggNROBg_r7zNnDq_1xuUkocGUo-KQfESxHuJkeI1ncn3T32cL5sGUuuHoaS2Av3vY2Aezjgoyp8Nec_5DY9TSoQ/s1600/BuilderExpandtoAddtoMap.JPG" height="179" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Click button in upper left corner to add the control to the map</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqyepEEdQnzk8EUVF1l3yff-oeO53YsjFghW32bG3sHYFkjcaTS2BogWdQWTMuSBPkKiUYx9BqkAPgCaBS9Viu8UdbikJk0aqfM5XTiNZsbBksfv4amSfuIbu30hNqrbYEj5b7P8QP2T8/s1600/BuilderControlAddedtoMap.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqyepEEdQnzk8EUVF1l3yff-oeO53YsjFghW32bG3sHYFkjcaTS2BogWdQWTMuSBPkKiUYx9BqkAPgCaBS9Viu8UdbikJk0aqfM5XTiNZsbBksfv4amSfuIbu30hNqrbYEj5b7P8QP2T8/s1600/BuilderControlAddedtoMap.jpg" height="179" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">The checkmarks turn dark gray but the UIMap has not been updated yet</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Click the Generate code button to add controls to the map</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2cHclvw55qrmHwxjWZMje9VvtNAFdl0vOpzHhsM8zZq6rkGSuSj_PndoVzQahK38rWwuxWWk-4QgM96m0yIWOIPLnLACBgurOgqOC54n-CDxkgZZ0PUzYCWWfKhmjNMD4wZ0M_PGQLOo/s1600/BuilderGenerateCode.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2cHclvw55qrmHwxjWZMje9VvtNAFdl0vOpzHhsM8zZq6rkGSuSj_PndoVzQahK38rWwuxWWk-4QgM96m0yIWOIPLnLACBgurOgqOC54n-CDxkgZZ0PUzYCWWfKhmjNMD4wZ0M_PGQLOo/s1600/BuilderGenerateCode.jpg" height="179" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">You are prompted that there are no code changes except updates to the
UIMap</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFzQwFSPskS6MqB388M42J0YaVhmnk1dksCbXdz4xSLTnJ-SyHE3Tn2yq_MmjW6DEKXq8TSUkICvdxPJy7d0AlaqLK1gD7t578d9Wg9HHm1xOtYoDHhAPQ1w2LHyEQHkiPyrpSei1kUms/s1600/BuilderGenerateCodePrompt.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFzQwFSPskS6MqB388M42J0YaVhmnk1dksCbXdz4xSLTnJ-SyHE3Tn2yq_MmjW6DEKXq8TSUkICvdxPJy7d0AlaqLK1gD7t578d9Wg9HHm1xOtYoDHhAPQ1w2LHyEQHkiPyrpSei1kUms/s1600/BuilderGenerateCodePrompt.jpg" height="179" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Click Generate button and close the builder to return to Visual Studio</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Double click UIMap1.Designer.cs and search for the control that was
added - </span><span style="font-family: Arial, sans-serif; font-size: 10.5pt;">This tells you which properties the tool uses to identify the control on
the page</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2T-kW17a0NXOcEBAKvNRH-gCPdfICzoRayzWsiV_0GrC1TAQhfHMGAYnBSlSvss3E6eZ8pyj56U-82wDX_Rnb8m3Vegtvb0yzAEY2GUyUbZumn8D0KJ0QbqK9nosrJdrU5cLZys64g6Q/s1600/ControlAddedtoMap.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2T-kW17a0NXOcEBAKvNRH-gCPdfICzoRayzWsiV_0GrC1TAQhfHMGAYnBSlSvss3E6eZ8pyj56U-82wDX_Rnb8m3Vegtvb0yzAEY2GUyUbZumn8D0KJ0QbqK9nosrJdrU5cLZys64g6Q/s1600/ControlAddedtoMap.JPG" height="167" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">UIMap1.Designer.cs contains the generated code that gets overwritten each
time the solution is built</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Arial, sans-serif; font-size: 10.5pt;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-18065652181418882962015-01-02T10:55:00.002-08:002015-01-02T10:55:11.093-08:00STEP #2: Rename the default CodedUITest1.cs file and dependencies<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Right click CodedUITest1.cs file in Solution Explorer and rename to
CodedUITestAmazon.cs</span><br />
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Hit Enter and you will be prompted with message: “You are renaming a
file. Would you also like to perform a rename in this project to all references
to the code element ‘CodedUITest1’?”</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjErKpHpnyFOm1IJIXqweLuUstf5COJW9msD4wCGLyKyzzffclGN2h6sRxvoe6aJ3Y_nDxMbH0O2a49ZXCbk3L4G3UpgmZErj0TbAT0LIOk0rVyQAFYCgJiRm5vcBkth4UW4yvPJSTcyAs/s1600/CodedUITest1PromptReanmeReferences.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjErKpHpnyFOm1IJIXqweLuUstf5COJW9msD4wCGLyKyzzffclGN2h6sRxvoe6aJ3Y_nDxMbH0O2a49ZXCbk3L4G3UpgmZErj0TbAT0LIOk0rVyQAFYCgJiRm5vcBkth4UW4yvPJSTcyAs/s1600/CodedUITest1PromptReanmeReferences.JPG" height="126" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Click Yes and name is changed where the green indicators are displayed in
the left column</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtadrPrkg12A1ovfAUzyPV8Wkn1Ah03I_4g8VX-jWjltB6eJLQlOq9VdgOp1kuIXKL5UYS_mNst82Xz9YGbqYQoykrYO8qAj4SopbjBmPvTh5w2QaVcR0u1oYQVk2FT4YcLcUj57-sshE/s1600/CodedUITest1RenameReferences.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtadrPrkg12A1ovfAUzyPV8Wkn1Ah03I_4g8VX-jWjltB6eJLQlOq9VdgOp1kuIXKL5UYS_mNst82Xz9YGbqYQoykrYO8qAj4SopbjBmPvTh5w2QaVcR0u1oYQVk2FT4YcLcUj57-sshE/s1600/CodedUITest1RenameReferences.JPG" height="187" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">You can also rename in the comments from CodedUITest1 to
CodedUITestAmazon</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv-YpiN5dXXLZty129Ca7Jd9dyjM_uH00_s2kS2XBN28PjLzoVnh73SL-YeNtw7o0MTi9Pol67ZcxdceqPcSDSK92998h_w4zwcPPJHY59pil9Xixd0zRY9p84DmoiZqQOofip5bSat4g/s1600/CodedUITest1RenameComment.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv-YpiN5dXXLZty129Ca7Jd9dyjM_uH00_s2kS2XBN28PjLzoVnh73SL-YeNtw7o0MTi9Pol67ZcxdceqPcSDSK92998h_w4zwcPPJHY59pil9Xixd0zRY9p84DmoiZqQOofip5bSat4g/s1600/CodedUITest1RenameComment.JPG" height="152" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-50686133875442279722015-01-02T08:52:00.003-08:002015-01-02T10:52:23.560-08:00STEP #1: Create New CodedUITest Project and manually add UIMap named UIMap1.uitest instead of UIMap.uitest Create CodedUI Test Project and add new UIMap1.uitest file<div class="separator" style="clear: both; text-align: left;">
</div>
<span style="font-family: Arial, sans-serif; font-size: 10.5pt;">Run Visual Studio from Start menu and </span><span style="font-family: Arial, sans-serif; font-size: 10.5pt;">Select File> New> Project</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3aiVD3DQuSMRkEVrmjfXHfJ2GvOSZEDlAnvkWKE9YwJGSauHF2q7XLbZfpjLH2Zt419S0UxnOVEFEX3Rp9pAOmy2kFlaeUrB6-MEI9zaJYmeFPozh_SBJQZPLVgbBDaOEg72ACTQSjig/s1600/NewProject.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: justify;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3aiVD3DQuSMRkEVrmjfXHfJ2GvOSZEDlAnvkWKE9YwJGSauHF2q7XLbZfpjLH2Zt419S0UxnOVEFEX3Rp9pAOmy2kFlaeUrB6-MEI9zaJYmeFPozh_SBJQZPLVgbBDaOEg72ACTQSjig/s1600/NewProject.JPG" height="89" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Arial, sans-serif; font-size: 10.5pt;">Select Templates> Visual C#> Test> CodedUITest</span></div>
<span style="font-family: Arial, sans-serif; font-size: 10.5pt;">Enter name for Project and same name is used for the Solution, make sure
Add to source control is unchecked, and click OK</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzDvLhFpu7YI4T4x59-RwEzPhEDHrYr4FM8YkoX25W_rNoQ8CYsdVAxrZAmujT1kfieKs2kJJq2QMX0EeicKADidjuSCJ8CP8J80OmXfkF_Y9JAuc7dJnSfbTxL0SUHmNx5l8NMf0bqAo/s1600/ProjectSolutionName.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzDvLhFpu7YI4T4x59-RwEzPhEDHrYr4FM8YkoX25W_rNoQ8CYsdVAxrZAmujT1kfieKs2kJJq2QMX0EeicKADidjuSCJ8CP8J80OmXfkF_Y9JAuc7dJnSfbTxL0SUHmNx5l8NMf0bqAo/s1600/ProjectSolutionName.JPG" height="193" width="320" /></a></div>
<span style="font-family: Arial, sans-serif; font-size: 10.5pt;"><br /></span>
<span style="font-family: Arial, sans-serif; font-size: 10.5pt; text-indent: -0.25in;">Click
Cancel at message at prompt “How do you want to create your coded UI test”</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1XsjJdbe-H_JPkxCuusmp8i9DhEStWyl7EaBne7aa9_TEoPGtiCIdnL-vAuFJE-7iMwMOmJHDl2Ea1qMq8eYWai-hnbkCmxm2_JWkt15u3HerZa1W0jAPwfiXrL6tr3cU0zC_RLBsRA4/s1600/GenerateCode.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1XsjJdbe-H_JPkxCuusmp8i9DhEStWyl7EaBne7aa9_TEoPGtiCIdnL-vAuFJE-7iMwMOmJHDl2Ea1qMq8eYWai-hnbkCmxm2_JWkt15u3HerZa1W0jAPwfiXrL6tr3cU0zC_RLBsRA4/s1600/GenerateCode.jpg" height="204" width="320" /></a></div>
<span style="font-family: Arial, sans-serif; font-size: 10.5pt; text-indent: -0.25in;"><br /></span>
<span style="font-family: Arial, sans-serif; font-size: 10.5pt;">Right click Project and select Add> New Item</span><br />
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Select Test under Visual C# items, select Coded UI Test Map, keep
default name of UIMap1.uitest, and click Add</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUSDAD0MPfdv7b4hxutA-p_54KndGAsFIKj4wc08UKagJdLUdmdwLqzexMceBrDcmx-HytuWchfxysLstw_1rU3IvcAxr4jkRUhbSA95v4snUTWGfmqCX0IChU422eofJdCOgT0irbkPQ/s1600/AddCodedUIMap1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUSDAD0MPfdv7b4hxutA-p_54KndGAsFIKj4wc08UKagJdLUdmdwLqzexMceBrDcmx-HytuWchfxysLstw_1rU3IvcAxr4jkRUhbSA95v4snUTWGfmqCX0IChU422eofJdCOgT0irbkPQ/s1600/AddCodedUIMap1.JPG" height="163" width="320" /></a></div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span>
<ol>
</ol>
<div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">The CodedUI Test Builder loads - Click X in upper right corner to Close</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRRzEu3Ebb7-GJAESYVoJmP__4rNDB8O4wrgntpVZAq7-QcEJdkmQL1md_QU_YVALnjmWEid1NF5Wl5srCUzYjnfNdcgJJGbJJQ9Z-h2rdvyoOMhZHww4o6Cji_9Me8MjexbJ4XebpXSw/s1600/CodedUIBuilder.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRRzEu3Ebb7-GJAESYVoJmP__4rNDB8O4wrgntpVZAq7-QcEJdkmQL1md_QU_YVALnjmWEid1NF5Wl5srCUzYjnfNdcgJJGbJJQ9Z-h2rdvyoOMhZHww4o6Cji_9Me8MjexbJ4XebpXSw/s1600/CodedUIBuilder.JPG" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;">Now you are back to Visual Studio with an empty UIMap1.uitest</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEistHyBwjPDlwoaueuW7mSPvMFiMJpcB21So1u55eDlDbNQJBmPpaLiDfZNdAkVNbwLVBV2S9SvSVZmQ67Hso9Gbg3kq6bSLzai0I5Za9KoGTn4-PQyiUOgAqSaA2eiKfyU3O3UTUawC34/s1600/VisualStudioEmptyUIMap1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEistHyBwjPDlwoaueuW7mSPvMFiMJpcB21So1u55eDlDbNQJBmPpaLiDfZNdAkVNbwLVBV2S9SvSVZmQ67Hso9Gbg3kq6bSLzai0I5Za9KoGTn4-PQyiUOgAqSaA2eiKfyU3O3UTUawC34/s1600/VisualStudioEmptyUIMap1.JPG" height="179" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span></div>
<div>
<span style="font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-ansi-language: EN-US; mso-bidi-font-size: 11.0pt; mso-bidi-language: AR-SA; mso-fareast-font-family: PMingLiU; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;"><br /></span></div>
Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-13313034864019258092014-12-30T19:33:00.004-08:002014-12-30T19:35:54.751-08:00CodedUI Test manually add assertion method, log messages using TestContext.WriteLine, and using UIMap named UIMap1.uptest instead of UIMap.uitestI am creating this post about manually updating CodedUI Tests as part of a training exercise for another QA Engineer. <br />
<br />
I used Amazon.com as an example, but it 's the same idea with any web application.<br />
<br />
Here are the requirements of the CodedUI Test Project:<br />
<br />
<ol>
<li>We don't want to use the CodedUI Test Builder to generate the methods and assertions - we will use the builder to update the UIMap and then hand code the methods and assertions; hand coding of assertions and methods is a good idea because we can avoid extra code that gets generated like hover, mouse over, ect.</li>
<li>Create a UIMap named UIMap1.uitest instead of UIMap.uitest - this is because we are going to hand code the assertions and methods; potentially we could make a separate UIMap for each section of the web application</li>
<li>Generate logging messages using TestContext.WriteLine("message"); -- we could also use Console.WriteLine("message);</li>
<li>Browse and load site using TestInitialize section of the CodedUITest.cs file</li>
<li>Add multiple [Test Method] statements to one CodedUITest.cs file instead of one [TestMethod] for each CodedUITest.cs file</li>
<li>When the test is run the test method is selected from the Test Explorer - this is a good idea because we have a better idea where the failure occurs if we name our Test Methods with meaningful names</li>
</ol>
<br />
<br />
<div>
STEP #1: Create New CodedUITest Project and manually add UIMap named UIMap1.uitest instead of UIMap.uitest</div>
<div>
<a href="https://www.youtube.com/watch?v=Q6M4eOUP_zM" target="_blank">Create CodedUI Test Project and add new UIMap1.uitest file</a></div>
<div>
<br /></div>
<div>
STEP #2: Rename the default CodedUITest1.cs file and dependencies</div>
<div>
<a href="https://www.youtube.com/watch?v=dWx2sT3Wf1w" target="_blank">Rename CodedUITest1.cs file</a></div>
<div>
<br /></div>
<div>
STEP #3: Add Controls to UIMap1.uitest - this is a partial class so the generated code will be added to UIMap1.Designer.cs and we'll add custom code to UIMap1.cs</div>
<div>
<a href="https://www.youtube.com/watch?v=9-kQTIoirF0" target="_blank">Add controls to UIMap1.uitest file</a></div>
<div>
<br /></div>
<div>
STEP #4: Add the Using directive and Constructor to the CodedUITestAmazon.cs file</div>
<div>
<a href="https://www.youtube.com/watch?v=I9oRBsGpwLE" target="_blank">Enable CodedUITest file to see controls added to UIMap1.uitest file</a></div>
<div>
<br /></div>
<div>
STEP #5; Add code to TestInitialize section of the CodedUITest.cs file that loads IE, browse to URL, and log message</div>
<div>
<a href="https://www.youtube.com/watch?v=A68kKTcxtwQ" target="_blank">Update TestInitialize section of CodedUITest.cs file to load URL and log a message using TestContect.WriteLine</a></div>
<div>
<br /></div>
<div>
STEP #6: Add Custom Assertion to CodedUITest.cs file that verifies properties of an HtmlHyperlink and logs messages using TestContext.WriteLine</div>
<div>
<a href="https://www.youtube.com/watch?v=N6lXpBHqKqk" target="_blank">Validate HtmlHyperlink properties and log messages</a></div>
Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-12255595399956789012014-08-23T17:21:00.000-07:002014-08-23T18:24:55.137-07:00Avalanche of containers<a href="http://i.imgur.com/P6BF3.gif" target="_blank">Happens every time</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivqBeZ7gZ_2s2fS7NV4NRBKb4xim0TALuhuDnTvFm6bwaByrOZAZr7fPmgeBjYV4kAv5PaexoVLsS_DCKFX0c0oM1LGaf21UfWUnOJk9PtGfhZdEbwWklaWc09ojbQ1zPBGNz4dEnXa2I/s1600/P6BF3.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivqBeZ7gZ_2s2fS7NV4NRBKb4xim0TALuhuDnTvFm6bwaByrOZAZr7fPmgeBjYV4kAv5PaexoVLsS_DCKFX0c0oM1LGaf21UfWUnOJk9PtGfhZdEbwWklaWc09ojbQ1zPBGNz4dEnXa2I/s1600/P6BF3.gif" /></a></div>
<br />Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-89429615155872865322014-07-29T14:43:00.001-07:002014-07-29T14:43:31.329-07:00Configuration Manager 2012 Client Actions<div class="MsoNormal">
Configuration Manager 2012 Client Actions can be run
independently from schedules that are configured in Configuration Manager
Console through Control Panel>Configuration Manager on the client machine.</div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
1) <a href="http://technet.microsoft.com/en-us/library/gg682067.aspx">Application
Deployment Evaluation Cycle:</a> This evaluation Cycle is applicable to
software deployments (applications) .This action will re-evaluates the
requirement rules for all deployments and make sure the application is
installed on the computer. The default value is set to run every 7 days.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
2) <a href="http://technet.microsoft.com/en-us/library/gg712308.aspx#BKMK_DDRs">Discovery
Data Collection Cycle:</a> This action can
be considered as Heartbeat Discovery cycle and will resend the client
information to site and keeping the client record Active. This is also
responsible to submits a client's installation status to its assigned
site(Status:Yes).If you are migrating the client from SP1 to R2 or R2 to CU1
,it takes time to get the client version update in Console and update action is
carried out by this Cycle. Heartbeat Discovery actions are recorded on the
client in the InventoryAgent.log. Computers accidentally deleted from the
configmgr console will automatically
"come back" if it is still active on the network. Wait for the next
heartbeat inventory cycle, try running Discovery Data Collection Cycle manually,
or use custom script. Refer to <a href="http://blogs.catapultsystems.com/jsandys/archive/2011/04/29/what%E2%80%99s-in-a-heartbeat.aspx">this
link</a> for more information about what is sent back<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
3) <a href="http://technet.microsoft.com/en-us/library/gg682049.aspx">File Collection
Cycle:</a> This action is to search for a specific file that you have defined
in the Client Agent settings (Software inventory > collect files). If the software inventory client agent finds
a file that should be collected, the file is attached to the inventory file and
sent to the site. This action differs from software inventory in that it actually
sends the file to the site, so that it can be later viewed using Resource
Explorer. The site server collects the five most recently changed versions of
collected files and stores them in the <configmgr directory="" installation="">\Inboxes\Sinv.box\Filecol directory. The file will not be
collected again if it has not changed since the last software inventory was
collected. Files larger than 20 MB are
not collected by software inventory. Maximum size for all collected files (KB)
in the Configure Client Setting dialog box displays the maximum size for all
collected files. When this size is
reached, file collection will stop. Any files already collected are retained
and sent to the site.<o:p></o:p></configmgr></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
4) <a href="http://technet.microsoft.com/en-us/library/gg699374.aspx">Hardware
Inventory Cycle:</a> The first and very important action to send client
inventory information. This is where most time is spent troubleshooting about why the client is not reporting
inventory from X days .Many folks think that, hardware inventory is actually
getting information about hardware but it is more than that. It inventory
information about add and remove programs, OS info, RAM, disk and many things. Hardware
inventory is WMI inventory that collects the information from WMI , based on
the settings you defined in Client agent settings—>Hardware inventory
.Configmgr client will collect only the information that you have
selected/customized in client agent settings
and send it to server. Hardware inventory information will be logged
into inventoryagent.log<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
5) <a href="http://technet.microsoft.com/en-us/library/bb633139.aspx">ID MIF
Collection Cycle</a> Management Information Format (MIF) files can be used to
extend hardware inventory information collected from clients by the
Configuration Manager 2007 hardware inventory client agent. During hardware
inventory, the information stored in MIF files is added to the client inventory
report and stored in the site database, where you can use the data in the same
ways that you use default client inventory data. Two MIF files can be used when
performing client hardware inventories: NOIDMIF and IDMIF. By default, NOIDMIF
and IDMIF file information is not inventoried by Configuration Manager 2007
sites. To enable NOIDMIF and IDMIF file information to be inventoried, NOIDMIF
and IDMIF collection must be enabled. You can choose to enable one or both
types of MIF file collection for Configuration Manager 2007 sites on the MIF
Collection tab of the hardware inventory client agent properties. For more
information about enabling MIF collection for Configuration Manager 2007 sites
during hardware inventory, see <a href="http://technet.microsoft.com/en-us/library/bb632513.aspx">Hardware Inventory
Client Agent Properties: MIF Collection Tab.</a><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
6) <a href="http://technet.microsoft.com/en-us/library/gg712288.aspx#BKMK_PolicyRetrieval">Machine
Policy retrieval and Evaluation Cycle:</a> This action is to download policies
assigned to the client computer. Anything that you assign to a collection (group
of computers) like client agent settings or applications related to deployment.
This action will be triggered based on a schedule defined in Client agent
settings (Policy polling interval (minutes). This action results will be logged
into policyagent.log, Policyevalutor.log, and policyagentprovider.log<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
7) <a href="http://technet.microsoft.com/en-us/library/gg682067.aspx#BKMK_SoftwareDeploymentDeviceSettings">Software
Inventory Cycle:</a> Unlike hardware inventory, software inventory, inventory
information about file system data and file properties such as .EXE. You can customize what executable files to be inventoried which
allows admins to report on software inventory. When this action runs, it
inventories the information in the file header of the inventoried files and
sends to the site. This information will
be logged into inventoryagent.log on the client. If you are experiencing slow
software inventory issues, refer to <a href="http://be.enhansoft.com/post/2013/10/03/Slow-Software-Inventory-Cycle-in-SCCM-2012.aspx">this
link</a><o:p></o:p></div>
<div class="MsoNormal">
What is the difference between Hardware and Software
Inventory? </div>
<div class="MsoNormal">
<span style="text-indent: -0.25in;">* Hardware Inventory uses </span><a href="http://technet.microsoft.com/en-us/library/dd334615.aspx" style="text-indent: -0.25in;">WMI </a><span style="text-indent: -0.25in;">to get
the information about computer </span><span style="font-family: Symbol; text-indent: -0.25in;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span></div>
<div class="MsoNormal">
<span style="text-indent: -0.25in;">* Software Inventory works on files to get
information in the file header</span></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
8) <a href="http://technet.microsoft.com/en-us/library/gg682005.aspx">Software
Metering Usage Report Cycle:</a> The name itself says, metering which means, configmgr
client monitor and collect software usage data for the software metering rules
that are enabled on the Site .Client computers evaluate these rules during the
machine policy interval and collect metering data and send it to site. <o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
9) <a href="http://technet.microsoft.com/en-us/library/gg682067.aspx#BKMK_SoftwareUpdatesDeviceSetting">Software
updates deployment evaluation Cycle:</a> This action will initiate a scan for
software update compliance. This action evaluates the state of new and existing
deployments and their associated software updates. This includes scanning for
software updates compliance, but may not always catch scan results for the
latest updates. This is a forced online scan and requires that the WSUS server
is available for this action to succeed.
This action results will be logged into couple of log files on the
client: scanagent.log (scan requests for software updates), UpdatesStore.log(Status
of patches like missing, Installed),UpdatesDeployment.log(update activation,
evaluation, and enforcement, notify about reboot) etc. More info about <a href="http://technet.microsoft.com/en-us/library/bb694299.aspx">software update
compliance</a><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
10) <a href="http://technet.microsoft.com/en-us/library/gg682067.aspx#BKMK_SoftwareUpdatesDeviceSetting">Software
Update Scan Cycle:</a> This action scans for software updates compliance for
updates that are new since the last scan. This action does not evaluate
deployment policies as the Software Updates Deployment Evaluation Cycle does.
This is a forced online scan and requires that the WSUS server is available for
this action to succeed. This action results will be logged into WUAHandler.log
(if Scan is succeeded or not), UpdatesStore.log(Status of patches like missing,
Installed),and scanagent.log (scan
requests for software updates) etc<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
11) <a href="http://technet.microsoft.com/en-us/library/gg712288.aspx">User Policy retrieval
and Evaluation Cycle:</a> This action is similar to Machine Policy Retrieval
& Evaluation Cycle, but this will initiate an ad-hoc user policy retrieval
from the client outside of its scheduled polling interval. This action results
will be logged to policyagent.log, Policyevalutor.log, and policyagentprovider.log<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
12) <a href="http://technet.microsoft.com/en-us/library/bb892810.aspx">Windows
Installer Source list update cycle:</a> This action also very important while
installing MSI applications. This action causes the Product Source Update
Manager to complete a full update cycle. When you install an application using
Windows Installer, those Windows Installer applications try to return to the
path they were installed from when they need to install new components, repair
the application, or update the application. This location is called the Windows
Installer source location. Windows Installer Source Location Manager can
automatically search Configmgr 2012 distribution points for the source files,
even if the application was not originally installed from a distribution point.<o:p></o:p></div>
Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-43349968887197918412014-05-07T07:39:00.000-07:002014-05-07T07:39:00.717-07:00IE11/IE10 Blank PageI was seeing a blank screen in IE11 every time I opened it after installing on a new laptop. This started happening after hitting <f12> and exiting IE before closing out of the Developer Toolbar. Tried rebooting, but couldn't get IE to work correctly. <div>
<br /></div>
<div>
Found these steps to correct the issue:<br /><br /> 1) Start IE11 (or IE10) via the Start->type "Internet"->Select the Internet Explorer (without addons)<br /> 2) Once it is up, press F12 to bring up the developer window on the bottom.<br /> 3) Once it is up and stable, close it via the X in it's upper corner (the developer window, not the IE11).<br /> 4) When the developer window is fully closed, close the IE11 (or IE10).<br /> 5) Now try to open IE11 (or IE10) normally to see if it is working.</div>
</f12>Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-53858237395041706752014-01-20T15:54:00.001-08:002014-01-20T15:54:13.579-08:00The old True, False, NULL problemSay you've got an application where a new check box was added to the screen and a new column was added to the table. The possible values of the check box are are True and False. Maybe the existing rows in the table are set to NULL when the new column is added.<br />
<br />
Are existing rows updated?<br />
<br />
Does the column have a default value?<br />
<br />
Does the application break on rows where the column is set to NULL?<br />
<br />
I think existing rows should be set to True or False, but sometimes they're not.<br />
<br />
It seems confusing if NULL is being interpreted as True or False.<br />
<br />
Just something to check for.Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-74336939086260607312014-01-02T10:49:00.000-08:002014-01-02T10:49:09.349-08:00CodedUI test - check for existence of dialog<br />
If the application has a dialog that is only displayed in certain cases you can write a custom method to execute commands when the dialog exists. This application has a dialog that is only displayed if an add-in could not be loaded.<br />
<br />
<b>Execute certain commands when dialog exists:</b><br />
<br />
1. Record the assertion and action on the dialog.<br />
<br />
2. Write a new method in UIMap.cs to check for existence of the dialog and execute the recorded assertion and the recorded action.<br />
<br />
3. Move calls to the recorded assertion and recorded action from CodedUITest.cs to new method in UIMap.cs.<br />
<br />
if (dialog.Exists)<br />
{<br />
AssertDialogRecorded();<br />
DialogActionRecorded();<br />
}<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNRwXigdGEfNA_IxA8WJuJJV7kqVFPggkBvD4T9whzwzbfoPELeYKw2RRGrhn8dnXqKiY4ZC6O0rOqFUJwG_MhF0FTHsxp9stdnsKg1sbd3p0m4T2pKf3dJbPxW7HvurRsiFXPreb5CkE/s1600/CheckDialogExistence.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNRwXigdGEfNA_IxA8WJuJJV7kqVFPggkBvD4T9whzwzbfoPELeYKw2RRGrhn8dnXqKiY4ZC6O0rOqFUJwG_MhF0FTHsxp9stdnsKg1sbd3p0m4T2pKf3dJbPxW7HvurRsiFXPreb5CkE/s1600/CheckDialogExistence.JPG" height="178" width="640" /></a></div>
<br />
4. Add a using statement to UIMap.cs for Microsoft.VisualStudio.TestTools.UITesting.WinControls:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbh583ybLjs56pfLgugjmbb3aYNxtrBcGJTEbdvJeoDkJrEdcaUzOCGhyphenhyphen8r2OKAdlIQaq-oLMbg2vBsJJvJAx-02PA9jaDYDLw-kU7OkzQS6idY0St5lrHDrVp9eR6ku4B0cRFO6xo8Kg/s1600/UIMapUsingStatements.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbh583ybLjs56pfLgugjmbb3aYNxtrBcGJTEbdvJeoDkJrEdcaUzOCGhyphenhyphen8r2OKAdlIQaq-oLMbg2vBsJJvJAx-02PA9jaDYDLw-kU7OkzQS6idY0St5lrHDrVp9eR6ku4B0cRFO6xo8Kg/s1600/UIMapUsingStatements.JPG" height="181" width="400" /></a></div>
<br />
5. Call the custom method from CodedUITest.cs in place of the recorded assertion and the recorded method.<br />
this.UIMap.ClickOKIfDialogExists();<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_d1gQ4WCiuwdg64kbjSQ-ZIJy3pOOOg2WVIDuqKcpH7kf-Xz7gpKnq5n39-jteSX6uu5riT4B3RHwNiHG5nw6rydBaF0K9sNSnG6b174FkVL7unP940hmI5E2yzHIlrVE97FmiCha1WU/s1600/CodedUICheckExists.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_d1gQ4WCiuwdg64kbjSQ-ZIJy3pOOOg2WVIDuqKcpH7kf-Xz7gpKnq5n39-jteSX6uu5riT4B3RHwNiHG5nw6rydBaF0K9sNSnG6b174FkVL7unP940hmI5E2yzHIlrVE97FmiCha1WU/s1600/CodedUICheckExists.JPG" height="70" width="640" /></a></div>
<br />Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-39554369651387576472013-12-31T13:12:00.001-08:002014-01-02T11:33:33.111-08:00TestContext.BeginTimer() not writing to test output in VS2013<br />
I am running Visual Studio 2013 Ultimate and can't get TestContext.BeginTimer("TimerName"); and TestContext.EndTimer("TimerName"); to write to the Output window of a CodedUI Test.<br />
<br />
<a href="http://karlz.net/blog/index.php/2012/11/17/where-is-testcontext-begintimer/" rel="nofollow" target="_blank">This post</a> has a good solution to the issue.<br />
<br />
I want to log the duration for groups of test steps.<br />
<br />
First I tried writing a logger class and sending the duration to a text file.<br />
<br />
This way seems easier to me:<br />
<br />
1. Open the Coded UI Test .cs file and add a using statement for System.Diagnostics;<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7mDI4WCbAMWeuY1acWaHZzPW6efLhHPYe5BxXfRINaZ99_kTTBxDaoJy6Aw1fStUbwUQnVkCOzX7ILjTISasOwufGz08ONmgorZsGwAkG2teURQvNkGeNSrDC-YwIauKDzmNPBzw5nyQ/s1600/Using.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7mDI4WCbAMWeuY1acWaHZzPW6efLhHPYe5BxXfRINaZ99_kTTBxDaoJy6Aw1fStUbwUQnVkCOzX7ILjTISasOwufGz08ONmgorZsGwAkG2teURQvNkGeNSrDC-YwIauKDzmNPBzw5nyQ/s1600/Using.JPG" height="152" width="400" /></a></div>
<br />
2. Create new instance of Stopwatch and give it some name (Timer in the example), add Timer.Start(); and Timer.Stop(); statements around actions that you're logging duration of, then add statement to write to test output TestContext.WriteLine("Description: " + SomeName.Elapsed.ToString());<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr9Yy-8aeOekaOB0FA9r08s-eX896IKe0g8rV6ZchE-SfTIo6ksm4zX-9in672DdTnCyFY8vegSK5fYkdJGmt2GRmF4uXs19fW1e1NrtJ8nGZ2-8I7IbykEtDaksi5c6GK-nZZYmOLvBs/s1600/CodedUILoggingExample.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr9Yy-8aeOekaOB0FA9r08s-eX896IKe0g8rV6ZchE-SfTIo6ksm4zX-9in672DdTnCyFY8vegSK5fYkdJGmt2GRmF4uXs19fW1e1NrtJ8nGZ2-8I7IbykEtDaksi5c6GK-nZZYmOLvBs/s1600/CodedUILoggingExample.JPG" height="156" width="640" /></a></div>
<br />
3. Reset the timer next time and you can reuse it:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMySsuzXLmojQKJLGCpLoTD2keG2hziFcN2h5J1VlYT970WH8aAKyhD9KdU8yNoOqcMT1tDirQPBKA8yDwuzYsnDtuI4fxaqtEMTIeT_hefVq6SBdP18pAkdD6T7EsvPufm156PfcW5xk/s1600/TimerReset.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMySsuzXLmojQKJLGCpLoTD2keG2hziFcN2h5J1VlYT970WH8aAKyhD9KdU8yNoOqcMT1tDirQPBKA8yDwuzYsnDtuI4fxaqtEMTIeT_hefVq6SBdP18pAkdD6T7EsvPufm156PfcW5xk/s1600/TimerReset.JPG" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
4. Run the test from Test Explorer, select the CodedUITestMethod in the upper pane under Passed Tests, and then click the Output link in the lower portion to view duration.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpuCiBcj0eZjaXNhlqpvltqYVdCdK7JZE3dsIlY8HkwhcMTpzJmvEdY3-1GzZixcnZfyaGjdDDx-ApMHZAF0jqvg7MHfAdvbyZv743JR37qftcgrcJoAmwzOK2Ti9QZj91XQ-U7JjG07g/s1600/TestExplorer.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpuCiBcj0eZjaXNhlqpvltqYVdCdK7JZE3dsIlY8HkwhcMTpzJmvEdY3-1GzZixcnZfyaGjdDDx-ApMHZAF0jqvg7MHfAdvbyZv743JR37qftcgrcJoAmwzOK2Ti9QZj91XQ-U7JjG07g/s1600/TestExplorer.JPG" height="320" width="177" /></a></div>
<br />
5. The output window will also show debug trace messages if EqtTraceLevel is set to 4 in QTAgent32.exe.config. TestContext messages are below the Debug Trace messages.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7fpcTFZGdfajl96M8QaChPmXzAf2_6lJyoSleQ0YA5rsR2aLJvie5SCJePGhSYUXB6zXm74kToQChmiYHRViB36FN9VdVtCIBAz4gjKrHGGRnPJKS0C4YOzCoJ_EvYv5kvQpFLTazCbE/s1600/CodedUIOutput.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7fpcTFZGdfajl96M8QaChPmXzAf2_6lJyoSleQ0YA5rsR2aLJvie5SCJePGhSYUXB6zXm74kToQChmiYHRViB36FN9VdVtCIBAz4gjKrHGGRnPJKS0C4YOzCoJ_EvYv5kvQpFLTazCbE/s1600/CodedUIOutput.JPG" height="408" width="640" /></a></div>
<br />
<br />Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com1tag:blogger.com,1999:blog-8015118831465050800.post-26773738391092680342013-09-23T07:45:00.001-07:002013-09-23T07:45:09.992-07:00Pittsburgh from PNC Park<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCra29e5lWyBRnQoauioK-SN8hjbFHbkHRxWKiS5Nrn74ey8KAdPYndA6XVkVmeGeGjUFUKTi-bCGTVnOJcDJ6jLWloIB_xJUZBBzSXpDHOXqfN1DBmvPlfEJeljHI8m5xyG6epUGcgYU/s1600/Pittsburgh2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="603" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCra29e5lWyBRnQoauioK-SN8hjbFHbkHRxWKiS5Nrn74ey8KAdPYndA6XVkVmeGeGjUFUKTi-bCGTVnOJcDJ6jLWloIB_xJUZBBzSXpDHOXqfN1DBmvPlfEJeljHI8m5xyG6epUGcgYU/s640/Pittsburgh2.jpg" width="640" /></a></div>
<br />Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-68623070565695190362012-05-16T17:07:00.001-07:002012-05-16T17:21:15.595-07:00Reset Selected Radio Button using JavaScript<br />
<div class="MsoNormal">
You could use JavaScript to reset a selected radio button and test if a value is required on update. </div>
<br />
<div class="MsoNormal">
Here's a description of running JavaScript in the IE Developer Toolbar to
clear a radio button for a web app or web site.</div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
</div>
<ol>
<li><span style="text-indent: -0.25in;">View
page source and search for radio to find the element name where checked = True</span></li>
<li><span style="text-indent: -0.25in;">Copy
paste the element name "radio1" text in the JavaScript below</span></li>
<li><span style="text-indent: -0.25in;"><f12>
to open Developer Toolbar</f12></span></li>
<li><span style="text-indent: -0.25in;">Click
the Script tab</span></li>
<li><span style="font-size: 9px; text-indent: -0.25in;"> </span><span style="text-indent: -0.25in;">Copy
paste script to console on the right and click “Run Script” to set the selected
radio button to false</span> </li>
</ol>
<blockquote class="tr_bq">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim60aZCTzWxlWWpj8hjaDhlXnTQmyquHjKMBfbUA4Iug8RGbBegXBURbeocs_fPguNFVq_7RTb6XaGMtn6EeXFU16agfX8nsn2kS3PyZok9o87Kd-OEsssR4qsc8b59GKQRab3_n8vn-0/s1600/Reset.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="50" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim60aZCTzWxlWWpj8hjaDhlXnTQmyquHjKMBfbUA4Iug8RGbBegXBURbeocs_fPguNFVq_7RTb6XaGMtn6EeXFU16agfX8nsn2kS3PyZok9o87Kd-OEsssR4qsc8b59GKQRab3_n8vn-0/s320/Reset.JPG" width="320" /></a></div>
<br /></blockquote>
<blockquote class="tr_bq">
</blockquote>Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-33760031070508270272011-06-16T13:10:00.000-07:002011-06-16T13:10:04.145-07:00Test Case Migrator PlusTFS 2010 - utility on Codeplex allows you to import your test cases from Excel to Test Manager<br />
<br />
<a href="http://blogs.msdn.com/b/vstsqualitytools/archive/2010/05/07/work-item-migrator-excel-mht-to-tcm-tool-on-codeplex.aspx">http://blogs.msdn.com/b/vstsqualitytools/archive/2010/05/07/work-item-migrator-excel-mht-to-tcm-tool-on-codeplex.aspx</a>Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-79082457845654859582011-06-14T08:13:00.001-07:002015-01-05T10:33:17.765-08:00Microsoft Test Manager - Test Scribe Power Tool<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:EnableOpenTypeKerning/> <w:DontFlipMirrorIndents/> <w:OverrideTableStyleHps/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math"/> <m:brkBin m:val="before"/> <m:brkBinSub m:val="--"/> <m:smallFrac m:val="off"/> <m:dispDef/> <m:lMargin m:val="0"/> <m:rMargin m:val="0"/> <m:defJc m:val="centerGroup"/> <m:wrapIndent m:val="1440"/> <m:intLim m:val="subSup"/> <m:naryLim m:val="undOvr"/> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/> <w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/> <w:LsdException Locked="false" Priority="39" Name="toc 1"/> <w:LsdException Locked="false" Priority="39" Name="toc 2"/> <w:LsdException Locked="false" Priority="39" Name="toc 3"/> <w:LsdException Locked="false" Priority="39" Name="toc 4"/> <w:LsdException Locked="false" Priority="39" Name="toc 5"/> <w:LsdException Locked="false" Priority="39" Name="toc 6"/> <w:LsdException Locked="false" Priority="39" Name="toc 7"/> <w:LsdException Locked="false" Priority="39" Name="toc 8"/> <w:LsdException Locked="false" Priority="39" Name="toc 9"/> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/> <w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/> <w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/> <w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/> <w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/> <w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/> <w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/> <w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/> <w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/> <w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/> <w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/> <w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/> <w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/> <w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/> <w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/> <w:LsdException Locked="false" Priority="37" Name="Bibliography"/> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman","serif";}
</style> <![endif]--> <br />
<div class="MsoNormal">
I read about this Power Tool at Safari Books Online “Software Testing with Visual Studio 2010”.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<a href="http://visualstudiogallery.msdn.microsoft.com/e79e4a0f-f670-47c2-9b8a-3b6f664bf4ae/">http://visualstudiogallery.msdn.microsoft.com/e79e4a0f-f670-47c2-9b8a-3b6f664bf4ae/</a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Requires MS OpenXML SDK 2.0 (installed if missing)</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Requires Office 2010 (not installed if missing)</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
This adds the Tools menu to Test Manager where you can view the test run summary in grid format. Select one or more Test Cases and generate a Test Run Summary Report.</div>
<div class="MsoNormal">
<br /></div>
Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-78137986771161573582011-05-24T09:21:00.000-07:002011-05-24T09:21:34.839-07:00DSN error messageI got a strange error when an ODBC Data Source existed in the 32-bit Data Sources and was missing from the 64-bit Data Sources (ODBC) = "The specified DSN contains an architecture mismatch between the Driver and Application". I added the DSN to 64-bit control panel to fix it. The error message made it seem like I used the wrong ODBC driver, but really it was unable to find the DSN.Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-62772896676484667132011-05-18T11:26:00.000-07:002011-05-18T11:49:15.123-07:00Writing Good Defect ReportsThese are my ideas based on experience. I am writing this down to help you form your own ideas.<br />
<ol><li><b>Title includes the feature or area where the problem was found</b> - The developer needs to know where you saw the problem. The person who retests the fix needs to know. Other testers need to know whether or not a bug has already been reported before entering a new bug. It would be nice to sort the bug list and see which areas have the most problems. The bug title BEGINS with location.</li>
<li><b>Title describes the problem</b> - Some people write defect titles with no problem description, similar to this: "Version 1.0.0> Home Page". It's even worse when they enter 5 bugs reports with the exact same title. Other testers have no way of quickly searching to see if the the problem has already been reported. The title should describe the problem so others can get a quick view of the types of problems that are being reported. The title should make the developer want to read it.</li>
<li><b>The version number should not be included in the title</b> - Bug tracking systems usually have another field where you can enter the version number where the defect was found. Besides, this issue may exist in multiple versions of the software. The version number doesn't make sense as part of the bug title.</li>
<li><b>Steps to reproduce - </b>The steps to reproduce need to be repeatable. Get them narrowed down to the simplest form and write it down. Try following them yourself. You might find you are missing a key detail when you follow steps you have already written. </li>
<li><b>Report relevant details</b> - Don't include details unless they are relevant to the specific problem you are reporting. Include any preconditions that are required.</li>
<li><b>Don't combine problems into one bug report</b> - Each problem needs a separate bug report. You should create a new bug report if you are including more than one result. Each unexpected result equates to a new bug report. </li>
<li><b>Ideas are not bugs - </b>We are reporting results of an experiment, not writing opinions of how things should work. If expected behavior is documented in another document, reference the document and page number or reference a similar website, but we shouldn't report our opinion or ideas for improvements as a bug. Submit a feature request instead of a bug when you have ideas for improvement.</li>
<li><b>Attach screenshots - </b>Highlight the section of the screen capture where you see the problem. The problem might be obvious to us, but other people have to decipher what we are talking about. Highlight the screen capture to save time. Attach screen captures as graphics files and not embedded in Word documents. It speeds up the process of reviewing the images and saves disk space.</li>
<li><b>Include Expected Results</b> - Describe what you expect to happen</li>
<li><b>Include Actual Results - </b>Describe what actually happened</li>
<li><b>Include supporting log files or databases</b> - Attach evidence of the issue. Many errors depend on the data that was input to the application. Including a copy of the data used to generate the error sometimes helps narrow down the cause of the problem.</li>
</ol>Which one do you think would get read and fixed first?<br />
<br />
Version 1.0.0> Home Page<br />
OR<br />
Home Page> company logo incorrect<br />
OR <br />
Live Home Page> the company logo is currently being replaced with an offensive imageSherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-72291336080489893552011-03-25T13:53:00.000-07:002011-03-25T14:15:08.988-07:00CodedUI Test Close BrowserI am testing a web application and some error messages are generated through JavaScript. I created a Coded UI test that verified the error messages when the user attempts to login with an empty username or an empty password. I couldn't use a Web Performance Test because the JavaScript is not executed during playback.<br />
<br />
I forgot to record closing the browser, so I added it under TestCleanup.<br />
<br />
Here is what I changed in the CodedUI Test:<br />
<br />
1) click + to expand the Additional test attributes region<br />
2) Un-comment the TestCleanup method<br />
3) add a line to close the browser: "this.map.UIMSNcomWindowsInterneWindow.Close();"<br />
<br />
[TestCleanup()]<br />
public void MyTestCleanup()<br />
{<br />
// To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.<br />
// For more information on generated code, see http://go.microsoft.com/fwlink/?LinkId=179463<br />
this.map.UIMSNcomWindowsInterneWindow.Close();<br />
}Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-77383793796475027502011-03-02T06:52:00.000-08:002011-03-02T06:52:53.083-08:00Rename Virtual PCI have some virtual machines used for testing. I am writing down what I do when we make a copy of the Virtual PC. Sometimes I make a copy of a virtual machine or give a copy to someone else to use. Then I have to rename the virtual PC, so there are not conflicts; rename the machine in Windows, assign a new MAC address to both network adapters, rename the SQL Server, and change the database connection strings in used by services and applications.<br />
<br />
<div style="font-family: inherit;">1) login to the Virtual PC; select Control Panel> System> Computer Name> Change... and enter a new name</div><div style="font-family: inherit;"><br />
</div><div style="font-family: inherit;">2) restart Windows when it prompts you to reboot</div><div style="font-family: inherit;"><br />
</div><div style="font-family: inherit;">3) open SQL Query Analyzer and <a href="http://msdn.microsoft.com/en-us/library/ms143799.aspx">rename the SQL Server instance</a></div><pre style="font-family: inherit;">sp_dropserver <old_name>
GO
sp_addserver <new_name>, local
GO</new_name></old_name></pre><pre style="font-family: inherit;"> </pre><pre style="font-family: inherit;">4) close virtual machine and commit changes to hard disk</pre><pre style="font-family: inherit;"> </pre><pre style="font-family: inherit;">5) edit the .vmc file to change the MAC address<span class="module">; there is one line for each network adapter, </span></pre><pre style="font-family: inherit;"><span class="module">so in a laptop I had to change two lines one for the wireless adapter and one for the wired connection
<ethernet_card_address type="bytes">0003FFxxxxxx</ethernet_card_address></span> </pre><pre style="font-family: inherit;"></pre><pre style="font-family: inherit;">6) reconfigure any applications that use the machine name or IP address</pre>Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-67103565744037952382011-01-06T11:01:00.000-08:002011-01-06T11:01:03.925-08:00CodedUITestsI was not sure if I would be using these since I am testing a web application. CodedUI Tests can do things that the Web Performance Tests can't do like validating error messages generated through JavaScript. I used the CodedUI Test to validate an error message when username or password is empty; the error message is generated by JavaScript. The web tests cannot verify that error message since the page didn't so a post back.Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0tag:blogger.com,1999:blog-8015118831465050800.post-40322802787083700262011-01-06T08:54:00.000-08:002011-01-06T08:59:55.792-08:00Web Performance Test - Expected HTTP Status CodeI have a web performance test that is submitting an invalid username and password and verifying the error message is "Invalid Username or Password". I added a data source from csv file and started putting a bunch of different values in it. When I ran the data driven test some of the rows failed because page validation is enabled and the .NET Framework throws an exception. This happened if the username or password contained script tags.<br />
<br />
<div class="MsoNormal">Since some of the requests failed, I made another web test for the failures; browse to the login page, enter script tags in the username and password, and click the Login button. The test was failing because it returned a 500. There is a way to validate the HTTP status code returned by a Web Performance Test request. There is a property on the request called Expected HTTP Status Code. When it is 0 a return code in the 200 – 300 range is success. I set the Expected HTTP Status Code to 500 to verify error page is returned when script tags are input to username/password and also checked for this text: "System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (userNameTextBox="")."</div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQs8BtcXuwlTxBXqJFzTDAIGHPeJrOXEqLmHVhvRJUg0AiagFPutS6gWYZKSEtk6qkbuVBRBZM1b6JDVJFaD2e4nOlcX9em0B5gWbkt9TWDwOxQD2c8j5o1RkqEr-3PKA_RVIR5GTm7js/s1600/WebPerformanceTestRequestProperties.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="274" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQs8BtcXuwlTxBXqJFzTDAIGHPeJrOXEqLmHVhvRJUg0AiagFPutS6gWYZKSEtk6qkbuVBRBZM1b6JDVJFaD2e4nOlcX9em0B5gWbkt9TWDwOxQD2c8j5o1RkqEr-3PKA_RVIR5GTm7js/s320/WebPerformanceTestRequestProperties.JPG" width="320" /></a></div><br />
I ended up with two data driven tests for the login page. One to check for the normal error message when login information is incorrect and another to check that page validation is working when script tags are submitted.<br />
<br />
This is the error page when request validation is enabled:<br />
<br />
<h1>Server Error in '/WebPARCS' Application. <hr color="silver" size="1" width="100%" /></h1><h2><i>A potentially dangerous Request.Form value was detected from the client (userNameTextBox="").</i> </h2><span style="font-family: Arial,Helvetica,Geneva,SunSans-Regular,sans-serif;"><b>Description: </b>Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. <br />
<br />
<b>Exception Details: </b>System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (userNameTextBox="").<br />
<br />
<b>Source Error:</b> <br />
<br />
<table bgcolor="#ffffcc"><tbody>
<tr> <td><code></code><br />
<pre>[No relevant source lines]</pre></td></tr>
</tbody></table><br />
<b>Source File: </b>c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webparcs\b39bbbab\1a2d57ab\App_Web_gjejbkkx.0.cs<b> Line: </b>0 <br />
<br />
<b></b><br />
</span><i> </i>Sherry Chupkahttp://www.blogger.com/profile/04785912360802245267noreply@blogger.com0