com.rational.test.ft.object.interfaces

Class EclipseTestObject

    • Constructor Detail

      • EclipseTestObject

        public EclipseTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
        For internal use.
        Since:
        RFT8.0
      • EclipseTestObject

        public EclipseTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
                                 TestObject anchor)
        For internal use.
        Since:
        RFT8.0
      • EclipseTestObject

        public EclipseTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
                                 TestObject anchor,
                                 long scriptCommandFlags)
        For internal use.
        Since:
        RFT8.0
      • EclipseTestObject

        public EclipseTestObject(com.rational.test.ft.object.TestObjectReference ref)
        For internal use.
        Since:
        RFT8.0
      • EclipseTestObject

        public EclipseTestObject(TestObject obj)
        Constructs one EclipseTestObject from another TestObject. Both are references to the same object.
        Since:
        RFT8.0
    • Method Detail

      • openPerspective

        public void openPerspective(java.lang.String perspectiveID)
        Open the perspective with the given perspective ID.
        Parameters:
        perspectiveID - the perspective ID to activate
        Detail description:
        The method activates the perspective with the given perspective ID.
        Example:

        EclipseTestObject eto = Eclipse().getEclipsePlatformObject();

        if(eto != null)

        {

        eto.openPerspective("org.eclipse.sdk.ide");

        }
      • getCurrentPerspectiveID

        public java.lang.String getCurrentPerspectiveID()
        Provide access to the current perspective ID
        Returns:
        java.lang.String The current active perspective ID.
        Detail description:
        Return the current active perspective ID. The current perspective ID can be used to verify whether the AUT is suitable for regression test.
        Example:

        EclipseTestObject eto = Eclipse().getEclipsePlatformObject();

        if(eto != null)

        {

        String perspectiveID = eto.getCurrentPerspectiveID();

        }
        Since:
        RFT8.0
      • showView

        public void showView(java.lang.String viewId)
        Activates a View in the Eclipse.
        Parameters:
        viewId - The View Id to activate
        Detail description:
        Activate the View for the given ID. No exception is thrown if the View cannot be activated.
        Example:

        EclipseTestObject eto = Eclipse().getEclipsePlatformObject();

        if(eto != null)

        {

        eto.showView("com.rational.test.ft.view");

        }
        Since:
        RFT8.0