his walk through will focus on how you can plan, design, develop, and test an application by using the Microsoft Visual Studio Team System 2010.
Creating Manual Test Cases and Adding to a Test Suite:
This walkthrough guides you through the process for creating manual test cases and adding a test case to a test suite. In this scenario, Lucerne Publishing wants to add another test to the DinnerNow.net payment system. You have to add an end to end test for the purchasing scenario.
Suppose that you work on Lucerne team and have the task of testing the payment system for Iteration 2. First, you will create a manual test for this. You will add the steps to this test case and the expected results. Then you will add it to the existing test suite for the integrated payment system.
In this walkthrough, you complete the following tasks:
- Add a test case to an existing test suite.
- Add test steps to a manual test case.
Before you begin this walkthrough, complete the following prerequisites:
To fulfill the walkthrough prerequisites
- Follow these steps to open the new tool for generalist testers, Microsoft "Code Name Camano" for Visual Studio Team Test 2010 CTP:
- To display the Microsoft "Code Name Camano" window, click Start, and then point to All Programs.
- Point to Microsoft Visual Studio 2010 and then click Microsoft Code Name Camano.
- To connect to a team project, point to Home, click the down arrow, and then click Connect to a Team Project.
- To add a new Team Foundation Server, click Add.
- The Add Team Foundation Server dialog box is displayed.
- Type localhost, and then click Add.
- To select the team project, click the name of the team project, DinnerNow, in the list. Then click Connect.
- If you successfully connect to this team project, the name of the team project is displayed in the Microsoft "Code Name Camano" window following Team Project.

Add Test Case to an Existing Test Suite
You can manage your test cases by organizing tests into test suites. You use a test suite to group test cases together. For example, you can group all test cases for a specific feature together. By grouping them in a test suite, you can now easily run all the tests in the test suite together. Test suites also help in planning your testing effort by working with this logical grouping of test cases.
To add a test case to an existing test suite
- To display the Planning Activities Center, click Planning.
- To display all the test suites, click Test Suite Manager in the Planning Activities sidebar.
- To select the test suite, click End to End Test.
There is a prebuilt test case that you can use instead of creating a test case yourself called Prebuilt: Complete Purchase Scenario.
- To add a test, click New test case in the toolbar for the test suite details panel.
The new test case is displayed in the main editing pane of Microsoft "Code Name Camano" titled New Test Case 1: - To name the test case, type Complete Purchase Scenario in Title. You use this title to identify the test case and search for it if you have to.
- Check Area shows DinnerNow.
- Click Owner to select Ellen Adams for the test case.
- Click Priority to select 1 for the importance of the test case.
- To save the test case, click the save icon in the toolbar.
Note After the test case has been saved, the test case identifier is shown in the title of the editing pane.


Add Test Steps to a Manual Test Case
A test step might be an action only, or it might include validation.
To add test steps to a manual test case
- Click Steps.
- Click
, type Verify that DinnerNow Web application is started as the Action for the first test step, and press Enter. - Type Enter 98101 in the Your Zip field as the Action for the next step.
- Type Select American as the food type in the combo box as the Action for the next step.\
- Type Select Dinner as the meal of choice as the Action for the next step.
- Type Select 1 hour as the time frame as the Action for the next step.
- Type Click Find as the Action for the next step.
- In the Expected Result column, type Check 3 restaurants are displayed: TailSpin BBQ, SouthRidge Subs, Northwind Bar and Grill. Note: If you type a value in the Expected Result column, the step is automatically set to a validation step, as indicated by the check mark icon.
- Type Select Northwind Bar and Grill as the Action for the next step, and then type 12 items should be displayed as the expected results.
- Type Select Classic Burger and Ice cream from the menu list as the Action for the next step, and then type Your menu today has a cost of $27 as the Expected Result.
- Type Click Testimonials at the top of the screen as the Action for the next step, and then type Positive reviews are displayed for Northwind Bar and Grill as the Expected Result.
- Type Click Checkout as the Action for the next step.
- Type Select sign in using InfoCard as the Action for the next step.
- Type Select Brad Sutton and click Send as the Action for the next step.
- Type Click the radio button (Work) for Choose Delivery Address as the Action for the next step.
- Type Click the radio button (Visa) for payment option as the Action for the next step.
- Type Confirm Order as the Action for the next step, and then type Check Total is $27, Delivery address is 1 Microsoft Way, and Payment Option is Visa as the Expected Result.
- Type Click Bring my Meal as the final test step.
a. Note You can mark any test step as a validation test step when you click Toggle Step Validation in the Steps Toolbar. When you run the test case, you must individually mark a validation test step as either passed or failed. - To save and close this test case, click Save and Close.
- Important If you do not close the test case and continue to a different activity, the test case is now shown in Work in Progress in the sidebar. Click this test case to open it again.


No comments:
Post a Comment