<?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>
