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
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# qase-java 4.1.61

- Updated API clients to the latest specification

# qase-java 4.1.60

## Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.qase</groupId>
<artifactId>qase-java</artifactId>
<packaging>pom</packaging>
<version>4.1.60</version>
<version>4.1.61</version>
<modules>
<module>qase-java-commons</module>
<module>qase-api-client</module>
Expand Down
2 changes: 1 addition & 1 deletion qase-api-client/docs/ResultsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public class Example {

Bulk create test run result

This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage.
This method allows to create a lot of test run result at once. If you try to send more than 200 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage.

### Example
```java
Expand Down
2 changes: 1 addition & 1 deletion qase-api-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>qase-java</artifactId>
<groupId>io.qase</groupId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ private okhttp3.Call createResultBulkValidateBeforeCall(@javax.annotation.Nonnul

/**
* Bulk create test run result
* This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage.
* This method allows to create a lot of test run result at once. If you try to send more than 200 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage.
* @param code Code of project, where to search entities. (required)
* @param id Identifier. (required)
* @param resultCreateBulk (required)
Expand All @@ -369,7 +369,7 @@ public BaseResponse createResultBulk(@javax.annotation.Nonnull String code, @jav

/**
* Bulk create test run result
* This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage.
* This method allows to create a lot of test run result at once. If you try to send more than 200 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage.
* @param code Code of project, where to search entities. (required)
* @param id Identifier. (required)
* @param resultCreateBulk (required)
Expand Down Expand Up @@ -397,7 +397,7 @@ public ApiResponse<BaseResponse> createResultBulkWithHttpInfo(@javax.annotation.

/**
* Bulk create test run result (asynchronously)
* This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage.
* This method allows to create a lot of test run result at once. If you try to send more than 200 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage.
* @param code Code of project, where to search entities. (required)
* @param id Identifier. (required)
* @param resultCreateBulk (required)
Expand Down
1 change: 1 addition & 0 deletions qase-api-v2-client/docs/ResultExecution.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
|**status** | **String** | Can have the following values passed, failed, blocked, skipped, invalid + custom statuses | |
|**duration** | **Long** | Duration of the test execution in milliseconds. | [optional] |
|**stacktrace** | **String** | | [optional] |
|**errorContext** | **String** | Free-form failure context captured by the reporter. For Playwright this is the content of error-context.md (test info, error details, page snapshot), so it may include rendered page content. Stored verbatim so it can be copied as raw text. Values longer than 262144 characters are silently truncated by Qase and the request still succeeds. Write-only — not returned by the result read endpoints. | [optional] |
|**thread** | **String** | | [optional] |


Expand Down
1 change: 1 addition & 0 deletions qase-api-v2-client/docs/ResultsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,6 @@ public class Example {
| **401** | Unauthorized | - |
| **403** | Forbidden | - |
| **404** | Not Found | - |
| **413** | Payload Too Large. Returned when the request contains more than 200 results, or when the combined length of &#x60;execution.error_context&#x60; across the batch exceeds 4194304 characters. In both cases the whole batch is rejected — no results are created. | - |
| **422** | Unprocessable Entity | - |

2 changes: 1 addition & 1 deletion qase-api-v2-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.qase</groupId>
<artifactId>qase-java</artifactId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>

<artifactId>qase-api-v2-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ public okhttp3.Call createResultV2Async(@javax.annotation.Nonnull String project
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
<tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
<tr><td> 413 </td><td> Payload Too Large. Returned when the request contains more than 200 results, or when the combined length of &#x60;execution.error_context&#x60; across the batch exceeds 4194304 characters. In both cases the whole batch is rejected — no results are created. </td><td> - </td></tr>
<tr><td> 422 </td><td> Unprocessable Entity </td><td> - </td></tr>
</table>
*/
Expand Down Expand Up @@ -347,6 +348,7 @@ private okhttp3.Call createResultsV2ValidateBeforeCall(@javax.annotation.Nonnull
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
<tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
<tr><td> 413 </td><td> Payload Too Large. Returned when the request contains more than 200 results, or when the combined length of &#x60;execution.error_context&#x60; across the batch exceeds 4194304 characters. In both cases the whole batch is rejected — no results are created. </td><td> - </td></tr>
<tr><td> 422 </td><td> Unprocessable Entity </td><td> - </td></tr>
</table>
*/
Expand All @@ -372,6 +374,7 @@ public ResultCreateBulkResponse createResultsV2(@javax.annotation.Nonnull String
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
<tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
<tr><td> 413 </td><td> Payload Too Large. Returned when the request contains more than 200 results, or when the combined length of &#x60;execution.error_context&#x60; across the batch exceeds 4194304 characters. In both cases the whole batch is rejected — no results are created. </td><td> - </td></tr>
<tr><td> 422 </td><td> Unprocessable Entity </td><td> - </td></tr>
</table>
*/
Expand Down Expand Up @@ -399,6 +402,7 @@ public ApiResponse<ResultCreateBulkResponse> createResultsV2WithHttpInfo(@javax.
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
<tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
<tr><td> 413 </td><td> Payload Too Large. Returned when the request contains more than 200 results, or when the combined length of &#x60;execution.error_context&#x60; across the batch exceeds 4194304 characters. In both cases the whole batch is rejected — no results are created. </td><td> - </td></tr>
<tr><td> 422 </td><td> Unprocessable Entity </td><td> - </td></tr>
</table>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ public class ResultExecution {
@javax.annotation.Nullable
private String stacktrace;

public static final String SERIALIZED_NAME_ERROR_CONTEXT = "error_context";
@SerializedName(SERIALIZED_NAME_ERROR_CONTEXT)
@javax.annotation.Nullable
private String errorContext;

public static final String SERIALIZED_NAME_THREAD = "thread";
@SerializedName(SERIALIZED_NAME_THREAD)
@javax.annotation.Nullable
Expand Down Expand Up @@ -179,6 +184,25 @@ public void setStacktrace(@javax.annotation.Nullable String stacktrace) {
}


public ResultExecution errorContext(@javax.annotation.Nullable String errorContext) {
this.errorContext = errorContext;
return this;
}

/**
* Free-form failure context captured by the reporter. For Playwright this is the content of error-context.md (test info, error details, page snapshot), so it may include rendered page content. Stored verbatim so it can be copied as raw text. Values longer than 262144 characters are silently truncated by Qase and the request still succeeds. Write-only — not returned by the result read endpoints.
* @return errorContext
*/
@javax.annotation.Nullable
public String getErrorContext() {
return errorContext;
}

public void setErrorContext(@javax.annotation.Nullable String errorContext) {
this.errorContext = errorContext;
}


public ResultExecution thread(@javax.annotation.Nullable String thread) {
this.thread = thread;
return this;
Expand Down Expand Up @@ -257,6 +281,7 @@ public boolean equals(Object o) {
Objects.equals(this.status, resultExecution.status) &&
Objects.equals(this.duration, resultExecution.duration) &&
Objects.equals(this.stacktrace, resultExecution.stacktrace) &&
Objects.equals(this.errorContext, resultExecution.errorContext) &&
Objects.equals(this.thread, resultExecution.thread)&&
Objects.equals(this.additionalProperties, resultExecution.additionalProperties);
}
Expand All @@ -267,7 +292,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(startTime, endTime, status, duration, stacktrace, thread, additionalProperties);
return Objects.hash(startTime, endTime, status, duration, stacktrace, errorContext, thread, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -286,6 +311,7 @@ public String toString() {
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
sb.append(" stacktrace: ").append(toIndentedString(stacktrace)).append("\n");
sb.append(" errorContext: ").append(toIndentedString(errorContext)).append("\n");
sb.append(" thread: ").append(toIndentedString(thread)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
Expand All @@ -309,7 +335,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("start_time", "end_time", "status", "duration", "stacktrace", "thread"));
openapiFields = new HashSet<String>(Arrays.asList("start_time", "end_time", "status", "duration", "stacktrace", "error_context", "thread"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("status"));
Expand Down Expand Up @@ -341,6 +367,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if ((jsonObj.get("stacktrace") != null && !jsonObj.get("stacktrace").isJsonNull()) && !jsonObj.get("stacktrace").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `stacktrace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stacktrace").toString()));
}
if ((jsonObj.get("error_context") != null && !jsonObj.get("error_context").isJsonNull()) && !jsonObj.get("error_context").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `error_context` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error_context").toString()));
}
if ((jsonObj.get("thread") != null && !jsonObj.get("thread").isJsonNull()) && !jsonObj.get("thread").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `thread` to be a primitive type in the JSON string but got `%s`", jsonObj.get("thread").toString()));
}
Expand Down
2 changes: 1 addition & 1 deletion qase-cucumber-v3-reporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>qase-java</artifactId>
<groupId>io.qase</groupId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion qase-cucumber-v4-reporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>qase-java</artifactId>
<groupId>io.qase</groupId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion qase-cucumber-v5-reporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>qase-java</artifactId>
<groupId>io.qase</groupId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion qase-cucumber-v6-reporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>qase-java</artifactId>
<groupId>io.qase</groupId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion qase-cucumber-v7-reporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>qase-java</artifactId>
<groupId>io.qase</groupId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion qase-java-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.qase</groupId>
<artifactId>qase-java</artifactId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>

<artifactId>qase-java-commons</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion qase-junit4-reporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>qase-java</artifactId>
<groupId>io.qase</groupId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion qase-junit5-reporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>qase-java</artifactId>
<groupId>io.qase</groupId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion qase-testng-reporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>qase-java</artifactId>
<groupId>io.qase</groupId>
<version>4.1.60</version>
<version>4.1.61</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Loading