Class XrayCucumberRepositoryCloud
java.lang.Object
de.qytera.qtaf.xray.repository.xray.XrayCucumberRepositoryCloud
- All Implemented Interfaces:
XrayCucumberRepository,XrayEndpoint
public class XrayCucumberRepositoryCloud
extends Object
implements XrayCucumberRepository, XrayEndpoint
Export Tests from Xray Server as Cucumber Feature File.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAndStoreFeatureFileDefinitions(String[] testIDs, String dir) Get feature files from Xray Cloud API by Test(Set) IDs and store them in files.getFeatureFileDefinition(String[] testIDs) Get Tests as Cucumber Feature File.getFeatureFileDefinitions(String[] testIDs) Get feature files from Xray Cloud API by Test(Set) IDs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.qytera.qtaf.xray.repository.xray.XrayEndpoint
getXrayAuthorizationHeaderValue, getXrayURL
-
Constructor Details
-
XrayCucumberRepositoryCloud
public XrayCucumberRepositoryCloud()
-
-
Method Details
-
getFeatureFileDefinition
Description copied from interface:XrayCucumberRepositoryGet Tests as Cucumber Feature File.- Specified by:
getFeatureFileDefinitionin interfaceXrayCucumberRepository- Parameters:
testIDs- the test issue IDs whose feature files to retrieve- Returns:
- Contents of feature file
-
getFeatureFileDefinitions
public List<String> getFeatureFileDefinitions(String[] testIDs) throws IOException, URISyntaxException, MissingConfigurationValueException Get feature files from Xray Cloud API by Test(Set) IDs. Xray will return a ZIP file with multiple files in it. This method extracts all files and saves them in a list of strings which is returned.- Parameters:
testIDs- Array of Test IDs- Returns:
- a list of feature file contents
- Throws:
IOException- Error during ZIP file extractionURISyntaxException- if the download URLs are invalidMissingConfigurationValueException- if the configuration is invalid
-
getAndStoreFeatureFileDefinitions
public void getAndStoreFeatureFileDefinitions(String[] testIDs, String dir) throws IOException, URISyntaxException, MissingConfigurationValueException Get feature files from Xray Cloud API by Test(Set) IDs and store them in files.- Parameters:
testIDs- Array of Test IDsdir- Name of directory where to store downloaded feature files- Throws:
IOException- Error during ZIP file extractionURISyntaxException- if the download URLs are invalidMissingConfigurationValueException- if the configuration is invalid
-