-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the incorrect elapsed time issue
After robotframework 7.0, the time format of output.xml was changed, end_time is removed and replaced with elapsed, the merger method cannot handle new format correctly, only pick the elapsed time of first suite from the pabot_results as the total elapsed time.
- Loading branch information
1 parent
3c1fbe8
commit 2db5f12
Showing
5 changed files
with
167 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<robot generator="Robot 7.0.1 (Python 3.11.1 on darwin)" generated="2024-12-06T09:41:12.425254" rpa="false" schemaversion="5"> | ||
<suite id="s1" name="Tmp" source="/Users/mkorpela/workspace/pabot/tmp"> | ||
<suite id="s1-s1" name="Tests" source="/Users/mkorpela/workspace/pabot/tmp/tests.robot"> | ||
<test id="s1-s1-t1" name="First" line="4"> | ||
<kw name="Log" owner="BuiltIn"> | ||
<msg time="2024-12-06T09:41:12.583145" level="INFO">this is first</msg> | ||
<arg>this is first</arg> | ||
<doc>Logs the given message with the given level.</doc> | ||
<status status="PASS" start="2024-12-06T09:41:12.582148" elapsed="0.000997"/> | ||
</kw> | ||
<kw name="Sleep" owner="BuiltIn"> | ||
<msg time="2024-12-06T09:41:13.599800" level="INFO">Slept 1 second.</msg> | ||
<arg>1s</arg> | ||
<doc>Pauses the test executed for the given time.</doc> | ||
<status status="PASS" start="2024-12-06T09:41:12.584151" elapsed="1.016646"/> | ||
</kw> | ||
<kw name="Log" owner="BuiltIn"> | ||
<msg time="2024-12-06T09:41:13.604820" level="INFO">yeah</msg> | ||
<arg>yeah</arg> | ||
<doc>Logs the given message with the given level.</doc> | ||
<status status="PASS" start="2024-12-06T09:41:13.603813" elapsed="0.002005"/> | ||
</kw> | ||
<status status="PASS" start="2024-12-06T09:41:12.578940" elapsed="1.026878"/> | ||
</test> | ||
<status status="PASS" start="2024-12-06T09:41:12.571947" elapsed="1.041865"/> | ||
</suite> | ||
<status status="PASS" start="2024-12-06T09:41:12.482939" elapsed="1.137409"/> | ||
</suite> | ||
<statistics> | ||
<total> | ||
<stat pass="1" fail="0" skip="0">All Tests</stat> | ||
</total> | ||
<tag> | ||
</tag> | ||
<suite> | ||
<stat pass="1" fail="0" skip="0" id="s1" name="Tmp">Tmp</stat> | ||
<stat pass="1" fail="0" skip="0" id="s1-s1" name="Tests">Tmp.Tests</stat> | ||
</suite> | ||
</statistics> | ||
<errors> | ||
</errors> | ||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<robot generator="Robot 7.0.1 (Python 3.11.1 on darwin)" generated="2024-12-06T09:41:12.597260" rpa="false" schemaversion="5"> | ||
<suite id="s1" name="Tmp" source="/Users/mkorpela/workspace/pabot/tmp"> | ||
<suite id="s1-s1" name="Tests" source="/Users/mkorpela/workspace/pabot/tmp/tests.robot"> | ||
<test id="s1-s1-t1" name="Second" line="9"> | ||
<kw name="Log" owner="BuiltIn"> | ||
<msg time="2024-12-06T09:41:12.849548" level="INFO">this is second</msg> | ||
<arg>this is second</arg> | ||
<doc>Logs the given message with the given level.</doc> | ||
<status status="PASS" start="2024-12-06T09:41:12.848548" elapsed="0.002000"/> | ||
</kw> | ||
<kw name="Sleep" owner="BuiltIn"> | ||
<msg time="2024-12-06T09:41:14.038911" level="INFO">Slept 1 second.</msg> | ||
<arg>1s</arg> | ||
<doc>Pauses the test executed for the given time.</doc> | ||
<status status="PASS" start="2024-12-06T09:41:12.851549" elapsed="1.187362"/> | ||
</kw> | ||
<kw name="Log" owner="BuiltIn"> | ||
<msg time="2024-12-06T09:41:14.040913" level="INFO">wohoo</msg> | ||
<arg>wohoo</arg> | ||
<doc>Logs the given message with the given level.</doc> | ||
<status status="PASS" start="2024-12-06T09:41:14.039912" elapsed="0.002001"/> | ||
</kw> | ||
<status status="PASS" start="2024-12-06T09:41:12.844549" elapsed="1.197364"/> | ||
</test> | ||
<status status="PASS" start="2024-12-06T09:41:12.807856" elapsed="1.238057"/> | ||
</suite> | ||
<status status="PASS" start="2024-12-06T09:41:12.649373" elapsed="1.405075"/> | ||
</suite> | ||
<statistics> | ||
<total> | ||
<stat pass="1" fail="0" skip="0">All Tests</stat> | ||
</total> | ||
<tag> | ||
</tag> | ||
<suite> | ||
<stat pass="1" fail="0" skip="0" id="s1" name="Tmp">Tmp</stat> | ||
<stat pass="1" fail="0" skip="0" id="s1-s1" name="Tests">Tmp.Tests</stat> | ||
</suite> | ||
</statistics> | ||
<errors> | ||
</errors> | ||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<robot generator="Robot 7.0.1 (Python 3.11.1 on darwin)" generated="2024-12-06T09:41:12.426434" rpa="false" schemaversion="5"> | ||
<suite id="s1" name="Tmp" source="/Users/mkorpela/workspace/pabot/tmp"> | ||
<suite id="s1-s1" name="Tests" source="/Users/mkorpela/workspace/pabot/tmp/tests.robot"> | ||
<test id="s1-s1-t1" name="Third" line="14"> | ||
<kw name="Log" owner="BuiltIn"> | ||
<msg time="2024-12-06T09:41:12.584151" level="INFO">this is third</msg> | ||
<arg>this is third</arg> | ||
<doc>Logs the given message with the given level.</doc> | ||
<status status="PASS" start="2024-12-06T09:41:12.583145" elapsed="0.001006"/> | ||
</kw> | ||
<kw name="Sleep" owner="BuiltIn"> | ||
<msg time="2024-12-06T09:41:13.639363" level="INFO">Slept 1 second.</msg> | ||
<arg>1s</arg> | ||
<doc>Pauses the test executed for the given time.</doc> | ||
<status status="PASS" start="2024-12-06T09:41:12.585379" elapsed="1.072033"/> | ||
</kw> | ||
<kw name="Log" owner="BuiltIn"> | ||
<msg time="2024-12-06T09:41:13.660512" level="INFO">bruut</msg> | ||
<arg>bruut</arg> | ||
<doc>Logs the given message with the given level.</doc> | ||
<status status="PASS" start="2024-12-06T09:41:13.659485" elapsed="0.002028"/> | ||
</kw> | ||
<status status="PASS" start="2024-12-06T09:41:12.579960" elapsed="1.081553"/> | ||
</test> | ||
<status status="PASS" start="2024-12-06T09:41:12.572945" elapsed="1.109641"/> | ||
</suite> | ||
<status status="PASS" start="2024-12-06T09:41:12.481972" elapsed="1.206628"/> | ||
</suite> | ||
<statistics> | ||
<total> | ||
<stat pass="1" fail="0" skip="0">All Tests</stat> | ||
</total> | ||
<tag> | ||
</tag> | ||
<suite> | ||
<stat pass="1" fail="0" skip="0" id="s1" name="Tmp">Tmp</stat> | ||
<stat pass="1" fail="0" skip="0" id="s1-s1" name="Tests">Tmp.Tests</stat> | ||
</suite> | ||
</statistics> | ||
<errors> | ||
</errors> | ||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters