1 # $Id: Dan1.pm,v 1.7 2007-03-15 11:40:52 mike Exp $
3 # See the "Main" test package for documentation
5 package ZOOM::IRSpy::Test::Search::Dan1;
11 use ZOOM::IRSpy::Test;
12 our @ISA = qw(ZOOM::IRSpy::Test);
18 my @attrs = ( 1..27 # Dan-1
21 foreach my $attr (@attrs) {
22 $conn->irspy_search_pqf("\@attr dan1 1=$attr mineral",
23 {'attr' => $attr}, {},
24 ZOOM::Event::ZEND, \&found,
25 exception => \&error);
31 my($conn, $task, $test_args, $event) = @_;
32 my $attr = $test_args->{'attr'};
34 my $n = $task->{rs}->size();
35 $task->{rs}->destroy();
36 $conn->log("irspy_test", "search on access-point $attr found $n record",
38 update($conn, $attr, 1);
40 return ZOOM::IRSpy::Status::TASK_DONE;
45 my($conn, $task, $test_args, $exception) = @_;
46 my $attr = $test_args->{'attr'};
48 $task->{rs}->destroy();
49 $conn->log("irspy_test", "search on access-point $attr had error: ",
51 update($conn, $attr, 0);
53 ### How about TEST_BAD if $exception->code() == 121?
54 return ZOOM::IRSpy::Status::TASK_DONE;
59 my ($conn, $attr, $ok) = @_;
61 $conn->record()->store_result('search', 'set' => 'dan-1',