public Process ExecuteMsTest(MessageArgsMsTest messageArgs)
        {
            messageArgs.CreateTestList();
            string additionalArgs = String.Concat("/p:TestListPath=\"", messageArgs.TestListPath, "/p:ResultsFilePath=", "\"", messageArgs.ResultsFilePath, "\"");
            Process currentProcess = ExecuteMsbuildProject(messageArgs.ProjectPath, messageArgs.IpAddressSettings, additionalArgs);

            return currentProcess;
        }
        public Process ExecuteMsTestSpecificList(MessageArgsMsTest messageArgs)
        {
            messageArgs.CreateTestList();
            string uniqueTestResultName = ATACore.Utilities.TimeStampGenerator.GenerateTrxFilePath(messageArgs.WorkingDir);
            string additionalArgs = String.Concat("/p:TestListPath=\"", messageArgs.TestListPath, "\" /p:ResultsFilePath=", "\"", messageArgs.ResultsFilePath, "\"", " /p:TestListName=", "\"", messageArgs.ListName, "\"");
            Process currentProcess = ExecuteMsbuildProject(messageArgs.ProjectPath, messageArgs.IpAddressSettings, additionalArgs);

            return currentProcess;
        }
예제 #3
0
        public string GenerateMsTestMessage(string projectPath, string testListContent, string resultsFilePath, string testListName, IpAddressSettings ipAddressSettings, string workingDir)
        {
            MessageArgsMsTest messageArgs = new MessageArgsMsTest(Command.MSTL, projectPath, ipAddressSettings, workingDir, testListContent, testListName, resultsFilePath);

            string result = GenerateCurrentCommandParametersXml(messageArgs);
            return result;
        }