Package de.qytera.qtaf.xray.builder
Class XrayJsonHelper
java.lang.Object
de.qytera.qtaf.xray.builder.XrayJsonHelper
Utility class for transforming data into objects compatible with Xray's REST APIs.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringisoDateString(Date date) Transforms aDateinto a string compatible with Xray's REST API.static StringtruncateParameterName(String parameterName) Truncates anXrayIterationParameterEntity's parameter name to the maximum allowed length.static StringtruncateParameterValue(String parameterValue) Truncates anXrayIterationParameterEntity's parameter value to the maximum allowed length.
-
Method Details
-
isoDateString
Transforms aDateinto a string compatible with Xray's REST API.- Parameters:
date- the date to transform- Returns:
- the corresponding string
-
truncateParameterName
Truncates anXrayIterationParameterEntity's parameter name to the maximum allowed length. Returns the unmodified string in case its length is less than the maximum allowed length.- Parameters:
parameterName- the name to truncate- Returns:
- the truncated or unmodified parameter name
-
truncateParameterValue
Truncates anXrayIterationParameterEntity's parameter value to the maximum allowed length. Returns the unmodified string in case its length is less than the maximum allowed length.- Parameters:
parameterValue- the value to truncate- Returns:
- the truncated or unmodified parameter value
-