Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qase-pytest/docs/UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ In v5, two configuration options defined how the reporter was uploading results
`testops.bulk` and `testops.chunk`.

In v6, reporter always sends results in portions, called batches.
Default batch size is 200, and can be set to anything from 1 to 2000.
Default batch size is 200, and can be set to anything from 1 to 200.
Update the config in the following way:

```diff
Expand Down
4 changes: 2 additions & 2 deletions qase-python-commons/src/qase/commons/models/config/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ def __init__(self):
self.size = 200

def set_size(self, size: int):
if size > 2000 or size == 0:
raise ValueError("Batch size should be greater than 0 and less than 2000")
if size > 200 or size == 0:
raise ValueError("Batch size should be greater than 0 and no greater than 200")
self.size = size
2 changes: 1 addition & 1 deletion qase-python-commons/src/qase/commons/reporters/testops.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, config: QaseConfig, logger: Logger, client: BaseApiClient) ->
self.complete_after_run = self.config.testops.run.complete
self.environment = None

self.batch_size = min(2000, max(1, int(self.config.testops.batch.size or DEFAULT_BATCH_SIZE)))
self.batch_size = min(200, max(1, int(self.config.testops.batch.size or DEFAULT_BATCH_SIZE)))
self.send_semaphore = threading.Semaphore(DEFAULT_THREAD_COUNT) # Semaphore to limit concurrent sends
self.lock = threading.Lock()
self.count_running_threads = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, config: QaseConfig, logger: Logger, client: BaseApiClient) ->
self.client = client

self.multi_config = config.testops_multi
self.batch_size = min(2000, max(1, int(self.config.testops.batch.size or DEFAULT_BATCH_SIZE)))
self.batch_size = min(200, max(1, int(self.config.testops.batch.size or DEFAULT_BATCH_SIZE)))
self.send_semaphore = threading.Semaphore(DEFAULT_THREAD_COUNT)
self.lock = threading.Lock()
self.count_running_threads = 0
Expand Down
2 changes: 1 addition & 1 deletion qase-robotframework/docs/UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ In v3, two configuration options defined how the reporter was uploading results
`testops.bulk` and `testops.chunk`.

In v3, reporter always sends results in portions, called batches.
Default batch size is 200, and can be set to anything from 1 to 2000.
Default batch size is 200, and can be set to anything from 1 to 200.
Update the config in the following way:

```diff
Expand Down
Loading