Skip to content

Commit

Permalink
Can Github Actions talk to TestRail?
Browse files Browse the repository at this point in the history
  • Loading branch information
clarmso committed Jan 15, 2024
1 parent 9eeede5 commit 0e2e043
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/staging-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
echo "Hello world!"
ls
pwd
python testrail.py
10 changes: 10 additions & 0 deletions testrail.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,13 @@ def report_test_runs_insert(self, project_id, payload):
testrail_completed_on=completed_on)
self.session.add(report)
self.session.commit()

if __name__ == "__main__":
testrail = TestRail()

# PROJECT_IDS = [59, 14, 27, 48]
PROJECT_ID = 59 # Fenix
SUITE_ID = 3192
response = testrail.test_cases(PROJECT_ID, SUITE_ID)
# response = testrail.test_cases(PROJECT_ID)
pprint(response)

0 comments on commit 0e2e043

Please sign in to comment.