--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
public class ParamsDemo {
@BeforeClass
@Parameters ("value")
public void beforeClass(int value) {
System.err.println("Value passed was : " + value);
}
@Test
public void testMethod() {
System.err.println("Hello world");
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Class1Suite" parallel="false">
<test name="Class1Test">
<parameter name="value" value="420"/>
<classes>
<class name="organized.chaos.forums.ParamsDemo"/>
</classes>
</test> <!-- Class1Test -->
</suite> <!-- Class1Suite -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.15</version>
<configuration>
<suiteXmlFiles>${file}
<suiteXmlFile>${folder}/${suiteXmlFile}</suiteXmlFile>
</suiteXmlFiles>
<skipTests>false</skipTests>
</configuration>
</plugin>
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
How are you running your test ? Am hoping you are running it from within the IDE by right clicking on the corresponding suite xml file and NOT by right clicking on the corresponding TestNG test class.
If the above still doesn't resolve your issue please make sure you include the following :
1. TestNG version (please use 6.11 which is the latest released version )
2. Sample test code which can be used to recreate the problem ( please trim it to a simple one which doesn't use any selenium etc )
3. How are you running it ? Via IDE (which IDE?) or via a build tool (Gradle/ant/maven) or via command prompt (using Java command)
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Please share a simple test, which can be executed to reproduce the problem so that it would help folks here understand what is going wrong.
Also include the following information:
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
<configuration>Cheers,
<suiteXmlFiles>
<suiteXmlFile>${project.build.testOutputDirectory}/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+unsubscribe@googlegroups.com.
Can you please try using TestNG 6.14.3 (the latest released version as of today) and let us know if this is still a problem ?
Since you haven’t shared the imports you are using, you might also want to quickly double check if the annotations are all from the TestNG project and not from the Junit project.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
From: <testng...@googlegroups.com> on behalf of Hasmukh patel <hasmukh...@gmail.com>
Reply-To: <testng...@googlegroups.com>
Date: Monday, September 3, 2018 at 1:08 PM
To: testng-users <testng...@googlegroups.com>
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
The information contained in this e-mail may be confidential. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution or copying of this communication, or any of its contents, is strictly prohibited. If you have received it by mistake please let us know by e-mail immediately and delete it from your system. Many thanks.
La información contenida en este mensaje puede ser confidencial. Ha sido enviada para el uso exclusivo del destinatario(s) previsto. Si el lector de este mensaje no fuera el destinatario previsto, por el presente queda Ud. notificado que cualquier lectura, uso, publicación, diseminación, distribución o copiado de esta comunicación o su contenido está estrictamente prohibido. En caso de que Ud. hubiera recibido este mensaje por error le agradeceremos notificarnos por e-mail inmediatamente y eliminarlo de su sistema. Muchas gracias.