forked from eldarkra/csharp-sdk-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
29 lines (26 loc) · 869 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Reflection;
using TestProject.Common.Enums;
using TestProject.SDK.Examples.Web.Test;
namespace TestProject.SDK.Examples.Web.Runners.Console
{
class Program
{
private static string DevToken = "YOUR_DEV_TOKEN";
private static AutomatedBrowserType BrowserType = AutomatedBrowserType.Chrome; // Specify the target browser
static void Main(string[] args)
{
using (Runner runner = new RunnerBuilder(DevToken).AsWeb(BrowserType).Build())
{
runner.Run(new BasicTest());
runner.Run(new ExtendedTest(), true);
/**
* Load proxy assembly into memory to allow SDK finding it's classes
* This is only required when running the action proxy in Debug mode via IDE
* This not not needed when running from TestProject platform
*/
Assembly.LoadFrom("AddonProxy.dll");
runner.Run(new ProxyTest(), true);
}
}
}
}