Module: Sapphire::DSL

Included in:
Sapphire
Defined in:
lib/sapphire/DSL/Data/Find.rb,
lib/sapphire/DSL/Data/Write.rb,
lib/sapphire/DSL/Events/For.rb,
lib/sapphire/DSL/Browser/For.rb,
lib/sapphire/DSL/Data/Verify.rb,
lib/sapphire/DSL/Events/Data.rb,
lib/sapphire/DSL/Events/From.rb,
lib/sapphire/DSL/Browser/Make.rb,
lib/sapphire/DSL/Events/Event.rb,
lib/sapphire/DSL/Events/Where.rb,
lib/sapphire/DSL/Scenarios/Is.rb,
lib/sapphire/DSL/Evaluators/In.rb,
lib/sapphire/DSL/Events/Expect.rb,
lib/sapphire/DSL/Scenarios/dsl.rb,
lib/sapphire/DSL/TestPlans/Run.rb,
lib/sapphire/DSL/Browser/Create.rb,
lib/sapphire/DSL/Browser/Should.rb,
lib/sapphire/DSL/Profiles/Table.rb,
lib/sapphire/DSL/Browser/Tracker.rb,
lib/sapphire/DSL/Coverage/Covers.rb,
lib/sapphire/DSL/Evaluators/Show.rb,
lib/sapphire/DSL/Browser/Fluff/Be.rb,
lib/sapphire/DSL/Browser/Fluff/By.rb,
lib/sapphire/DSL/Browser/Fluff/To.rb,
lib/sapphire/DSL/Browser/Verbs/On.rb,
lib/sapphire/DSL/Coverage/Feature.rb,
lib/sapphire/DSL/Evaluators/Count.rb,
lib/sapphire/DSL/Evaluators/Exist.rb,
lib/sapphire/DSL/Profiles/Profile.rb,
lib/sapphire/DSL/Scenarios/Broken.rb,
lib/sapphire/DSL/Scenarios/runner.rb,
lib/sapphire/DSL/Browser/Nouns/Day.rb,
lib/sapphire/DSL/Browser/Verbs/Has.rb,
lib/sapphire/DSL/Browser/Verbs/Set.rb,
lib/sapphire/DSL/Configuration/Use.rb,
lib/sapphire/DSL/Coverage/Behavior.rb,
lib/sapphire/DSL/Coverage/Describe.rb,
lib/sapphire/DSL/Data/GetPageField.rb,
lib/sapphire/DSL/Evaluators/Differ.rb,
lib/sapphire/DSL/Evaluators/Source.rb,
lib/sapphire/DSL/Scenarios/Pending.rb,
lib/sapphire/DSL/Browser/Fluff/Have.rb,
lib/sapphire/DSL/Browser/Fluff/With.rb,
lib/sapphire/DSL/Browser/Verbs/Exit.rb,
lib/sapphire/DSL/Browser/Verbs/Wait.rb,
lib/sapphire/DSL/Evaluators/AltText.rb,
lib/sapphire/DSL/Evaluators/Checked.rb,
lib/sapphire/DSL/Evaluators/Contain.rb,
lib/sapphire/DSL/Events/DataSegment.rb,
lib/sapphire/DSL/Events/Expectation.rb,
lib/sapphire/DSL/Scenarios/scenario.rb,
lib/sapphire/DSL/TestPlans/TestPlan.rb,
lib/sapphire/DSL/Browser/Nouns/Enter.rb,
lib/sapphire/DSL/Browser/Nouns/Month.rb,
lib/sapphire/DSL/Browser/Nouns/Popup.rb,
lib/sapphire/DSL/Browser/Verbs/Check.rb,
lib/sapphire/DSL/Browser/Verbs/Clear.rb,
lib/sapphire/DSL/Browser/Verbs/Click.rb,
lib/sapphire/DSL/Browser/Verbs/Press.rb,
lib/sapphire/DSL/Browser/Verbs/Start.rb,
lib/sapphire/DSL/Browser/Verbs/Using.rb,
lib/sapphire/DSL/Evaluators/Selected.rb,
lib/sapphire/DSL/Evaluators/Validate.rb,
lib/sapphire/DSL/TestPlans/Parameter.rb,
lib/sapphire/DSL/Browser/Nouns/Second.rb,
lib/sapphire/DSL/Browser/Verbs/Accept.rb,
lib/sapphire/DSL/Browser/Verbs/Exists.rb,
lib/sapphire/DSL/Browser/Verbs/Matrix.rb,
lib/sapphire/DSL/Browser/Verbs/Reload.rb,
lib/sapphire/DSL/Browser/Verbs/Remove.rb,
lib/sapphire/DSL/Browser/Verbs/Switch.rb,
lib/sapphire/DSL/Coverage/Requirement.rb,
lib/sapphire/DSL/Evaluators/Evaluator.rb,
lib/sapphire/DSL/Browser/Nouns/Browser.rb,
lib/sapphire/DSL/Browser/Verbs/Compare.rb,
lib/sapphire/DSL/Browser/Verbs/Disable.rb,
lib/sapphire/DSL/Browser/Verbs/Uncheck.rb,
lib/sapphire/DSL/Evaluators/Transition.rb,
lib/sapphire/DSL/TestPlans/FileHandler.rb,
lib/sapphire/DSL/TestPlans/PathHandler.rb,
lib/sapphire/DSL/Browser/Verbs/Complete.rb,
lib/sapphire/DSL/Browser/Verbs/Navigate.rb,
lib/sapphire/DSL/Comparisons/Comparison.rb,
lib/sapphire/DSL/Evaluations/Evaluation.rb,
lib/sapphire/DSL/Browser/Verbs/MouseOver.rb,
lib/sapphire/DSL/Browser/Verbs/Virtually.rb,
lib/sapphire/DSL/Comparisons/NotComparison.rb,
lib/sapphire/DSL/Comparisons/DifferComparison.rb,
lib/sapphire/DSL/Comparisons/EqualsComparison.rb,
lib/sapphire/DSL/Configuration/ConfiguredUser.rb,
lib/sapphire/DSL/Browser/ExecuteAgainstControl.rb,
lib/sapphire/DSL/Comparisons/CheckedComparison.rb,
lib/sapphire/DSL/Comparisons/VisibleComparison.rb,
lib/sapphire/DSL/Evaluations/ControlEvaluation.rb,
lib/sapphire/DSL/Comparisons/ContainsComparison.rb,
lib/sapphire/DSL/Comparisons/SelectedComparison.rb,
lib/sapphire/DSL/Configuration/ConfiguredBrowser.rb,
lib/sapphire/DSL/Comparisons/StartsWithComparison.rb,
lib/sapphire/DSL/Evaluations/FieldNotFoundEvaluation.rb,
lib/sapphire/DSL/Evaluations/FieldNotDefinedEvaluation.rb

Defined Under Namespace

Modules: Browser, Configuration, Coverage, Data, Events, Profiles, Scenarios, TestPlans Classes: CheckedComparison, Comparison, ContainsComparison, ControlEvaluation, DifferComparison, EqualsComparison, Evaluation, Evaluator, FieldNotDefinedEvaluation, FieldNotFoundEvaluation, NotComparison, SelectedComparison, StartsWithComparison, VisibleComparison

Instance Method Summary collapse

Instance Method Details

#Exist(value) ⇒ Object



3
4
5
# File 'lib/sapphire/DSL/Evaluators/Exist.rb', line 3

def Exist(value)
  Evaluator.new(value) do |item, comparator| item.NotBeNil(item, comparator) end
end

#Not(item) ⇒ Object



3
4
5
# File 'lib/sapphire/DSL/Comparisons/NotComparison.rb', line 3

def Not(item)
  NotComparison.new(item)
end

#Validate(hash) ⇒ Object



3
4
5
# File 'lib/sapphire/DSL/Evaluators/Validate.rb', line 3

def Validate(hash)
  Evaluator.new(hash) do |item, comparator| item.Validate(item, comparator) end
end