Skip to content

Commit

Permalink
Merge pull request rancher#11935 from izaac/add_or_update_cases_as_au…
Browse files Browse the repository at this point in the history
…tomated

[Automation] - Add the Automation Status as "Automated" to UI Cases
  • Loading branch information
izaac authored Sep 17, 2024
2 parents bd7f7cb + 50e1760 commit 4de6f6d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions cypress/jenkins/junit_to_qase.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,12 @@ def create_testcases_under_suite(case_entities, suite_title_from_junit, suite_id
# if the result from junit has a description, add it
# This part is where the error message goes if we want it in the Test Case description
testcase_value = results[suite_title_from_junit][ct]
req_body = {'title': ct,
'is_flaky': 0,
'automation': 1,
'custom_field': {
req_body = {"title": ct,
"is_flaky": 0,
"automation": 0,
"isManual": 1,
"isToBeAutomated": False,
"custom_field": {
"14": TEST_SOURCE,
"15": "{0}/{1}".format(suite_title_from_junit, ct)},
"suite_id": suite_id}
Expand All @@ -268,6 +270,9 @@ def create_testcases_under_suite(case_entities, suite_title_from_junit, suite_id
case_id_from_title = case_title_and_id[ct]
cases_ids.append(case_id_from_title)
req_body = {"suite_id": suite_id,
"automation": 0,
"isManual": 1,
"isToBeAutomated": False,
"custom_field": {
"14": TEST_SOURCE,
"15": "{0}/{1}".format(suite_title_from_junit, ct)
Expand Down

0 comments on commit 4de6f6d

Please sign in to comment.