Archive for category Coded UI Tests

Wire up the Specflow step definitions with a Coded UI test methods

This post is the third edition of the Specflow with Coded UI Tests series So our project now has the Specflow Feature that describes the Calculate Addition feature and our Coded UI Recordings that contain our actions of inputting a value into our calculator. Now we just need to wire the two together. Specflow does […]

5 Comments

Record your Coded UI test methods

This post is the second edition of the Specflow with Coded UI Tests series Now that we have our feature and scenarios we need to record the actions used in the scenario. In the previous step, Create a Specflow Feature file, I explained that a Scenario would normally contain multiple actions like this one. The […]

2 Comments

Create a Specflow Feature file

This post is the first edition of the Specflow with Coded UI Tests series To create a Specflow feature file first we will need to set up our test project to be able to support specflow tests. Install Specflow from http://www.specflow.org/. Specflow is an open source project, the source and wiki is located here https://github.com/techtalk/SpecFlow. […]

2 Comments

Initialize / Cleanup Methods

StartSession – Performs any initialization required by this technology manager for starting a session. It takes a Boolean that indicates if the current session is a recording session, a playback session will be false. StopSession – Performs any cleanup required by this technology manager for stopping the current session.

1 Comment

UITechnologyManager Search Methods

Search – Searches for an element matching the given query element. If the underlying UI Technology has rich APIs to search/navigate the UI hierarchy then implementing this method could improve the playback performance significantly. This is an optional method and if the technology manager does not support this method it should throw System.NotSupportedException exception. If […]

1 Comment

UITechnologyManager class

The UITechnologyManager class is responsible for the core services relating to the technology you are extending. This class must be visible to the COM. This is done by adding the [ComVisible(true)] Attribute to the class. A large number of the UITechnologyManager’s members if not implemented with are processed with a default algorithm. 1. Create a […]

1 Comment

Coded UI Test Utilities Helper Methods

Some of the Microsoft team members have created a set of helper extension methods based on feedback given. The can be found here Here are the details of the help. For usage check the help contained in the download. Extension Method Description UITestControl    ControlStates GetState() Gets the state of the control. object GetValue() Gets […]

5 Comments