Commit 7ee689d0 authored by Alain Takoudjou's avatar Alain Takoudjou

slapos_monitoring_ui_test: fix test class name and make local monitor backend...

slapos_monitoring_ui_test: fix test class name and make local monitor backend server for serve files
parent 60ed134e
......@@ -7,7 +7,7 @@
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test OfficeJS UI</td></tr>
<tr><td rowspan="1" colspan="3">Test SlapOS Monitoring UI</td></tr>
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<!-- Clean Up -->
......@@ -24,7 +24,7 @@
<!-- Initialize -->
<tr>
<td>open</td>
<td>${base_url}/web_site_module/monitoring_render_js/#page=settings_configurator&amp;tab;=add</td>
<td>${base_url}/web_site_module/monitoring_render_js/#page=settings_configurator&tab=add</td>
<td></td>
</tr>
<tr>
......@@ -32,6 +32,11 @@
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@href='#config-add']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
......@@ -44,7 +49,7 @@
</tr>
<tr>
<td>store</td>
<td>https://softinst65745.host.vifib.net/public/feeds</td>
<td>http://localhost:5378/rootInstance/public/feeds</td>
<td>opml_url</td>
</tr>
<tr>
......@@ -69,7 +74,12 @@
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>ERROR: Failed to load URL</td>
<td></td>
</tr>
<tr>
......@@ -199,7 +209,7 @@
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/monitoring_render_js/#page=settings_configurator&amp;tab;=manage</td>
<td>${base_url}/web_site_module/monitoring_render_js/#page=settings_configurator&tab=manage</td>
<td></td>
</tr>
<tr>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Document Component" module="erp5.portal_type"/>
<global name="Test Component" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......@@ -14,7 +14,7 @@
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>testFunctionalSlapoSMonitoring</string> </value>
<value> <string>testFunctionalSlapOSMonitoring</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -24,11 +24,11 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test.erp5.testFunctionalSlapoSMonitoring</string> </value>
<value> <string>test.erp5.testFunctionalSlapOSMonitoring</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Document Component</string> </value>
<value> <string>Test Component</string> </value>
</item>
<item>
<key> <string>sid</string> </key>
......@@ -45,7 +45,9 @@
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple/>
<tuple>
<string>W:154, 2: Dangerous default value [] as argument (dangerous-default-value)</string>
</tuple>
</value>
</item>
<item>
......
##############################################################################
#
# Copyright (c) 2011 Nexedi SARL and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import unittest
from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import ERP5TypeFunctionalTestCase
from Products.SlapOS.tests.testSlapOSMixin import testSlapOSMixin
class TestZeleniumCore(ERP5TypeFunctionalTestCase, testSlapOSMixin):
foreground = 0
run_only = "slapos_monitoring_ui_zuite"
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestZeleniumCore))
return suite
\ No newline at end of file
test.erp5.testFunctionalSlapoSMonitoring
\ No newline at end of file
test.erp5.testFunctionalSlapOSMonitoring
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment