com.deviniti.testflo.testsender.Configuration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of test-results-sender Show documentation
Show all versions of test-results-sender Show documentation
TestFLO - Test result sender
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
}