1 19 20 package org.netbeans.test.web.performance; 21 22 import org.netbeans.jellytools.Bundle; 23 import org.netbeans.jellytools.RuntimeTabOperator; 24 import org.netbeans.jellytools.modules.j2ee.nodes.J2eeServerNode; 25 import org.netbeans.jellytools.nodes.Node; 26 import org.netbeans.jemmy.operators.JButtonOperator; 27 import org.netbeans.jemmy.operators.JFrameOperator; 28 29 33 public class Macros { 34 38 public static J2eeServerNode startBundledTomact() { 39 RuntimeTabOperator.invoke(); 40 J2eeServerNode serverNode = new J2eeServerNode("Bundled Tomcat"); 41 serverNode.start(); 42 return serverNode; 43 } 44 45 49 public static Node stopBundledTomact() { 50 RuntimeTabOperator.invoke(); 51 J2eeServerNode serverNode = new J2eeServerNode("Bundled Tomcat"); 52 serverNode.stop(); 53 return serverNode; 54 } 55 } 56 | Popular Tags |