Feature Requests: Browse | Submit New | Admin

[#16984] Ability to disable certain tests

Date:
2008-01-10 15:31
Priority:
3
Submitted By:
Ben Hidalgo (trpdaddy)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Ability to disable certain tests

Detailed description
Hi,
I'd like the capability to prevent certain tests from executing.  For instance, I'm using JSF in one app and every page
has nested tables (due to JSF layout generation).  These same tables are missing th elements.  I can't control this
generation and my 508 accessibility reports will be seen by my client.  Therefore, I'd like to do something like:

raakttest = Raakt::Test.new($browser.document.body.parentelement.outerhtml)
raakttest.disable :has_nested_tables
raakttest.disable :missing_th
result = raakttest.all

Whaddyathink?
Ben

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-01-10 17:43
Sender: Ben Hidalgo

injected work around:

module Raakt
  class Test
    def all_but(names)
      messages = []
      
      self.methods.each do |method|
        if method[0..5] == "check_" &&
!names.include?(method)
          messages += self.send(method)
        end
      end
      
      return messages
    end
  end
end

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item