1 # $Id: Fetch.pm,v 1.4 2006-10-25 10:19:33 mike Exp $
3 # See the "Main" test package for documentation
5 package ZOOM::IRSpy::Test::Record::Fetch;
11 use ZOOM::IRSpy::Test;
12 our @ISA = qw(ZOOM::IRSpy::Test);
40 foreach my $syn (@syntax) {
41 $conn->option('preferredRecordSyntax' => $syn);
42 $conn->option('start' => 0);
43 $conn->option('count' => 1);
45 ## Here I want to get a use attribute from the session, which we've
46 ## managed to search for in the Search/Bib1 or Search/Dan1 tests. But
47 ## how? So far we search for title: 1=4
48 $conn->irspy_search_pqf("\@attr 1=4 mineral",
50 ZOOM::Event::RECV_RECORD, \&record,
51 exception => \&error);
57 my($conn, $task, $test_args, $event) = @_;
58 my $syn = $test_args->{'syntax'};
62 print STDERR $rs->record(0)->render();
65 $conn->log("irspy_test", "Successfully retrieved a $syn record");
66 $conn->record()->store_result('record_fetch',
70 return ZOOM::IRSpy::Status::TASK_DONE;
75 my($conn, $task, $test_args, $exception) = @_;
76 my $syn = $test_args->{'syntax'};
78 $conn->log("irspy_test", "Retrieval of $syn record failed:", $exception);
79 $conn->record()->store_result('record_fetch',
82 return ZOOM::IRSpy::Status::TASK_DONE;