From 32e6f52cd24249ec37767962d527949eb87a4fb6 Mon Sep 17 00:00:00 2001 From: andrlos <80903703+andrlos@users.noreply.github.com> Date: Mon, 27 Nov 2023 15:04:05 +0100 Subject: [PATCH] Update testHeadlessComponents.sh --- testHeadlessComponents.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/testHeadlessComponents.sh b/testHeadlessComponents.sh index 8a57e59..95a704d 100755 --- a/testHeadlessComponents.sh +++ b/testHeadlessComponents.sh @@ -228,9 +228,17 @@ done let "TESTS = $FAILED + $PASSED + $IGNORED" XMLREPORT=$TMPRESULTS/testHeadlessComponent.jtr.xml -printXmlHeader $PASSED $FAILED $TESTS $IGNORED "testHeadlessComponent" > $XMLREPORT -echo "$BODY" >> $XMLREPORT -printXmlFooter >> $XMLREPORT +if [ "$OS" == "windows" ]; then + printXmlHeader $PASSED $FAILED $TESTS $IGNORED "testHeadlessComponent" | Out-File -FilePath $XMLREPORT + echo "$BODY" | Out-File -FilePath $XMLREPORT + printXmlFooter | Out-File -FilePath $XMLREPORT +else + printXmlHeader $PASSED $FAILED $TESTS $IGNORED "testHeadlessComponent" > $XMLREPORT + echo "$BODY" >> $XMLREPORT + printXmlFooter >> $XMLREPORT +fi + +ls for val in ${resArray[@]}; do if [[ "$val" -ne "0" ]]; then