ref: refs/heads/use-activeresource
commit d84734a42b925797ea18198a61aa2769a9f8e07b
Author: Stefan Schubert
Date: Fri Aug 21 14:38:06 2009 +0200
moved UI tests to the concerning plugins
---
Rakefile | 2 +-
plugins/permissions/test/ui/README | 11 +++
plugins/permissions/test/ui/permission_test.rb | 32 ++++++++
.../permissions/test/ui/src/permission_test.xml | 77 ++++++++++++++++++++
plugins/systemtime/test/ui/README | 11 +++
.../test/ui/src/systemtime_test_login.xml | 47 ++++++++++++
.../test/ui/src/systemtime_test_lookat.xml | 57 +++++++++++++++
.../test/ui/src/systemtime_testsuite.xml | 15 ++++
plugins/systemtime/test/ui/systemtime_test.rb | 37 ++++++++++
webclient/test/ui/login_test.rb | 10 ++-
webclient/test/ui/permission_test.rb | 27 -------
webclient/test/ui/src/permission_test.xml | 77 --------------------
webclient/test/ui/src/ruby-webyast.js | 15 +++-
webclient/test/ui/src/systemtime_test_login.xml | 47 ------------
webclient/test/ui/src/systemtime_test_lookat.xml | 57 ---------------
webclient/test/ui/src/systemtime_testsuite.xml | 15 ----
webclient/test/ui/systemtime_test.rb | 33 ---------
17 files changed, 307 insertions(+), 263 deletions(-)
diff --git a/Rakefile b/Rakefile
index 4d16b5d..9a59aa7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,7 +6,7 @@ desc 'Run all tests by default'
task :default => :test
-%w(test rdoc pgem package release install install_policies check_syntax package-local buildrpm buildrpm-local test:test:rcov).each do |task_name|
+%w(test test:ui rdoc pgem package release install install_policies check_syntax package-local buildrpm buildrpm-local test:test:rcov).each do |task_name|
desc "Run #{task_name} task for all projects"
task task_name do
PROJECTS.each do |project|
diff --git a/plugins/permissions/test/ui/README b/plugins/permissions/test/ui/README
new file mode 100644
index 0000000..a142118
--- /dev/null
+++ b/plugins/permissions/test/ui/README
@@ -0,0 +1,11 @@
+Here are UI testing scripts using Selenium framework (http://seleniumhq.org)
+
+Basic information:
+
+1. run 'rake test:ui' to start UI tests (or 'rake test:ui TEST=ui/example_test.rb')
+2. the tests have been generated from src/*.xml files by Selenium IDE
+ (do not edit *.rb files directly, load *.xml file into Selenium IDE, change it and export the tests)
+
+See http://en.opensuse.org/YaST/Web/Development/UI_Testing for more information.
+
+
diff --git a/plugins/permissions/test/ui/permission_test.rb b/plugins/permissions/test/ui/permission_test.rb
new file mode 100644
index 0000000..3b97721
--- /dev/null
+++ b/plugins/permissions/test/ui/permission_test.rb
@@ -0,0 +1,32 @@
+# Generated by ruby-webyast-0.1 Selenium formatter
+# Date: Fri Aug 21 2009 14:15:50 GMT+0200 (CEST)
+
+if File.exist?(File.expand_path(File.dirname(__FILE__) + "/../../config/rails_parent.rb"))
+ require File.expand_path(File.dirname(__FILE__) + "/../test_helper")
+ require File.expand_path( File.join("lib","selenium","test_case"), RailsParent.parent )
+else
+ require "selenium/test_case"
+end
+
+class Permission_test < Selenium::TestCase
+
+ def test_permission_test
+ @selenium.open "/permissions"
+ @selenium.click "link=dummy-host"
+ @selenium.wait_for_page_to_load "30000"
+ @selenium.type "login", "schubi"
+ @selenium.type "password", "tes"
+ @selenium.click "login_button"
+ @selenium.wait_for_page_to_load "30000"
+ @selenium.type "user", "schubi"
+ @selenium.click "commit"
+ @selenium.wait_for_page_to_load "30000"
+ @selenium.click "//div[@id='content']/div[4]/form/form/table/tbody/tr[2]/td[2]/ul/ul/li[9]/div[1]"
+ @selenium.click "//div[@id='content']/div[4]/form/form/table/tbody/tr[2]/td[2]/ul/ul/li[9]/ul/li[2]/div[2]"
+ @selenium.click "org.opensuse.yast.patch.install"
+ @selenium.click "//input[@name='commit' and @value='Set']"
+ @selenium.wait_for_page_to_load "30000"
+ @selenium.click "//a[contains(@href, '/logout')]"
+ @selenium.wait_for_page_to_load "30000"
+ end
+end
diff --git a/plugins/permissions/test/ui/src/permission_test.xml b/plugins/permissions/test/ui/src/permission_test.xml
new file mode 100644
index 0000000..797c6ad
--- /dev/null
+++ b/plugins/permissions/test/ui/src/permission_test.xml
@@ -0,0 +1,77 @@
+<?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>Permission_test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Permission_test</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/permissions</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=dummy-host</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>login</td>
+ <td>schubi</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>tes</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>login_button</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>user</td>
+ <td>schubi</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>commit</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='content']/div[4]/form/form/table/tbody/tr[2]/td[2]/ul/ul/li[9]/div[1]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='content']/div[4]/form/form/table/tbody/tr[2]/td[2]/ul/ul/li[9]/ul/li[2]/div[2]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>org.opensuse.yast.patch.install</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//input[@name='commit' and @value='Set']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//a[contains(@href, '/logout')]</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/plugins/systemtime/test/ui/README b/plugins/systemtime/test/ui/README
new file mode 100644
index 0000000..a142118
--- /dev/null
+++ b/plugins/systemtime/test/ui/README
@@ -0,0 +1,11 @@
+Here are UI testing scripts using Selenium framework (http://seleniumhq.org)
+
+Basic information:
+
+1. run 'rake test:ui' to start UI tests (or 'rake test:ui TEST=ui/example_test.rb')
+2. the tests have been generated from src/*.xml files by Selenium IDE
+ (do not edit *.rb files directly, load *.xml file into Selenium IDE, change it and export the tests)
+
+See http://en.opensuse.org/YaST/Web/Development/UI_Testing for more information.
+
+
diff --git a/plugins/systemtime/test/ui/src/systemtime_test_login.xml b/plugins/systemtime/test/ui/src/systemtime_test_login.xml
new file mode 100644
index 0000000..6ec1f78
--- /dev/null
+++ b/plugins/systemtime/test/ui/src/systemtime_test_login.xml
@@ -0,0 +1,47 @@
+<?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>systemtime_test_login</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">systemtime_test_login</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/systemtime</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=dummy-host</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>login</td>
+ <td>webyast</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>test</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>login_button</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertElementNotPresent</td>
+ <td>Enter login credentials</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/plugins/systemtime/test/ui/src/systemtime_test_lookat.xml b/plugins/systemtime/test/ui/src/systemtime_test_lookat.xml
new file mode 100644
index 0000000..0f3db07
--- /dev/null
+++ b/plugins/systemtime/test/ui/src/systemtime_test_lookat.xml
@@ -0,0 +1,57 @@
+<?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>systemtime_test_lookat</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">systemtime_test_lookat</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/systemtime</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertElementPresent</td>
+ <td>currenttime</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertElementPresent</td>
+ <td>utc</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>date_date</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertElementPresent</td>
+ <td>xpath=//div[@id="ui-datepicker-div"]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertElementPresent</td>
+ <td>css=div#ui-datepicker-div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=21</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//a[contains(@href, '/logout')]</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/plugins/systemtime/test/ui/src/systemtime_testsuite.xml b/plugins/systemtime/test/ui/src/systemtime_testsuite.xml
new file mode 100644
index 0000000..c0b26dc
--- /dev/null
+++ b/plugins/systemtime/test/ui/src/systemtime_testsuite.xml
@@ -0,0 +1,15 @@
+<?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="systemtime_test_login.xml">systemtime_test_login</a></td></tr>
+<tr><td><a href="systemtime_test_lookat.xml">systemtime_test_lookat</a></td></tr>
+</tbody></table>
+</body>
+</html>
diff --git a/plugins/systemtime/test/ui/systemtime_test.rb b/plugins/systemtime/test/ui/systemtime_test.rb
new file mode 100644
index 0000000..2e0a42e
--- /dev/null
+++ b/plugins/systemtime/test/ui/systemtime_test.rb
@@ -0,0 +1,37 @@
+# Generated by ruby-webyast-0.1 Selenium formatter
+# Date: Fri Aug 21 2009 14:25:52 GMT+0200 (CEST)
+
+if File.exist?(File.expand_path(File.dirname(__FILE__) + "/../../config/rails_parent.rb"))
+ require File.expand_path(File.dirname(__FILE__) + "/../test_helper")
+ require File.expand_path( File.join("lib","selenium","test_case"), RailsParent.parent )
+else
+ require "selenium/test_case"
+end
+class Systemtime_test < Selenium::TestCase
+
+ def test_systemtime_test_login
+ @selenium.open "/systemtime"
+ @selenium.click "link=dummy-host"
+ @selenium.wait_for_page_to_load "30000"
+ @selenium.type "login", "webyast"
+ @selenium.type "password", "test"
+ @selenium.click "login_button"
+ @selenium.wait_for_page_to_load "30000"
+ assert !@selenium.is_element_present("Enter login credentials")
+ end
+
+
+ def test_systemtime_test_lookat
+ @selenium.open "/systemtime"
+ assert @selenium.is_element_present("currenttime")
+ assert @selenium.is_element_present("utc")
+ @selenium.click "date_date"
+ assert @selenium.is_element_present("xpath=//div[@id=\"ui-datepicker-div\"]")
+ assert @selenium.is_element_present("css=div#ui-datepicker-div")
+ @selenium.click "link=21"
+ @selenium.click "//a[contains(@href, '/logout')]"
+ @selenium.wait_for_page_to_load "30000"
+ end
+
+
+end
diff --git a/webclient/test/ui/login_test.rb b/webclient/test/ui/login_test.rb
index 4e5442a..87fd839 100644
--- a/webclient/test/ui/login_test.rb
+++ b/webclient/test/ui/login_test.rb
@@ -1,8 +1,12 @@
# Generated by ruby-webyast-0.1 Selenium formatter
-# Date: Wed Aug 19 2009 18:12:53 GMT+0200 (CEST)
-
-require "selenium/test_case"
+# Date: Fri Aug 21 2009 14:17:27 GMT+0200 (CEST)
+if File.exist?(File.expand_path(File.dirname(__FILE__) + "/../../config/rails_parent.rb"))
+ require File.expand_path(File.dirname(__FILE__) + "/../test_helper")
+ require File.expand_path( File.join("lib","selenium","test_case"), RailsParent.parent )
+else
+ require "selenium/test_case"
+end
class Login_test < Selenium::TestCase
def test_login_test_credentials
diff --git a/webclient/test/ui/permission_test.rb b/webclient/test/ui/permission_test.rb
deleted file mode 100644
index 076545d..0000000
--- a/webclient/test/ui/permission_test.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-# Generated by ruby-webyast-0.1 Selenium formatter
-# Date: Mon Aug 17 2009 14:00:00 GMT+0200 (CEST)
-
-require "selenium/test_case"
-
-class Permission_test < Selenium::TestCase
-
- def test_permission_test
- @selenium.open "/permissions"
- @selenium.click "link=dummy-host"
- @selenium.wait_for_page_to_load "30000"
- @selenium.type "login", "schubi"
- @selenium.type "password", "tes"
- @selenium.click "login_button"
- @selenium.wait_for_page_to_load "30000"
- @selenium.type "user", "schubi"
- @selenium.click "commit"
- @selenium.wait_for_page_to_load "30000"
- @selenium.click "//div[@id='content']/div[4]/form/form/table/tbody/tr[2]/td[2]/ul/ul/li[9]/div[1]"
- @selenium.click "//div[@id='content']/div[4]/form/form/table/tbody/tr[2]/td[2]/ul/ul/li[9]/ul/li[2]/div[2]"
- @selenium.click "org.opensuse.yast.patch.install"
- @selenium.click "//input[@name='commit' and @value='Set']"
- @selenium.wait_for_page_to_load "30000"
- @selenium.click "//a[contains(@href, '/logout')]"
- @selenium.wait_for_page_to_load "30000"
- end
-end
diff --git a/webclient/test/ui/src/permission_test.xml b/webclient/test/ui/src/permission_test.xml
deleted file mode 100644
index 797c6ad..0000000
--- a/webclient/test/ui/src/permission_test.xml
+++ /dev/null
@@ -1,77 +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>Permission_test</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Permission_test</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/permissions</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=dummy-host</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>login</td>
- <td>schubi</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>tes</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>login_button</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>user</td>
- <td>schubi</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>commit</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='content']/div[4]/form/form/table/tbody/tr[2]/td[2]/ul/ul/li[9]/div[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='content']/div[4]/form/form/table/tbody/tr[2]/td[2]/ul/ul/li[9]/ul/li[2]/div[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>org.opensuse.yast.patch.install</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//input[@name='commit' and @value='Set']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//a[contains(@href, '/logout')]</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
diff --git a/webclient/test/ui/src/ruby-webyast.js b/webclient/test/ui/src/ruby-webyast.js
index 9b5fb41..0bd009a 100644
--- a/webclient/test/ui/src/ruby-webyast.js
+++ b/webclient/test/ui/src/ruby-webyast.js
@@ -13,7 +13,6 @@
* unfortunately it works only in test suite export, not in single test case export)
*/
-// preload the standard Ruby RC output formatter
load('ruby-rc.js');
this.name = "ruby-webyast";
@@ -24,7 +23,12 @@ this.options = {
header:
'# Generated by ' + this.name + '-' + this.plugin_version + ' Selenium formatter\n' +
'# Date: ' + Date() + '\n\n' +
- 'require "selenium/test_case"\n' +
+ 'if File.exist?(File.expand_path(File.dirname(__FILE__) + "/../../config/rails_parent.rb"))\n' +
+ ' require File.expand_path(File.dirname(__FILE__) + "/../test_helper")\n' +
+ ' require File.expand_path( File.join("lib","selenium","test_case"), RailsParent.parent )\n' +
+ 'else\n' +
+ ' require "selenium/test_case"\n' +
+ 'end\n' +
'\n' +
'class ${className} < Selenium::TestCase\n' +
' \n' +
@@ -67,7 +71,12 @@ function formatSuite(testSuite, filename) {
var formattedSuite =
'# Generated by ' + this.name + '-' + this.plugin_version + ' Selenium formatter\n' +
'# Date: ' + Date() + '\n\n' +
- 'require "selenium/test_case"\n\n' +
+ 'if File.exist?(File.expand_path(File.dirname(__FILE__) + "/../../config/rails_parent.rb"))\n' +
+ ' require File.expand_path(File.dirname(__FILE__) + "/../test_helper")\n' +
+ ' require File.expand_path( File.join("lib","selenium","test_case"), RailsParent.parent )\n' +
+ 'else\n' +
+ ' require "selenium/test_case"\n' +
+ 'end\n' +
'class ' + suiteClass + ' < Selenium::TestCase\n';
// backup the standard options
diff --git a/webclient/test/ui/src/systemtime_test_login.xml b/webclient/test/ui/src/systemtime_test_login.xml
deleted file mode 100644
index 6ec1f78..0000000
--- a/webclient/test/ui/src/systemtime_test_login.xml
+++ /dev/null
@@ -1,47 +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>systemtime_test_login</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">systemtime_test_login</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/systemtime</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=dummy-host</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>login</td>
- <td>webyast</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>test</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>login_button</td>
- <td></td>
-</tr>
-<tr>
- <td>assertElementNotPresent</td>
- <td>Enter login credentials</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
diff --git a/webclient/test/ui/src/systemtime_test_lookat.xml b/webclient/test/ui/src/systemtime_test_lookat.xml
deleted file mode 100644
index 0f3db07..0000000
--- a/webclient/test/ui/src/systemtime_test_lookat.xml
+++ /dev/null
@@ -1,57 +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>systemtime_test_lookat</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">systemtime_test_lookat</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/systemtime</td>
- <td></td>
-</tr>
-<tr>
- <td>assertElementPresent</td>
- <td>currenttime</td>
- <td></td>
-</tr>
-<tr>
- <td>assertElementPresent</td>
- <td>utc</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>date_date</td>
- <td></td>
-</tr>
-<tr>
- <td>assertElementPresent</td>
- <td>xpath=//div[@id="ui-datepicker-div"]</td>
- <td></td>
-</tr>
-<tr>
- <td>assertElementPresent</td>
- <td>css=div#ui-datepicker-div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=21</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//a[contains(@href, '/logout')]</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
diff --git a/webclient/test/ui/src/systemtime_testsuite.xml b/webclient/test/ui/src/systemtime_testsuite.xml
deleted file mode 100644
index c0b26dc..0000000
--- a/webclient/test/ui/src/systemtime_testsuite.xml
+++ /dev/null
@@ -1,15 +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="systemtime_test_login.xml">systemtime_test_login</a></td></tr>
-<tr><td><a href="systemtime_test_lookat.xml">systemtime_test_lookat</a></td></tr>
-</tbody></table>
-</body>
-</html>
diff --git a/webclient/test/ui/systemtime_test.rb b/webclient/test/ui/systemtime_test.rb
deleted file mode 100644
index 1bd27f3..0000000
--- a/webclient/test/ui/systemtime_test.rb
+++ /dev/null
@@ -1,33 +0,0 @@
-# Generated by ruby-webyast-0.1 Selenium formatter
-# Date: Thu Aug 20 2009 14:54:38 GMT+0200 (CEST)
-
-require "selenium/test_case"
-
-class Systemtime_test < Selenium::TestCase
-
- def test_systemtime_test_login
- @selenium.open "/systemtime"
- @selenium.click "link=dummy-host"
- @selenium.wait_for_page_to_load "30000"
- @selenium.type "login", "webyast"
- @selenium.type "password", "test"
- @selenium.click "login_button"
- @selenium.wait_for_page_to_load "30000"
- assert !@selenium.is_element_present("Enter login credentials")
- end
-
-
- def test_systemtime_test_lookat
- @selenium.open "/systemtime"
- assert @selenium.is_element_present("currenttime")
- assert @selenium.is_element_present("utc")
- @selenium.click "date_date"
- assert @selenium.is_element_present("xpath=//div[@id=\"ui-datepicker-div\"]")
- assert @selenium.is_element_present("css=div#ui-datepicker-div")
- @selenium.click "link=21"
- @selenium.click "//a[contains(@href, '/logout')]"
- @selenium.wait_for_page_to_load "30000"
- end
-
-
-end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org