TestRail run name uses environment variable for prefix

This commit is contained in:
bealler
2020-12-14 14:54:42 -05:00
parent df9525ce28
commit 204b8a489d
2 changed files with 7 additions and 6 deletions

View File

@@ -73,6 +73,7 @@ tr_user = os.getenv('TR_USER')
tr_pw = os.getenv('TR_PWD') tr_pw = os.getenv('TR_PWD')
milestoneId = os.getenv('MILESTONE') milestoneId = os.getenv('MILESTONE')
projectId = os.getenv('PROJECT_ID') projectId = os.getenv('PROJECT_ID')
testRunPrefix = os.getenv('TEST_RUN_PREFIX')
##Jfrog credentials ##Jfrog credentials
jfrog_user = os.getenv('JFROG_USER') jfrog_user = os.getenv('JFROG_USER')
@@ -429,10 +430,10 @@ for key in equipment_id_dict:
###Create Test Run ###Create Test Run
today = str(date.today()) 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, 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") 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) print("TIP run ID is:", rid)
###GetCloudSDK Version ###GetCloudSDK Version

View File

@@ -466,7 +466,7 @@ $json = json_decode($results, true);
<TR ALIGN="CENTER"> <TR ALIGN="CENTER">
<TD>5656</TD> <TD>5656</TD>
<TD>CloudSDK</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']['ea8300']['5656'],true) ?></TD>
<TD><?php echo print_r($json['tests']['ecw5211']['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> <TD><?php echo print_r($json['tests']['ecw5410']['5656'],true) ?></TD>
@@ -476,7 +476,7 @@ $json = json_decode($results, true);
<TR ALIGN="CENTER"> <TR ALIGN="CENTER">
<TD>5657</TD> <TD>5657</TD>
<TD>CloudSDK</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']['ea8300']['5657'],true) ?></TD>
<TD><?php echo print_r($json['tests']['ecw5211']['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> <TD><?php echo print_r($json['tests']['ecw5410']['5657'],true) ?></TD>
@@ -486,7 +486,7 @@ $json = json_decode($results, true);
<TR ALIGN="CENTER"> <TR ALIGN="CENTER">
<TD>5658</TD> <TD>5658</TD>
<TD>CloudSDK</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']['ea8300']['5658'],true) ?></TD>
<TD><?php echo print_r($json['tests']['ecw5211']['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> <TD><?php echo print_r($json['tests']['ecw5410']['5658'],true) ?></TD>
@@ -496,7 +496,7 @@ $json = json_decode($results, true);
<TR ALIGN="CENTER"> <TR ALIGN="CENTER">
<TD>5659</TD> <TD>5659</TD>
<TD>CloudSDK</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']['ea8300']['5659'],true) ?></TD>
<TD><?php echo print_r($json['tests']['ecw5211']['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> <TD><?php echo print_r($json['tests']['ecw5410']['5659'],true) ?></TD>