From 73ace7513b18c9b8b2d5b594614d5c251d06d1f2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 10 Feb 2015 16:07:16 +0100 Subject: [PATCH] Bug 13691: Remove existing selenium scripts They are not usable. Signed-off-by: Chris Cormack Signed-off-by: Tomas Cohen Arazi Signed-off-by: Brendan Gallagher --- selenium/KohaTests | 18 ------ selenium/Members/AddMember | 72 ---------------------- selenium/Members/DeletMember | 32 ---------- selenium/Members/SearchMember | 67 --------------------- selenium/Members/filter_members | 82 -------------------------- selenium/PERL/Members/AddMember.pl | 24 -------- selenium/PERL/Members/FilterMembers.pl | 30 ---------- selenium/PERL/Members/Searchmember.pl | 25 -------- 8 files changed, 350 deletions(-) delete mode 100644 selenium/KohaTests delete mode 100644 selenium/Members/AddMember delete mode 100644 selenium/Members/DeletMember delete mode 100644 selenium/Members/SearchMember delete mode 100644 selenium/Members/filter_members delete mode 100644 selenium/PERL/Members/AddMember.pl delete mode 100644 selenium/PERL/Members/FilterMembers.pl delete mode 100644 selenium/PERL/Members/Searchmember.pl diff --git a/selenium/KohaTests b/selenium/KohaTests deleted file mode 100644 index 91f4c34cf6..0000000000 --- a/selenium/KohaTests +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Test Suite - - - - - - - - - -
Test Suite
Enregistrement Lecteur
Recherche Lecteur
DeletMember
EditMember
filter_members
- - diff --git a/selenium/Members/AddMember b/selenium/Members/AddMember deleted file mode 100644 index 75921691b5..0000000000 --- a/selenium/Members/AddMember +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - -Enregistrement Lecteur - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Enregistrement Lecteur
open/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=PERS
typesurnameCocteau
typefirstnameJean
typedateofbirth12/02/1967
clicksex-male
selectbtitlelabel=Mr
typeaddress123, rue de la gaieté
typecityMarseille
typecardnumber123141
clickAndWaitsave
assertTextPresentMr Jean Cocteau (123141)
- - diff --git a/selenium/Members/DeletMember b/selenium/Members/DeletMember deleted file mode 100644 index 09a41acf75..0000000000 --- a/selenium/Members/DeletMember +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - -DeletMember - - - - - - - - - - - - - - - - - - - - - - -
DeletMember
click//li[4]/span/span/button
clicklink=Delete
assertConfirmationAre you sure you want to delete this patron? This cannot be undone.
- - diff --git a/selenium/Members/SearchMember b/selenium/Members/SearchMember deleted file mode 100644 index c1f2a1b503..0000000000 --- a/selenium/Members/SearchMember +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - -Recherche Lecteur - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Recherche Lecteur
open/cgi-bin/koha/members/members-home.pl
typesearchmemberCocteau
clickAndWait//input[@value='Search']
assertTextsearchheaderResults 1 to 1 of 1 found for 'Cocteau'
typesearchmember123141
selectsearchorderbylabel=Cardnumber
clickAndWait//input[@value='Search']
assertTextsearchheaderResults 1 to 1 of 1 found for '123141'
clickAndWaitlink=Cocteau, Jean
assertTextPresentJean Cocteau (123141)
- - diff --git a/selenium/Members/filter_members b/selenium/Members/filter_members deleted file mode 100644 index 9372cc0618..0000000000 --- a/selenium/Members/filter_members +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - -filter_members - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
filter_members
open/cgi-bin/koha/mainpage.pl
clickAndWait//div[@id='yui-main']/div/div/div[1]/h3[2]/a
clickAndWaitlink=C
assertElementPresentmemberresultst
selectbranchcodelabel=Bibliothèque de Luminy
clickAndWait//div[@id='bd']/div[2]/form/input[3]
assertElementPresentmemberresultst
selectcategorycodelabel=Etudiant niveau M
clickAndWait//div[@id='bd']/div[2]/form/input[3]
assertElementPresentmemberresultst
type//input[@name='member' and @value='']cas
clickAndWait//div[@id='bd']/div[2]/form/input[3]
assertElementPresentmemberresultst
- - diff --git a/selenium/PERL/Members/AddMember.pl b/selenium/PERL/Members/AddMember.pl deleted file mode 100644 index a9d43dd088..0000000000 --- a/selenium/PERL/Members/AddMember.pl +++ /dev/null @@ -1,24 +0,0 @@ -use strict; -use warnings; -use Time::HiRes qw(sleep); -use Test::WWW::Selenium; -use Test::More "no_plan"; -use Test::Exception; - -my $sel = Test::WWW::Selenium->new( host => "localhost", - port => 4444, - browser => "*chrome", - browser_url => "http://change-this-to-the-site-you-are-testing/" ); - -$sel->open_ok("/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=PERS"); -$sel->type_ok("surname", "Cocteau"); -$sel->type_ok("firstname", "Jean"); -$sel->type_ok("dateofbirth", "12/02/1967"); -$sel->click_ok("sex-male"); -$sel->select_ok("btitle", "label=Mr"); -$sel->type_ok("address", "123, rue de la gaieté"); -$sel->type_ok("city", "Marseille"); -$sel->type_ok("cardnumber", "123141"); -$sel->click_ok("save"); -$sel->wait_for_page_to_load_ok("30000"); -$sel->is_text_present_ok("Mr Jean Cocteau (123141)"); diff --git a/selenium/PERL/Members/FilterMembers.pl b/selenium/PERL/Members/FilterMembers.pl deleted file mode 100644 index 2c5cb6d237..0000000000 --- a/selenium/PERL/Members/FilterMembers.pl +++ /dev/null @@ -1,30 +0,0 @@ -use strict; -use warnings; -use Time::HiRes qw(sleep); -use Test::WWW::Selenium; -use Test::More "no_plan"; -use Test::Exception; - -my $sel = Test::WWW::Selenium->new( host => "localhost", - port => 4444, - browser => "*chrome", - browser_url => "http://change-this-to-the-site-you-are-testing/" ); - -$sel->open_ok("/cgi-bin/koha/mainpage.pl"); -$sel->click_ok("//div[\@id='yui-main']/div/div/div[1]/h3[2]/a"); -$sel->wait_for_page_to_load_ok("30000"); -$sel->click_ok("link=C"); -$sel->wait_for_page_to_load_ok("30000"); -$sel->is_element_present_ok("memberresultst"); -$sel->select_ok("branchcode", "label=Bibliothèque de Luminy"); -$sel->click_ok("//div[\@id='bd']/div[2]/form/input[3]"); -$sel->wait_for_page_to_load_ok("30000"); -$sel->is_element_present_ok("memberresultst"); -$sel->select_ok("categorycode", "label=Etudiant niveau M"); -$sel->click_ok("//div[\@id='bd']/div[2]/form/input[3]"); -$sel->wait_for_page_to_load_ok("30000"); -$sel->is_element_present_ok("memberresultst"); -$sel->type_ok("//input[\@name='member' and \@value='']", "cas"); -$sel->click_ok("//div[\@id='bd']/div[2]/form/input[3]"); -$sel->wait_for_page_to_load_ok("30000"); -$sel->is_element_present_ok("memberresultst"); diff --git a/selenium/PERL/Members/Searchmember.pl b/selenium/PERL/Members/Searchmember.pl deleted file mode 100644 index d24efd0dd7..0000000000 --- a/selenium/PERL/Members/Searchmember.pl +++ /dev/null @@ -1,25 +0,0 @@ -use strict; -use warnings; -use Time::HiRes qw(sleep); -use Test::WWW::Selenium; -use Test::More "no_plan"; -use Test::Exception; - -my $sel = Test::WWW::Selenium->new( host => "localhost", - port => 4444, - browser => "*chrome", - browser_url => "http://change-this-to-the-site-you-are-testing/" ); - -$sel->open_ok("/cgi-bin/koha/members/members-home.pl"); -$sel->type_ok("searchmember", "Cocteau"); -$sel->click_ok("//input[\@value='Search']"); -$sel->wait_for_page_to_load_ok("30000"); -$sel->text_is("searchheader", "Results 1 to 1 of 1 found for 'Cocteau'"); -$sel->type_ok("searchmember", "123141"); -$sel->select_ok("searchorderby", "label=Cardnumber"); -$sel->click_ok("//input[\@value='Search']"); -$sel->wait_for_page_to_load_ok("30000"); -$sel->text_is("searchheader", "Results 1 to 1 of 1 found for '123141'"); -$sel->click_ok("link=Cocteau, Jean"); -$sel->wait_for_page_to_load_ok("30000"); -$sel->is_text_present_ok(""); -- 2.39.5