Skip to content

leoli2019/AutomationTestingPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonAutomationTesting

Python Java https://github.com/leoli2019/AutomationTestingJAVA

CICD

Gitlab Jenkins Azure

Python code

Tools: Unittest Selenium Pytest Html for report xger

class MyTestSuite(unittest.TestCase):

    def test_cases(self):
        smoke_test = unittest.TestSuite()
        smoke_test.addTests([
            unittest.defaultTestLoader.loadTestsFromTestCase(
                PythonAutomation.SeleniumAuto.NBAI_Pro_upload_ui.OrionProUploadUI),
            unittest.defaultTestLoader.loadTestsFromTestCase(PythonAutomation.SeleniumAuto.login_20_ui.TestLoginOrion),
        ])
        outfile = open("TestReport_UI/SeleniumReportUI.html", "w")
        runner1 = HTMLStyle(
            stream=outfile,
            title='UI Test Report',
            description='Selenium Tests'
        )
        runner1.run(smoke_test)

alt text

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published