Class mtTestCase


  • public class mtTestCase
    extends java.lang.Object
    • Field Detail

      • name

        public java.lang.String name
      • file

        public java.lang.String file
      • propFile

        public java.lang.String propFile
      • weight

        public float weight
      • ignoreErrors

        public java.util.Hashtable ignoreErrors
      • description

        public java.lang.String description
      • iterations

        private int iterations
      • attempts

        private int attempts
    • Constructor Detail

      • mtTestCase

        public mtTestCase()
    • Method Detail

      • mtTestCase

        public void mtTestCase()
      • setName

        public void setName​(java.lang.String name)
      • getName

        public java.lang.String getName()
      • setFile

        public void setFile​(java.lang.String name)
      • setInputDir

        public void setInputDir​(java.lang.String dir)
      • getFile

        public java.lang.String getFile()
      • setPropFile

        public void setPropFile​(java.lang.String name)
      • getPropFile

        public java.lang.String getPropFile()
      • setWeight

        public void setWeight​(int weight)
      • setIgnoreErrors

        public void setIgnoreErrors​(java.util.Hashtable t)
      • setDescription

        public void setDescription​(java.lang.String description)
      • initialize

        public java.io.BufferedInputStream initialize()
                                               throws java.io.FileNotFoundException,
                                                      java.io.IOException
        Initialize the test case. See initialize(String)
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
      • initialize

        public java.io.BufferedInputStream initialize​(java.lang.String inputDir)
                                               throws java.io.FileNotFoundException,
                                                      java.io.IOException
        Initizalize the test case. Loads up the properties file and sets the input stream. Used to set up prior to running the thread.
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
      • grab

        public boolean grab()
        Attempt to grab this test case. Uses random number and the weight of this case to determine if the grab was successful.
        Returns:
        true/false
      • runMe

        public void runMe​(LocalizedOutput log,
                          LocalizedOutput out,
                          java.io.BufferedInputStream infile)
        Run the test case. Invokes IJ to do our dirty work.
      • updateURLProperties

        public void updateURLProperties​(java.util.Properties p,
                                        java.lang.String newURLPrefix)
      • alterURL

        public java.lang.String alterURL​(java.lang.String url,
                                         java.lang.String newURLPrefix)
      • toString

        public java.lang.String toString()
        Name says it all
        Overrides:
        toString in class java.lang.Object