Welcome to MSDN Blogs Sign in | Join | Help
Resources for Visual Studio 2010 Test Tools

Our team has been busy putting together content for the Test Tools in Visual Studio 2010, and here is a compilation of those resources including videos, walkthroughs, whitepapers and posts. Also listed are relevant blogs and twitter ids.

Content index for Microsoft Test Manager is:

Topic

Link

Walkthroughs

 
 

Demo videos

 

No More Missed Requirements

 

10-4 Episode 23: An Introduction to Manual Testing

 

Introduction to Record and Playback Engine in VSTT 2010

Understanding the MTM application UI

 
 

The Evolution of the UI Design of Test and Lab Manager

 

Activity Centers

 

The View Toolbar

 

Column Chooser in Data Grids

 

Single Instance Application

 

Artifact Updates

 

Keyboard Shortcuts in MTLM

 

Test Steps in MTLM

Basic concepts of test artifacts

 
 

Three kinds of test suites

 

Work Item Categories

 

Using Shared Steps

 

‘Active’ Tests

 

Test Configurations in a Test Plan

 

What is a Test Plan?

Using MTM to do basic operations

 
 

Navigating Back and Forward

 

Open Items and Manage Queries

 

Manage Queries – Artifact or Manager?

 

Test Case Authoring from the Test Plan Contents

 

Create/Edit Test Settings in Test Plan Properties

 

Copy/Paste Test Steps

 

Order Test Cases

 

Accessing MTM over the web

 

Clearing MTLM’s Settings

 

Uploading Large Attachments

 

Analyzing test results in MTM [To be written]

Using test reports in MTM [To be written]

Introducing the test runner

 
 

Background and history of test runner

 

Doing manual testing with the test runner

 

Filing bugs with test runner

 

Fast forwarding tests in test runner

 

Data driving your tests in test runner

 

Using shared steps in test runner

 

Doing exploratory testing in MTM

 

Using the data diagnostic adapters in manual testing

Deep Dives into manual testing

 
 

Deep dive into fast forwarding tests – part 1

 

Deep dive into fast forwarding tests – part 2

 

Creating resilient automation in test runner

 

Using the exclude/include app list in test runner

 

Global shortcut keys in test runner

 

Result computing in test runner

 

Customizing work item types

 

Delete actions from recording

 

Making the most of your bugs

Customization in MTM

 
 

How can I configure MTLM to use my custom bug / test case type?

 

Working with and customizing work item categories

 

Writing Queries for Custom Work Items and Work Item Categories

Testing process guidelines

 
 

Planning vs Testing

 

Planning vs Testing (Part 2)

 

Planning vs Testing (Part 3)

 

Planning vs Testing (Part 4)

 

Planning vs Testing (Part 5 – Final)

 

Zen and the Art of Test Case Composition

 

Testing in a Product Iteration

Troubleshooting

 
 

Troubleshooting all diagnostic data adapters in test runner

 

Troubleshooting time outs in data adapters

 

Troubleshooting the video recording data adapter – part 1

 

Troubleshooting the video recording data adapter – part 2

 

Common playback errors – troubleshooting (to be written)

Integration

 
 

Test Impact Walk-through

 

Partner opportunities

 

Extensibility of MTM/test runner (to be written)

Resources

 
 

MSDN documentation

 

MSDN forum for MTM

Team blogs

 
 

http://blogs.msdn.com/vstsqualitytools

  http://blogs.msdn.com/amit_chatterjee
 

http://blogs.msdn.com/anutthara

 

http://blogs.msdn.com/chrispat

 

http://blogs.msdn.com/edglas

  http://blogs.msdn.com/gautam
 

http://blogs.msdn.com/nnaderi

 

http://blogs.msdn.com/pradeepn

 

http://blogs.msdn.com/rubel

Twitter updates

 
 

http://twitter.com/vs_test_tools

 

http://twitter.com/anutthara

 

http://twitter.com/chatterjee_amit

 

http://twitter.com/drwill_ms

 

http://twitter.com/mrigler_ms

Resources for Coded UI test are updated on my resources page

We plan to add the content index for Load Test and other test types and roll up this data onto the team blog. Since this data will be getting updated often, I have put this up as a page on my blog and refresh it periodically. I suggest readers link to that page for an up-to-date content index. 

Scaling up your CUIT UI automation for real world projects

One of the complaints that we heard often from Coded UI test users in Beta2 was that the coded UI tests could not scale up to large projects. The single UI map that contained all the UI elements and recorded methods would quickly become unwieldy and confusing to use. To address that problem, we introduced the concept of multiple UI maps in coded UI tests in the VS 2010 RC.

You can now add more than one UI map to a test project containing Coded UI tests by just using the Project level menu of Add new itemà Coded UI Map to add new UI map to the test project. If you need to edit the UI map, you can simply right click on the .uitest file node in Solution Explorer and load the UI map file in the Coded UI test builder. From here, you can add new methods/controls, edit controls, rename controls etc.

Add a new Coded UI map

So, why do we recommend using multiple UI maps in your test project? When your application under test is be a large app with over 1000 forms or web pages, using CUIT in the default single UI map format can result in overloading the UI map and make it cumbersome. Splitting the single map into multiple ones provides the following benefits:

  • Each UI map is logically separated and associated with a smaller construct of UI – easier to understand and maintain
  • Each tester can individually work on a separate UI map and checkin code when they are ready without interfering with other testers working on other portions of the UI
  • Easier to scale UI incrementally by adding new UI maps as compared to conflict resolution using a single UI map

Now, how do you determine when to create a new UI map? If you have a complex composite UI control set doing a logical operation or an independent aggregate of controls that you can navigate to separately and perform specific operations on, it is recommended you create a UI map for that. Eg: a registration page for a new user in a website, a dialog in a winforms app or a WPF app etc. You can have multiple UI maps per single UI aggregate also – for example, for a wizard, you can either create one UI map per wizard page or create a single UI map for the entire wizard, depending on how complex the interactions with the wizard and it’s child controls are.

Note that in many cases, the top level window(TLW) of your application is constant(if your app is a website, the TLW will correspond to the browser window or if it is a winforms/WPF app, the TLW will be the main application window). Since CUIT searches for controls beginning with the ancestor control, which in most cases is the TLW, the instance of the TLW will repeat across multiple UI maps leading to duplication of controls. This can give rise to problems like having to make duplicate fixes across UI maps when the TLW search props change or perf problems when switching between UI maps since the TLW will have to searched again, once per UI map. In order to resolve this, you can equate top level windows across UI maps in the test code using the CopyFrom() API. We’ll see an illustration of how to do this in the walkthrough in my next post.

Pricing for VS 2010 SKUs announced

The pricing for the VS2010 SKUs are finally available. Check out the table below for retail prices

Suggested Retail Pricing (USD) for Visual Studio 2010

With 1-Year MSDN Subscription*

Product

Buy

Upgrade

Buy

Renew

Visual Studio 2010 Ultimate

-

-

$11,899

$3,799

Visual Studio 2010 Premium

-

-

$5,469

$2,299

Visual Studio 2010 Professional

$799

$549

$1,199

$799

Visual Studio Test Professional 2010

-

-

$2,169

$899

Visual Studio Team Foundation Server 2010

$499

$399

-

-

Visual Studio Team Foundation Server 2010 CAL

$499

-

-

-

Visual Studio Load Test Virtual User Pack 2010 (1000 Virtual Users)

$4,499

-

-

-

* Subscription contents vary by purchased product.

Note that if you are buying VS for your company, volume licensing is a preferred mode of buying SKUs and that will usually be lesser than the retail prices.

A production license for TFS 2010 and the CAL for TFS 2010 is included in every MSDN subscription. And the Visual Studio Agents SKU will be free additional software with the VS Premium, VS Ultimate and VS Test Pro SKUs 

For a detailed look at what each SKU contains you can check out the table in my previous entry here or from this nice little poster from the Rangers’ VS ALM documentation

image 

How to simulate more than 250 virtual users on Load Test in VS2010 Beta2?

VS2010 Beta2 comes with a default license of only 250 virtual users per client. So, if you want to run a load test that needs to simulate more than 250 virtual users, you need to install an additional VU pack.

As written in Ed’s blog, the easiest way to install an extra VU pack is to install a controller and agent on the box. You can also install many agents on the same box or different m/cs.

To  add virtual users, start a Visual Studio Command prompt as Administrator (on Vista or Win7, just type Visual Studio Command Prompt in the search window, on XP you’ll find this under the Visual Studio group in the start menu). Then run this command line:

TestControllerConfig licenses /addkey:V10000

This will license the controller for 10,000 virtual users. Note that this license is temporary, and will only work in beta2. For RTM, we will only offer the 1,000 user license pack. If you have a Volume License, you will be able to get your license key from the volume licensing site, and then enter a count of licenses you want to install.

Once you have a virtual user license installed, that license can also be used for local runs (that is, the runs do not have to go through the controller).

If you just want to do local runs, and not use the controller and agent, you can run this from the command line to install the virtual user license:

VSTestConfig licenses /addkey:V10000

This enables you to exceed 250 users for local runs, and unlocks all the cores on your CPU. Pretty cool, eh?

What apps and browsers does Coded UI test work on?

Here is a snapshot of the platform support provided by Coded UI (and also ability to Fast Forward in Manual Test Runner)

image

This will evolve over time based on the support that we, the product team or the community, our partners will add to CUIT. The snapshot on this blog should be updated regularly.

Wanna know about VS2010 ALM in 5 mins?

The VSTS Rangers have come up with this great set of content on VS2010 ALM that is basically intended to answer the q “Tell me about VS2010 ALM in 5 mins”.

The Visual Studio 2010 Quick Reference Guidance consists of compact cheat sheets for Team Foundation Server (TFS) 2010 and Visual Studio (VS) 2010, addressing folks that are unaware of Visual Studio and Team Foundation Server capabilities or have little time to invest in detailed education.

The artifacts include an overview document and poster that allows you to quickly focus on individual areas like testing, by providing crisp and compact guidance sheets and quick reference posters. You can take these to your 5-min coffee break discussions or use them as a stepping stone to the more detailed and in-depth guidance you will find on MSDN.

Check out the testing posters – I loved them! :)

image image

image image

VS2010 demos for testing tools – MTLM, CUIT and related features

Our PM team has put together a great series of demo videos to illustrate the new set of features available for testers as part of VS2010. We will eventually post these on C9 and team sites, but I wanted to publish this now to let you guys get a quick dekko at the videos. Here you go:

1. Perspective: Visual Studio Test Elements 2010 and Visual Studio Team Lab Management 2010 Key Benefits (single video)

Name

Description

Duration (min)

Key Benefits of using Visual Studio Test Elements 2010 & Visual Studio Lab Management 2010

This video highlights some of the key benefits of using  Visual Studio Test Elements 2010 and Visual Studio Team Lab Management 2010

13:03

 

 

 

 

 

2. Perspective: Visual Studio Test Elements 2010 and Visual Studio Team Lab Management 2010 Key Benefits (individual videos)

Name

Description

Duration (min)

Key Benefit 1 - Accelerating Build Setup

This is the first in a series of 4 videos, which showcase the key benefits of accelerated build setup

7:43

 

 

 

Key Benefit 2 - No More No Repro

 

 

 

This is the second in series of 4 videos, which showcase the key benefits of filing an actionable bug which reduces the chances of bug being marked as “no repro”.

5:33

 

 

 

Key Benefit 3 - Extend TFS build to catch UI regressions early

This is the third in series of 4 videos, which showcase the key benefits of catching the UI regressions early

9:25

Key Benefit 4 - Requirement Traceability and Test Prioritization

This is the last in series of 4 videos, which showcase the key benefits of Requirements traceability and Test Prioritization.

2:58

 

 

 

 

 

 

 

 

 

3. Perspective: Application Lifecycle Management viewed from lens of QA organization using Visual Studio Test Elements 2010 and Visual Studio Team Lab Management 2010

Name

Description

Duration (min)

ALM 1 – Manage Requirements

 

 

 

This is the first in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video highlights the creation/management of requirements in Word, Excel and Team Dashboards

1:39

 

 

 

ALM 2 – Plan a project in Agile & CMMI

 

 

 

This is the second in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video highlights the planning of an agile project using agile workbooks and for CMMI project using MS Project and finally associating QA tasks to test cases

5:43

 

 

 

ALM 3 - Create environment, configurations and build definition

 

 

 

This is the third in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video walks through the steps of virtual environment creation, creation of query based suite for BVT, creation of test configurations, creation of test settings and creation of Build-Deploy-Test workflow

8:49

 

 

 

ALM 4 - Create test suites and assign tests to team

 

 

 

This is the fourth in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization.  This video walks through the steps of creation of test suites (folder based, requirement based, query based )and assigning of test cases to team members

2:59

 

 

 

ALM 5 - Author test and shared steps

 

 

 

This is the fifth in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video walks through the authoring of manual test case (with parameters) and creation of shared steps

3:30

 

 

 

ALM 6 - Perform manual test and file actionable bug

 

 

 

This is the sixth in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video walks through the steps of performing manual testing with action recording turned on, easier and error-free way to enter parameter data & filing of a rich and actionable bug

4:45

 

 

 

ALM 7 - Exploratory testing and creating a test case from Bug

 

 

 

This is the seventh in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video walks through the steps of creating a test case for exploratory testing, performing exploratory testing, filing of a rich bug during exploratory testing and finally quickly creating a test case from bug that was filed

4:17

 

 

 

ALM 8 – Create Coded UI Test from action recording and data drive it

 

 

 

This is the eight in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video walks through the steps of creating a Coded UI Test using action recording captured during manual testing, data driving the Coded UI Test, adding assertions and finally associating the created automation to test case

3:39

 

 

 

ALM 9 - Dev repros the bug using Intellitrace and snapshot of lab environment

 

 

 

This is the ninth in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video walks through how a developer can use the IntelliTrace logs for root cause analysis and can connect to the snapshot of the lab environment taken at the time of filing of the bug

1:27

 

 

 

ALM 10- Show impacted tests

 

 

 

This is the tenth in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video walks through the steps of a developer implementing a new requirement and completing the checking-in that triggers a new build, test lead assigning the new build to the test plan and test prioritization feature that shows the recommended tests for the new build

1:17

 

 

 

ALM 11 - Rerecord Coded UI Test due to changes in application under test

 

 

 

This is the eleventh in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video walks through the steps where the developer has implemented a new requirement that breaks one of the automated tests; the automation engineer identifies the root cause of the failure, re-records the automation for the changed screen and generates code and completes the check-in

3:06

 

 

 

ALM 12 - Prioritize testing effort and assign build to plan

 

 

 

This is the twelfth in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video walks through the steps of assigning a new build to test plan and view recommended tests

1:49

 

 

 

ALM 13 - Regress bug using Fast Forward for Manual Testing

 

 

 

This is the thirteenth in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video talks about the regressing of the resolved bug (with manual test case) using the “Fast Forward for Manual Testing” across multiple iterations & finally closing the bug

3:21

 

 

 

ALM 14 – Reports via Dashboards, Reporting Services and Excel Services

 

 

 

This is the last in series of 14 videos that talk about the entire Application Lifecycle Management when viewed through the lens of a QA organization. This video highlights the different reports available using SharePoint Dashboards, Reporting Services based reports and Excel Services based reports

5:44

 

 

 

 

 

 

 

 

 

4. Perspective: Deep Dive with Coded UI Tests (individual videos)

Name

Description

Duration (min)

Coded UI Tests-DeepDive-Episode1-GettingStarted

 

 

 

This is the first in series of 3 videos that provide a deep dive into the new test type, Coded UI Tests. This video walks through the steps of getting started on creating Coded UI Test using Coded UI Test Builder,  adding assertions and providing an overview of contents/structure of Coded UI Test

8:05

 

 

 

Coded UI Tests-DeepDive-Episode2-MaintainenceAndDebugging

 

 

 

This is the second in series of 3 videos that provide a deep dive into the new test type, Coded UI Tests. This video provides a detailed look at contents/structure of Coded UI Test, data driving of a Coded UI Test, resolving failures due to changes in Application under Test (AuT)

14:20

 

 

 

Coded UI Tests-DeepDive-Episode3-HandCoding

 

 

 

This is the last in series of 3 videos that provide a deep dive into the new test type, Coded UI Tests. This video covers the advanced topics of hand-coding automated test instead of using recorder and talks about the best practices for creating large Coded UI Test suites

12:34

 

 

 

Running tests in mstest without installing the VS IDE

Yes, you CAN run your unit tests or any other VS test type on a machine without having Visual Studio IDE installed on that machine. You need the Visual Studio Team Agent to be installed on your test machine to run your tests. This is a 15 min lightweight install and is pretty easy to configure.

Those of you familiar with remote testing from our previous versions, will already know that you can trigger a test run on the client to run tests on a remote machine with the test agent installed. Just use the test settings to point to a test agent where your tests can run remotely. With the VS Team Agent installed on machine A and the client (VS Ultimate or Pro or Test Elements) installed on machine B, you can run tests remotely on A by triggering the run from client B.

Another alternate scenario where you would want to run tests without having the Visual Studio IDE installed is during builds. If you use Team Build to do builds and run tests as part of your build process, you can setup the build agent on a machine with no VS IDE installed. You can now go ahead and run all your tests without any additional installs on the build machine in VS 2010.

What if you want to run mstest from the command line though? You can choose to run mstest.exe from either the test agent or the build agent to run tests, but note that you can run only the unit test and ordered test types.

How to remove unwanted actions from the recording in Manual Test Runner/MTLM?

If you were recording your application while doing manual testing inside MTLM, you must have come across a scenario where you wanted to clean up your recording by deleting a few unnecessary actions that were recorded inadvertently. In the example below, I illustrate a case where I opened msn.com and searched for a string – an extra mouse hover has been recorded over the search text box.

image

Now, there are 2 options:

1. Don’t edit the recording –  since the tool is smart enough to ignore failed hovers during playback and won’t interfere with your test playing back.

2. Edit the recording and delete the extra action – this is useful in cases where the extra action(s) are to dismiss one-time dialogs like the “Do you want to remember passwords” dialog for IE that can be suppressed for future times. Now, if you encounter that dialog during record, but are sure you won’t hit it during playback, you can delete this action from your recording.

Just expand the section at the bottom of MTR to reveal the list of actions being recorded. Select the action to delete and right click –> delete action. There you go – your recording will now be devoid of the extra action.

Wanna win a Hyundai i20 car? Answer some qs on VS 2010

Check out the VS ALM challenge at http://www.vsalmchallenge.com/ – exciting stuff! Take the challenge, answer simple questions on VS 2010 and you shall be on your way to win a Laptop, Yamaha Fazer bike or even a Hyundai i20 car!

image

I thought this is a really cool offer for VS enthusiasts. Should figure out if employees are eligible to take the test – specially those of us that built VS 2010 ;-)

WPF controls not getting identified in Beta2 CUIT?

Are you having trouble identifying a few of your WPF controls in Coded UI Test after upgrading to Beta2 or getting a warning during recording? You need to install the automation api 3.0 on the client to get CUIT to identify the virtualized controls in WPF.

Note that this update gets automatically downloaded if you are running Vista as part of the Vista platform update. In case of XP or W2K3, you can install the standalone version from here

What's new for manual testers in VS2010 Beta2?

I just gave a talk with the same title at Virtual Tech Days 2010. Deck and videos shared on my skydrive

It's always fun to talk about your product. In this session, voice was enabled only for the presenter - so it was kinda weird talking into the phone for an hour without hearing anything in return. The QnA session at the end helped reinforce the fact that there was an audience that was listening on the other side :)   

Tool to import test cases from Excel to MTLM (VS 2010 Beta2) now available on codeplex

Importing test cases from Excel to VS2010 is a no longer a pain. Check out Test Case Migrator (Excel) on codeplex - an automated tool that gives end to end support to move test cases from Excel to the new TCM capabilities with MTLM in VS 2010! 

It has a nifty wizard that lets you map columns in Excel with fields in your work item type and also lets you split out your test steps with different delimiters or columns. Plus this works across both Agile and CMMI methodologies out of the box. Note this is a one time import only and won’t let you continue to keep your test cases in Excel in sync with TCM though.

So, go on – give it a shot and tell us what you think!

clip_image002

Designing the Coded UI Test Builder

The Coded UI test interface has undergone a redesign in Beta2 to make it easier and more intuitive. While designing this UI, we went through a common dilemma – do we need this to be a guided flow or a choice of operations, all available in parallel? So, is this a wizard or a toolbar?

The basic flows are:

  • Record method > Generate code > Repeat > Add control > Add assertion > Generate code
  • (Generate code from MTR strip before) > Add control > Add assertion > Repeat > Generate code
  • Add control > Repeat > Generate code : for folks that will write code on the controls added instead of recording

Additional flows focusing on incremental ops were many. Primary among those were:

  • Edit the UI elements to rename or delete them
  • Add additional assertions to pre-existing controls

A wizard would give ample guidance on when to hit the red button, when to drop the cross hair etc. creating a nice little workflow. But it would also constrain the user to one or two of the new flows above. Incremental flows were becoming tedious with the wizard. Plus the wizard was taking up significant space on the desktop contesting with the app under test.

A stack bar would allow the user to choose from the options available to create the shortest desirable workflow. But it was also confusing to first time users on how to use the builder. We have tried to address that through tooltips and detailed walkthroughs, that should hopefully help.

So, the stack bar now appears at the bottom of the screen with a large tooltip that draws the user’s attention to itself:

 

 

clip_image001

 

 

Users can choose to record actions through the red button or choose to drag and drop the cross hair icon to capture controls. The last button is for the eventual action of generating code.

On dropping the cross-hair on a control of your choice, the UI Control Locator comes up listing the properties of the control along with the navigate bar and a button that lets you add assertion on the chosen property.

propertyshow

Once you choose a property, you can hit the add assertion button to see the dialog where you can choose the comparator and the value to compare with. the generate code dialog comes up:

propertyassert

The UI map is available for viewing in the expand bar to the left of the props window. It’s a bit like the collapsible calendar in Outlook. Click on the expand button and you can see the list of controls available in the UI Map – this consists of all the UI elements you have acted upon in either recording or adding assertions.

UIMap

Once you are done with recording actions and adding assertions, hit generate code and that will complete the operation by emitting code into VS.

clip_image003

What’s new for testers doing UI automation in VS 2010 Beta2?

We are back in Beta2 with a bunch of new stuff in Coded UI test for UI automation testers. First up, the code generation in Coded UI test has been changed to structure the code in a much more usable and intuitive way:

1. All the UI elements you interact with, whether part of recording or added from the UI control locator, all go into a single UI Map – a single collection of all the UI objects in your test. So, you can now edit objects from a single store

2. Every assertion you add is now a method in itself which takes parameters where you can define the expected value to assert on. So, you can now separate the test into logical actions and assertions

3. The recorded methods also have input parameters defined on them that help make data driving easier to do. So, you can now data drive the method by changing the values of the input parameters that go into the recorded method.

For example, if you were testing the new user sign up in hotmail.com and checking if a certain id’s availability is displayed correctly, you can record steps to open hotmail.com, go to sign up page, enter a particular id and press “check availability” button.

The coded UI test project generated has 4 files – the coded UI test .cs file (TestHotmail.cs) containing the test method, UIMap.uitest file which is an XML representation of all the UI elements and actions/assertions performed on each UI object, the UImap.designer.cs file which is the code-behind for the .uitest file containing code for the objects and actions, the UIMap.cs is a file containing a partial definition of the UImap class to help preserve user customizations to the test code.

TestHotmail.cs – contains the actual test method and invocations to recorded methods and assertions

[CodedUITest]

    public class TestHotmail

    {  [TestMethod]public void TestNewUserSignUp(){

            this.UIMap.GotoSignUpPage();

            this.UIMap.CheckAvailabilityOfId();

            this.UIMap.VerifyIdAvailable();

        }}

UIMap.designer.cs – contains the definitions of the recorded methods, assertions and UI objects. Plus also contains the parameter class definitions passed into each class

public partial class UIMap    {

        public void GotoSignUpPage()

        {    HtmlInputButton signupButton = this.SignInWindowsInterneWindow.HttploginlivecomlogiClient.SignInDocument.SignupButton;

            // Click 'Sign up' button

            Mouse.Click(signupButton, new Point(47, 11)); }

       public void CheckAvailabilityOfId()

        { HtmlEdit imembernameliveEdit = this.SignupWindowsLiveWinWindow.HttpssignuplivecomsiClient.SignupWindowsLiveDocument.ImembernameliveEdit;

            // Type 'anutthar' in 'imembernamelive' text box

            imembernameliveEdit.Text = this.CheckAvailabilityOfIdParams.ImembernameliveEditText;

           // Click 'Check availability' button

            Mouse.Click(checkavailabilityButton, new Point(88, 15));      }}

// Input parameter into the CheckAvailabilityOfId recorded method

    public class CheckAvailabilityOfIdParams

    {      public string ImembernameliveEditText = "anutthar";    }

Other than that, the CUIT builder has gone through a major redesign and morphed into a stack bar at the bottom of your screen with pop up dialogs for the control locator, actions viewer, generate code etc. More on that in the next post

We’ve also added support for virtualized controls in WPF. You will need to wait until the UI Automation 3.0 APIs are available to get this working though. But this should certainly help WPF programmers trying to write tests on their UI apps.

Go ahead, give CUIT a spin and tell us what you think…

More Posts Next page »
Page view tracker