Files
Nicolas Malin fa3e3573dc Improved: Improve run test from artefact info (OFBIZ-12312)
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
2021-09-10 10:17:23 +02:00

91 lines
4.4 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.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="ArtifactInfo" transaction-timeout="180">
<section>
<condition>
<if-has-permission permission="ARTIFACT_INFO" action="_VIEW"/>
</condition>
<actions>
<set field="titleProperty" value="WebtoolsArtifactInfo"/>
<set field="tabButtonItem" value="artifactInfo"/>
<script location="component://webtools/groovyScripts/artifactinfo/ArtifactInfo.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonArtifactDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<platform-specific><html><html-template location="component://webtools/template/artifactinfo/ArtifactInfo.ftl"/></html></platform-specific>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.WebtoolsCannotViewArtifactInfoPages}</label>
</fail-widgets>
</section>
</screen>
<screen name="ViewComponents">
<section>
<actions>
<set field="headerItem" value="main"/>
<set field="titleProperty" value="WebtoolsViewComponents"/>
<set field="tabButtonItem" value="viewents"/>
<script location="component://webtools/groovyScripts/artifactinfo/ComponentList.groovy"/>
<set field="viewSize" value="30"/>
</actions>
<widgets>
<decorator-screen name="CommonArtifactDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<include-grid name="ComponentList" location="component://webtools/widget/ArtifactInfoForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="TestSuiteInfo">
<section>
<actions>
<set field="headerItem" value="main"/>
<set field="titleProperty" value="WebtoolsViewComponents"/>
<set field="tabButtonItem" value="viewents"/>
<script location="component://webtools/groovyScripts/artifactinfo/TestSuiteInfo.groovy"/>
<script location="component://webtools/groovyScripts/artifactinfo/TestSuiteResults.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonArtifactDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="Component: ${parameters.compName}">
<include-grid name="TestSuiteInfo" location="component://webtools/widget/ArtifactInfoForms.xml"/>
</screenlet>
<screenlet title="Last Results: ${parameters.suiteName}">
<include-grid name="TestSuiteResults" location="component://webtools/widget/ArtifactInfoForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>