Adding some UI test stubs
This commit is contained in:
@@ -491,6 +491,8 @@
|
||||
<Compile Include="DashboardTasks\Tasks.cs" />
|
||||
<Compile Include="DashboardTasks\TaskSalary.cs" />
|
||||
<Compile Include="DashboardTasks\TaskVolunteer.cs" />
|
||||
<Compile Include="UITests\Sockets.cs" />
|
||||
<Compile Include="UITests\IUITest.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Basic\Basic.csproj">
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Swarmops.Logic.UITests
|
||||
{
|
||||
public interface IUITest
|
||||
{
|
||||
string Id { get; }
|
||||
string Name { get; }
|
||||
void ExecuteServerSide();
|
||||
string JavaScriptClientCode { get; }
|
||||
}
|
||||
|
||||
public interface IUITestGroup
|
||||
{
|
||||
string GroupId { get; }
|
||||
string GroupName { get; }
|
||||
string JavaScriptClientCodeDocReady { get; }
|
||||
void InitializeServerSide();
|
||||
IUITest[] Tests { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Swarmops.Logic.UITests
|
||||
{
|
||||
public class Sockets: IUITestGroup
|
||||
{
|
||||
public string GroupId { get { return "Sockets"; } }
|
||||
|
||||
public string GroupName { get { return "Sockets"; } }
|
||||
|
||||
public void InitializeServerSide() { }
|
||||
|
||||
public string JavaScriptClientCodeDocReady { get { return string.Empty; } }
|
||||
public IUITest[] Tests
|
||||
{
|
||||
get
|
||||
{
|
||||
return new IUITest[ ] {
|
||||
new TestSocketConnecting() /*,
|
||||
new TestSocketEcho(),
|
||||
new TestFrontendHeartbeatReceived(),
|
||||
new TestBackendHeartbeatReceived()*/
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class TestSocketConnecting : IUITest
|
||||
{
|
||||
public string Id { get { return @"Browser"; } }
|
||||
|
||||
public string Name { get { return @"Browser WebSocket connection"; } }
|
||||
|
||||
public void ExecuteServerSide()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public string JavaScriptClientCode { get { return string.Empty; } }
|
||||
}
|
||||
}
|
||||
@@ -1343,6 +1343,7 @@
|
||||
<Content Include="Images\Icons\iconshock-pdf-128px.png" />
|
||||
<Content Include="Images\Icons\iconshock-red-cross-sphere-128x96px.png" />
|
||||
<Content Include="Images\Icons\iconshock-yellow-sphere-128x96px.png" />
|
||||
<Content Include="Images\Icons\iconshock-yellow-sphere-30pct-128x96px.png" />
|
||||
<Content Include="Images\Other\blank-logo-640x360.png" />
|
||||
<Content Include="Images\Flags\ae-24px.png" />
|
||||
<Content Include="Images\Flags\ae-64px.png" />
|
||||
|
||||
Reference in New Issue
Block a user