In runtest.py , I have modified the test report from xml to HTML and installed nose to make the report in html format.
Now the report generated , i have to put more details like logs if fail or if possible insert screenshots in report, Would it be possible?
Or can you provide me some examples of testwatcher
class wtframework.wtf.testobjects.test_watchers.TestWatcher
Also what If I have to connect to my oracle DB using wtf and execute query?
Code changed in runtest.py
=============================
if options.result_file:
result_path = options.result_file
else:
result_path = os.path.join("reports", "results.html")
test_path = os.path.join("tests", "tests") #+ os.pathsep
os.system("nosetests-2.7 {test_path} --with-html --html-file={result_path}" .format(result_path=result_path, test_path=test_path))
Hope that helps,
Nick