Package testrail

Types

Link copied to clipboard
class SectionHelper(    val sections: Sections,     val ignoredSections: Set<Long> = DEFAULT_IGNORED_SECTIONS,     val sectionDirectoryNaming: (Section) -> String = { "${it.name}-${it.id}" },     val caseFileNaming: (Case) -> String = { case -> "C${case.id}.feature" })
Link copied to clipboard
class TestRailClient(    val baseUrl: Url,     val authentication: BasicAuthCredentials,     val client: HttpClient = HttpClient() { install(ContentNegotiation) { json( Json { prettyPrint = true isLenient = true ignoreUnknownKeys = true }, ) } install(Auth) { basic { credentials { authentication } } } })
Link copied to clipboard
data class TestRailConfig(    val username: String,     val password: String,     val suiteId: Long,     val projectId: Long,     val excludingTags: Set<String>,     val ignoredParentSections: List<Long>,     val testCaseDirectory: String,     val mapsDirectory: String)

Functions

Link copied to clipboard
fun String.convertTables(): String
Link copied to clipboard
suspend fun TestRailClient.downloadCase(    caseId: Long,     sectionHelper: SectionHelper,     outputDirectory: File,     overwrite: Boolean = false)
Link copied to clipboard
suspend fun TestRailClient.downloadEverything(    sectionIds: List<Long> = listOf(49388, 50008),     projectId: Long = TestRailClient.SE_PROJECT_ID,     suiteId: Long = TestRailClient.SE_SUITE_ID,     overwrite: Boolean = false,     ignoredParentSections: Set<Long> = SectionHelper.DEFAULT_IGNORED_SECTIONS,     testCaseDirectory: File = File("./src/jvmTest/resources/testrail/features/"),     mapDirectory: File = File("./src/jvmTest/resources/testrail/maps")): Map<Long, File>
Link copied to clipboard
suspend fun TestRailClient.downloadMaps(suiteId: Long, destination: File): List<String>?
Link copied to clipboard
suspend fun TestRailClient.downloadSection(    sectionId: Long,     suiteId: Long = TestRailClient.SE_SUITE_ID,     projectId: Long = TestRailClient.SE_PROJECT_ID,     sectionHelper: SectionHelper,     overwrite: Boolean = false,     excludingTags: Set<String> = setOf("ignore", "duplicate", "creative", "difficult", "todo"),     testCaseDirectory: File = File("./src/jvmTest/resources/features/testrail-2/"))
Link copied to clipboard
fun Case.featureContent(): String
Link copied to clipboard
fun Case.formattedTags(): String
Link copied to clipboard
suspend fun getTestrailPaths(    sectionIds: List<Long>,     username: String,     password: String,     ignoredParentSections: Set<Long>): Map<Long, File>
Link copied to clipboard
fun parseTags(title: String): List<String>
Link copied to clipboard
fun Case.relativeUrl(): String
Link copied to clipboard
fun Case.save(    sectionHelper: SectionHelper,     outputDirectory: File,     overwrite: Boolean = false)
Link copied to clipboard
suspend fun TestRailClient.sectionHelper(    projectId: Long = TestRailClient.SE_PROJECT_ID,     suiteId: Long = TestRailClient.SE_SUITE_ID,     ignoredSections: Set<Long> = setOf(49384L, 49385L, 49386L)): SectionHelper
Link copied to clipboard
fun Case.tags(): List<String>
fun Section.tags(): List<String>

Properties

Link copied to clipboard
val DEFAULT_TESTRAIL_CONFIG: TestRailConfig
Link copied to clipboard
val TAGS_REGEX: Regex