From alex.schenkman at oracle.com Tue Aug 19 13:28:04 2014 From: alex.schenkman at oracle.com (Alex Schenkman) Date: Tue, 19 Aug 2014 15:28:04 +0200 Subject: TestNG: missing classes in JTREG bundled jar Message-ID: <53F350E4.50700@oracle.com> Hi list, I am missing some classes in the testng.jar bundled within JTREG, compared to the stock TestNG available for download. The versions seem to be same, though: 6.8.2beta_20130330_0839. I have tested to run my tests through JTREG, using the stock TestNG, and it seems to work fine. 1) I am unable to run the tests outside of JTREG. During test development, it would be great to be able to run the tests outside JTREG (on the command line or within an IDE). The error I get is: Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/reporters/jq/Main This class is present in the regular distribution, but missing in JTREG's. 2) YAML support for specifying test The regular TestNG includes the library SnakeYAML, but not JTREG's. YAML is friendlier than XML for human eyes. Both during test development and for test maintenance, it would be great to be able specify what to run via YAML instead of XML. The license for this library is Apache License 2.0 [1]. Thanks! [1] http://code.google.com/p/snakeyaml/ -- Alex Schenkman Java VM SQE Stockholm -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex.schenkman at oracle.com Wed Aug 20 13:21:24 2014 From: alex.schenkman at oracle.com (Alex Schenkman) Date: Wed, 20 Aug 2014 15:21:24 +0200 Subject: Howto pass TestNG arguments from JTREG Message-ID: <53F4A0D4.4060007@oracle.com> Hi list, How can I specify TestNG arguments from JTREG. For example, I would like to pass "-verbose 4" to TestNG. I have not found this information on the docs. Thanks in advance! -- Alex Schenkman Java VM SQE Stockholm -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex.schenkman at oracle.com Tue Aug 26 11:38:11 2014 From: alex.schenkman at oracle.com (Alex Schenkman) Date: Tue, 26 Aug 2014 13:38:11 +0200 Subject: How to configure TestNG? In-Reply-To: <53F4A0D4.4060007@oracle.com> References: <53F4A0D4.4060007@oracle.com> Message-ID: <53FC71A3.5030400@oracle.com> Hi again list, Is there a way to tell TestNG how I want to run my tests? Thanks in advance! PS: I posted the same question a week ago, but I got no answer. See below. On 2014-08-20 15:21, Alex Schenkman wrote: > Hi list, > > How can I specify TestNG arguments from JTREG. > For example, I would like to pass "-verbose 4" to TestNG. > > I have not found this information on the docs. > Thanks in advance! > > -- > Alex Schenkman > Java VM SQE Stockholm -- Alex Schenkman Java VM SQE Stockholm -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.duigou at oracle.com Tue Aug 26 16:53:47 2014 From: mike.duigou at oracle.com (Mike Duigou) Date: Tue, 26 Aug 2014 09:53:47 -0700 Subject: How to configure TestNG? In-Reply-To: <53FC71A3.5030400@oracle.com> References: <53F4A0D4.4060007@oracle.com> <53FC71A3.5030400@oracle.com> Message-ID: There is no such mechanism. JTReg acts as the TestNG driver so the normal command line args used with the TestNG driver do not apply. It might be possible to enhance the TestNG integration by using the JTreg verbose flags to control TestNG verbosity. Mike On Aug 26 2014, at 04:38 , Alex Schenkman wrote: > Hi again list, > > Is there a way to tell TestNG how I want to run my tests? > > Thanks in advance! > > > PS: I posted the same question a week ago, but I got no answer. See below. > > > On 2014-08-20 15:21, Alex Schenkman wrote: >> Hi list, >> >> How can I specify TestNG arguments from JTREG. >> For example, I would like to pass "-verbose 4" to TestNG. >> >> I have not found this information on the docs. >> Thanks in advance! >> >> -- >> Alex Schenkman >> Java VM SQE Stockholm > > -- > Alex Schenkman > Java VM SQE Stockholm -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex.schenkman at oracle.com Wed Aug 27 07:27:22 2014 From: alex.schenkman at oracle.com (Alex Schenkman) Date: Wed, 27 Aug 2014 09:27:22 +0200 Subject: How to configure TestNG? In-Reply-To: References: <53F4A0D4.4060007@oracle.com> <53FC71A3.5030400@oracle.com> Message-ID: <22BD637D-EAD3-40CD-B217-293095165A55@oracle.com> Thanks for your answer Mike. The point is not the verbose flag in itself, that was just an example. The use case for passing arguments to TestNG is to being able to fully utilise what TestNG offers: 1) specify my own implementation of ITestListener, for logging test life cycle (started, passed, failed) 2) specify my own IReporter, for getting the console output of each test, with timestamps. 3) specify at very detailed level what tests I want to run, and how. Yes, I think we should improve further the JTreg/TestNG integration. -- Alex Schenkman Java VM SQE Stockholm On 26-Aug-2014, at 18:53, Mike Duigou wrote: > There is no such mechanism. JTReg acts as the TestNG driver so the normal command line args used with the TestNG driver do not apply. It might be possible to enhance the TestNG integration by using the JTreg verbose flags to control TestNG verbosity. > > Mike > > On Aug 26 2014, at 04:38 , Alex Schenkman wrote: > >> Hi again list, >> >> Is there a way to tell TestNG how I want to run my tests? >> >> Thanks in advance! >> >> >> PS: I posted the same question a week ago, but I got no answer. See below. >> >> >> On 2014-08-20 15:21, Alex Schenkman wrote: >>> Hi list, >>> >>> How can I specify TestNG arguments from JTREG. >>> For example, I would like to pass "-verbose 4" to TestNG. >>> >>> I have not found this information on the docs. >>> Thanks in advance! >>> >>> -- >>> Alex Schenkman >>> Java VM SQE Stockholm >> >> -- >> Alex Schenkman >> Java VM SQE Stockholm > -------------- next part -------------- An HTML attachment was scrubbed... URL: