- changed example

- url argument added in get_ports

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
This commit is contained in:
SushantBawiskar
2021-04-28 17:32:06 +05:30
parent c62022066a
commit 25d6d2e526
2 changed files with 4 additions and 5 deletions

View File

@@ -196,8 +196,8 @@ class cv_test(Realm):
break
#Get port listing
def get_ports(self):
response = self.json_get("/ports/")
def get_ports(self, url="/ports/"):
response = self.json_get(url)
return response
def show_text_blob(self, config_name, blob_test_name, brief):
@@ -422,7 +422,6 @@ class cv_test(Realm):
"text": Rawline
}
rsp = self.json_post(req_url, data)
time.sleep(2)
# This is for chamber view buttons

View File

@@ -23,8 +23,8 @@ Note: Script for creating a chamberview scenario.
******************************** OR ********************************
create_chamberview.py -m "localhost" -o "8080" -cs "scenario_name"
----raw_line "profile_link 1.1 STA-AC 10 'DUT: temp Radio-1' tcp-dl-6m-vi wiphy0,AUTO -1"
----raw_line "profile_link 1.1 upstream 1 'DUT: temp Radio-1' tcp-dl-6m-vi eth1,AUTO -1"
--raw_line "profile_link 1.1 STA-AC 10 'DUT: temp Radio-1' tcp-dl-6m-vi wiphy0,AUTO -1"
--raw_line "profile_link 1.1 upstream 1 'DUT: temp Radio-1' tcp-dl-6m-vi eth1,AUTO -1"
Output:
You should see build scenario with the given arguments at the end of this script.