December 2008 - Posts
Free Team System Custom Controls For Every One
Team System gives you Work Item with basic features but Team System also gives you the ability to write Custom Controls that will make your Work Item exactly like you want!
I wrote lots of Custom Controls and saw many more, I still have the feeling that people have great ideas for new Custom Controls but they don’t know how to do it!
You have a good idea for Custom Control?
You don’t know how to do it?
You want a professional to do it?
You don’t have time?
Send me your idea and let’s make it happened.
Functional Web Test - Part 1
Lots of people working with Team System Web Testing for creating a automated tests for Web Applications.
Web Test in Team System works on Requests, when your perform an action in a Web Site you send a request to the server.
So while running your Test Case Web Test Recorder knows how to collect and save all those requests and parameters, and then he can run them again.
So What is the Problem?
Web Test is not testing the functionality of your Web Site!
For Example My Test Case is :
1. Entering Live.com
2. Enter Search Value - "Web Testing"
3.Click the Search Button.
Those are the request Web Test Recorder Collect for the Web Test.
First Request - http://www.live.com
Second Request - http://search.live.com/results.aspx?q=Web+Testing&go=&form=QBLH
Now let's say that the Search Button is Disabled.

The Web Test should failed because the button is Disabled and the user cannot click the search button.
But Web Test working on request and for that reason the Web Test will pass.
How can you write a Web Test with Team System so you will Test the Functionality of a Web Application?
In the next post I'll show you how to write functional web test for your Web Application, with free third party tools.
DevAcademy3 Demo - Web Sites Testing with Visual Studio Team System
Before everything I want to say Thank You again to all the people that came to my presentation.
Web Sites Testing with Visual Studio Team System presentation available now from – DevAcademy 3 Site
How to use My Demo:
1. Download Team Suite 90-Day Trial.
2. Download and install - Job Site Starter Kit
Download the Job Site Starter Kit (ASP.NET 3.5)
Install "Job Site" on your IIS as new Web Site and call it - JobSeeker
3. Install UKVSTS - Home Web Test Plug-in - Download
4. Download and Open ALM301-Demo.zip,extract MyData,csv to drive C.
5. Open JobSeeker.sln and Enjoy!
Testing Improvement – The Solution
Over the last posts I’ve talked about Testing Improvement - The Problem and where the problem is coming from – Testing Improvement - Test Case.
I want to introduce the CaseMaker solution.
CaseMaker supports systematically the test cases design and test data generation by covering the techniques taught in the
“ISTQB Certified Tester program” and standardized within the British Standard BS 7925.
The implemented techniques are: Equivalence Partitioning, Boundary Check, Error Guessing, Decision Tables and Pairwise Testing. Furthermore risk based testing is supported.
CaseMaker´s open interface allows for seamless integration with your existing test processes.
In doing so it doesn't matter if you collect your requirements within the CaseMaker module “Business Rules” or import them out of your requirements management tool of choice (i.e. UML state chart) and if you execute your test cases manually or call them by your test automation suite.
In any way CaseMaker will help you, due to its implemented techniques, to gain better test coverage and increase confidentiality in the software with fewer test cases and decreased time, effort and cost.
Casemaker Supported Techniques:
Systematic Methods
- Equivalence Partitioning
- Boundary Check
- Error Guessing
- Cause-Effect-Graphing
- Pairwise
Minimization of the number of test cases
Risk measurement
- Identify
- Evaluate
- Risk drive your decision
- Risk based testing
Testing Improvement - Test Case
In my last post I talked about Testing Improvement - The Problem.
Now I'm going to show from where this problem coming from.
First you need to understand what is Test Case:
A test case in software engineering is a set of conditions or variables under which a tester will determine if a requirement or use case upon an application is partially or fully satisfied. It may take many test cases to determine that a requirement is fully satisfied.
Example:
I have an Application that need Testing, the requirements says that this Application has 2 Text Fields that need to support 3 types of data at the same time.
So I can say 2^3 will cover all my options, total of 8 Test Cases.
This table shows all the combinations that I need to Test.

That was easy, what about 8 types of data?
2^8 = 256 - > Test Cases, Do you need to create 256 different Test Cases?
If you got time, Yes you should test all scenarios.
But most of the time we don't have time to run 256 Test Cases.
There is Systematic Methods like:
- Equivalence Partitioning
- Boundary Check
- Error Guessing
- Cause-Effect-Graphing
- Pairwise
That helps you minimization of the number of test cases.
In the next post I’ll show you the solution for that problem.
How To: Web Test Configurations
On DevAcademy3 I showed how to set Web Test Configuration, Here is the full tutorial.
When creating Test Project in Team System you will see under the solution – LocalTestRun.testrunconfig
Inside this file you will have many options for your Test, in this post I’m going to focus on Web Test Options.
Open Test Configuration by double click or “Test” menu ”Edit Test Run Configuration”

And pick Web Test tab.

Browser Type: you can set Team System to run your web test on different browser.
See - Add Internet Explorer 8.0, FireFox 3.0 and Google Chrome To Web Test Browser

Network Type: You can set the Bandwidth for the Web Test.
This will effect the speed of the requests and response.
To add new Network Type enter to
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Templates\LoadTest\Networks
create new file with extension .network and enter the desire bandwidth like this:
<Network Name="Cable/DSL 768k" BandwidthInKbps="768"></Network>

Think Time: set the time you want Team System to wait after the request.
When you record a web test Team System collects the Think Times.
You can change them by clicking a specific request and change the Think Time value in the properties.
Web Test Iterations: Set how many times you want the web test to run.
One run per data source row: If you made a Data Binding Web Test (Team System – How to Create Data Binding Web Test - Screencast [HE]) this will run the Web Test for each row in your data source.
DevAcademy 3 Lectures Online
Thanks for Sela Group, now all DevAcademy 3 lectures are available online!
DevAcademy 3 Site
Enjoy.
Thank You, DevAcademy 3
If you came to DevAcademy3 I'm sure that you enjoyed and learned a lot about new Technologies and Applications.
I want to thank, the people behind DevAcademy3, they worked very hard and succeeded in making this conference a successful and professional event.
Yifat Haramat, Guy Burstein, Sela Group and Microsoft Israel.
As a final note for this post I would like to extend my deepest thanks to
Guy Burstein. His assistance and support in helping me prepare for this DevAcademy were invaluable.
Thank You!
Web Testing Using Team System Presentation is Over!
I finished my DevAcademy3 presentation about Web Testing, you can download the presentation.
The presentation toke 65min include questions.
I'm very happy because the audience shows enthusiasm about Web Testing Using Team System.
And Its seems like Web Testing is gaining market acceptance.

How To: Use Fiddler On localhost
Fiddler Tool is a Web Debugging Proxy, that can help you when recording Web Test for Team System.
IE ,FireFox, Google Chrome and the .NET Framework are hardcoded not to send requests for Localhost through any proxies, and as a proxy, Fiddler will not receive such traffic.
The workaround is to use your machine name as the hostname instead of Localhost or 127.0.0.1. So, for instance, rather than hitting http://localhost:8081/mytestpage.aspx, instead visit http://machinename:8081/mytestpage.aspx.
...Or, if you're using Fiddler v2.1.8 or later, just use http://ipv4.fiddler to hit localhost on the IPv4 adapter, or use http://ipv6.fiddler to hit localhost on the IPv6 adapter. This works especially well with the Visual Studio test webserver (codename: Cassini) because the test server only listens on the IPv4 loopback adapter.
Lastly, you could Customize your Rules file like so:
and add the following rule:
static function OnBeforeRequest(oSession:Fiddler.Session){
if (oSession.HostnameIs("MYAPP")) { oSession.host = "127.0.0.1:8081"; }
}
...and then just hit http://myapp, which will act as an alias for 127.0.0.1:8081.
Everything you ever wanted to know about locks in TFS
phkelley's just published a great post on Everything you ever wanted to know about locks.
All you need to know about TFS locks and cool stuff using tf command-line.
Enjoy.
How To: Set Work Item Creation\Edit Permission Using Area Path
Some times you don't want a specific User or Group will be able to create or edit a Work Item.
This is one way how to perform this action.
Open Team System with User in Administrator Group.
Click on the desire Team Project -> Right Click -> Team Project Settings - > Area and Iterations

Here you pick the Level.
You can set the Root or a lower Area, and Click on "Security"

Select the desire Group / User and check that "Edit work items in this node" is "Deny".

When the User will try to Create/Edit work item in this Area this is the message he will get.

Testing Improvement - The Problem
There is no just one story about companies who failed because their product crushed on Production.
Those companies invested a lot of money in Testing but still failed in the Final Test = Production.
The main problem is that those companies think that if they are performing Tests like:
testability, scalability, maintainability, usability, performance, security, Black Box, equivalence partitioning,boundary value , analysis, all-pairs testing,fuzz testing, model-based testing, traceability matrix, exploratory testing, Code Coverage
and a lot MORE!
Or using advance Test Management tools - Guy Kolbis just post about Bug Trackers tools.
Their product is Cover.
This is a common mistake, it's doesn't meter what technique or tool you use it's all about
What Scenarios You Test!
So in the following posts I will write a lot more about Testing Improvement and tips that will help you lower the chance for a big Crush.
MSBuild Extension Pack 3.5.1.0
Mike Fourie post about the new version Available now - MSBuild Extension Pack 3.5.1.0
If you using Team Build you want to have this Task pack, this will help you make your Builds more advanced.
MSBuild Extension Pack 3.5.1.0 which provides over 230 tasks.
Also include Visual Studio IntelliSense for all tasks
And Online Help.

Q: I Get TF30207 Error Message When Trying To Create New Team Project
I get a lot of question regarding this Error massage.
TF30207: Initialization for plugin "Microsoft.ProjectCreationWizard.Reporting" failed
TF30224: Failed to retrieve projects from the report server. Please check that the SQL Server Reporting Services Web and Windows services are running and you have sufficient privileges for creating a project.
The solution for this problem is very easy.
Most of the times it's just a permissions problem.
Trying enter http://tfsname/reportserver
If you are asking to enter User & Password, you find the problem!
To create Team Project the user need to be in "Team Foundation Administrators" group or give the right permissions for create a team project.
More Posts
Next page »