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 filesgetFeatureFileDefinition(String[] testIDs) Get Tests as Cucumber Feature FilegetFeatureFileDefinitions(String[] testIDs) Get feature files from Xray Cloud API by Test(Set) IDsMethods 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- Parameters:
testIDs- Array of Test IDs- Returns:
- list of feature file contents. Xray will return a ZIP file with multiple files in it. This methods extracts all files and saves them in a string array which is returned
- Throws:
IOException- Error during ZIP file extractionURISyntaxExceptionMissingConfigurationValueException
-
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 extractionURISyntaxExceptionMissingConfigurationValueException
-