Closed hknerts closed 4 years ago
@hknerts - Can you please help elaborate as to why do you think that this changeset should be within TestNG?
You can very well build this as a custom annotation that can be used by an individual project to track this information no ?
ping @juherr - Thoughts ?
@krmahadevan @juherr We are considering developing plugins for integration with test management tools (like Xray-Jira). we will have to match the test ids and the platform ids.
if we do this with custom annotation classes, we will have to tell users to develop this constant class. this will adversely affect the integration process.
if this variable is in testng, we'll just ask users to assign this test id variable value, in easy way.
@krmahadevan @juherr After that, i want to implement a common listener class to TestNG. It is about reporting test result to Jira-Xray and other management tools. I think ,it will very useful for huge projects and orgs
Like @krmahadevan, I think a custom annotation is a better solution and you can provide an external jar with the annotation for your customers. Another option is using the description attribute and uses it as an id attribute.
@hknerts - Just to elaborate.
You can create a new project that contains the following two components:
@Test
annotated test methods, which captures the TCMS (Test case management system) specific data such as ID, project etc.,IInvokedMethodListener
wherein in its afterInvocation
you basically retrieve the custom annotation and using its values, you interact with the TCMS system.For this you dont need the changes to reside in TestNG. They can very well reside outside of TestNG as 1 project which your users would add up as a dependency and work with it.
ok, thanks for your response.
TestNG Version
7.0.0
Expected behavior
an "id" variables can be added to Test annotation class as default
Actual behavior
There is no "id" variables in Test Annotation class.
Is the issue reproductible on runner?
Test case sample