From 0781eb5d78a2f51f73b316bdb0c9f03b36244950 Mon Sep 17 00:00:00 2001 From: carzh Date: Tue, 28 Jan 2025 12:11:55 -0800 Subject: [PATCH 1/2] added more details for failure message --- tools/python/upload_and_run_browserstack_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/upload_and_run_browserstack_tests.py b/tools/python/upload_and_run_browserstack_tests.py index a4da87e4fe435..25e3d44468b28 100644 --- a/tools/python/upload_and_run_browserstack_tests.py +++ b/tools/python/upload_and_run_browserstack_tests.py @@ -169,4 +169,5 @@ def build_query_loop(build_id, test_platform, id, token): print("Test suite details: ", test_suite_details_url) print("=" * 30) if tests_status != "passed": - raise Exception(f"Tests failed. Go to {test_suite_details_url} for more details.") + output_str = f"Tests failed. Go to {test_suite_details_url} for more details & go to 'End-to-end tests for iOS & Android ' in the ORT Mobile OneNote to see more details on how to access the BrowserStack logs." + raise Exception(output_str) From 4b8a7034fb43f0f5a00b127b0ef261e7a59d0cf5 Mon Sep 17 00:00:00 2001 From: carzh Date: Thu, 30 Jan 2025 10:33:56 -0800 Subject: [PATCH 2/2] updated with more detailed instructions to find onenote page --- tools/python/upload_and_run_browserstack_tests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/python/upload_and_run_browserstack_tests.py b/tools/python/upload_and_run_browserstack_tests.py index 25e3d44468b28..acb7295d29f25 100644 --- a/tools/python/upload_and_run_browserstack_tests.py +++ b/tools/python/upload_and_run_browserstack_tests.py @@ -169,5 +169,10 @@ def build_query_loop(build_id, test_platform, id, token): print("Test suite details: ", test_suite_details_url) print("=" * 30) if tests_status != "passed": - output_str = f"Tests failed. Go to {test_suite_details_url} for more details & go to 'End-to-end tests for iOS & Android ' in the ORT Mobile OneNote to see more details on how to access the BrowserStack logs." + output_str = f"""Tests failed. Go to {test_suite_details_url} for the BrowserStack run. + + For more details on how to access the BrowserStack logs, go to the following page in the team OneNote: + ONNX Ecosystem Team Notebook -> ORT Mobile -> End-to-end tests for iOS & Android + """ + raise Exception(output_str)