In 5.5 is seems that unit tests from all builds show up under the "Unit Tests" grouping on the Test Automation dashboard.
Is is possible to create user-defined sub-groupings under "Unit Test" to help isolate test run reporting by component or application?
Answer by Solmaz A. ·
Hi Andreas,
Just checking to see if we made any progress on this issue.
Thanks,
Solmaz
I have to appologize. I had to deliver a training class and didnt yet have the time to do it. I hope to get you an update by early next week. keep poking me about it in case you dont hear from me
Answer by Solmaz A. ·
Yes I'm currently using the NANT Taks Library for starting and stopping a session recording on Dynatrace. In the page that you provided I only see the following attributes for the Settestinformation target. I don't see any values for category though. Am I missing something here?
SetTestInformation (new in dynaTrace 3.5)
thanks.
Solmaz
Hi. You are totally right. It seems we have not extended the NAnt Library with the new parameter that was introduced in 5.5. The NAnt Library basically calls the REST Interface - System Profiles (REST) - to set the Test Automation Information.
You have two options
a) Give us a couple of days until we update the NAnt library
b) call the REST Interface directly from your build script
Andi
Answer by Solmaz A. ·
Hi Andreas,
Checking the samples from ANT lib in DT documents I see the following example :
-<DtSetTestInformation testrunname="${test.loadtestname}" category="load" serverurl="${dynatrace.server.url}" password="${dynatrace.server.pass}" username="${dynatrace.server.user}" profilename="${dynatrace.profile}" setInformationStatusProperty="dtStatusProperty">
</DtSetTestInformation>
Can I have the equivalent NANT syntax as I can't find it anywhere in the docs.
thanks,
Solmaz
Hi Solmaz
The approach is the same - whether it is for Java or .NET based Unit Tests. The call "DtSetTestInformation" actually executes a REST call to inform the dT Server that the tests to come are of that category. It is actually some metadata we set on the system profile. Every Unit Test PurePath that is captured after making this call will then be correctly assigned to that test category.
For NAnt we have an equivalent extension available for download: NANT Task Library
Andi
Answer by Andreas G. ·
It is not possible to define custom test categories - but - you can specify whether unit tests are "Unit" or "Performance Tests". There is a new parameter in the SetMetaData REST Interface - check it out here: System Profiles (REST)
Also - check out the updated documentation on how to best use test categories: Test Automation
JANUARY 15, 3:00 PM GMT / 10:00 AM ET