-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSeleniumExampleTests.cs
More file actions
27 lines (23 loc) · 857 Bytes
/
SeleniumExampleTests.cs
File metadata and controls
27 lines (23 loc) · 857 Bytes
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
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SeleniumTestExample.Attributes;
using System.Data;
using SeleniumTestExample.Infrastructure;
namespace SeleniumTestExample.TestPlans.Project_Configuration
{
[TestClass]
public class TestPlan12754 : TestPlanBase, IUiTest
{
[TestMethod]
[TestCategory("UITest")]
[CustomDataSource(<"TFS-Server">, <"PROJECT-NAME">, <TEST-CASE-ID>)]
public void Execute(DataRow parameter)
{
var sw = Stopwatch.StartNew();
var user = parameter["User"].ToString();
var password = parameter["Password"].ToString();
var language = parameter["Language"].ToString();
// Do Something
this.TestContext.WriteLine($"Elapsed: {sw.Elapsed.ToString()}");
}
}
}