I was giving consideration to how our users could execute a remote suite of tests based on test configuration parameters such as a templateId. Here’s what I was thinking:
User creates a plan and selects a RemoteTestTemplateId configuration. The user does not filter for any tests because they want to rely on the remote system to run and submit results back to TestRail. I know I have to eventually link up with an existing case in later steps via add_result_for_case.
User opens the test run and clicks the custom “Start Run” button which sends the TestRunId and RemoteTestTemplateId to the remote system.
The remote system uses the RemoteTestTemplateId to execute a series of tests. As each test completes, we make a call to TestRail to find the matching Case and use that to log a Result to the TestRunId via add_result_for_case.
While attempting this workflow, I was somewhat blocked by the fact that your TestPlan wants the TestSuite to have at least one test. Adding an arbitrary test would be an ugly workaround that I wouldn’t ask of our users.
Is there another way to accomplish a workflow like this without having to specify at least one test?