Open leon-wu opened 7 years ago
I had this problem too. Clear the python cache first then run:
py.test --collect-only tests/
Same problem occured
You can solve using this link as guide: https://stackoverflow.com/questions/43728431/relative-imports-modulenotfounderror-no-module-named-x
OR
If you prefer, you can adjust the import paths, for example: on "tests/pages/native/init.py" you have:
from alerts_page import AlertsPage
from login_page import LoginPage
from navigation_page import NavigationPage
from nested_views_page import NestedViewsPage
from web_page import WebPage
from tests.pages.base_pages.tab_view_page import TabViewPage
from tests.pages.native.video_player_page import VideoPlayerPage
from tests.pages.native.image_gallery_page import ImageGalleryPage
you can change to:
from tests.pages.alerts_page import AlertsPage
from tests.pages.login_page import LoginPage
from tests.pages.navigation_page import NavigationPage
from tests.pages.nested_views_page import NestedViewsPage
from tests.pages.web_page import WebPage
from tests.pages.base_pages.tab_view_page import TabViewPage
from tests.pages.native.video_player_page import VideoPlayerPage
from tests.pages.native.image_gallery_page import ImageGalleryPage
it works too.
Cleared the cache and then I tried the methods above, it does not work for me.
any updates on this issue please ?
can aws team provide proper samples which will work for newbies and there should not be any prerequisite of expert knowledge of code language of given sample ?
example provided in this blog https://aws.amazon.com/blogs/mobile/test-ios-apps-on-aws-device-farm-using-appium-part-1-prerequisities-environment-set-up-and-test-creation/ is also not working.. the given example require xcode 7 but, current xcode version is 13; which is blocker..
sample example provided in this git bucket https://github.com/aws-samples/aws-device-farm-appium-python-tests-for-android-sample-app/blob/master/README.md is also not working.. it is giving above mentioned error..
So in a nutshell; none of the examples provided above are working for customer. what is use of such examples ?
while running
there is an error saying 'ImportError: No module named 'native_test'', how can i fix the issue?