mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
TestRail run name uses environment variable for prefix
This commit is contained in:
@@ -73,6 +73,7 @@ tr_user = os.getenv('TR_USER')
|
||||
tr_pw = os.getenv('TR_PWD')
|
||||
milestoneId = os.getenv('MILESTONE')
|
||||
projectId = os.getenv('PROJECT_ID')
|
||||
testRunPrefix = os.getenv('TEST_RUN_PREFIX')
|
||||
|
||||
##Jfrog credentials
|
||||
jfrog_user = os.getenv('JFROG_USER')
|
||||
@@ -429,10 +430,10 @@ for key in equipment_id_dict:
|
||||
|
||||
###Create Test Run
|
||||
today = str(date.today())
|
||||
test_run_name = "Daily_Sanity_" + fw_model + "_" + today + "_" + latest_ap_image
|
||||
test_run_name = testRunPrefix + fw_model + "_" + today + "_" + latest_ap_image
|
||||
client.create_testrun(name=test_run_name, case_ids=test_cases, project_id=projId, milestone_id=milestoneId,
|
||||
description="Automated Nightly Sanity test run for new firmware build")
|
||||
rid = client.get_run_id(test_run_name="Daily_Sanity_" + fw_model + "_" + today + "_" + latest_ap_image)
|
||||
rid = client.get_run_id(test_run_name= testRunPrefix + fw_model + "_" + today + "_" + latest_ap_image)
|
||||
print("TIP run ID is:", rid)
|
||||
|
||||
###GetCloudSDK Version
|
||||
|
||||
@@ -466,7 +466,7 @@ $json = json_decode($results, true);
|
||||
<TR ALIGN="CENTER">
|
||||
<TD>5656</TD>
|
||||
<TD>CloudSDK</TD>
|
||||
<TD ALIGN="LEFT">Create SSID Profile 2.4 GHz WPA2-EAP - Custom VLAN Mode </TD>
|
||||
<TD ALIGN="LEFT">Create SSID Profile 2.4 GHz WPA2-EAP - Custom VLAN </TD>
|
||||
<TD><?php echo print_r($json['tests']['ea8300']['5656'],true) ?></TD>
|
||||
<TD><?php echo print_r($json['tests']['ecw5211']['5656'],true) ?></TD>
|
||||
<TD><?php echo print_r($json['tests']['ecw5410']['5656'],true) ?></TD>
|
||||
@@ -476,7 +476,7 @@ $json = json_decode($results, true);
|
||||
<TR ALIGN="CENTER">
|
||||
<TD>5657</TD>
|
||||
<TD>CloudSDK</TD>
|
||||
<TD ALIGN="LEFT">Create SSID Profile 2.4 GHz WPA2 - Custom VLAN Mode </TD>
|
||||
<TD ALIGN="LEFT">Create SSID Profile 2.4 GHz WPA2 - Custom VLAN </TD>
|
||||
<TD><?php echo print_r($json['tests']['ea8300']['5657'],true) ?></TD>
|
||||
<TD><?php echo print_r($json['tests']['ecw5211']['5657'],true) ?></TD>
|
||||
<TD><?php echo print_r($json['tests']['ecw5410']['5657'],true) ?></TD>
|
||||
@@ -486,7 +486,7 @@ $json = json_decode($results, true);
|
||||
<TR ALIGN="CENTER">
|
||||
<TD>5658</TD>
|
||||
<TD>CloudSDK</TD>
|
||||
<TD ALIGN="LEFT">Create SSID Profile 2.4 GHz WPA - Custom VLAN Mode </TD>
|
||||
<TD ALIGN="LEFT">Create SSID Profile 2.4 GHz WPA - Custom VLAN </TD>
|
||||
<TD><?php echo print_r($json['tests']['ea8300']['5658'],true) ?></TD>
|
||||
<TD><?php echo print_r($json['tests']['ecw5211']['5658'],true) ?></TD>
|
||||
<TD><?php echo print_r($json['tests']['ecw5410']['5658'],true) ?></TD>
|
||||
@@ -496,7 +496,7 @@ $json = json_decode($results, true);
|
||||
<TR ALIGN="CENTER">
|
||||
<TD>5659</TD>
|
||||
<TD>CloudSDK</TD>
|
||||
<TD ALIGN="LEFT">Create SSID Profile 5 GHz WPA2-EAP - Custom VLAN Mode </TD>
|
||||
<TD ALIGN="LEFT">Create SSID Profile 5 GHz WPA2-EAP - Custom VLAN </TD>
|
||||
<TD><?php echo print_r($json['tests']['ea8300']['5659'],true) ?></TD>
|
||||
<TD><?php echo print_r($json['tests']['ecw5211']['5659'],true) ?></TD>
|
||||
<TD><?php echo print_r($json['tests']['ecw5410']['5659'],true) ?></TD>
|
||||
|
||||
Reference in New Issue
Block a user