From 6a4d8c8c99adcb8c2368d7a620d9e5e8dffe53bb Mon Sep 17 00:00:00 2001 From: ioguix Date: Wed, 12 Dec 2007 17:13:30 +0000 Subject: [PATCH] add view creation to selenium test. First step to the alterView tests. --- selenium/tests/TestSuite.html | 7 +- selenium/tests/create_view.php | 73 ++++++++++++++++ selenium/tests/intro.php | 151 +++++++++++++++++++++++++++++++++ selenium/tests/outro.php | 92 ++++++++++++++++++++ 4 files changed, 321 insertions(+), 2 deletions(-) create mode 100644 selenium/tests/create_view.php create mode 100644 selenium/tests/intro.php create mode 100644 selenium/tests/outro.php diff --git a/selenium/tests/TestSuite.html b/selenium/tests/TestSuite.html index 31109c71..c346f925 100644 --- a/selenium/tests/TestSuite.html +++ b/selenium/tests/TestSuite.html @@ -3,7 +3,7 @@ Test suite for PPA - Create admin role + Create admin role Create database @@ -38,6 +38,9 @@ Drop column + + Create View + Create index @@ -57,6 +60,6 @@ Drop database - Drop admin role + Drop admin role diff --git a/selenium/tests/create_view.php b/selenium/tests/create_view.php new file mode 100644 index 00000000..b961b923 --- /dev/null +++ b/selenium/tests/create_view.php @@ -0,0 +1,73 @@ + + + + +New Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Create a view
clickAndWaitlink=
clickAndWaitlink=
clickAndWaitlink=
clickAndWaitlink=public
clickAndWaitlink=
clickAndWaitlink=
typeformViewstudent_promo
typeformDefinitionSELECT student.id, name, birthday, resume, spe, year + FROM student + JOIN promo ON (student.id_promo=promo.id)
typeformCommentstudents and their promotion
clickAndWait//input[@value='Create']
assertText//p[@class='message']
+ + diff --git a/selenium/tests/intro.php b/selenium/tests/intro.php new file mode 100644 index 00000000..210f109e --- /dev/null +++ b/selenium/tests/intro.php @@ -0,0 +1,151 @@ + + + + +New Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Try to create a role with wrong pass, create it, unlog and try login with it.
open/servers.php
clickAndWaitlink=
type//input[@name='loginUsername']
type//input[@id='loginPassword']
clickAndWaitloginSubmit
clickAndWaitlink=
clickAndWaitlink=
typeformRolename
typeformPasswordbad
typeformConfirm
clickformSuper
clickformCreateDB
clickformCreateRole
clickformInherits
clickformCanLogin
clickAndWaitcreate
assertText//p[@class='message']
typeformPassword
typeformConfirm
clickAndWaitcreate
assertText//p[@class='message']
open/servers.php
clickAndWaitlink=
type//input[@name='loginUsername']
type//input[@id='loginPassword']
clickAndWaitloginSubmit
assertText//div[@class='topbar']/descendant::span[@class='username']
+ + diff --git a/selenium/tests/outro.php b/selenium/tests/outro.php new file mode 100644 index 00000000..acfaa337 --- /dev/null +++ b/selenium/tests/outro.php @@ -0,0 +1,92 @@ + + + + +New Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Admin role try to drop himself, logout, then superuser actually drop him.
clickAndWaitlink=
clickAndWaitlink=
assertText//div[@class='trail']/descendant::a[@title='']/span[@class='label']
clickAndWaitlink=
clickAndWaitdrop
assertText//p[@class='message']
open/servers.php
clickAndWaitlink=
type//input[@name='loginUsername']
type//input[@id='loginPassword']
clickAndWaitloginSubmit
clickAndWaitlink=
clickAndWait//tr/td/a[text()='']/../../td/a[text()='']
clickAndWaitdrop
assertText//p[@class='message']
+ + -- 2.39.5