public static void main(String[] args) throws IOException, BiffException, InterruptedException { List<String> suitesList = new ArrayList<String>(); TestListenerAdapter tla = new TestListenerAdapter(); TestNG testng = new TestNG(); testng.setOutputDirectory(System.getProperty("user.home") + "/Desktop/PMR/Results"); suitesList.add(MnCl.class.getResource("Rgrs.xml").getFile()); testng.setTestSuites(suitesList); testng.addListener(tla); testng.run(); Thread.sleep(10000); // Zipcls fl=new Zipcls(); // fl.main(args); Thread.sleep(10000); Mailing cl = new Mailing(); cl.MLS(); }
/** * Handles the HTTP <code>GET</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // processRequest(request, response); // String umailid=request.getParameter("email"); HttpSession session = request.getSession(true); String mailbody = (String) session.getAttribute("mailcontent"); String umailid = "*****@*****.**"; PrintWriter print1 = response.getWriter(); String content = "Hi <br> Find your Recent Activity Log<br>"; Mailing mail = new Mailing(); // System.out.println("Mail Check:"); System.out.println(mail.MailingHTML(umailid, "Recent Activity Log", content)); print1.print("<h3>"); print1.print( "E-mail has been sent to your registered mail id : " + umailid + "\nTest Data: " + mailbody); print1.print("</h3>"); }