0
votes

I am making Automation Framework using Selenium , JAVA, Maven, TestNG & Eclipse. So my question is regarding which TYPE OF FILE I should use for:

  1. Keeping test Data ? (Right now I am using XML file as it is light & free unlike Excel)
  2. Creating test case. ? (Currently I am using simple .Java text file for each test case)
  3. For creating Reports ? (Thinking to make XML report & then display it using HTML file)

Will be nice if you share Pros & Cons along with your views/recommendation/suggestion.

I think this will help me finalize my file structure. We can add functionality & facilities anytime. Thanks a lot.

1
Less response has inferrred me that there are less people in Testing arena. When I used to do development in PHP & JAVA, there were crowdy :0 - Tejas Saini

1 Answers

0
votes
  1. Keeping test Data, you might want to try using .Java files to store data, then use getter and setter. If you are using TestNG you can use the annotation @DataProvider() which will really help you on keeping test data.

Constants can also be put in . Java files as an interface

  1. Creating test case --> It is a good thing to use .Java file

  2. Creating reports --> Yep, you got the idea. Try to use TestNG, it's easy to set up.