qxf2 / qxf2-page-object-model

Write Selenium and Appium tests in Python using the Page Object pattern. This Pythonic GUI and API test automation framework will help you get started with QA automation quickly. It comes with many useful integrations like - email, BrowserStack, Slack, TestRail, etc. This repository is developed and maintained by Qxf2 Services.
https://qxf2.com
MIT License
256 stars 191 forks source link

Fix module name bug #400

Closed akkuldn closed 1 month ago

akkuldn commented 2 months ago

Have modified the Base logging script so that the accurate module name is displayed in the test log. To test:

akkuldn commented 1 month ago

Logs looks good, now it is showing correct module name and path also. module_name_fix

@akkuldn I noticed 2 new deprecation warning related to "ansi" with this branch changes, can you please fix it.

/qxf2-page-object-model/utils/Base_Logging.py:113: DeprecationWarning: The 'ansi' parameter is deprecated, please use 'colors' instead logger.opt(ansi=True).info("{file_name}::{module} | {msg}", file_name=file_name, module=module, msg=msg)

/qxf2-page-object-model/utils/Base_Logging.py:109: DeprecationWarning: The 'ansi' parameter is deprecated, please use 'colors' instead logger.opt(ansi=True).debug("{file_name}::{module} | {msg}", file_name=file_name, module=module, msg=msg)

Thanks for the review Rohan, I have fixed the new warnings. please take a look