B4A.UTIL.DOCU.BODY-PM-COMPLIANCE
Summary
%{XML2ATTR,PREFIX=xml::}
%{SCRIPT:groovy: def result = [ Succeeded : 0, Warned : 0, Failed : 0 ]
def variable = $attributes.xml
for ( String testName : variable.keySet() ) {
println( "TEST: " + testName )
def testReport = variable[ testName ].best4Automic.pm.compliance.tests.test
result[ testReport.result ] = result[ testReport.result ] + 1
}
def errors = result.Warned + result.Failed > 0
$output.append( """\
Summary
Status | Count |
---|---|
Succeeded | $result.Succeeded |
Warned | $result.Warned |
Failed | $result.Failed |
if ( result.Failed > 0 ) {
$output.append( "<h1>Failed Tests</h1>" )
for ( String testName : variable.keySet() ) {
def testReport = variable[ testName ].best4Automic.pm.compliance.tests.test
if ( testReport.result != "Failed" )
continue;
$output.append( """\
Test: $testReport.title
$testReport.details""") } }
if ( result.Warned > 0 ) {
$output.append( "<h1>Warned Tests</h1>" )
for ( String testName : variable.keySet() ) {
def testReport = variable[ testName ].best4Automic.pm.compliance.tests.test
if ( testReport.result != "Warned" )
continue;
$output.append( """\
Test: $testReport.title
$testReport.details""") } } }
- Object type
- DOCU
- Object Folder
- PACKAGES/BEST4AUTOMIC/B4A.UTIL/CONFIG
- Title
- mail body for pm.Compliance
- Archive Key 1
- -
- Archive Key 2
- -
- Created
- WRITER/B4A am: 2022-03-29 08:21:47
- Last Modified
- WRITER/B4A am: 2024-01-09 10:32:28 12 x
- Last Used
- -
Text Documentation
%{XML2ATTR,PREFIX=xml:%(custom.variable):}
%{SCRIPT:groovy: def result = [ Succeeded : 0, Warned : 0, Failed : 0 ]
def variable = $attributes.xml
for ( String testName : variable.keySet() ) {
println( "TEST: " + testName )
def testReport = variable[ testName ].best4Automic.pm.compliance.tests.test
result[ testReport.result ] = result[ testReport.result ] + 1
}
def errors = result.Warned + result.Failed > 0
$output.append( """\
Summary
Status | Count |
---|---|
Succeeded | $result.Succeeded |
Warned | $result.Warned |
Failed | $result.Failed |
if ( result.Failed > 0 ) {
$output.append( "<h1>Failed Tests</h1>" )
for ( String testName : variable.keySet() ) {
def testReport = variable[ testName ].best4Automic.pm.compliance.tests.test
if ( testReport.result != "Failed" )
continue;
$output.append( """\
Test: $testReport.title
$testReport.details""") } }
if ( result.Warned > 0 ) {
$output.append( "<h1>Warned Tests</h1>" )
for ( String testName : variable.keySet() ) {
def testReport = variable[ testName ].best4Automic.pm.compliance.tests.test
if ( testReport.result != "Warned" )
continue;
$output.append( """\
Test: $testReport.title
$testReport.details""") } } }
XML Documentation