From https://localhost:8443/webtools/control/ViewComponents we have te possibility to run each test case or test suite. We improve it with call with rest schema (like https://localhost:8443/webtools/control/RunTest/product/producttagtests) and display the result below By this way, we also improve the groovy syntax to slim the code and extend xml form to CommonBasicGrid Thanks to Gil Portenseigne for is support
60 lines
3.1 KiB
XML
60 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
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"
|
|
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
<grid name="ComponentList" separate-columns="true" title="Component List" list-name="componentList" target=""
|
|
extends="CommonBasicGrid" extends-resource="component://common/widget/CommonForms.xml">
|
|
<field name="compName">
|
|
<hyperlink description="${compName}" target="TestSuiteInfo/${compName}" ></hyperlink>
|
|
</field>
|
|
<field name="rootLocation"><display/></field>
|
|
<field name="enabled"><display/></field>
|
|
<field name="webAppName"><display/></field>
|
|
<field name="contextRoot"><display/></field>
|
|
<field name="location"><display/></field>
|
|
</grid>
|
|
|
|
<grid name="TestSuiteInfo" separate-columns="true" title="Component List" list-name="suits" target=""
|
|
extends="CommonBasicGrid" extends-resource="component://common/widget/CommonForms.xml">
|
|
<field name="compName"><hidden value="${parameters.compName}"/></field>
|
|
<field name="suiteName" use-when="firstSuiteLine == 'Y'"><display/></field>
|
|
<field name="runSuite" use-when="firstSuiteLine == 'Y'">
|
|
<hyperlink description="run suite" target="RunTest/${parameters.compName}/${suiteName}"/>
|
|
</field>
|
|
<field name="caseName"><display/></field>
|
|
<field name="runCase">
|
|
<hyperlink description="run case" target="RunTest/${parameters.compName}/${suiteName}/${caseName}"/>
|
|
</field>
|
|
</grid>
|
|
|
|
<grid name="TestSuiteResults" title="Component Suite Results"
|
|
list-name="results" separate-columns="true" paginate="false"
|
|
extends="CommonBasicGrid" extends-resource="component://common/widget/CommonForms.xml">
|
|
<alt-row-style use-when="!success" style="error"/>
|
|
<field name="compName"><hidden value="${parameters.compName}"/></field>
|
|
<field name="suiteName"><display description="${groovy: displaySuiteName ? suiteName : ''}"/></field>
|
|
<field name="testName"><display/></field>
|
|
<field name="success"><display/></field>
|
|
<field name="time"><display/></field>
|
|
<field name="details"><display/></field>
|
|
</grid>
|
|
</forms>
|