Skip to content

Commit

Permalink
Added browser-specific test suite for Microsoft Edge in .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Jul 23, 2015
1 parent 9ed9272 commit 5736145
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 1 deletion.
8 changes: 8 additions & 0 deletions dotnet/WebDriver.NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Selenium.WebDriverBackedSel
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebDriver.IE.Tests", "test\ie\WebDriver.IE.Tests.csproj", "{ECF3B49F-68B0-4A2A-8559-6D7FB906AA88}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebDriver.Edge.Tests", "test\WebDriver.Edge.Tests\WebDriver.Edge.Tests.csproj", "{FF2AD0AE-C786-485B-A7E0-99E93E0D602B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -131,6 +133,12 @@ Global
{ECF3B49F-68B0-4A2A-8559-6D7FB906AA88}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ECF3B49F-68B0-4A2A-8559-6D7FB906AA88}.Release|Any CPU.Build.0 = Release|Any CPU
{ECF3B49F-68B0-4A2A-8559-6D7FB906AA88}.Release|x86.ActiveCfg = Release|Any CPU
{FF2AD0AE-C786-485B-A7E0-99E93E0D602B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FF2AD0AE-C786-485B-A7E0-99E93E0D602B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FF2AD0AE-C786-485B-A7E0-99E93E0D602B}.Debug|x86.ActiveCfg = Debug|Any CPU
{FF2AD0AE-C786-485B-A7E0-99E93E0D602B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FF2AD0AE-C786-485B-A7E0-99E93E0D602B}.Release|Any CPU.Build.0 = Release|Any CPU
{FF2AD0AE-C786-485B-A7E0-99E93E0D602B}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
36 changes: 36 additions & 0 deletions dotnet/test/WebDriver.Edge.Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WebDriver.Edge.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WebDriver.Edge.Tests")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("4aaaf662-9d42-4926-8d5e-01344103111b")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
15 changes: 15 additions & 0 deletions dotnet/test/WebDriver.Edge.Tests/WebDriver.Edge.Tests.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="Driver" value="OpenQA.Selenium.Edge.EdgeDriver" />
<add key="Assembly" value="WebDriver" />
<add key="DriverName" value="Edge"/>
<add key="RemoteCapabilities" value="MicrosoftEdge"/>

<add key="Protocol" value="http"/>
<add key="HostName" value="localhost"/>
<add key="Port" value="2310"/>
<add key="SecurePort" value="2410"/>
<add key="Folder" value="common"/>
</appSettings>
</configuration>
75 changes: 75 additions & 0 deletions dotnet/test/WebDriver.Edge.Tests/WebDriver.Edge.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{FF2AD0AE-C786-485B-A7E0-99E93E0D602B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WebDriver.Edge.Tests</RootNamespace>
<AssemblyName>WebDriver.Edge.Tests</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\build\cli\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\..\build\cli\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\third_party\dotnet\nunit-2.6.2\framework\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="WebDriver.Edge.Tests.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="WebDriver.Edge.Tests.nunit">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\webdriver\WebDriver.csproj">
<Project>{83C13931-B27C-425C-AAF0-5F96EEA4F173}</Project>
<Name>WebDriver</Name>
</ProjectReference>
<ProjectReference Include="..\common\WebDriver.Common.Tests.csproj">
<Project>{1580564D-B6B8-4BD8-A120-001E3E8E5BE6}</Project>
<Name>WebDriver.Common.Tests</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
7 changes: 7 additions & 0 deletions dotnet/test/WebDriver.Edge.Tests/WebDriver.Edge.Tests.nunit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<NUnitProject>
<Settings appbase="." />
<Config name="Default" binpathtype="Auto">
<assembly path="WebDriver.Common.Tests.dll" />
<assembly path="WebDriver.Edge.Tests.dll" />
</Config>
</NUnitProject>
3 changes: 2 additions & 1 deletion dotnet/test/common/Browser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ public enum Browser
{
All,
HtmlUnit,
IE,
IE,
Edge,
Firefox,
Safari,
Chrome,
Expand Down

0 comments on commit 5736145

Please sign in to comment.