Click here to Skip to main content
12,399,471 members (52,116 online)
Click here to Skip to main content

Stats

66.1K views
697 downloads
80 bookmarked
Posted

Using Workflow Foundation and Visual Studio 2008 for Testing Automation

, 6 May 2008 CPOL
How to employ Windows Workflow Foundation for testing processes. Let's design tests on a visual diagram and automate its execution!
Testflow
TestflowFramework
Activities
Resources
ClickButton.png
CloseForm.png
InputText.png
Design
Properties
TestflowFramework.csproj.user
WinApp
bin
Debug
TestflowFramework.dll
TestingWinApp.exe
TestingWinApp.vshost.exe.manifest
WinApp.exe
WinApp.vshost.exe
WinApp.vshost.exe.manifest
WinApp_Testflows.dll
WinApp_TestParts.dll
Release
TestflowFramework.dll
WinApp.exe
WinApp.vshost.exe
WinApp.vshost.exe.manifest
Properties
DataSources
Users.datasource
WinApp.csproj.user
WinApp_Testflows
AddUsersBatch.rules
Properties
WinApp_Testflows.csproj.user
WinApp_TestParts
AddUser.xoml
Properties
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{733C922C-9B2B-4B12-A05E-99CE3AC27629}</ProjectGuid>
    <OutputType>Library</OutputType>
    <RootNamespace>WinApp_Testflows</RootNamespace>
    <AssemblyName>WinApp_Testflows</AssemblyName>
    <ProjectTypeGuids>{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
    <WarningLevel>4</WarningLevel>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>..\WinApp\bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <UseVSHostingProcess>false</UseVSHostingProcess>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
    <DebugSymbols>false</DebugSymbols>
    <Optimize>true</Optimize>
    <OutputPath>.\bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <UseVSHostingProcess>false</UseVSHostingProcess>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Workflow.Activities">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Workflow.ComponentModel">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Workflow.Runtime">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Design" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Drawing.Design" />
    <Reference Include="System.Transactions" />
    <Reference Include="System.Xml" />
    <Reference Include="System.Web" />
    <Reference Include="System.Web.Services" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.WorkflowServices">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.ServiceModel">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Properties\AssemblyInfo.cs" />
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
      <DependentUpon>Settings.settings</DependentUpon>
    </Compile>
    <Compile Include="AddUsersBatch.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="AddUsersBatch.Designer.cs">
      <DependentUpon>AddUsersBatch.cs</DependentUpon>
    </Compile>
    <AppDesigner Include="Properties\" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\TestflowFramework\TestflowFramework.csproj">
      <Project>{203E288E-A506-46B2-8CF8-532E26B7B4C4}</Project>
      <Name>TestflowFramework</Name>
    </ProjectReference>
    <ProjectReference Include="..\WinApp\WinApp.csproj">
      <Project>{9B844166-AE56-4E36-ABC9-1B9B2485BB18}</Project>
      <Name>WinApp</Name>
    </ProjectReference>
    <ProjectReference Include="..\WinApp_TestParts\WinApp_TestParts.csproj">
      <Project>{FA59359F-50D1-4660-B342-1C2775D5844B}</Project>
      <Name>WinApp_TestParts</Name>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="AddUsersBatch.rules">
      <DependentUpon>AddUsersBatch.cs</DependentUpon>
    </EmbeddedResource>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Windows Workflow Foundation\v3.5\Workflow.Targets" />
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sergey Arhipenko
Software Developer (Senior)
Australia Australia
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 7 May 2008
Article Copyright 2007 by Sergey Arhipenko
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid