Chris
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Hi Cedric,
let's try it again:
> here <http://testng.org/doc/eclipse.html#eclipse-listeners>.
On Jan 26, 4:16 pm, Cédric Beust ♔ <ced...@beust.com> wrote:
> Hi Chris,
>
> I'm not sure I understand the problem but it sounds like the Eclipse
> plug-in's "Template XML" feature might be what you are looking for. Doc
I know about that feature. But there's another problem with this: if
I'm having an Eclipse workspace with different Java projects they're
all gone use the same template XML. I'd like to configure that on a
project level!
Chris
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
<suite name="SingleSuite" verbose="2" parallel="false" thread-count="4"
data-provider-thread-count="3">
<parameter name="n" value="42" />
@Test
public void btest1(ITestContext c) {
System.out.println("B.btest1 parameter:" + c.getCurrentXmlTest().getParameter("n"));
}
B.btest1: parameter:42
$ cat /private/var/folders/2B/2BTas5adErSfcduaLOvo6U+++TM/-Tmp-/testng-eclipse-1566632353/testng-customsuite.xml<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"><suite configfailurepolicy="skip" thread-count="4" verbose="2" name="SingleSuite" skipfailedinvocationcounts="false" junit="false" parallel="false" data-provider-thread-count="3"><listeners><listener class-name="test.tmp.BListener"/></listeners><parameter name="n" value="42"/><test verbose="2" name="Default test"><classes><class name="test.tmp.B"/></classes></test></suite>
Hi Cedric,
I have the same problem, that the generated testng-customsite.xml does
not include any parameters. I am using Eclipse and let the
testng.xml generated by Eclipse and added my parameters, which I would
like to use in the java code, but instead of using the testng.xml
file in the project folder an empty generated testng-customsite.xml is
used while run as a TestNG Test.
I am new to TestNG, maybe I have a configuration problem.
Could you please help me?
Thanks,
Roland
On Feb 4, 6:41 pm, Cédric Beust ♔ <ced...@beust.com> wrote:
> It looks like the solution to this would be to add a new field to the run
> configuration dialog where you would indicate which testng.xml file to get
> the parameters from.
>
> Did I understand correctly?
>
> --
> Cédric
>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/testng-users?hl=en.
>
> --
> Cédric