Class Binder


  • public class Binder
    extends Object
    Apply aspect.
    • Method Detail

      • replaceBindModule

        public static void replaceBindModule​(BindModule module)
        Replace customized BindModule. You need call this before instanciate TestCase/TestSuite.
        Parameters:
        module - BindModule instance.
      • newTestCase

        public static TestCase newTestCase​(SourceType sourceType,
                                           String filename,
                                           String name,
                                           String baseURL)
        Constructs TestCase applied aspect.
        Parameters:
        sourceType - test-case source type.
        filename - Selenese script file.
        name - test-case name.
        baseURL - base URL in script.
        Returns:
        TestCase instance.
      • newTestCase

        @Deprecated
        public static TestCase newTestCase​(String filename,
                                           String name,
                                           String baseURL)
        Deprecated.
        Constructs TestCase applied aspect.
        Parameters:
        filename - Selenese script file.
        name - test-case name.
        baseURL - base URL in script.
        Returns:
        TestCase instance.
      • newTestSuite

        public static TestSuite newTestSuite​(String filename,
                                             String name)
        Constructs TestSuite applied aspect.
        Parameters:
        filename - Selenese script file.
        name - test-suite name.
        Returns:
        TestSuite instance.
      • newTestProject

        public static TestProject newTestProject​(String filename,
                                                 String name)
        Constructs TestProject applied aspect.
        Parameters:
        filename - Selenese script file.
        name - test-project name.
        Returns:
        TestProject instance.
      • newErrorTestCase

        public static ErrorTestCase newErrorTestCase​(String filename,
                                                     InvalidSeleneseException e)
        Constructs ErrorTestCase applied aspect.
        Parameters:
        filename - Selenese script file.
        e - InvalidSeleneseException instance.
        Returns:
        ErrorTestCase instance.
      • newErrorTestSuite

        public static ErrorTestSuite newErrorTestSuite​(String filename,
                                                       InvalidSeleneseException e)
        Constructs ErrorTestSuite applied aspect.
        Parameters:
        filename - Selenese script file.
        e - InvalidSeleneseException instance.
        Returns:
        ErrorTestSuite instance.
      • newErrorTestProject

        public static ErrorTestProject newErrorTestProject​(String filename,
                                                           InvalidSeleneseException e)
        Constructs ErrorTestProject applied aspect.
        Parameters:
        filename - Selenese script file.
        e - InvalidSeleneseException instance.
        Returns:
        ErrorTestProject instance.
      • newCommandList

        public static CommandList newCommandList()
        Constructs CommandList applied aspect.
        Returns:
        CommandList instance.