Added global devicemodel in teardown function of Android

Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
This commit is contained in:
haricharan-jaka
2022-11-23 09:29:54 +05:30
parent 150a57098d
commit d362ada8f6
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ from xml.etree import ElementTree as ET
class android_libs:
global driver, perfecto_execution_context
global driver, perfecto_execution_context, deviceModel
android_devices = {
"Galaxy S20": {
"platformName-android": "Android",
@@ -390,7 +390,7 @@ class android_libs:
# Used to get the Android Device driver obj for further utility,Base function for Android Tests
def setup_perfectoMobile_android(self, get_device_configuration, perfecto_data):
from appium import webdriver
global perfecto_execution_context, driver
global perfecto_execution_context, driver, deviceModel
driver = None
reporting_client = None
print("Device CONFIG:", get_device_configuration)
@@ -461,7 +461,7 @@ class android_libs:
# Teardown function used to release all the data that presently hold from Perfecto
def teardown(self):
global driver, perfecto_execution_context
global driver, perfecto_execution_context, deviceModel
reporting_client = PerfectoReportiumClient(perfecto_execution_context)
try:
print("\n---------- Tear Down ----------")

View File

@@ -108,7 +108,7 @@ class TestBridgeModeConnectSuiteA(object):
num_stations, setup_configuration):
"""
BRIDGE Mode Client Connect Test with wpa encryption 2.4 GHz Band
pytest -m "client_connectivity_tests and bridge and general and wpa and twog"
pytest -m "client_connect_tests and bridge and general and wpa and twog"
"""
profile_data = setup_params_general["ssid_modes"]["wpa"][0]
ssid_name = profile_data["ssid_name"]