diff --git a/qase-java-commons/README.md b/qase-java-commons/README.md index ba47d13e..7ce36de3 100644 --- a/qase-java-commons/README.md +++ b/qase-java-commons/README.md @@ -59,7 +59,7 @@ All configuration options are listed in the table below: | Qase test run configurations | `testops.run.configurations` | `QASE_TESTOPS_RUN_CONFIGURATIONS` | `QASE_TESTOPS_RUN_CONFIGURATIONS` | undefined | No | Comma-separated key=value pairs | | Qase test run configurations create if not exists | `testops.run.configurations.createIfNotExists` | `QASE_TESTOPS_CONFIGURATIONS_CREATE_IF_NOT_EXISTS` | `QASE_TESTOPS_CONFIGURATIONS_CREATE_IF_NOT_EXISTS` | `False` | No | `True`, `False` | | Qase test plan ID | `testops.plan.id` | `QASE_TESTOPS_PLAN_ID` | `QASE_TESTOPS_PLAN_ID` | undefined | No | Any integer | -| Size of batch for sending test results | `testops.batch.size` | `QASE_TESTOPS_BATCH_SIZE` | `QASE_TESTOPS_BATCH_SIZE` | `200` | No | `1`–`2000` | +| Size of batch for sending test results | `testops.batch.size` | `QASE_TESTOPS_BATCH_SIZE` | `QASE_TESTOPS_BATCH_SIZE` | `200` | No | `1`–`200` | | Attachment upload timeout in seconds (minimum; scales up with attachment size at 1 MB/s) | `testops.batch.uploadTimeout` | `QASE_TESTOPS_BATCH_UPLOAD_TIMEOUT` | `QASE_TESTOPS_BATCH_UPLOAD_TIMEOUT` | `300` | No | Any positive integer | | Number of threads for parallel attachment upload | `testops.batch.uploadThreads` | `QASE_TESTOPS_BATCH_UPLOAD_THREADS` | `QASE_TESTOPS_BATCH_UPLOAD_THREADS` | `4` | No | `1`–`32` | | Enable defects for failed test cases | `testops.defect` | `QASE_TESTOPS_DEFECT` | `QASE_TESTOPS_DEFECT` | `False` | No | `True`, `False` | diff --git a/qase-java-commons/src/main/java/io/qase/commons/config/BatchConfig.java b/qase-java-commons/src/main/java/io/qase/commons/config/BatchConfig.java index 6a166b3a..973a7fdd 100644 --- a/qase-java-commons/src/main/java/io/qase/commons/config/BatchConfig.java +++ b/qase-java-commons/src/main/java/io/qase/commons/config/BatchConfig.java @@ -15,8 +15,8 @@ public void setSize(int size) { logger.warn("Batch size must be positive, got %d for parameter 'QASE_TESTOPS_BATCH_SIZE'. Using default: 200", size); return; } - if (size > 2000) { - logger.warn("Batch size must be <= 2000, got %d for parameter 'QASE_TESTOPS_BATCH_SIZE'. Using default: 200", size); + if (size > 200) { + logger.warn("Batch size must be <= 200, got %d for parameter 'QASE_TESTOPS_BATCH_SIZE'. Using default: 200", size); return; }