TestLink/Jenkins and Junit Parameterized Tests

227 views
Skip to first unread message

Gustavo Godoy

unread,
Feb 1, 2013, 12:06:27 PM2/1/13
to testlink-users
Hi,

My design of Junit uses annotation @Parameterized. I read from an
excel file and get more than one fields values for testing.
In my integration with Jenkins, I have to define my method in my
custom field that I named Java class. Example:

br.com.Class#myMethod

My problem is when I run my Junit, my method name in .xml become
myMethod[0], myMethod[1], myMethod[n], an array of my excel values.

Anyone knows how to workaround? Can I use Regex in Jenkins Plugin
Result Seek Strategy? Or create a Custom Field like an Array?

I'm using Junit 4.11 @Parameterized(name="") to avoid, but is not a
best practice...


Tks,

Gustavo Godoy
Reply all
Reply to author
Forward
0 new messages