All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.deviniti.testflo.testsender.Configuration.kt Maven / Gradle / Ivy

There is a newer version: 1.0.11
Show newest version
package com.deviniti.testflo.testsender

import java.io.File

data class Configuration(
        val jiraUrl: String,
        val jiraUsername: String,
        val jiraPassword: String,
        val testResultFiles: List,
        val buildUrl: String,
        val testPlanKey: String,
        val targetIteration: TargetIteration,
        val testCaseCreationStrategy: TestCaseCreationStrategy,
        val testResultsType: TestResultsType
)

enum class TestResultsType {
    JUNIT,
    TESTNG,
    CUCUMBER
}

enum class TargetIteration {
    CURRENT_ITERATION,
    NEW_ITERATION
}

enum class TestCaseCreationStrategy {
    CREATE_AND_UPDATE,
    UPDATE_EXISTING
}

enum class ConfigurationField(val fieldName: String) {
    JIRA_URL("jiraUrl"),
    JIRA_USERNAME("jiraUserName"),
    JIRA_PASSWORD("jiraPassword"),
    TEST_RESULTS_DIRECTORY("testResultsDirectory"),
    TEST_PLAN_KEY("testPlanKey"),
    TARGET_ITERATION("targetIteration"),
    TEST_CASE_CREATION_STRATEGY("testCaseCreationStrategy"),
    MISSING_TEST_PLAN_KEY_STRATEGY("missingTestPlanKeyStrategy"),
    TEST_RESULTS_TYPE("testResultsType"),
    BUILD_URL("buildUrl")
}

enum class MissingTestPlanKeyStrategy {
    FAIL_TASK,
    SKIP_TASK
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy