mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
added get_popup_and_close function call in create_chamberview.py
added get_popup_and_close function in create_chamberview_dut.py Signed-off-by: sushant <sushant.bawiskar@candelatech.com>
This commit is contained in:
committed by
sushant
parent
a7cf234eeb
commit
94d7949eed
@@ -472,3 +472,11 @@ class cv_test(Realm):
|
|||||||
|
|
||||||
def get_response_string(self, response):
|
def get_response_string(self, response):
|
||||||
return response[0]["LAST"]["response"]
|
return response[0]["LAST"]["response"]
|
||||||
|
|
||||||
|
def get_popup_info_and_close(self):
|
||||||
|
cmd = "cv get_and_close_dialog"
|
||||||
|
dialog = self.run_cv_cmd(cmd);
|
||||||
|
if dialog[0]["LAST"]["response"] != "NO-DIALOG":
|
||||||
|
print("Popup Dialog:\n")
|
||||||
|
print(dialog[0]["LAST"]["response"])
|
||||||
|
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ class CreateChamberview(cv):
|
|||||||
self.build_cv_scenario() # build scenario
|
self.build_cv_scenario() # build scenario
|
||||||
tries = 0
|
tries = 0
|
||||||
while (True):
|
while (True):
|
||||||
|
self.get_popup_info_and_close()
|
||||||
if not self.get_cv_is_built():
|
if not self.get_cv_is_built():
|
||||||
print("Waiting %i/60 for Chamber-View to be built." % (tries))
|
print("Waiting %i/60 for Chamber-View to be built." % (tries))
|
||||||
tries += 1
|
tries += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user