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( """\
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( """\
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( """\
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-24 08:02:38
Last Modified
WRITER/B4A am: 2023-03-08 08:06:29 9 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( """\
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( """\
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( """\

XML Documentation