TestNG test Failure while executing inside servlet

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

TestNG test Failure while executing inside servlet

bala krishna
public class DemoServer extends HttpServlet{
public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
{
try{
TestListenerAdapter adapter = new TestListenerAdapter();
TestNG testng = new TestNG();
List<String> suites = new ArrayList<String>();;
suites.add("\\testng.xml"); 
testng.setTestSuites(suites);
testng.run();
}
catch(Exception e){
System.out.println("==================> "+e);
}

}



}

--
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 https://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: TestNG test Failure while executing inside servlet

Todd Bradley-2

On Mon, Oct 30, 2017 at 7:54 AM, bala krishna <[hidden email]> wrote:
public class DemoServer extends HttpServlet{
public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
{
try{
TestListenerAdapter adapter = new TestListenerAdapter();
TestNG testng = new TestNG();
List<String> suites = new ArrayList<String>();;
suites.add("\\testng.xml"); 
testng.setTestSuites(suites);
testng.run();
}
catch(Exception e){
System.out.println("==================> "+e);
}

}



}

--
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 https://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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.