We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to customize the attribute in the case
For example
import unittest import xmlrunner from xmlrunner.result import set_attribute class TestSequenceFunctions(unittest.TestCase): def test_sample(self): set_attribute({"jira": "0001", "case_id": "1001"}) if __name__ == '__main__': with open('./results.xml', 'wb') as output: unittest.main( testRunner=xmlrunner.XMLTestRunner(output=output), failfast=False, buffer=False, catchbreak=False)
result.xml
<?xml version="1.0" encoding="UTF-8"?> <testsuites> <testsuite errors="0" failures="0" file=".py" name="TestSequenceFunctions-20200827100320" skipped="0" tests="1" time="0.007" timestamp="2020-08-27T10:03:20"> <testcase case_id="1001" classname="TestSequenceFunctions" file="best_sample.py" jira="0001" line="9" name="test_sample" time="0.007" timestamp="2020-08-27T10:03:20"> <system-out> <![CDATA[{"jira": "0001", "case_id": "1001"}]]> </system-out> </testcase> </testsuite> </testsuites>
The text was updated successfully, but these errors were encountered:
@klookAppTest , can you please go through the 5 whys (https://en.wikipedia.org/wiki/Five_whys) exercise and explain better what you are trying to do?
if all you need is print something on stdout, you can already do that.
Sorry, something went wrong.
No branches or pull requests
I need to customize the attribute in the case
For example
result.xml
The text was updated successfully, but these errors were encountered: