Package com.eviware.soapui.model.workspace

Examples of com.eviware.soapui.model.workspace.Workspace


    {
      String projectFilePath = parameters[0];

      try
      {
        Workspace workspace = SoapUI.getWorkspace();
        Project project = findProject( projectFilePath, workspace );

        project = openProject( projectFilePath, workspace, project );

        showModelItem( project );
View Full Code Here


    String testSuiteName = parameters[1];
    String testCaseName = parameters[2];

    try
    {
      Workspace workspace = SoapUI.getWorkspace();
      Project project = findProject( projectFilePath, workspace );

      project = openProject( projectFilePath, workspace, project );

      TestSuite testSuite = project.getTestSuiteByName( testSuiteName );
View Full Code Here

    isStandalone = true;
    soapUICore = core;

    SoapUI soapUI = new SoapUI();
    Workspace workspace = null;

    org.apache.commons.cli.Options options = initSoapUIOptions();
    CommandLineParser parser = new PosixParser();
    CommandLine cmd = parser.parse( options, args );
View Full Code Here

  public SaveAllProjectsAction()
  {
    super( "Save All Projects", "Saves all projects in the current Workspace" );

    Workspace workspace = SoapUI.getWorkspace();
    if( workspace == null )
    {
      setEnabled( true );
    }
    else
    {
      setEnabled( workspace.getProjectCount() > 0 );
      workspace.addWorkspaceListener( this );
    }
  }
View Full Code Here

public class WorkspaceTestCase extends TestCase
{
  public void testWorkspaceImpl() throws Exception
  {
    Workspace workspace = WorkspaceFactory.getInstance().openWorkspace(
        System.getProperty( "user.home", "." ) + File.separatorChar + SoapUI.DEFAULT_WORKSPACE_FILE, null );

    for( int c = 0; c < workspace.getProjectCount(); c++ )
    {
      System.out.println( workspace.getProjectAt( c ).getName() );
    }
  }
View Full Code Here

public class WorkspaceDirProvider implements ValueProvider
{
  public String getValue( PropertyExpansionContext context )
  {
    Workspace workspace = SoapUI.getWorkspace();

    if( workspace == null )
    {
      ModelItem modelItem = context.getModelItem();
      if( modelItem instanceof Workspace )
      {
        workspace = ( Workspace )modelItem;
      }
      else
      {
        Project project = ModelSupport.getModelItemProject( modelItem );
        if( project != null )
          workspace = project.getWorkspace();
      }
    }

    return workspace == null ? null : PathUtils.getAbsoluteFolder( workspace.getPath() );
  }
View Full Code Here

        isStandalone = true;
        soapUICore = core;

        SoapUI soapUI = new SoapUI();
        Workspace workspace = null;

        org.apache.commons.cli.Options options = initSoapUIOptions();
        CommandLineParser parser = new PosixParser();
        CommandLine cmd = parser.parse(options, args);
View Full Code Here

public class WorkspaceTest {

    @Test
    public void testWorkspaceImpl() throws Exception {
        Workspace workspace = WorkspaceFactory.getInstance().openWorkspace(
                System.getProperty("user.home", ".") + File.separatorChar + SoapUI.DEFAULT_WORKSPACE_FILE, null);

        for (int c = 0; c < workspace.getProjectCount(); c++) {
            assertNotNull(workspace.getProjectAt(c).getName());
        }
    }
View Full Code Here

    public void openProject(String[] parameters) {
        if (parameters != null && parameters.length == 1) {
            String projectFilePath = parameters[0];

            try {
                Workspace workspace = SoapUI.getWorkspace();
                Project project = findProject(projectFilePath, workspace);

                project = openProject(projectFilePath, workspace, project);

                showModelItem(project);
View Full Code Here

        String projectFilePath = parameters[0];
        String testSuiteName = parameters[1];
        String testCaseName = parameters[2];

        try {
            Workspace workspace = SoapUI.getWorkspace();
            Project project = findProject(projectFilePath, workspace);

            project = openProject(projectFilePath, workspace, project);

            TestSuite testSuite = project.getTestSuiteByName(testSuiteName);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.workspace.Workspace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.