1 # $Id: Dan1.pm,v 1.1 2006-10-13 13:40:29 sondberg 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",
24 ZOOM::Event::RECV_SEARCH, \&found,
25 exception => \&error);
31 my($conn, $task, $test_args, $event) = @_;
32 my $attr = $test_args->{'attr'};
33 my $n = $task->{rs}->size();
35 $conn->log("irspy_test", "search on access-point $attr found $n record",
37 $conn->record()->append_entry("irspy:status",
38 "<irspy:search set='dan1' ap='$attr' ok='1'>".
42 return ZOOM::IRSpy::Status::TASK_DONE;
47 my($conn, $task, $test_args, $exception) = @_;
48 my $attr = $test_args->{'attr'};
50 $conn->log("irspy_test", "search on access-point $attr had error: ",
52 $conn->record()->append_entry("irspy:status",
53 "<irspy:search set='dan1' ap='$attr' ok='0'>".
56 return ZOOM::IRSpy::Status::TASK_DONE;