How to execute more than 1 xml file in PARALLEL with TestNG

classic Classic list List threaded Threaded
24 messages Options
12
Reply | Threaded
Open this post in threaded view
|

How to execute more than 1 xml file in PARALLEL with TestNG

Manoj Kapuganti
Hi All,

I want to execute multiple xml files (Example: 2 xml files) in parallel with eclipse.

Is there a way to achieve this alone with Eclipse & TestNG.

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/c-u6qNRWZNsJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

吴亭
Hi  Manoj,

Maybe you can try like this:

        TestNG ng = new TestNG();
        ng.setXmlSuites([A list include your xml files]);
        ng.setSuiteThreadPoolSize(3);
        ng.run();

Br,
Tim
2012/8/8 Manoj Kapuganti <[hidden email]>
Hi All,

I want to execute multiple xml files (Example: 2 xml files) in parallel with eclipse.

Is there a way to achieve this alone with Eclipse & TestNG.

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/c-u6qNRWZNsJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Manoj Kapuganti
Hi Tim,

Thanks for you reply.

Could you please let me know how to use above code. Do I need to use listeners. If yes give me briefly.

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/d5bCYWfU-okJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Manoj Kapuganti
Hello Tim,

Thank you so much for your help.

Now I am able to execute multiple xml files in parallel.

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.testng.TestNG;
import org.xml.sax.SAXException;

public class MultipleXmls{

public static void main(String[] args) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException {
TestNG testng = new TestNG(); 
testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse()));
testng.setSuiteThreadPoolSize(3);
testng.run();
    }
}

In Test1.xml content is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Suites"> 
  <suite-files>
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest1.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest2.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest3.xml" />
  </suite-files>
</suite>

Thank you so much for your help again.

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

吴亭
Hi Manoj,

You are welcome, glad to hear the good news :)

Br,
Tim

2012/8/9 Manoj Kapuganti <[hidden email]>
Hello Tim,

Thank you so much for your help.

Now I am able to execute multiple xml files in parallel.

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.testng.TestNG;
import org.xml.sax.SAXException;

public class MultipleXmls{

public static void main(String[] args) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException {
TestNG testng = new TestNG(); 
testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse()));
testng.setSuiteThreadPoolSize(3);
testng.run();
    }
}

In Test1.xml content is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Suites"> 
  <suite-files>
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest1.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest2.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest3.xml" />
  </suite-files>
</suite>

Thank you so much for your help again.

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ.

To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Krishnan Mahadevan
Tim,
Am curious to know:

1.  How do you do this via the TestNG xml suite file [without using the TestNG APIs]
2.  How do you determine that the suites are INDEED running in parallel ? [Thread.getCurrentThread().getId() ?  I see the suites run in parallel when i merely enable parallelism at every suite level itself. So trying to understand the relevance and difference ]

would you happen to know ?

On Thursday, August 9, 2012, 吴亭 wrote:
Hi Manoj,

You are welcome, glad to hear the good news :)

Br,
Tim

2012/8/9 Manoj Kapuganti <<a href="javascript:_e({}, &#39;cvml&#39;, &#39;manojks256@gmail.com&#39;);" target="_blank">manojks256@...>
Hello Tim,

Thank you so much for your help.

Now I am able to execute multiple xml files in parallel.

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.testng.TestNG;
import org.xml.sax.SAXException;

public class MultipleXmls{

public static void main(String[] args) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException {
TestNG testng = new TestNG(); 
testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse()));
testng.setSuiteThreadPoolSize(3);
testng.run();
    }
}

In Test1.xml content is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Suites"> 
  <suite-files>
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest1.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest2.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest3.xml" />
  </suite-files>
</suite>

Thank you so much for your help again.

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ.

To post to this group, send email to <a href="javascript:_e({}, &#39;cvml&#39;, &#39;testng-users@googlegroups.com&#39;);" target="_blank">testng-users@....
To unsubscribe from this group, send email to <a href="javascript:_e({}, &#39;cvml&#39;, &#39;testng-users%2Bunsubscribe@googlegroups.com&#39;);" target="_blank">testng-users+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to <a href="javascript:_e({}, &#39;cvml&#39;, &#39;testng-users@googlegroups.com&#39;);" target="_blank">testng-users@....
To unsubscribe from this group, send email to <a href="javascript:_e({}, &#39;cvml&#39;, &#39;testng-users%2Bunsubscribe@googlegroups.com&#39;);" target="_blank">testng-users+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.


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

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

吴亭
Hi  Krishnan ,

For Q1, I do not know how to do this though the xml files, according to the documents of testng, do not find related contents.

For Q2,  I do not try this before, I just provide a possible solution according the meaning of API. :) Thanks for your reminder, I need have a try for this.

Br,
Tim

2012/8/9 Krishnan Mahadevan <[hidden email]>
Tim,
Am curious to know:

1.  How do you do this via the TestNG xml suite file [without using the TestNG APIs]
2.  How do you determine that the suites are INDEED running in parallel ? [Thread.getCurrentThread().getId() ?  I see the suites run in parallel when i merely enable parallelism at every suite level itself. So trying to understand the relevance and difference ]

would you happen to know ?


On Thursday, August 9, 2012, 吴亭 wrote:
Hi Manoj,

You are welcome, glad to hear the good news :)

Br,
Tim

2012/8/9 Manoj Kapuganti <[hidden email]>
Hello Tim,

Thank you so much for your help.

Now I am able to execute multiple xml files in parallel.

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.testng.TestNG;
import org.xml.sax.SAXException;

public class MultipleXmls{

public static void main(String[] args) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException {
TestNG testng = new TestNG(); 
testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse()));
testng.setSuiteThreadPoolSize(3);
testng.run();
    }
}

In Test1.xml content is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Suites"> 
  <suite-files>
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest1.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest2.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest3.xml" />
  </suite-files>
</suite>

Thank you so much for your help again.

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ.

To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.


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

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Rao
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Rao
In reply to this post by Manoj Kapuganti
Hello Manoj,

Are you using Grid 2.0 to run your Sites parallel??and also please tell me can we generate XSLT reports when running TestNG programatically ??

Please advise me

Advanced Thanks

Rao

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/guce6Aha6pwJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Manoj Kapuganti
Hello Rao,

I am not using Grid.

By using testng.setSuiteThreadPoolSize(10) we can run 10 suites in parallel.

Please see the post on Aug 9, all details including script was pasted over there.

I am not aware of XSLT reports.

Let me know if you need any other details

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/c07EDkhVat4J.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Rao
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Rao
Hello Manoj

Thanks for quick reply, In my TestBase class (I am running my suites parallel in multiple browsers by reading Browser parameter from XML file)

@Parameters ({"browsername"} )
public void openBrowser(String browser) throws MalformedURLException{
if (!isBrowserOpened) {
driver = new ThreadLocal<RemoteWebDriver>();
DesiredCapabilities dc = new DesiredCapabilities();
if (browser.equalsIgnoreCase("firefox")){
dc.setBrowserName(DesiredCapabilities.firefox().getBrowserName());
driver.set(new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"),dc));
}
if (browser.equalsIgnoreCase("iexplorer")){
dc.setBrowserName(DesiredCapabilities.internetExplorer().getBrowserName());
driver.set(new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"),dc));
}

if (browser.equalsIgnoreCase("chrome")){
dc.setBrowserName(DesiredCapabilities.chrome().getBrowserName());
driver.set(new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"),dc));
}
isBrowserOpened = true;
}
}

My XML file is like below

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">

<suite name="Selenium2 Grid with webdriver2" verbose="3" parallel="classes" thread-count="4" >
  <test name="Test LG04" >
<parameter name="browsername" value="chrome" />
    <classes>
      <class name="com.exony.test.framework.login.TestCase_LG04" />
    </classes>
   
  </test>
  <test name="Test LG04_FireFox">
    <parameter name="browsername" value="firefox" />
    <classes>
      <class name="com.exony.test.framework.login.TestCase_LG04" />
    </classes>
  </test>
  <!-- <test name="Test LG06">
<parameter name="browsername" value="firefox"/> 
   <classes>
        <class name="com.exony.test.framework.login.TestCase_LG04" ></class>  
</test>
</suite>


In the above xml file i am specifying the same class to run in both browsers at a time. Manoj, do you know how can specify in TestNg.Xml to run the Suites in multiple browsers at a time. please help me with this

Advanced Thanks

Rao


--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/k9Qv79QiNNIJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Manoj Kapuganti
Hello Rao,

Please use below Xml file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Selenium2 Grid with webdriver2" verbose="3" parallel="tests">

<test name="Test LG04" >
<parameter name="browsername" value="chrome" />
    <classes>
      <class name="com.exony.test.framework.login.TestCase_LG04" />
    </classes>
</test>

  <test name="Test LG04_FireFox">
    <parameter name="browsername" value="firefox" />
    <classes>
      <class name="com.exony.test.framework.login.TestCase_LG04" />
    </classes>
</test>

<test name="Test LG06">
<parameter name="browsername" value="firefox"/> 
   <classes>
        <class name="com.exony.test.framework.login.TestCase_LG04" ></class>  
</test>

</suite>

Rightclick on xml file, choose Run as TestNG. By executing this all 3 tests will start in parallel.

Here you are using only 1 suite. But your in your question you said to execute multiple suites...

Please let me know if you have any queries.

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/vcQ82wDeBRYJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

mummana subramanya
thanks to uh and especially tim for providing the solution for parallel execution of test suites :) before parallel execution it took 5mins approx to complete the all test cases since m using selenium grid its getting completed  with 3 mins :)

On Saturday, November 3, 2012 12:50:00 AM UTC+5:30, Manoj Kapuganti wrote:
Hello Rao,

Please use below Xml file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Selenium2 Grid with webdriver2" verbose="3" parallel="tests">

<test name="Test LG04" >
<parameter name="browsername" value="chrome" />
    <classes>
      <class name="com.exony.test.framework.login.TestCase_LG04" />
    </classes>
</test>

  <test name="Test LG04_FireFox">
    <parameter name="browsername" value="firefox" />
    <classes>
      <class name="com.exony.test.framework.login.TestCase_LG04" />
    </classes>
</test>

<test name="Test LG06">
<parameter name="browsername" value="firefox"/> 
   <classes>
        <class name="com.exony.test.framework.login.TestCase_LG04" ></class>  
</test>

</suite>

Rightclick on xml file, choose Run as TestNG. By executing this all 3 tests will start in parallel.

Here you are using only 1 suite. But your in your question you said to execute multiple suites...

Please let me know if you have any queries.

Best Regards,
Manoj Kapuganti

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Saptha Rishi
In reply to this post by Manoj Kapuganti
Hi Manoj,
             I used the same code as you mentioned but i am facing nullpointerexception, i am new to Testng, kindly help me in this regard
package programs;

java code:

import java.io.IOException;
import java.util.List;

import javax.xml.parsers.ParserConfigurationException;

import org.testng.TestNG;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.xml.sax.SAXException;

public class Multiplexmls {
   
    public static void main(String args[]) throws ParserConfigurationException, SAXException, IOException
    {
        TestNG testng = new TestNG();
        testng.setXmlSuites((List <XmlSuite>)(new Parser("C:\\Users\\SRI\\Desktop\\eclipse\\eclipse\\Workspace\\FirstTestNG\\Mainfile.xml").parse()));
        testng.setSuiteThreadPoolSize(3);
        testng.run();
    }
 
}

TestNG file:
<?xml version="1.0" encoding="UTF-8"?>
<suite name="All test">
<suite-files>
<suite-file path="C:\Users\SRI\Desktop\eclipse\eclipse\Workspace\FirstTestNG\grouptest.xml"/>
<suite-file path="C:\Users\SRI\Desktop\eclipse\eclipse\Workspace\FirstTestNG\testng.xml"/>
</suite-files>
</suite>

ERROR LOG:

Exception in thread "main" java.lang.NullPointerException
    at org.testng.xml.XmlTest.init(XmlTest.java:77)
    at org.testng.xml.XmlTest.<init>(XmlTest.java:68)
    at org.testng.xml.TestNGContentHandler.xmlTest(TestNGContentHandler.java:256)
    at org.testng.xml.TestNGContentHandler.startElement(TestNGContentHandler.java:508)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:745)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1323)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(XMLDocumentScannerImpl.java:1277)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3065)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:881)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:302)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
    at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:17)
    at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:10)
    at org.testng.xml.Parser.parse(Parser.java:172)
    at programs.Multiplexmls.main(Multiplexmls.java:18)


Regards,
Saptha Rishi.M

-------------------------------------------------------------------------------------------
On Thursday, August 9, 2012 1:51:35 AM UTC+5:30, Manoj Kapuganti wrote:
Hello Tim,

Thank you so much for your help.

Now I am able to execute multiple xml files in parallel.

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.testng.TestNG;
import org.xml.sax.SAXException;

public class MultipleXmls{

public static void main(String[] args) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException {
TestNG testng = new TestNG(); 
testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse()));
testng.setSuiteThreadPoolSize(3);
testng.run();
    }
}

In Test1.xml content is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Suites"> 
  <suite-files>
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest1.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest2.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest3.xml" />
  </suite-files>
</suite>

Thank you so much for your help again.

Best Regards,
Manoj Kapuganti

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Saptha Rishi
In reply to this post by Manoj Kapuganti
Friends pls help me with this, its easy to solve for experts like you, and it's all ready solved one but i am using the same code as Manoj mentioned , but facing the nullpointerexception.

kindly help me in this regard.

Regards,
Rishi

On Wednesday, August 8, 2012 7:50:46 PM UTC+5:30, Manoj Kapuganti wrote:
Hi All,

I want to execute multiple xml files (Example: 2 xml files) in parallel with eclipse.

Is there a way to achieve this alone with Eclipse & TestNG.

Best Regards,
Manoj Kapuganti

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Himanshu Shekhar
Hello Saptha,

If you are still facing the same error, could you please try running again after making the following changes:
  • Replace  testng.setSuiteThreadPoolSize(3); to  testng.setSuiteThreadPoolSize(2); since in your case you are using just two test suites.
Himanshu

On Friday, 27 September 2013 14:16:01 UTC+9, Saptha Rishi wrote:
Friends pls help me with this, its easy to solve for experts like you, and it's all ready solved one but i am using the same code as Manoj mentioned , but facing the nullpointerexception.

kindly help me in this regard.

Regards,
Rishi

On Wednesday, August 8, 2012 7:50:46 PM UTC+5:30, Manoj Kapuganti wrote:
Hi All,

I want to execute multiple xml files (Example: 2 xml files) in parallel with eclipse.

Is there a way to achieve this alone with Eclipse & TestNG.

Best Regards,
Manoj Kapuganti

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

sajesh nair
In reply to this post by Manoj Kapuganti
HI Manoj,

I am looking for same solution, but the interesting part I would like to hear from you is How can I achieve the same with Selenium Grid and Ant run.
Appreciate your feedback, thanks in adv.

-
Sajesh

On Thursday, 9 August 2012 01:51:35 UTC+5:30, Manoj Kapuganti wrote:
Hello Tim,

Thank you so much for your help.

Now I am able to execute multiple xml files in parallel.

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.testng.TestNG;
import org.xml.sax.SAXException;

public class MultipleXmls{

public static void main(String[] args) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException {
TestNG testng = new TestNG(); 
testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse()));
testng.setSuiteThreadPoolSize(3);
testng.run();
    }
}

In Test1.xml content is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "<a href="http://testng.org/testng-1.0.dtd" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\46sa\75D\46sntz\0751\46usg\75AFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\46sa\75D\46sntz\0751\46usg\75AFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA';return true;">http://testng.org/testng-1.0.dtd">
<suite name="All Suites"> 
  <suite-files>
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest1.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest2.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest3.xml" />
  </suite-files>
</suite>

Thank you so much for your help again.

Best Regards,
Manoj Kapuganti

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Ss Raghavan
In reply to this post by Krishnan Mahadevan
Hi ,

What is suite of suites, and the parent suite has parallel=true and each suite has parallel enabled?

On Thursday, August 9, 2012 at 7:05:57 AM UTC+5:30, Krishnan wrote:
Tim,
Am curious to know:

1.  How do you do this via the TestNG xml suite file [without using the TestNG APIs]
2.  How do you determine that the suites are INDEED running in parallel ? [Thread.getCurrentThread().getId() ?  I see the suites run in parallel when i merely enable parallelism at every suite level itself. So trying to understand the relevance and difference ]

would you happen to know ?

On Thursday, August 9, 2012, 吴亭 wrote:
Hi Manoj,

You are welcome, glad to hear the good news :)

Br,
Tim

2012/8/9 Manoj Kapuganti <[hidden email]>
Hello Tim,

Thank you so much for your help.

Now I am able to execute multiple xml files in parallel.

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.testng.TestNG;
import org.xml.sax.SAXException;

public class MultipleXmls{

public static void main(String[] args) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException {
TestNG testng = new TestNG(); 
testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse()));
testng.setSuiteThreadPoolSize(3);
testng.run();
    }
}

In Test1.xml content is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "<a href="http://testng.org/testng-1.0.dtd" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\46sa\75D\46sntz\0751\46usg\75AFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\46sa\75D\46sntz\0751\46usg\75AFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA';return true;">http://testng.org/testng-1.0.dtd">
<suite name="All Suites"> 
  <suite-files>
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest1.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest2.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest3.xml" />
  </suite-files>
</suite>

Thank you so much for your help again.

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ';return true;" onclick="this.href='https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ';return true;">https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ.

To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to testng-users+unsubscribe@googlegroups.com.
For more options, visit this group at <a href="http://groups.google.com/group/testng-users?hl=en" target="_blank" rel="nofollow" onmousedown="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;" onclick="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;">http://groups.google.com/group/testng-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to testng-users+unsubscribe@googlegroups.com.
For more options, visit this group at <a href="http://groups.google.com/group/testng-users?hl=en" target="_blank" rel="nofollow" onmousedown="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;" onclick="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;">http://groups.google.com/group/testng-users?hl=en.


--
Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;">http://wakened-cognition.blogspot.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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Krishnan Mahadevan
What exactly are you looking for Raghavan ?

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: Ss Raghavan <[hidden email]>
Reply-To: <[hidden email]>
Date: Wednesday, 20 May 2015 4:05 pm
To: <[hidden email]>
Subject: Re: [testng-users] How to execute more than 1 xml file in PARALLEL with TestNG

Hi ,

What is suite of suites, and the parent suite has parallel=true and each suite has parallel enabled?

On Thursday, August 9, 2012 at 7:05:57 AM UTC+5:30, Krishnan wrote:
Tim,
Am curious to know:

1.  How do you do this via the TestNG xml suite file [without using the TestNG APIs]
2.  How do you determine that the suites are INDEED running in parallel ? [Thread.getCurrentThread().getId() ?  I see the suites run in parallel when i merely enable parallelism at every suite level itself. So trying to understand the relevance and difference ]

would you happen to know ?

On Thursday, August 9, 2012, 吴亭 wrote:
Hi Manoj,

You are welcome, glad to hear the good news :)

Br,
Tim

2012/8/9 Manoj Kapuganti <[hidden email]>
Hello Tim,

Thank you so much for your help.

Now I am able to execute multiple xml files in parallel.

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.testng.TestNG;
import org.xml.sax.SAXException;

public class MultipleXmls{

public static void main(String[] args) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException {
TestNG testng = new TestNG(); 
testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse()));
testng.setSuiteThreadPoolSize(3);
testng.run();
    }
}

In Test1.xml content is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "<a href="http://testng.org/testng-1.0.dtd" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\46sa\75D\46sntz\0751\46usg\75AFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\46sa\75D\46sntz\0751\46usg\75AFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA';return true;">http://testng.org/testng-1.0.dtd">
<suite name="All Suites"> 
  <suite-files>
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest1.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest2.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest3.xml" />
  </suite-files>
</suite>

Thank you so much for your help again.

Best Regards,
Manoj Kapuganti

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ';return true;" onclick="this.href='https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ';return true;">https://groups.google.com/d/msg/testng-users/-/0bVJ5zQL3VsJ.

To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to testng-users+unsubscribe@googlegroups.com.
For more options, visit this group at <a href="http://groups.google.com/group/testng-users?hl=en" target="_blank" rel="nofollow" onmousedown="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;" onclick="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;">http://groups.google.com/group/testng-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to testng-users+unsubscribe@googlegroups.com.
For more options, visit this group at <a href="http://groups.google.com/group/testng-users?hl=en" target="_blank" rel="nofollow" onmousedown="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;" onclick="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;">http://groups.google.com/group/testng-users?hl=en.


--
Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;">http://wakened-cognition.blogspot.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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
MCK
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

MCK
In reply to this post by Manoj Kapuganti
Hi Manoj, 

I used the same below code but i get the following error

Two suites cannot have the same name: Test, where as both sub xml have different suite name, What i Observe is it all the iteration it is picking only first xml and it throws this error.

testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse())); Is this line iterates all xmls properly

Any help on this is really appreciated

Thanks and Regards,
Sayed MCK

On Thursday, 9 August 2012 01:51:35 UTC+5:30, Manoj Kapuganti wrote:
Hello Tim,

Thank you so much for your help.

Now I am able to execute multiple xml files in parallel.

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.testng.TestNG;
import org.xml.sax.SAXException;

public class MultipleXmls{

public static void main(String[] args) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException {
TestNG testng = new TestNG(); 
testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse()));
testng.setSuiteThreadPoolSize(3);
testng.run();
    }
}

In Test1.xml content is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "<a href="http://testng.org/testng-1.0.dtd" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\46sa\75D\46sntz\0751\46usg\75AFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\46sa\75D\46sntz\0751\46usg\75AFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA&#39;;return true;">http://testng.org/testng-1.0.dtd">
<suite name="All Suites"> 
  <suite-files>
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest1.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest2.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest3.xml" />
  </suite-files>
</suite>

Thank you so much for your help again.

Best Regards,
Manoj Kapuganti

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to execute more than 1 xml file in PARALLEL with TestNG

Krishnan Mahadevan
Sayeed,

That error message is self explanatory. Please ensure that the name attribute of your <suite> tag all have unique names and that there are no duplications. That should fix your problem.

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/

On Thu, Nov 12, 2015 at 3:34 PM, MCK <[hidden email]> wrote:
Hi Manoj, 

I used the same below code but i get the following error

Two suites cannot have the same name: Test, where as both sub xml have different suite name, What i Observe is it all the iteration it is picking only first xml and it throws this error.

testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse())); Is this line iterates all xmls properly

Any help on this is really appreciated

Thanks and Regards,
Sayed MCK

On Thursday, 9 August 2012 01:51:35 UTC+5:30, Manoj Kapuganti wrote:
Hello Tim,

Thank you so much for your help.

Now I am able to execute multiple xml files in parallel.

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.testng.xml.Parser;
import org.testng.xml.XmlSuite;
import org.testng.TestNG;
import org.xml.sax.SAXException;

public class MultipleXmls{

public static void main(String[] args) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException {
TestNG testng = new TestNG(); 
testng.setXmlSuites((List <XmlSuite>)(new Parser("G:\\ManojKS\\Eclipse workspace\\Test1.xml").parse()));
testng.setSuiteThreadPoolSize(3);
testng.run();
    }
}

In Test1.xml content is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Suites"> 
  <suite-files>
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest1.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest2.xml" />
  <suite-file path="G:\ManojKS\Eclipse workspace\systemSettings\atest3.xml" />
  </suite-files>
</suite>

Thank you so much for your help again.

Best Regards,
Manoj Kapuganti

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
12