4 bulk.t - a website-level test of the bulk download
8 Tests all bulk download.
12 Lukas Mueller, Jonathan "Duke" Leto
17 use Test::More tests => 21;
20 use SGN::Test::WWW::Mechanize;
23 my $mech = SGN::Test::WWW::Mechanize->new;
25 for my $tab (qw/clone array bac bac_end ftp unigene/) {
26 $mech->get_ok("/tools/bulk/tabs/$tab\_tab");
29 $mech->content_contains("Download unigene information");
32 form_name => "bulkform",
39 $mech->submit_form_ok($params, "Submit to bulkform on input.pl");
40 $mech->content_contains("Bulk download summary", "Result page title check");
41 $mech->content_like(qr/The query you submitted contained .*2.*/, "input.pl returns correct data");
42 $mech->content_like(qr/Your query resulted in .*2.* lines/, "input.pl returns correct data");
45 # my $mech = SGN::Test::WWW::Mechanize->new;
46 # $mech->get_ok("/tools/bulk/tabs/bac_tab");
47 # $mech->content_contains("Bulk download error");
50 my $mech = SGN::Test::WWW::Mechanize->new;
51 $mech->get("/tools/bulk/tabs/unigene_tab");
53 form_name => "bulkform",
55 ids => "SGN-U444444\nSGN-U555555\n",
56 seq_mode => "longest6frame_seq",
59 $mech->submit_form_ok($params, "Submit to Unigene bulkform from input.pl");
60 #print STDERR $mech->content();
61 $mech->content_contains("download summary", "unigene bulk download summary test");
64 my $mech = SGN::Test::WWW::Mechanize->new;
65 $mech->get("/tools/bulk/tabs/bac_tab");
67 form_name => "bulkform",
69 ids => 'LE_HBa0033F11',
72 $mech->submit_form_ok($params, "Submit to BAC bulkform from input.pl");
73 $mech->content_contains("download summary", "BAC download summary test");
76 my $mech = SGN::Test::WWW::Mechanize->new;
77 $mech->get("/tools/bulk/tabs/clone_tab");
79 form_name => "bulkform",
86 $mech->submit_form_ok($params, "Submit to clone_search bulkform from input.pl");
87 $mech->content_contains("download summary", "Clone download summary test");
90 my $mech = SGN::Test::WWW::Mechanize->new;
91 $mech->get("/tools/bulk/tabs/array_tab");
93 form_name => "bulkform",
99 $mech->submit_form_ok($params, "Submit to microarray bulkform from input.pl");
100 $mech->content_contains("download summary", "Array download summary check");
103 my $mech = SGN::Test::WWW::Mechanize->new;
104 $mech->get("/tools/bulk/tabs/bac_end_tab");
106 form_name => "bulkform",
108 ids => 'LE_HBa0011C24_SP6_121022',
111 $mech->submit_form_ok($params, "Submit to bac_end bulkform from input.pl");
112 $mech->content_contains("download summary", "bac_end download summary test");
115 # my $mech = SGN::Test::WWW::Mechanize->new;
116 # $mech->get("/bulk/input.pl?mode=unigene_convert");
118 # form_name => "bulkform",
120 # ids => 'SGN-U268057',
123 # $mech->submit_form_ok($params, "Submit to unigene_convert bulkform from input.pl");
124 # $mech->content_contains("download summary");