Test::AskAnExpert

Test::AskAnExpert is a Perl module to automatically test things that require Human Intelligence (by asking someone).
Download

Test::AskAnExpert Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Edgar A. Bering
  • Publisher web site:
  • http://search.cpan.org/~trizor/

Test::AskAnExpert Tags


Test::AskAnExpert Description

Test::AskAnExpert is a Perl module to automatically test things that require Human Intelligence (by asking someone). Test::AskAnExpert is a Perl module to automatically test things that require Human Intelligence (by asking someone).SYNOPSIS use Test::AskAnExpert import => ,tests => 7;Start up the Human Interface: Test::AskAnExpert->initialize("Test::AskAnExpert::Interface::Subclass",'Subclass args'...);Synchronously submit and wait for a yes or a no answer: is_yes("Can you read this captcha?"); is_no("Is this a quality CPAN distribution?");Same, but with timeouts: (In seconds) is_yes("Can you read this captcha very fast?",10); is_no("Is the skew-t log-p diagram located at /images/charts/stlp.png correct for the 12Z GFS data?",10);Submit an asynchronous question: # Not a good example question because its not yes/no, but answering will take about 70000 years $question_object = ask("What is the meaning of life, the universe, and everything?");Check the answer: answer($question_object,'yes'); answer($question_object,'no');Checking the answer also accepts a timeout parameter: answer($question_object,'yes',10);Test::AskAnExpert aims to fill a hole in the current set of testing tools by integrating an automated method for asking testing questions that computers cannot easily answer like: "Is this meteorologically sound?" or "Does this output fit into category x?" or "Is this distrobution quality?" and still allow standard test tools to work properly in terms of generating reports, locking the doors if the tests aren't passing, etc. etc.Test::AskAnExpert is built on Test::Builder and will play nice with Test::Simple, Test::More, and anything they play nice with. To provide correct answers to conceptual questions we cheat by asking people instead of actually solving a Very Hard Problem regarding machine intelligence. This requires a little more overhead as we need to set up a way to talk to people, and provide them some (but not too much) time to tender an answer. Requirements: · Perl


Test::AskAnExpert Related Software