TFS 2010 - utility on Codeplex allows you to import your test cases from Excel to Test Manager
http://blogs.msdn.com/b/vstsqualitytools/archive/2010/05/07/work-item-migrator-excel-mht-to-tcm-tool-on-codeplex.aspx
Thursday, June 16, 2011
Tuesday, June 14, 2011
Microsoft Test Manager - Test Scribe Power Tool
I read about this Power Tool at Safari Books Online “Software Testing with Visual Studio 2010”.
Requires MS OpenXML SDK 2.0 (installed if missing)
Requires Office 2010 (not installed if missing)
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.
Tuesday, May 24, 2011
DSN error message
I 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.
Wednesday, May 18, 2011
Writing Good Defect Reports
These are my ideas based on experience. I am writing this down to help you form your own ideas.
Version 1.0.0> Home Page
OR
Home Page> company logo incorrect
OR
Live Home Page> the company logo is currently being replaced with an offensive image
- Title includes the feature or area where the problem was found - 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.
- Title describes the problem - 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.
- The version number should not be included in the title - 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.
- Steps to reproduce - 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.
- Report relevant details - Don't include details unless they are relevant to the specific problem you are reporting. Include any preconditions that are required.
- Don't combine problems into one bug report - 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.
- Ideas are not bugs - 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.
- Attach screenshots - 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.
- Include Expected Results - Describe what you expect to happen
- Include Actual Results - Describe what actually happened
- Include supporting log files or databases - 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.
Version 1.0.0> Home Page
OR
Home Page> company logo incorrect
OR
Live Home Page> the company logo is currently being replaced with an offensive image
Friday, March 25, 2011
CodedUI Test Close Browser
I 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.
I forgot to record closing the browser, so I added it under TestCleanup.
Here is what I changed in the CodedUI Test:
1) click + to expand the Additional test attributes region
2) Un-comment the TestCleanup method
3) add a line to close the browser: "this.map.UIMSNcomWindowsInterneWindow.Close();"
[TestCleanup()]
public void MyTestCleanup()
{
// To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
// For more information on generated code, see http://go.microsoft.com/fwlink/?LinkId=179463
this.map.UIMSNcomWindowsInterneWindow.Close();
}
I forgot to record closing the browser, so I added it under TestCleanup.
Here is what I changed in the CodedUI Test:
1) click + to expand the Additional test attributes region
2) Un-comment the TestCleanup method
3) add a line to close the browser: "this.map.UIMSNcomWindowsInterneWindow.Close();"
[TestCleanup()]
public void MyTestCleanup()
{
// To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
// For more information on generated code, see http://go.microsoft.com/fwlink/?LinkId=179463
this.map.UIMSNcomWindowsInterneWindow.Close();
}
Wednesday, March 2, 2011
Rename Virtual PC
I 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.
1) login to the Virtual PC; select Control Panel> System> Computer Name> Change... and enter a new name
2) restart Windows when it prompts you to reboot
3) open SQL Query Analyzer and rename the SQL Server instance
sp_dropserverGO sp_addserver , local GO
4) close virtual machine and commit changes to hard disk
5) edit the .vmc file to change the MAC address; there is one line for each network adapter,
so in a laptop I had to change two lines one for the wireless adapter and one for the wired connection
0003FFxxxxxx
6) reconfigure any applications that use the machine name or IP address
Thursday, January 6, 2011
CodedUITests
I 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.
Subscribe to:
Posts (Atom)