How to identify and run the JUnit test cases dynamically againest the multipledata sets corresponding to each test

I have a data configured in Excel Sheet. Excel sheet name is equal to Test Class Name and first Sheet Contains testMethods and correspoing data sheetnames. i have constucted a Map>> object is like Map>. i want to execute one test case with list of map data. so assume that my data is ready now. i want identify the test method in the test class and i need to execute the method dynamically as a JUnit. iam totally struck over here. please help me in this. Regards, Saran Kumar P.

Answers


Your description is rather confusing, but I assume JUnit's parameterized tests could be a solution: https://github.com/junit-team/junit/wiki/Parameterized-tests

That mechanism allows you to have (1) one or more test methods accepting some test data and (2) one method loading or generating a collection of such test data. The test methods are then executed for each entry in the generated dataset.


Need Your Help

3D inelastic collision where the penetration goes beyond the object boundary inbetween the timesteps

3d collision

so collision detection between 2 circles have been covered easily with simple condition like d < (r1 + r2), but what happens if the objects pass through each other during 2 timesteps?

Rails model how to reference column in a class method

ruby-on-rails ruby-on-rails-4

I currently have 2 models - Issue and Responses and i'm trying to add a method on the response model so I can do issue.responses.latest

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.