• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Next Generation Java Testing - any new tools?

 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi C�dric Beust and Hani Suleiman,

I am just curious about the line in the preface which speaks about testing XML files and the advance features like factories, remote invocation, cluster-based test farms etc.,

I am sure that they will NOT be yet another application client to invoke and test. Are you addressing some new tools for the same like JUnit which provides a TestSuite?

Will they help in measuring the performance, memory usage etc also?

Thank you.
 
author
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Raghavan,

Originally posted by Raghavan Muthu:
Hi C�dric Beust and Hani Suleiman,

I am just curious about the line in the preface which speaks about testing XML files and the advance features like factories, remote invocation, cluster-based test farms etc.,

I am sure that they will NOT be yet another application client to invoke and test. Are you addressing some new tools for the same like JUnit which provides a TestSuite?

Will they help in measuring the performance, memory usage etc also?

Thank you.



While we do mention JUnit 3 and JUnit 4 in the book, our techniques and descriptions are mostly centered around TestNG's features, most of which are not available in JUnit. For example, JUnit doesn't support test groups, so unless you implement your own runner that parses these extra annotations and somehow have JUnit understand them, you won't be able to reuse some of the testing design patterns that use groups.

Just to clarify and in case you're not familiar with test groups, TestNG lets you put your test methods in various groups:

@Test(groups = { "functional", "database", "fast" }
public void test1() { ... }

@Test(groups = { "functional", "database", "slow" }
public void test2() { ... }

So that once you have compiled them, you can ask TestNG to only invoke methods that belong to the group "fast" or "database" without recompiling anything.

As for your second question, yes, we do show a few way you can test performance and scalability of a given piece of code (and as far as I know, nobody has ever tried to explain how you can write a test that verifies that a certain piece of code is O(log(n), a technique we cover in a section of our book).

Please let me know if I didn't answer your questions...

--
Cedric
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That was the good explanation. You did answer my queries.

I am just more curious and interestd about O(log(n)).

Thank you Cedric
 
reply
    Bookmark Topic Watch Topic
  • New Topic