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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Test with Bugs - API

rgilcrist
3-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;

}

 

1 REPLY 1

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

 

Top Tags