I tried to read a report that the name is TEST-Pixel_2_API_27(AVD) - 8.1.0-featureauth-debugAndroidTest.xml but script not identify space and trying to get slots TEST-Pixel_2_API_27(AVD), - and 8.1.0-featureauth-debugAndroidTest.xml.
To fix it i use a script to rename my test archive and remove spaces:
find . -depth -name "TEST-*.xml" -exec sh -c 'f="{}"; mv -- "$f" "${f// /}"' \;
With this you could try to read instrumental test reports too.
Log error:
Traceback (most recent call last):
File "/usr/bin/extractReport.py", line 51, in <module>
./featurehelp/connected/flavors/debugAndroidTest/TEST-test(AVD)
main()
File "/usr/bin/extractReport.py", line 48, in main
parseXML(path)
File "/usr/bin/extractReport.py", line 7, in parseXML
tree = ET.parse(xmlfile)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: './featurehelp/connected/flavors/debugAndroidTest/TEST-test(AVD)'
Traceback (most recent call last):
-
File "/usr/bin/extractReport.py", line 51, in <module>
main()
File "/usr/bin/extractReport.py", line 48, in main
parseXML(path)
File "/usr/bin/extractReport.py", line 7, in parseXML
tree = ET.parse(xmlfile)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: '-'
Traceback (most recent call last):
File "/usr/bin/extractReport.py", line 51, in <module>
main()
File "/usr/bin/extractReport.py", line 48, in main
parseXML(path)
File "/usr/bin/extractReport.py", line 7, in parseXML
tree = ET.parse(xmlfile)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: '10-featurehelp-debugAndroidTest.xml'
10-featurehelp-debugAndroidTest.xml
After fix:
./featurehelp/connected/flavors/debugAndroidTest/TEST-test(AVD)-10-featurehelp-debugAndroidTest.xml
Tests 4
Errors 0
Name br.com.xxxx.featurehelp.HelpCenterFragmentTest
Timestamp 2021-05-17T16:57:43
Hostname localhost
Skipped 0
Time 44.686
Failures 0
I tried to read a report that the name is
TEST-Pixel_2_API_27(AVD) - 8.1.0-featureauth-debugAndroidTest.xml
but script not identify space and trying to get slotsTEST-Pixel_2_API_27(AVD)
,-
and8.1.0-featureauth-debugAndroidTest.xml
. To fix it i use a script to rename my test archive and remove spaces:find . -depth -name "TEST-*.xml" -exec sh -c 'f="{}"; mv -- "$f" "${f// /}"' \;
With this you could try to read instrumental test reports too.
Log error:
After fix:
My action: