cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Test with Bugs - API

Visitor

Test with Bugs - API

The following c# code snippet gets all tests associated with a bug, but it is super slow and cannot be run in parallel. Is there a way in the WebApi to do the same thing?

 

private string RunCommand(string bugId)

{

  var proc1 = new ProcessStartInfo();

  proc1.UseShellExecute = false;

  proc1.RedirectStandardOutput = true;

  proc1.CreateNoWindow = true;

  proc1.WorkingDirectory = @"C:\Windows\System32";

  proc1.FileName = @"C:\Windows\System32\cmd.exe";

  proc1.Verb = "runas";

  proc1.Arguments = string.Format( "/c " + "im viewissue --showtestresults {0}", bugId);

  string result = string.Empty;

  using (Process process = Process.Start(proc1))

  {

    using (StreamReader reader = process.StandardOutput)

     {

        result = reader.ReadToEnd();

     }

  }

 return result;

}

 

Tags (1)
1 REPLY 1
Highlighted

Re: Test with Bugs - API

Hi,

I had a look on our ILM 11.2 server and found http://server:7001/webservices/10/Test/?wsdl. There is an operation called getResults. Please have a look at the documentation here. It seems that an input parameter RelatedToItem may be specified. I think this is what you are looking for.

Best regards, Richard.

 

References: CS206651 CS206731 CS206732 CS206297