Files
ofbiz-framework/framework/testtools/widget/RunSeleniumForms.xml
T
Erwan de Ferrieres cc247e81e2 Now OFBiz is able to run HTML selenium testsuites. Non specific java code is coming from SeleniumHtmlClient (https://github.com/takamori/selenium-html-client-driver) which is under the Apache2 license.
A testsuite is provided with the commit, just go to the selenium webtools' page, and execute it. For now, you still need to change the url.properties file, and start the selenium server.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1092706 13f79535-47bb-0310-9956-ffa450edef68
2011-04-15 13:55:38 +00:00

72 lines
3.8 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="editSeleniumTestSuitePath" target="updateSeleniumTestSuitePath" type="single" title="Add new selenium test suite" default-map-name="testSuitePath"
header-row-style="header-row" default-table-style="basic-table">
<field name="testSuiteId" use-when="testSuitePath == null"><text/></field>
<field name="testSuiteId" use-when="testSuitePath != null"><display/></field>
<field name="testSuiteName"><text/></field>
<field name="testSuiteType">
<drop-down allow-empty="false">
<option key="XML" description="XML"/>
<option key="HTML" description="HTML"/>
</drop-down>
</field>
<field name="testSuitePath"><text/></field>
<field name="description"><textarea rows="3"/></field>
<field name="submitButton" title=""><submit button-type="button"/></field>
</form>
<form name="seleniumTestSuitePathList" paginate-target="selenium" type="list" title="path file of selenium test suite" separate-columns="true" list-name="listIt"
view-size="15" odd-row-style="alternate-row" paginate="true" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<field name="testSuiteId" widget-style="buttontext">
<hyperlink also-hidden="true" description="${testSuiteId}" target="editSeleniumTestSuitePath">
<parameter param-name="testSuiteId"/>
</hyperlink>
</field>
<field name="testSuiteName"><display/></field>
<field name="testSuitePath"><display/></field>
<field name="description"><display/></field>
<field name="testSuiteType"><display/></field>
<field name="runTest" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext"
use-when="&quot;XML&quot;.equals(testSuiteType)">
<hyperlink target="runTestSuite" description="${uiLabelMap.CommonRun}">
<parameter param-name="testSuiteId"/>
<parameter param-name="testSuitePath" />
</hyperlink>
</field>
<field name="runTest" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext"
use-when="&quot;HTML&quot;.equals(testSuiteType)">
<hyperlink target="runHtmlSuite" description="${uiLabelMap.CommonRun}">
<parameter param-name="testSuiteId"/>
<parameter param-name="testSuitePath"/>
</hyperlink>
</field>
<field name="remove" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
<hyperlink target="removeSeleniumTestSuitePath" description="${uiLabelMap.CommonDelete}">
<parameter param-name="testSuiteId"/>
</hyperlink>
</field>
</form>
</forms>