public void TestInitialize() { var dir = Path.GetDirectoryName(typeof(SetUpTests).Assembly.Location); Directory.SetCurrentDirectory(dir); UITestSession.TestRailClient = new TestRailAPIClient("https://proton.testrail.io/", TestUserData.GetTestrailUser().Username, TestUserData.GetTestrailUser().Password); UITestSession.TestRailClient.CreateTestRun("Test run " + DateTime.Now); }
public void TestInitialize() { var dir = Path.GetDirectoryName(typeof(SetUpTests).Assembly.Location); Directory.SetCurrentDirectory(dir); TestRailClient = new TestRailAPIClient(_testRailUrl, TestUserData.GetTestrailUser().Username, TestUserData.GetTestrailUser().Password); if (!TestEnvironment.AreTestsRunningLocally()) { TestRailClient.CreateTestRun("Test run " + DateTime.Now); } }
public void TestInitialize() { var dir = Path.GetDirectoryName(typeof(SetUpTests).Assembly.Location); Directory.SetCurrentDirectory(dir); TestRailClient = new TestRailAPIClient(_testRailUrl, TestUserData.GetTestrailUser().Username, TestUserData.GetTestrailUser().Password); var asm = Assembly.GetExecutingAssembly(); var path = System.IO.Path.GetDirectoryName(asm.Location) + "/ProtonVpn.exe"; var version = Assembly.LoadFile(path).GetName().Version.ToString(); version = version.Substring(0, version.Length - 2); if (!TestEnvironment.AreTestsRunningLocally()) { TestRailClient.CreateTestRun(version + " test run " + DateTime.Now); } }