Exemplo n.º 1
0
        public int Run(RunRequest request)
        {
            if (PTMKernelService.IsTestSuiteRunning())
            {
                throw new NotSupportedException("PTMService does not support parallel run right now, please wait for the current running job to be completed and then try again.");
            }

            var result = PTMKernelService.CreateTestRun(request.ConfigurationId, request.SelectedTestCases);

            return(result);
        }
Exemplo n.º 2
0
 public IActionResult Check()
 {
     return(Ok(PTMKernelService.IsTestSuiteRunning()));
 }