Class AbstractScopedTestElement

    • Constructor Detail

      • AbstractScopedTestElement

        public AbstractScopedTestElement()
    • Method Detail

      • getScopeName

        protected String getScopeName()
      • fetchScope

        public String fetchScope()
        Get the scope setting
        Returns:
        the scope, default parent
      • isScopeParent

        public boolean isScopeParent​(String scope)
        Is the assertion to be applied to the main (parent) sample?
        Parameters:
        scope - name of the scope to be checked
        Returns:
        true if the assertion is to be applied to the parent sample.
      • isScopeChildren

        public boolean isScopeChildren​(String scope)
        Is the assertion to be applied to the sub-samples (children)?
        Parameters:
        scope - name of the scope to be checked
        Returns:
        true if the assertion is to be applied to the children.
      • isScopeAll

        public boolean isScopeAll​(String scope)
        Is the assertion to be applied to the all samples?
        Parameters:
        scope - name of the scope to be checked
        Returns:
        true if the assertion is to be applied to the all samples.
      • isScopeVariable

        public boolean isScopeVariable​(String scope)
        Is the assertion to be applied to the all samples?
        Parameters:
        scope - name of the scope to be checked
        Returns:
        true if the assertion is to be applied to the all samples.
      • isScopeVariable

        protected boolean isScopeVariable()
        Is the assertion to be applied to the all samples?
        Returns:
        true if the assertion is to be applied to the all samples.
      • getVariableName

        public String getVariableName()
      • setScopeParent

        public void setScopeParent()
      • setScopeChildren

        public void setScopeChildren()
      • setScopeAll

        public void setScopeAll()
      • setScopeVariable

        public void setScopeVariable​(String variableName)
      • getSampleList

        protected List<SampleResult> getSampleList​(SampleResult result)
        Generate a list of qualifying sample results, depending on the scope.
        Parameters:
        result - current sample
        Returns:
        list containing the current sample and/or its child samples