Bugzilla – Attachment 52317 Details for
Bug 13691
Add some selenium scripts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13691: Remove existing selenium scripts
Bug-13691-Remove-existing-selenium-scripts.patch (text/plain), 12.35 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-06-13 13:57:17 UTC
(
hide
)
Description:
Bug 13691: Remove existing selenium scripts
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-06-13 13:57:17 UTC
Size:
12.35 KB
patch
obsolete
>From a3abd78028dcfbd1203bfad7f150a7395e02b8aa Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >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 <chris@bigballofwax.co.nz> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > 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 91f4c34..0000000 >--- a/selenium/KohaTests >+++ /dev/null >@@ -1,18 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >-<head> >- <meta content="text/html; charset=UTF-8" http-equiv="content-type" /> >- <title>Test Suite</title> >-</head> >-<body> >-<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody> >-<tr><td><b>Test Suite</b></td></tr> >-<tr><td><a href="Members/AddMember">Enregistrement Lecteur</a></td></tr> >-<tr><td><a href="Members/SearchMember">Recherche Lecteur</a></td></tr> >-<tr><td><a href="Members/DeletMember">DeletMember</a></td></tr> >-<tr><td><a href="Members/EditMember">EditMember</a></td></tr> >-<tr><td><a href="filter_members">filter_members</a></td></tr> >-</tbody></table> >-</body> >-</html> >diff --git a/selenium/Members/AddMember b/selenium/Members/AddMember >deleted file mode 100644 >index 7592169..0000000 >--- a/selenium/Members/AddMember >+++ /dev/null >@@ -1,72 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >-<head profile="http://selenium-ide.openqa.org/profiles/test-case"> >-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> >-<link rel="selenium.base" href="" /> >-<title>Enregistrement Lecteur</title> >-</head> >-<body> >-<table cellpadding="1" cellspacing="1" border="1"> >-<thead> >-<tr><td rowspan="1" colspan="3">Enregistrement Lecteur</td></tr> >-</thead><tbody> >-<tr> >- <td>open</td> >- <td>/cgi-bin/koha/members/memberentry.pl?op=add&amp;categorycode=PERS</td> >- <td></td> >-</tr> >-<tr> >- <td>type</td> >- <td>surname</td> >- <td>Cocteau</td> >-</tr> >-<tr> >- <td>type</td> >- <td>firstname</td> >- <td>Jean</td> >-</tr> >-<tr> >- <td>type</td> >- <td>dateofbirth</td> >- <td>12/02/1967</td> >-</tr> >-<tr> >- <td>click</td> >- <td>sex-male</td> >- <td></td> >-</tr> >-<tr> >- <td>select</td> >- <td>btitle</td> >- <td>label=Mr</td> >-</tr> >-<tr> >- <td>type</td> >- <td>address</td> >- <td>123, rue de la gaieté</td> >-</tr> >-<tr> >- <td>type</td> >- <td>city</td> >- <td>Marseille</td> >-</tr> >-<tr> >- <td>type</td> >- <td>cardnumber</td> >- <td>123141</td> >-</tr> >-<tr> >- <td>clickAndWait</td> >- <td>save</td> >- <td></td> >-</tr> >-<tr> >- <td>assertTextPresent</td> >- <td>Mr Jean Cocteau (123141)</td> >- <td></td> >-</tr> >- >-</tbody></table> >-</body> >-</html> >diff --git a/selenium/Members/DeletMember b/selenium/Members/DeletMember >deleted file mode 100644 >index 09a41ac..0000000 >--- a/selenium/Members/DeletMember >+++ /dev/null >@@ -1,32 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >-<head profile="http://selenium-ide.openqa.org/profiles/test-case"> >-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> >-<link rel="selenium.base" href="" /> >-<title>DeletMember</title> >-</head> >-<body> >-<table cellpadding="1" cellspacing="1" border="1"> >-<thead> >-<tr><td rowspan="1" colspan="3">DeletMember</td></tr> >-</thead><tbody> >-<tr> >- <td>click</td> >- <td>//li[4]/span/span/button</td> >- <td></td> >-</tr> >-<tr> >- <td>click</td> >- <td>link=Delete</td> >- <td></td> >-</tr> >-<tr> >- <td>assertConfirmation</td> >- <td>Are you sure you want to delete this patron? This cannot be undone.</td> >- <td></td> >-</tr> >- >-</tbody></table> >-</body> >-</html> >diff --git a/selenium/Members/SearchMember b/selenium/Members/SearchMember >deleted file mode 100644 >index c1f2a1b..0000000 >--- a/selenium/Members/SearchMember >+++ /dev/null >@@ -1,67 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >-<head profile="http://selenium-ide.openqa.org/profiles/test-case"> >-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> >-<link rel="selenium.base" href="" /> >-<title>Recherche Lecteur</title> >-</head> >-<body> >-<table cellpadding="1" cellspacing="1" border="1"> >-<thead> >-<tr><td rowspan="1" colspan="3">Recherche Lecteur</td></tr> >-</thead><tbody> >-<tr> >- <td>open</td> >- <td>/cgi-bin/koha/members/members-home.pl</td> >- <td></td> >-</tr> >-<tr> >- <td>type</td> >- <td>searchmember</td> >- <td>Cocteau</td> >-</tr> >-<tr> >- <td>clickAndWait</td> >- <td>//input[@value='Search']</td> >- <td></td> >-</tr> >-<tr> >- <td>assertText</td> >- <td>searchheader</td> >- <td>Results 1 to 1 of 1 found for 'Cocteau'</td> >-</tr> >-<tr> >- <td>type</td> >- <td>searchmember</td> >- <td>123141</td> >-</tr> >-<tr> >- <td>select</td> >- <td>searchorderby</td> >- <td>label=Cardnumber</td> >-</tr> >-<tr> >- <td>clickAndWait</td> >- <td>//input[@value='Search']</td> >- <td></td> >-</tr> >-<tr> >- <td>assertText</td> >- <td>searchheader</td> >- <td>Results 1 to 1 of 1 found for '123141'</td> >-</tr> >-<tr> >- <td>clickAndWait</td> >- <td>link=Cocteau, Jean</td> >- <td></td> >-</tr> >-<tr> >- <td>assertTextPresent</td> >- <td></td> >- <td>Jean Cocteau (123141)</td> >-</tr> >- >-</tbody></table> >-</body> >-</html> >diff --git a/selenium/Members/filter_members b/selenium/Members/filter_members >deleted file mode 100644 >index 9372cc0..0000000 >--- a/selenium/Members/filter_members >+++ /dev/null >@@ -1,82 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >-<head profile="http://selenium-ide.openqa.org/profiles/test-case"> >-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> >-<link rel="selenium.base" href="" /> >-<title>filter_members</title> >-</head> >-<body> >-<table cellpadding="1" cellspacing="1" border="1"> >-<thead> >-<tr><td rowspan="1" colspan="3">filter_members</td></tr> >-</thead><tbody> >-<tr> >- <td>open</td> >- <td>/cgi-bin/koha/mainpage.pl</td> >- <td></td> >-</tr> >-<tr> >- <td>clickAndWait</td> >- <td>//div[@id='yui-main']/div/div/div[1]/h3[2]/a</td> >- <td></td> >-</tr> >-<tr> >- <td>clickAndWait</td> >- <td>link=C</td> >- <td></td> >-</tr> >-<tr> >- <td>assertElementPresent</td> >- <td>memberresultst</td> >- <td></td> >-</tr> >-<tr> >- <td>select</td> >- <td>branchcode</td> >- <td>label=Bibliothèque de Luminy</td> >-</tr> >-<tr> >- <td>clickAndWait</td> >- <td>//div[@id='bd']/div[2]/form/input[3]</td> >- <td></td> >-</tr> >-<tr> >- <td>assertElementPresent</td> >- <td>memberresultst</td> >- <td></td> >-</tr> >-<tr> >- <td>select</td> >- <td>categorycode</td> >- <td>label=Etudiant niveau M</td> >-</tr> >-<tr> >- <td>clickAndWait</td> >- <td>//div[@id='bd']/div[2]/form/input[3]</td> >- <td></td> >-</tr> >-<tr> >- <td>assertElementPresent</td> >- <td>memberresultst</td> >- <td></td> >-</tr> >-<tr> >- <td>type</td> >- <td>//input[@name='member' and @value='']</td> >- <td>cas</td> >-</tr> >-<tr> >- <td>clickAndWait</td> >- <td>//div[@id='bd']/div[2]/form/input[3]</td> >- <td></td> >-</tr> >-<tr> >- <td>assertElementPresent</td> >- <td>memberresultst</td> >- <td></td> >-</tr> >- >-</tbody></table> >-</body> >-</html> >diff --git a/selenium/PERL/Members/AddMember.pl b/selenium/PERL/Members/AddMember.pl >deleted file mode 100644 >index a9d43dd..0000000 >--- 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 2c5cb6d..0000000 >--- 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 d24efd0..0000000 >--- 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.8.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13691
:
35797
|
35798
|
40819
|
49592
|
49593
|
49594
|
51974
|
51975
|
51976
| 52317 |
52318
|
52319