Hello All,

Have a challenging question. Before that I would like explain what I doing
in my framework a bit:

1) I have created a custom annotation like this :
@SolarWindsTest(testCaseID = "web-403")
public void doRegistration() throws Exception {
// code the test case here

2) In my testNG listener, in the OnFinish(ISuite iSuite), I am reading the
attribute value for "testCaseID" and using to generate a custom XML report.

3) In case of using the DataProvider feature in testNG, a single test
method will be run multiple times according to the set of data that has be

My question is: How to implement the above #1 into item #3 scenario ? I
want to assign a single testCaseID for each of the test data for which the
test method runs. I researched for dynamic annotation from this
page http://ayoubelabbassi.blogspot.in/2011/01/how-to-add-annotations-at-runtime-to.html
and seems a heck of implementation and wondering whether there is any
simple implementation to achieve this.

Experts, please chip-in :-)

Krishna Raj

You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/9dixRPPGxW0J.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupselenium-users @
postedDec 7, '12 at 12:49p
activeDec 7, '12 at 12:52p



site design / logo © 2022 Grokbase