Skip to content

Error your template wasn't loaded #87

Description

@YenikeRaghuRam
  • HtmlTestRunner version:Html-test Runner 1.2.1
  • Python version:3.7.8
  • Operating System:windkws 10

Description

Error your template wasn't loaded
Error 13 permission denied
Loading default template is displayed

What I Did

unittest.main(
testRunner=HtmlTestRunner.HTMLTestRunner(template="C:\Users\yeniker\PycharmProjects\STAF_DEMO 2.0",
output=dirnameutils + "\Results\" + foldername))

O/P:

Running tests...

test_SystemValues_CheckBoxes_Functionality_1_systemValues_SaveOpen_CustomView_GraphChanges (main.SchedulesTests) ... OK (6.960585)s

Ran 1 test in 0:00:06
OK
Generating HTML reports...
Error: Your Template wasn't loaded
[Errno 13] Permission denied: 'C:\Users\yeniker\PycharmProjects\STAF_DEMO 2.0'
Loading Default Template
......\Results\PywinautoTest\TestResults___main__.SchedulesTests_2022-01-17_10-15-40.html
Process finished with exit code 0

Html test runner with template directory
![IMG_20211115_160442](https://user-images.githubusercontent.com/81166452/141766868-394e3831-6546-4a9d-9604-62163ab1ca33.jpg)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions