Testmo supports advanced test automation workflows for parallel testing jobs, which are often used to speed up CI pipelines.
You can use advanced CI/CD automation workflows with parallel testing jobs with Testmo. Testmo can capture the results for each parallel test job as part of a separate thread under a combined test run. You can then view the results of each thread separately as well as the entire test run at once.
The following illustration shows how you would report parallel test jobs with the
testmotool from your CI/CD pipeline:
Example Testmo parallel testing strategy
So in order to integrate with and submit your parallel test jobs to Testmo, you would follow this approach:
Before you start your parallel test jobs, first call the
automation:run:createcommand in your CI/CD pipeline with our CLI tool. This creates a new test automation run in Testmo so you can add results. The command returns a test run ID. You need to store this ID and pass it to your parallel test jobs in your CI/CD pipeline, so you can add your results.
Then in each parallel test job you start your test automation tool to run your tests (you can either start it yourself or let the
testmotool launch your tests). You use the
automation:run:submit-threadcommand to create a new thread and submit your results (and optionally launch your automation tool). You need to pass the above mentioned test run ID, so the new thread and results are added to the test run you created in step 1.
After all your parallel test jobs completed, mark the test run as completed by calling the
automation:run:completecommand. You again need to pass the test run ID created in step 1.