Test Rail Client
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 }
}
}
})
Content copied to clipboard
Constructors
Link copied to clipboard
fun TestRailClient( baseUrl: Url, authentication: BasicAuthCredentials, client: HttpClient = HttpClient() {
install(ContentNegotiation) {
json(
Json {
prettyPrint = true
isLenient = true
ignoreUnknownKeys = true
},
)
}
install(Auth) {
basic {
credentials { authentication }
}
}
})
Content copied to clipboard
Types
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Properties
Extensions
Link copied to clipboard
suspend fun TestRailClient.downloadCase( caseId: Long, sectionHelper: SectionHelper, outputDirectory: File, overwrite: Boolean = false)
Content copied to clipboard
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>
Content copied to clipboard
Link copied to clipboard
suspend fun TestRailClient.downloadMaps(suiteId: Long, destination: File): List<String>?
Content copied to clipboard
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/"))
Content copied to clipboard
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
Content copied to clipboard