Saving test artifacts to Object Storage
Written by
Updated at February 12, 2024
Configure the saving of test artifacts to the Yandex Object Storage service. You can use artifacts to analyze test results and detect issues during testing.
Note
You can set up how you want your artifacts to be saved only prior to testing.
Preparing the infrastructure
- Create a bucket in the same directory where the test agent is located.
- Assign the
storage.uploader
role to the service account used to create the test agent.
Running a test
You can create a new test:
Management console
- Create a new test, and enable the Save artifacts option under Test logs.
- In the Bucket name field, select the bucket into which the test artifacts will be saved.
- In the Save filesfield, specify which files to save, using a mask in glob-expression
format. - (Optional) In the Exclude files field, specify which files to exclude using a mask in glob-expression format.
- (Optional) Enable the Archive in zip option to save all files to a single archive.
You can also restart the existing test:
Management console
- In the management console
, select Load Testing. - In the left-hand panel, select
Tests. - Select the test. In the top-right corner, click Restart.
- Under Test logs, enable the Save artifacts option.
- In the Bucket name field, select the bucket into which the test artifacts will be saved.
- In the Save filesfield, specify which files to save, using a mask in glob-expression
format. - (Optional) In the Exclude files field, specify which files to exclude using a mask in glob-expression format.
- (Optional) Enable the Archive in zip option to save all files to a single archive.
- Click Create.
Test artifacts are stored on the test agent in the /var/lib/ulta/tests
directory.