testng.xml with groups and package before/class

174 views
Skip to first unread message

Gerardo Aponte

unread,
Sep 26, 2017, 3:50:56 PM9/26/17
to testng-users
​I am trying to run a xml file 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite">
  <groups>
    <run>
    <include name="Perf Testing"/>
    </run>
  </groups>
  <test name="Test">
    <packages>
      <package name="com.gateway.salesforce.testng.testcases"/>
      <package name="com.gateway.salesforce.dataObjects"/>
    </packages>
  </test> <!-- Test -->
</suite> <!-- Suite -->

Went it run is not seeing a before/after java.class I have, how I can fix this

⇜Krishnan Mahadevan⇝

unread,
Sep 27, 2017, 1:23:04 AM9/27/17
to testng...@googlegroups.com
Gerardo,
Its not entirely clear as to what is the issue that you are facing. Can you please help share the trimmed down version of your java classes, expected output and actual output/error details (if any) to help us debug ?
Also please ensure you are trying it out on the latest version of TestNG viz., 6.12

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/

--
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.
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.

Reply all
Reply to author
Forward
0 new messages