--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
i have testng.jar in C:\users\ . But it gives the following error.
C:\Users>java org.testng.TestNG homepage.xml
Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/TestNG
Caused by: java.lang.ClassNotFoundException: org.testng.TestNG
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.testng.TestNG. Program will exit.
Here Do i need to compile all the java files i have?
before run the testng.xml file?
Thanks,
Elangovan G.
It gives error as follows,
C:\>java -classpath D:\Subversion\QASCRIPTS\trunk\Matrix\testng-5.14.1.jar org.t
estng.TestNG D:\Subversion\QASCRIPTS\trunk\Matrix\xml\homepage.xml
[ClassHelper] Could not instantiate com.matrix.qa.test.TestHome: com.matrix.qa.t
est.TestHome
[ClassHelper] Could not instantiate com.matrix.qa.test.TestHome: com.matrix.qa.t
est.TestHome
org.testng.TestNGException:
Cannot find class in classpath: com.matrix.qa.test.TestHome
at org.testng.xml.XmlClass.getSupportClass(XmlClass.java:59)
at org.testng.internal.ClassInfoMap.<init>(ClassInfoMap.java:19)
at org.testng.TestRunner.initMethods(TestRunner.java:395)
at org.testng.TestRunner.init(TestRunner.java:234)
at org.testng.TestRunner.init(TestRunner.java:204)
at org.testng.TestRunner.<init>(TestRunner.java:146)
at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRu
nner.java:499)
at org.testng.SuiteRunner.init(SuiteRunner.java:140)
com.matrix.qa.test.TestHome is our test class.
Before i run this do i need to compile all the java classes?
Thanks,
Elangovan G.
This too not working, I have the testng.jar in the path
D:\Subversion\QASCRIPTS\trunk\Matrix
java -classpath D:\Subversion\QASCRIPTS\trunk\Matrix\* org.t
estng.TestNG D:\Subversion\QASCRIPTS\trunk\Matrix\xml\homepage.xml
Exception in thread "main" java.lang.NoClassDefFoundError: D:\Subversion\QASCRIP
TS\trunk\Matrix\/project
Caused by: java.lang.ClassNotFoundException: D:\Subversion\QASCRIPTS\trunk\Matri
x\.project
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: D:\Subversion\QASCRIPTS\trunk\Matrix\.project. P
rogram will exit.
C:\Users\BPA PV2000>java -classpath D:\Subversion\QASCRIPTS\trunk\Matrix org.tes
tng.TestNG D:\Subversion\QASCRIPTS\trunk\Matrix\xml\homepage.xml
Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/TestNG
Caused by: java.lang.ClassNotFoundException: org.testng.TestNG
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: org.testng.TestNG. Program will exit.
I am not getting this
"When I was researching CLASSPATH I found that if you use a jar file it
is ignored, so I simply place my library jars in a directory listed in
my manifest file and it works fine. It does mean that I end up
renaming the libs directory for Selenium to lib, but that does not
bother Selenium at all."
you mean, telling to list the jar files in the MANIFEST.MF file of the
jar testng.jar. I am not able to edit this MANIFEST.MF file.
I really want this soon... I needed to schedule my testsuites. I can
do this if i run tests from command line. Please let me know the full
procedure.
Before run the test Don't i need to compile the java classes present
in testsuite.xml?
and also what it mean, older TestNG means," I am curious why you are
using an older TestNG than what comes with Selenium."
Thanks,
Elangovan G.
This is a mavenised Selenium test framework, it may provide some pointers:
Not sure what you mean with the first two lines…
The mavenised framework I gave you a link to uses JUnit instead of TestNG, but as an example it should show you how things are done, TestNG and JUnit are pretty interchangeable.
Maven is excellent for dependency management and if you don’t do anything complex during your build process is usually fine. Ant has a lot more granularity and is easier to use if you want to do complex stuff during your build IMHO. You’ll probably find a million different views on the net ranging from Maven = Hell to Ant = Hell. The best thing to do is try them and see which you prefer personally. You can use both of them together if you want to (there are varying ways to mix and match them).
C:\>java -classpath "D:\Subversion\QASCRIPTS\trunk\Matrix\testng-5.14.1.jar;D:\Subversion\QASCRIPTS\trunk\Matrix\testclasses" org.testng.TestNG D:\Subversion\QASCRIPTS\trunk\Matrix\xml\homepage.xml
Hi friends,Finally i shceduled the batch file in to Task schedular. Batch file has commands to invoke the ant build file. Now testsuite is running for every 30minutes. It is done in local machine only. It has to done in VM in future.Thanks a lot to everyone :DRegards,
On Mon, Jan 30, 2012 at 6:54 PM, Krishnan Mahadevan <krishnan.mahadevan1978@gmail.com> wrote:
I second all that Mark already highlighted over here.I dont think I have anything extra to add on top of what he already has suggested. The best way to figure out what suites you is to play around with them. I felt pampered by maven, so never even bothered to explore ant.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
On Mon, Jan 30, 2012 at 6:47 PM, Mark Collin <ma...@ardescosolutions.com> wrote:
Not sure what you mean with the first two lines…
The mavenised framework I gave you a link to uses JUnit instead of TestNG, but as an example it should show you how things are done, TestNG and JUnit are pretty interchangeable.
Maven is excellent for dependency management and if you don’t do anything complex during your build process is usually fine. Ant has a lot more granularity and is easier to use if you want to do complex stuff during your build IMHO. You’ll probably find a million different views on the net ranging from Maven = Hell to Ant = Hell. The best thing to do is try them and see which you prefer personally. You can use both of them together if you want to (there are varying ways to mix and match them).
From: selenium-users@googlegroups.com [mailto:selenium-users@googlegroups.com] On Behalf Of Elangovan Ganesan
Sent: 30 January 2012 12:57
>> >> >>> >> To unsubscribe from this group, send email to
>> >> >>> >> selenium-users+unsubscribe@googlegroups.com.
>> >> >>> >> For more options, visit this group at
>> >> >>> >>http://groups.google.com/group/selenium-users?hl=en.
>>
>> >> >>> > --
>> >> >>> > You received this message because you are subscribed to the
>> >> >>> Groups
>> >> >>> > "Selenium Users" group.
>> >> >>> > To post to this group, send email to
>> >> >>> > selenium-users@googlegroups.com
>> >> .
>> >> >>> > To unsubscribe from this group, send email to
>> >> >>> > selenium-users+unsubscribe@googlegroups.com.
>> >> >>> > For more options, visit this group at
>> >> >>> >http://groups.google.com/group/selenium-users?hl=en.
>>
>> >> >>> --
>> >> >>> You received this message because you are subscribed to the Google
>> >> >>> Groups
>> >> >>> "Selenium Users" group.
>> >> >>> To post to this group, send email to
>> >> >>> selenium-users@googlegroups.com.
>> >> >>> To unsubscribe from this group, send email to
>> >> >>> selenium-users+unsubscribe@googlegroups.com.
>> >> >>> For more options, visit this group at
>> >> >>>http://groups.google.com/group/selenium-users?hl=en.
>>
>> >> >> --
>> >> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> >> "Selenium Users" group.
>> >> >> To post to this group, send email to
>> >> >> selenium-users@googlegroups.com.
>> >> >> To unsubscribe from this group, send email to
>> >> >> For more options, visit this group at
>> >> >>http://groups.google.com/group/selenium-users?hl=en.
>>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "Selenium Users" group.
>> >> To post to this group, send email to selenium-users@googlegroups.com.
>> >> To unsubscribe from this group, send email to
>> >> For more options, visit this group at
>> >>http://groups.google.com/group/selenium-users?hl=en.
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Selenium Users" group.
>> > To post to this group, send email to selenium-users@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > For more options, visit this group at
>> >http://groups.google.com/group/selenium-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Selenium Users" group.
> To post to this group, send email to selenium-users@googlegroups.com.
> To unsubscribe from this group, send email to
> For more options, visit this group at
> http://groups.google.com/group/selenium-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
-- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error please notify postmaster@ardescosolutions.com
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
-- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error please notify postmaster@ardescosolutions.com
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/za5AvYRwHtcJ.For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.