public override Dictionary <string, string> GetTaskProperties() { LauncherParamsBuilder builder = new LauncherParamsBuilder(); builder.SetRunType(RunType.FileSystem); builder.SetPerScenarioTimeOut(Timeout); var tests = TestsPath.Split("\n".ToArray()); for (int i = 0; i < tests.Length; i++) { string pathToTest = tests[i].Replace("\\", "\\\\"); builder.SetTest(i + 1, pathToTest); } builder.SetUploadArtifact(UploadArtifact); builder.SetArtifactType(ArtType); builder.SetReportName(ReportFileName); builder.SetArchiveName(ArchiveName); builder.SetStorageAccount(StorageAccount); builder.SetContainer(Container); builder.SetBuildNumber(BuildNumber); return(builder.GetProperties()); }
public override Dictionary <string, string> GetTaskProperties() { LauncherParamsBuilder builder = new LauncherParamsBuilder(); builder.SetRunType(RunType.FileSystem); builder.SetPerScenarioTimeOut(Timeout); var tests = TestsPath.Split("\n".ToArray()); for (int i = 0; i < tests.Length; i++) { string pathToTest = tests[i].Replace("\\", "\\\\"); builder.SetTest(i + 1, pathToTest); } builder.SetUploadArtifact(UploadArtifact); builder.SetArtifactType(ArtType); builder.SetReportName(ReportFileName); builder.SetArchiveName(ArchiveName); builder.SetStorageAccount(StorageAccount); builder.SetContainer(Container); builder.SetBuildNumber(BuildNumber); builder.SetEnableFailedTestsReport(EnableFailedTestsReport); builder.SetUseParallelRunner(UseParallelRunner); if (UseParallelRunner) { builder.SetParallelRunnerEnvType(ParallelRunnerConfig.EnvType); if (ParallelRunnerConfig.EnvType == MOBILE) { var devices = ParallelRunnerConfig.Devices; if (devices.Any()) { for (int i = 0; i < tests.Length; i++) { for (int j = 0; j < devices.Count; j++) { builder.SetParallelTestEnv(i + 1, j + 1, devices[j].ToRawString()); } } } } else if (ParallelRunnerConfig.EnvType == WEB) { //TOOO } } return(builder.GetProperties()); }