Difference between Junit and Jtest10.x(UTA)
in Jtest
What is the difference between Junit and UTA(jtest10.x).
In jtest 10.x and 9.x, can we pass inputs to test cases by using database?
0
What is the difference between Junit and UTA(jtest10.x).
In jtest 10.x and 9.x, can we pass inputs to test cases by using database?
Comments
Hi Lavanya,
Junit is a unit testing framework for Java, whereas Unit Test Assistant (UTA) in Jtest 10.x is a tool which is used to build, improve, and analyze Junit tests. Jtest does not compete with or replace Junit; it helps you build and maintain Junit tests.
It is possible to use database inputs to Junit tests, although this is not a standard feature of Junit. You would need a library or API, like JDBC, to access the database for the data you need.
Also, if a database is not required, UTA within Jtest 10.3.2 will assist you to create parameterized JUnit test cases that pull the data inputs from within code or from a CSV file.
@bmcglau Thank you for your inputs. "Junit-Tools" is available in Eclipse marketplace which helps to generate Junit test cases. I would like to know how Jtest UTA features differs from "Junit-Tools"
I am not very familiar with JUnit-Tools but after reading the documentation and trying it out here is what I can say:
JUnit-Tools is a very basic JUnit test generation tool. You can generate basic tests that instantiate the class under test and call the method under test. You can also create some basic mocks but I haven't quite figured out how to use them.
UTA has a lot of obvious advantages to JUnit-Tools:
@jakubiak . Thank you so much for your inputs jakubiak