Skip to content
New issue

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

Import issues with HTMLTestRunner 2 #4

Open
kanto501 opened this issue Jun 29, 2017 · 1 comment
Open

Import issues with HTMLTestRunner 2 #4

kanto501 opened this issue Jun 29, 2017 · 1 comment

Comments

@kanto501
Copy link

I have been using HTMLTestRunner-1.1.0 for some time. I decided to try this more maintained version but have run in to an issue. I'm using selenium 3.43, geckodriver 1.17(tried with chrome too), and Firefox 54. Once this was installed I began having import issues for some reason. Not completely sure of install since you did not provide an install page for windows or Mac. Here is what my code is now looking like:'''
Created on Jan 27, 2017

@author: jeffc
'''
import unittest
from littriage_search_test import TestLitSearch
from littriage_summary_test import TestLitSummarySearch

import os
import HTMLTestRunner
#from LitTriage import littriage_search_test, littriage_summary_test

def main():
littriage_search_test = unittest.TestLoader().loadTestsFromTestCase(TestLitSearch)
littriage_summary_test = unittest.TestLoader().loadTestsFromTestCase(TestLitSummarySearch)

#Put them in an Array
littriage_tests = unittest.TestSuite([littriage_search_test, littriage_summary_test])
#file
dir = os.getcwd()
outfile = open(r"C:\WebdriverTests\LitTriagetestreport.html", "w")
runner = HTMLTestRunner.HTMLTestRunner(stream = outfile,title = 'Test Report',description = 'Literature Triage Test Report')
runner.run(littriage_tests)

if name=="main":
main()

Bolded text(2 separate lines) are both giving me unresolved import issues and I can't figure out why.

Jeff

@kanto501
Copy link
Author

sorry, appears to be an issue with pydev. Still would like to know how to properly install this software, where should the folder of css,js,fonts,etc be placed? In the site packages/lib directory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant