Class TestSuite

    • Constructor Detail

      • TestSuite

        public TestSuite()
    • Method Detail

      • initialize

        public TestSuite initialize​(String filename,
                                    String name)
        Initialize after constructed.
        Parameters:
        filename - Selenese script file.
        name - test-case name.
        Returns:
        this.
      • isError

        public boolean isError()
        Description copied from interface: ITestTarget
        Is error instance?
        Specified by:
        isError in interface ITestTarget
        Returns:
        true if this is error instance.
      • setIndex

        public void setIndex​(int index)
        Description copied from interface: ITreedFileGenerator
        Set index of this object in the parent object.
        Specified by:
        setIndex in interface ITreedFileGenerator
        Parameters:
        index - index.
      • getId

        public String getId()
        Description copied from interface: Selenese
        Get id.
        Specified by:
        getId in interface Selenese
        Returns:
        id.
      • setId

        public void setId​(String id)
        Set test-suite id.
        Parameters:
        id - test-suite id.
      • getWebDriverName

        public String getWebDriverName()
        Get WebDriver name.
        Returns:
        WebDriver name.
      • setWebDriverName

        public void setWebDriverName​(String webDriverName)
        Set WebDriver name.
        Parameters:
        webDriverName - WebDriver name.
      • addSelenese

        public void addSelenese​(Selenese selenese)
        Add Selenese (test-suite/test-case) instance.
        Parameters:
        selenese - Selenese instance.
      • addSeleneseFile

        public void addSeleneseFile​(String filename,
                                    ICommandFactory commandFactory)
        Add Selenese file. (test-suite or test-case)
        Parameters:
        filename - Selenese file name.
        commandFactory - command factory.
      • getSeleneseList

        public List<Selenese> getSeleneseList()
        Get Selenese list.
        Returns:
        Selenese list.
      • execute

        public Result execute​(Selenese parent,
                              Context context)
        Description copied from interface: Selenese
        Execute script.
        Specified by:
        execute in interface Selenese
        Parameters:
        parent - parent selenese instance or null.
        context - Selenese Runner context.
        Returns:
        result.
      • toStringImpl

        protected String toStringImpl​(String className)