6 messages in com.googlegroups.testng-users[testng-users] Re: BeforeMethod param...| From | Sent On | Attachments |
|---|---|---|
| David R | 05 Jun 2008 03:20 | |
| David R | 11 Jun 2008 03:42 | |
| Cédric Beust ♔ | 12 Jun 2008 12:03 | |
| Mark Derricutt | 15 Jun 2008 02:12 | |
| David R | 16 Jun 2008 03:24 | |
| Cédric Beust ♔ | 16 Jun 2008 08:07 |
| Subject: | [testng-users] Re: BeforeMethod parameter values![]() |
|---|---|
| From: | Mark Derricutt (ma...@talios.com) |
| Date: | 06/15/2008 02:12:40 AM |
| List: | com.googlegroups.testng-users |
Is this also available for @AfterMethod at all?
Actually, earlier I was updating some test code and thought it'd it be handy to have some way of doing:
@AfterDataProviderMethod public void postProcess(Object[][] data) { ...
which would fire after all data from a data provider has been run through a test, optionally passing in the data that was processed.
To be useful you'd probably also need a ITestResult[] array so we could tell which iterations passed or failed.
Not sure of a decent way of presenting this thou off hand. Would anyone else find this handy?
On Fri, Jun 13, 2008 at 7:03 AM, Cédric Beust ♔ <cbe...@google.com> wrote:
Hi David,
I just implemented this feature. You can now declare an Object[] parameter in your @BeforeMethod method and it will be filled with the parameters that are about to be injected into the test method.
Please download:
http://testng.org/testng-5.8.1beta-jdk15.jar
and let me know if it fixes your problem.
-- Cedric
On Wed, Jun 11, 2008 at 3:43 AM, David R <dros...@gmail.com> wrote:
Is there anyone out there that can point me in the right direction for what i need to do? I want to use before and after methods for my code that require the dataprovider data.
On Jun 5, 1:20 pm, David R <dros...@gmail.com> wrote:
How do i obtain the value of the actualparameterthat is passed to the method? If i usebeforeMethodis it there is the IContext and i do not see it? Or is my only recourse to use a listener?
My goal is similar to what someone else posted -- that for anyparametersent, i want to use thatparameterin theBeforeMethodto do some setup. Currently, i need to do all my setup as part of the test.
TIA, David
-- Cédric
-- "It is easier to optimize correct code than to correct optimized code." -- Bill Harlan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"testng-users" group.
To post to this group, send email to test...@googlegroups.com
To unsubscribe from this group, send email to
test...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/testng-users?hl=en
-~----------~----~----~----~------~----~------~--~---




