1 Replies Last post: Jan 25, 2012 5:28 PM by Kirill Maximov  
Moreno Carullo Newbie 6 posts since
Jul 8, 2011
Currently Being Moderated

Jan 19, 2012 8:07 PM

TeamCity test history analysis API

Hi folks,

 

I would like to automatically analyze the test history of each test in order to automatically find for example, all tests that have their running time doubled for at most X builds.

 

Do I have to access TeamCity's internal database? Do you provide a sort of scripting interface? If nothing like this exists, I could give it back to the community if it makes sense.

 

Thanks

Moreno

Kirill Maximov JetBrains 2,196 posts since
Aug 23, 2002
Currently Being Moderated
Jan 25, 2012 5:28 PM in response to: Moreno Carullo
Re: TeamCity test history analysis API

Hello Moreno,

 

   Unfortunately, we don't have OpenAPI for the individual test history. You can access build configuration history (SBuildType.getHistory), and load individual build tests, using the following code example:

 

         final BuildStatistics stats = build.getBuildStatistics(new BuildStatisticsOptions(PASSED_TESTS | IGNORED_TESTS, 0));

         final List<STestRun> tests = stats.getTests(null, Order.NATURAL_ASC);
   But executing this query for deep build history may be slow if you have many tests.
 
   Hope, this helps,
   KIR

More Like This

  • Retrieving data ...