mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-22 22:05:07 +00:00
Added global devicemodel in teardown function of Android
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
This commit is contained in:
@@ -23,7 +23,7 @@ from xml.etree import ElementTree as ET
|
|||||||
|
|
||||||
|
|
||||||
class android_libs:
|
class android_libs:
|
||||||
global driver, perfecto_execution_context
|
global driver, perfecto_execution_context, deviceModel
|
||||||
android_devices = {
|
android_devices = {
|
||||||
"Galaxy S20": {
|
"Galaxy S20": {
|
||||||
"platformName-android": "Android",
|
"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
|
# 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):
|
def setup_perfectoMobile_android(self, get_device_configuration, perfecto_data):
|
||||||
from appium import webdriver
|
from appium import webdriver
|
||||||
global perfecto_execution_context, driver
|
global perfecto_execution_context, driver, deviceModel
|
||||||
driver = None
|
driver = None
|
||||||
reporting_client = None
|
reporting_client = None
|
||||||
print("Device CONFIG:", get_device_configuration)
|
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
|
# Teardown function used to release all the data that presently hold from Perfecto
|
||||||
def teardown(self):
|
def teardown(self):
|
||||||
global driver, perfecto_execution_context
|
global driver, perfecto_execution_context, deviceModel
|
||||||
reporting_client = PerfectoReportiumClient(perfecto_execution_context)
|
reporting_client = PerfectoReportiumClient(perfecto_execution_context)
|
||||||
try:
|
try:
|
||||||
print("\n---------- Tear Down ----------")
|
print("\n---------- Tear Down ----------")
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class TestBridgeModeConnectSuiteA(object):
|
|||||||
num_stations, setup_configuration):
|
num_stations, setup_configuration):
|
||||||
"""
|
"""
|
||||||
BRIDGE Mode Client Connect Test with wpa encryption 2.4 GHz Band
|
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]
|
profile_data = setup_params_general["ssid_modes"]["wpa"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
|
|||||||
Reference in New Issue
Block a user