Gopal S Akshintala
06/02/2024, 8:14 AMclass RestfulAPIDevKtTest {
@Test
fun `execute restful-api dev pm collection`() {
val rundown =
ReVoman.revUp( // <1>
Kick.configure()
.templatePath(PM_COLLECTION_PATH) // <2>
.environmentPath(PM_ENVIRONMENT_PATH) // <3>
.nodeModulesRelativePath("js")
.off()
)
assertThat(rundown.stepReports).hasSize(3)
assertThat(rundown.firstUnsuccessfulStepReport).isNull()
}
companion object {
private const val PM_COLLECTION_PATH =
"pm-templates/restfulapidev/restful-api.dev.postman_collection.json"
private const val PM_ENVIRONMENT_PATH =
"pm-templates/restfulapidev/restful-api.dev.postman_environment.json"
}
}
It does more than just executing the postman collection. Refer the documentation for more features: https://sfdc.co/revoman