mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
- all test will be using cv_test_manager to sync.
Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
This commit is contained in:
@@ -180,8 +180,6 @@ if 'py-json' not in sys.path:
|
|||||||
|
|
||||||
from cv_test_manager import cv_test as cvtest
|
from cv_test_manager import cv_test as cvtest
|
||||||
from cv_test_manager import *
|
from cv_test_manager import *
|
||||||
from cv_commands import chamberview as cv
|
|
||||||
|
|
||||||
|
|
||||||
class ApAutoTest(cvtest):
|
class ApAutoTest(cvtest):
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
@@ -213,7 +211,6 @@ class ApAutoTest(cvtest):
|
|||||||
self.lf_port = lf_port
|
self.lf_port = lf_port
|
||||||
self.lf_user = lf_user
|
self.lf_user = lf_user
|
||||||
self.lf_password =lf_password
|
self.lf_password =lf_password
|
||||||
self.createCV = cv(lf_host, lf_port);
|
|
||||||
self.instance_name = instance_name
|
self.instance_name = instance_name
|
||||||
self.config_name = config_name
|
self.config_name = config_name
|
||||||
self.upstream = upstream
|
self.upstream = upstream
|
||||||
@@ -239,9 +236,9 @@ class ApAutoTest(cvtest):
|
|||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
|
|
||||||
blob_test = "%s-"%(self.test_name)
|
blob_test = "%s-"%(self.test_name)
|
||||||
|
|
||||||
|
|||||||
@@ -112,8 +112,6 @@ if 'py-json' not in sys.path:
|
|||||||
|
|
||||||
from cv_test_manager import cv_test as cvtest
|
from cv_test_manager import cv_test as cvtest
|
||||||
from cv_test_manager import *
|
from cv_test_manager import *
|
||||||
from cv_commands import chamberview as cv
|
|
||||||
|
|
||||||
|
|
||||||
class DataplaneTest(cvtest):
|
class DataplaneTest(cvtest):
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
@@ -143,7 +141,6 @@ class DataplaneTest(cvtest):
|
|||||||
self.lf_port = lf_port
|
self.lf_port = lf_port
|
||||||
self.lf_user = lf_user
|
self.lf_user = lf_user
|
||||||
self.lf_password =lf_password
|
self.lf_password =lf_password
|
||||||
self.createCV = cv(lf_host, lf_port);
|
|
||||||
self.instance_name = instance_name
|
self.instance_name = instance_name
|
||||||
self.config_name = config_name
|
self.config_name = config_name
|
||||||
self.dut = dut
|
self.dut = dut
|
||||||
@@ -167,9 +164,9 @@ class DataplaneTest(cvtest):
|
|||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
|
|
||||||
blob_test = "dataplane-test-latest-"
|
blob_test = "dataplane-test-latest-"
|
||||||
|
|
||||||
|
|||||||
@@ -130,8 +130,6 @@ if 'py-json' not in sys.path:
|
|||||||
|
|
||||||
from cv_test_manager import cv_test as cvtest
|
from cv_test_manager import cv_test as cvtest
|
||||||
from cv_test_manager import *
|
from cv_test_manager import *
|
||||||
from cv_commands import chamberview as cv
|
|
||||||
|
|
||||||
|
|
||||||
class MeshTest(cvtest):
|
class MeshTest(cvtest):
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
@@ -159,7 +157,6 @@ class MeshTest(cvtest):
|
|||||||
self.lf_port = lf_port
|
self.lf_port = lf_port
|
||||||
self.lf_user = lf_user
|
self.lf_user = lf_user
|
||||||
self.lf_password =lf_password
|
self.lf_password =lf_password
|
||||||
self.createCV = cv(lf_host, lf_port);
|
|
||||||
self.instance_name = instance_name
|
self.instance_name = instance_name
|
||||||
self.config_name = config_name
|
self.config_name = config_name
|
||||||
self.duration = duration
|
self.duration = duration
|
||||||
@@ -181,9 +178,9 @@ class MeshTest(cvtest):
|
|||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
|
|
||||||
blob_test = "Mesh-"
|
blob_test = "Mesh-"
|
||||||
|
|
||||||
|
|||||||
@@ -117,8 +117,6 @@ if 'py-json' not in sys.path:
|
|||||||
|
|
||||||
from cv_test_manager import cv_test as cvtest
|
from cv_test_manager import cv_test as cvtest
|
||||||
from cv_test_manager import *
|
from cv_test_manager import *
|
||||||
from cv_commands import chamberview as cv
|
|
||||||
|
|
||||||
|
|
||||||
class RvrTest(cvtest):
|
class RvrTest(cvtest):
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
@@ -148,7 +146,6 @@ class RvrTest(cvtest):
|
|||||||
self.lf_port = lf_port
|
self.lf_port = lf_port
|
||||||
self.lf_user = lf_user
|
self.lf_user = lf_user
|
||||||
self.lf_password =lf_password
|
self.lf_password =lf_password
|
||||||
self.createCV = cv(lf_host, lf_port);
|
|
||||||
self.instance_name = instance_name
|
self.instance_name = instance_name
|
||||||
self.config_name = config_name
|
self.config_name = config_name
|
||||||
self.dut = dut
|
self.dut = dut
|
||||||
@@ -172,9 +169,9 @@ class RvrTest(cvtest):
|
|||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
|
|
||||||
blob_test = "rvr-test-latest-"
|
blob_test = "rvr-test-latest-"
|
||||||
|
|
||||||
|
|||||||
@@ -173,8 +173,6 @@ if 'py-json' not in sys.path:
|
|||||||
|
|
||||||
from cv_test_manager import cv_test as cvtest
|
from cv_test_manager import cv_test as cvtest
|
||||||
from cv_test_manager import *
|
from cv_test_manager import *
|
||||||
from cv_commands import chamberview as cv
|
|
||||||
|
|
||||||
|
|
||||||
class DataplaneTest(cvtest):
|
class DataplaneTest(cvtest):
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
@@ -201,7 +199,6 @@ class DataplaneTest(cvtest):
|
|||||||
self.lf_port = lf_port
|
self.lf_port = lf_port
|
||||||
self.lf_user = lf_user
|
self.lf_user = lf_user
|
||||||
self.lf_password =lf_password
|
self.lf_password =lf_password
|
||||||
self.createCV = cv(lf_host, lf_port);
|
|
||||||
self.instance_name = instance_name
|
self.instance_name = instance_name
|
||||||
self.config_name = config_name
|
self.config_name = config_name
|
||||||
self.dut5 = dut5
|
self.dut5 = dut5
|
||||||
@@ -222,9 +219,9 @@ class DataplaneTest(cvtest):
|
|||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
|
|
||||||
blob_test = "%s-"%(self.test_name)
|
blob_test = "%s-"%(self.test_name)
|
||||||
|
|
||||||
|
|||||||
@@ -316,7 +316,6 @@ if 'py-json' not in sys.path:
|
|||||||
sys.path.append(os.path.join(os.path.abspath('..'), 'py-json'))
|
sys.path.append(os.path.join(os.path.abspath('..'), 'py-json'))
|
||||||
|
|
||||||
from cv_test_manager import cv_test as cvtest
|
from cv_test_manager import cv_test as cvtest
|
||||||
from cv_commands import chamberview as cv
|
|
||||||
from cv_test_manager import *
|
from cv_test_manager import *
|
||||||
|
|
||||||
|
|
||||||
@@ -356,7 +355,6 @@ class WiFiCapacityTest(cvtest):
|
|||||||
self.lf_port = lf_port
|
self.lf_port = lf_port
|
||||||
self.lf_user = lf_user
|
self.lf_user = lf_user
|
||||||
self.lf_password =lf_password
|
self.lf_password =lf_password
|
||||||
self.createCV = cv(lf_host, lf_port);
|
|
||||||
self.station_profile = self.new_station_profile()
|
self.station_profile = self.new_station_profile()
|
||||||
self.pull_report = pull_report
|
self.pull_report = pull_report
|
||||||
self.load_old_cfg = load_old_cfg
|
self.load_old_cfg = load_old_cfg
|
||||||
@@ -395,8 +393,9 @@ class WiFiCapacityTest(cvtest):
|
|||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.createCV.sync_cv()
|
self.sync_cv()
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
self.sync_cv()
|
||||||
|
|
||||||
self.rm_text_blob(self.config_name, "Wifi-Capacity-") # To delete old config with same name
|
self.rm_text_blob(self.config_name, "Wifi-Capacity-") # To delete old config with same name
|
||||||
self.show_text_blob(None, None, False)
|
self.show_text_blob(None, None, False)
|
||||||
|
|||||||
Reference in New Issue
Block a user