| org.netbeans.modules.ws.qaf.WebServicesTestBase
All known Subclasses: org.netbeans.modules.ws.qaf.editor.HintsTests, org.netbeans.modules.ws.qaf.designer.WebServiceDesignerTest, org.netbeans.modules.ws.qaf.WebServiceSamplesTest, org.netbeans.modules.ws.qaf.rest.RestTestBase, org.netbeans.modules.ws.qaf.WsValidation,
WebServicesTestBase | abstract public class WebServicesTestBase extends JellyTestCase (Code) | | Base class for web services UI tests
author: lukas |
Inner Class :protected enum ProjectType | |
Inner Class :protected enum JavaEEVersion | |
Inner Class :protected enum ServerType | |
REGISTERED_SERVER | final protected static ServerType REGISTERED_SERVER(Code) | | |
WebServicesTestBase | public WebServicesTestBase(String name)(Code) | | Default constructor.
Parameters: testName - name of particular test case |
createNewFile | protected void createNewFile(Project p, String fileCategory, String fileType)(Code) | | Helper method to be used by subclasses to create new file of given
fileType from fileCategory category
Parameters: p - project where to create new file Parameters: fileType - file type name from web services category |
createNewWSFile | protected void createNewWSFile(Project p, String fileType)(Code) | | Helper method to be used by subclasses to create new file of given
fileType from Web Services category
Parameters: p - project where to create new file Parameters: fileType - file type name from web services category |
createProject | protected Project createProject(String name, ProjectType type, JavaEEVersion javaeeVersion) throws IOException(Code) | | Helper method to be used by subclasses to create new project according
to given parameters. Default server registered in the IDE will be used.
Parameters: name - project or sample name Parameters: type - project type Parameters: javaeeVersion - server type, can be null created project throws: java.io.IOException - |
deployProject | protected void deployProject(String projectName) throws IOException(Code) | | Deploy a project
Parameters: projectName - name of the project to be deployed |
dumpOutput | protected void dumpOutput() throws IOException(Code) | | Save content of output tabs into test's working directory.
Might be useful for diagnosing possible test failures
throws: java.io.IOException - |
getJavaEEversion | protected JavaEEVersion getJavaEEversion()(Code) | | Java EE version set for test case, JavaEEVersion.JAVAEE5
is used by default
Override this method to use different Java EE version
Java EE version set for test case |
getProject | protected Project getProject()(Code) | | Get a Project instance used by test case
a Project instance |
getProjectName | abstract protected String getProjectName()(Code) | | Get the name of the project to be used by test case
name of the project |
getProjectRootNode | protected ProjectRootNode getProjectRootNode()(Code) | | Get Node for the project used by test case
an instance of ProjectRootNode |
getProjectType | protected ProjectType getProjectType()(Code) | | Project type set for test case, ProjectType.WEB is used by default
Override this method to use different ProjectType
ProjectType set for test case |
getSamplesCategoryName | protected String getSamplesCategoryName()(Code) | | Get the name of the sample project's category (ie. Web Services)
name of the project |
runProject | protected void runProject(String projectName) throws IOException(Code) | | Run a project
Parameters: projectName - name of the project to be run |
setUp | public void setUp() throws Exception(Code) | | Method responsible for checking and setting up environment for particular
test case, mainly for setting up project to be used by test case.
Following logic is used for setting up a project (Note that
getProjectName() method is used for getting correct project
name):
- look for a project in projects directory in data directory
and if project is found there then open it in the IDE
- look for a project in
System.getProperty("xtest.tmpdir")
(if test is run by XTest) or
in System.getProperty("java.io.tmpdir") directory
(if internal execution is used), if project is found then open it
in the IDE
- if project is not found then it will be created from scratch
throws: java.lang.Exception - |
undeployProject | protected void undeployProject(String projectName) throws IOException(Code) | | Undeploy a project
Parameters: projectName - name of the project to be undeployed |
waitDialogClosed | protected void waitDialogClosed(String dialogTitle)(Code) | | Wait until dialog with title dialogTitle is closed
Parameters: dialogTitle - title of the dialog to be closed |
|
|