-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from testdevlab/exclude_driver_test
Exclude TestUIDriver from pytest collection
- Loading branch information
Showing
5 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import pytest | ||
|
||
from tests.screens.landing import LandingScreen | ||
from testui.support import logger | ||
from testui.support.appium_driver import NewDriver | ||
from testui.support.testui_driver import TestUIDriver | ||
|
||
|
||
class TestStringMethods(object): | ||
@pytest.yield_fixture(autouse=True) | ||
def appium_driver(self): | ||
driver = NewDriver() \ | ||
.set_app_package_activity("com.android.vending", ".AssetBrowserActivity") \ | ||
.set_logger().set_soft_assert(True).set_appium_driver() | ||
yield driver | ||
driver.quit() | ||
|
||
@pytest.mark.signup | ||
def test_appium_app(self, appium_driver: TestUIDriver): | ||
logger.log_test_name("T92701: Check appium app") | ||
landing_page = LandingScreen(appium_driver) | ||
landing_page.i_am_in_google_play_landing_screen() | ||
appium_driver.raise_errors() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters