Interface ITTestCaseManager


  • public interface ITTestCaseManager
    • Method Detail

      • installTestCase

        int installTestCase​(InputStream is,
                            int profileId)
                     throws RemoteException
        Install a given test case against the provided Profile ID
        Parameters:
        is - an inputstream to the testcase
        profileId - the id of the profile
        Returns:
        int ID of created testcase
        Throws:
        RemoteException - if it breaks
      • installTestCase

        int installTestCase​(InputStream is,
                            int profileId,
                            String description)
                     throws RemoteException
        Install a given test case against the provided Profile ID with description
        Parameters:
        is - an inputstream to the testcase
        profileId - the id of the profile
        description - description to display
        Returns:
        int ID of created testcase
        Throws:
        RemoteException - if it breaks
      • runTestCase

        List<ProcessingResultBean> runTestCase​(int testCaseId,
                                               int profileId)
                                        throws RemoteException
        Run a specific test case against a specific Profile ID
        Parameters:
        testCaseId - the id of the testcase
        profileId - the id of the profile
        Returns:
        list of results
        Throws:
        RemoteException - if it breaks
      • runTestCaseSeveralTimes

        void runTestCaseSeveralTimes​(int testCaseId,
                                     int profileId,
                                     int runCount)
                              throws RemoteException
        Run a specific test case against a specific Profile ID a provided number of times
        Parameters:
        testCaseId - the id of the testcase
        profileId - the id of the profile
        runCount - the number of times to run the test case
        Throws:
        RemoteException - if it breaks
      • runTestCase

        List<ProcessingResultBean> runTestCase​(int testCaseId,
                                               int profileId,
                                               Properties props)
                                        throws RemoteException
        Run a specific test case against a specific Profile ID
        Parameters:
        testCaseId - the id of the testcase
        profileId - the id of the profile
        props - properties to be set on generated MimeMessage
        Returns:
        list of results
        Throws:
        RemoteException - if it breaks
      • runTestCase

        List<ProcessingResultBean> runTestCase​(ITTestCaseManager.MessageSourceType messageSourceType,
                                               int testCaseId,
                                               int profileId)
                                        throws RemoteException
        Run a specific test case against a specific Profile ID while providing the MessageSourceType
        Parameters:
        messageSourceType - indicate the source of the message
        testCaseId - the id of the testcase
        profileId - the id of the profile
        Returns:
        list of results
        Throws:
        RemoteException - if it breaks
      • runTestCase

        List<ProcessingResultBean> runTestCase​(ITTestCaseManager.MessageSourceType messageSourceType,
                                               int testCaseId,
                                               int profileId,
                                               Properties props)
                                        throws RemoteException
        Run a specific test case against a specific Profile ID while providing the MessageSourceType
        Parameters:
        messageSourceType - indicate the source of the message
        testCaseId - the id of the testcase
        profileId - the id of the profile
        props - properties to be set on generated MimeMessage
        Returns:
        list of results
        Throws:
        RemoteException - if it breaks
      • getMessage

        javax.mail.internet.MimeMessage getMessage​(InputStream messageStream)
                                            throws javax.mail.MessagingException
        Get the MimeMessage of the message
        Parameters:
        messageStream - inputstream to the message
        Returns:
        message from stream
        Throws:
        javax.mail.MessagingException - if it breaks
      • getMessage

        javax.mail.internet.MimeMessage getMessage​(InputStream messageStream,
                                                   Properties props)
                                            throws javax.mail.MessagingException
        Get the MimeMessage of the message
        Parameters:
        messageStream - inputstream to the message
        props - properties to be set on generated MimeMessage
        Returns:
        message from stream
        Throws:
        javax.mail.MessagingException - if it breaks
      • deleteAllTestCases

        void deleteAllTestCases()
                         throws IOException
        Delete all the test cases available
        Throws:
        IOException - if it breaks
      • getTestCaseMessageSize

        long getTestCaseMessageSize​(int testCaseId)
        Get a specific test cases message size via provided id
        Parameters:
        testCaseId - to get the test case entity
        Returns:
        message size of test case
      • runTestsInParallel

        ParallelTestResultBean runTestsInParallel​(int testCaseId,
                                                  int profileId,
                                                  int executionCount,
                                                  int threadCount)
                                           throws RemoteException
        Parameters:
        testCaseId -
        profileId -
        executionCount -
        threadCount -
        Returns:
        the result of the parallel execution
        Throws:
        RemoteException